diff options
author | Paul Barker <pbarker@toganlabs.com> | 2017-09-08 10:12:54 +0000 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.com> | 2017-09-24 20:39:35 +0100 |
commit | e9bb7f0c6d3f77312970034ca0a63b3df0e3ba8e (patch) | |
tree | 992506e7939fc0f27f4ece212db0134c56d7e128 /conf/machine | |
parent | 43e0169ab7f5143fab3ec12a788557a6306c8476 (diff) | |
download | meta-raspberrypi-e9bb7f0c6d3f77312970034ca0a63b3df0e3ba8e.tar.gz |
Support using u-boot with Image format for raspberrypi3-64
For raspberrypi3-64 we need to use the Image or Image.gz format with u-boot
instead of the legacy uImage format. We also need to issue the 'booti' command
to boot the kernel instead of 'bootm'.
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Diffstat (limited to 'conf/machine')
-rw-r--r-- | conf/machine/include/rpi-base.inc | 14 | ||||
-rw-r--r-- | conf/machine/raspberrypi3-64.conf | 5 |
2 files changed, 17 insertions, 2 deletions
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc index f29db29..970f4d8 100644 --- a/conf/machine/include/rpi-base.inc +++ b/conf/machine/include/rpi-base.inc | |||
@@ -41,7 +41,17 @@ KERNEL_DEVICETREE ?= " \ | |||
41 | overlays/pi3-miniuart-bt.dtbo \ | 41 | overlays/pi3-miniuart-bt.dtbo \ |
42 | overlays/vc4-kms-v3d.dtbo \ | 42 | overlays/vc4-kms-v3d.dtbo \ |
43 | " | 43 | " |
44 | KERNEL_IMAGETYPE ?= "Image" | 44 | |
45 | # By default: | ||
46 | # | ||
47 | # * When u-boot is disabled use the "Image" format which can be directly loaded | ||
48 | # by the rpi firmware. | ||
49 | # | ||
50 | # * When u-boot is enabled use the "uImage" format and the "bootm" command | ||
51 | # within u-boot to load the kernel. | ||
52 | KERNEL_BOOTCMD ??= "bootm" | ||
53 | KERNEL_IMAGETYPE_UBOOT ??= "uImage" | ||
54 | KERNEL_IMAGETYPE ?= "${@bb.utils.contains('RPI_USE_U_BOOT', '1', '${KERNEL_IMAGETYPE_UBOOT}', 'Image', d)}" | ||
45 | 55 | ||
46 | MACHINE_FEATURES += "apm usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio" | 56 | MACHINE_FEATURES += "apm usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio" |
47 | 57 | ||
@@ -83,7 +93,7 @@ def make_dtb_boot_files(d): | |||
83 | 93 | ||
84 | IMAGE_BOOT_FILES ?= "bcm2835-bootfiles/* \ | 94 | IMAGE_BOOT_FILES ?= "bcm2835-bootfiles/* \ |
85 | ${@make_dtb_boot_files(d)} \ | 95 | ${@make_dtb_boot_files(d)} \ |
86 | ${@bb.utils.contains('KERNEL_IMAGETYPE', 'uImage', \ | 96 | ${@bb.utils.contains('RPI_USE_U_BOOT', '1', \ |
87 | '${KERNEL_IMAGETYPE} u-boot.bin;${SDIMG_KERNELIMAGE} boot.scr', \ | 97 | '${KERNEL_IMAGETYPE} u-boot.bin;${SDIMG_KERNELIMAGE} boot.scr', \ |
88 | '${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}', d)} \ | 98 | '${KERNEL_IMAGETYPE};${SDIMG_KERNELIMAGE}', d)} \ |
89 | " | 99 | " |
diff --git a/conf/machine/raspberrypi3-64.conf b/conf/machine/raspberrypi3-64.conf index 237684a..ebc9f38 100644 --- a/conf/machine/raspberrypi3-64.conf +++ b/conf/machine/raspberrypi3-64.conf | |||
@@ -39,3 +39,8 @@ VC4_CMA_SIZE ?= "cma-256" | |||
39 | 39 | ||
40 | UBOOT_MACHINE = "rpi_3_config" | 40 | UBOOT_MACHINE = "rpi_3_config" |
41 | MACHINE_FEATURES_append = " vc4graphics" | 41 | MACHINE_FEATURES_append = " vc4graphics" |
42 | |||
43 | # When u-boot is enabled we need to use the "Image" format and the "booti" | ||
44 | # command to load the kernel | ||
45 | KERNEL_IMAGETYPE_UBOOT ?= "Image" | ||
46 | KERNEL_BOOTCMD ?= "booti" | ||