summaryrefslogtreecommitdiffstats
path: root/classes/sota_raspberrypi.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/sota_raspberrypi.bbclass')
-rw-r--r--classes/sota_raspberrypi.bbclass17
1 files changed, 13 insertions, 4 deletions
diff --git a/classes/sota_raspberrypi.bbclass b/classes/sota_raspberrypi.bbclass
index 2c69ea0..a5558b4 100644
--- a/classes/sota_raspberrypi.bbclass
+++ b/classes/sota_raspberrypi.bbclass
@@ -1,11 +1,20 @@
1RPI_USE_U_BOOT_sota = "1" 1RPI_USE_U_BOOT_sota = "1"
2KERNEL_IMAGETYPE_sota = "uImage" 2
3KERNEL_CLASSES_append_sota = " kernel-fitimage"
4KERNEL_IMAGETYPE_sota = "fitImage"
5
3PREFERRED_PROVIDER_virtual/bootloader_sota ?= "u-boot" 6PREFERRED_PROVIDER_virtual/bootloader_sota ?= "u-boot"
4UBOOT_MACHINE_raspberrypi2_sota ?= "rpi_2_defconfig" 7UBOOT_ENTRYPOINT_sota ?= "0x00008000"
5UBOOT_MACHINE_raspberrypi3_sota ?= "rpi_3_32b_defconfig"
6 8
7IMAGE_FSTYPES_remove_sota = "rpi-sdimg" 9IMAGE_FSTYPES_remove_sota = "rpi-sdimg"
8OSTREE_BOOTLOADER ?= "u-boot" 10OSTREE_BOOTLOADER ?= "u-boot"
9 11
10# OSTree puts its own boot.scr to bcm2835-bootfiles 12# OSTree puts its own boot.scr to bcm2835-bootfiles
11IMAGE_BOOT_FILES_remove_sota += "boot.scr" 13IMAGE_BOOT_FILES_sota = "bcm2835-bootfiles/* u-boot.bin;${SDIMG_KERNELIMAGE}"
14
15# Just the overlays that will be used should be listed
16KERNEL_DEVICETREE_raspberrypi2_sota ?= " bcm2709-rpi-2-b.dtb "
17KERNEL_DEVICETREE_raspberrypi3_sota ?= " bcm2710-rpi-3-b.dtb overlays/vc4-kms-v3d.dtbo overlays/rpi-ft5406.dtbo"
18
19# Kernel args normally provided by RPi's internal bootloader. Non-updateable
20OSTREE_KERNEL_ARGS_sota ?= " 8250.nr_uarts=1 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 usbhid.mousepoll=0 "