Merge pull request #389 from antmicro/linux_flash_offsets

bios/boot: allow to customize flash offsets of Linux images
This commit is contained in:
enjoy-digital 2020-02-18 17:54:13 +01:00 committed by GitHub
commit 5d580ca4e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 4 deletions

View File

@ -409,10 +409,18 @@ static int copy_image_from_flash_to_ram(unsigned int flash_address, unsigned int
} }
#endif #endif
#define KERNEL_IMAGE_FLASH_OFFSET 0x00000000 // 0MB #ifndef KERNEL_IMAGE_FLASH_OFFSET
#define ROOTFS_IMAGE_FLASH_OFFSET 0x00500000 // 5MB #define KERNEL_IMAGE_FLASH_OFFSET 0x00000000 // 0MB
#define DEVICE_TREE_IMAGE_FLASH_OFFSET 0x00D00000 // 13MB #endif
#define EMULATOR_IMAGE_FLASH_OFFSET 0x00E00000 // 14MB #ifndef ROOTFS_IMAGE_FLASH_OFFSET
#define ROOTFS_IMAGE_FLASH_OFFSET 0x00500000 // 5MB
#endif
#ifndef DEVICE_TREE_IMAGE_FLASH_OFFSET
#define DEVICE_TREE_IMAGE_FLASH_OFFSET 0x00D00000 // 13MB
#endif
#ifndef EMULATOR_IMAGE_FLASH_OFFSET
#define EMULATOR_IMAGE_FLASH_OFFSET 0x00E00000 // 14MB
#endif
void flashboot(void) void flashboot(void)
{ {