diff options
-rw-r--r-- | classes/image_types_ota.bbclass | 2 | ||||
-rw-r--r-- | classes/sota_raspberrypi.bbclass | 17 |
2 files changed, 14 insertions, 5 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass index e753e0e..d21441d 100644 --- a/classes/image_types_ota.bbclass +++ b/classes/image_types_ota.bbclass | |||
@@ -32,7 +32,7 @@ calculate_size () { | |||
32 | fi | 32 | fi |
33 | 33 | ||
34 | if [ "$SIZE" -lt "$MIN" ]; then | 34 | if [ "$SIZE" -lt "$MIN" ]; then |
35 | $SIZE=$MIN | 35 | SIZE=$MIN |
36 | fi | 36 | fi |
37 | 37 | ||
38 | SIZE=`expr $SIZE \+ $EXTRA` | 38 | SIZE=`expr $SIZE \+ $EXTRA` |
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 @@ | |||
1 | RPI_USE_U_BOOT_sota = "1" | 1 | RPI_USE_U_BOOT_sota = "1" |
2 | KERNEL_IMAGETYPE_sota = "uImage" | 2 | |
3 | KERNEL_CLASSES_append_sota = " kernel-fitimage" | ||
4 | KERNEL_IMAGETYPE_sota = "fitImage" | ||
5 | |||
3 | PREFERRED_PROVIDER_virtual/bootloader_sota ?= "u-boot" | 6 | PREFERRED_PROVIDER_virtual/bootloader_sota ?= "u-boot" |
4 | UBOOT_MACHINE_raspberrypi2_sota ?= "rpi_2_defconfig" | 7 | UBOOT_ENTRYPOINT_sota ?= "0x00008000" |
5 | UBOOT_MACHINE_raspberrypi3_sota ?= "rpi_3_32b_defconfig" | ||
6 | 8 | ||
7 | IMAGE_FSTYPES_remove_sota = "rpi-sdimg" | 9 | IMAGE_FSTYPES_remove_sota = "rpi-sdimg" |
8 | OSTREE_BOOTLOADER ?= "u-boot" | 10 | OSTREE_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 |
11 | IMAGE_BOOT_FILES_remove_sota += "boot.scr" | 13 | IMAGE_BOOT_FILES_sota = "bcm2835-bootfiles/* u-boot.bin;${SDIMG_KERNELIMAGE}" |
14 | |||
15 | # Just the overlays that will be used should be listed | ||
16 | KERNEL_DEVICETREE_raspberrypi2_sota ?= " bcm2709-rpi-2-b.dtb " | ||
17 | KERNEL_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 | ||
20 | OSTREE_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 " | ||