diff options
Diffstat (limited to 'conf')
| -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" | ||
