hw18: Cleanup and set ostree image configuration

This commit is contained in:
Alexandre Bard 2019-04-23 10:06:31 +02:00
parent 2083321292
commit ea8c822d6d
5 changed files with 10 additions and 6 deletions

View File

@ -0,0 +1 @@
WKS_FILE_sota = "sdimage-sota-armada-385.wks"

View File

@ -13,14 +13,10 @@ MACHINE_EXTRA_RRECOMMENDS = " kernel-modules kernel-devicetree"
KERNEL_DEFCONFIG ??= "armada-385-nrhw18_defconfig" KERNEL_DEFCONFIG ??= "armada-385-nrhw18_defconfig"
KERNEL_DEVICETREE = "armada-385-nrhw18-prod4.dtb" KERNEL_DEVICETREE = "armada-385-nrhw18-prod4.dtb"
KERNEL_IMAGETYPE = "zImage" KERNEL_IMAGETYPE = "zImage"
KERNEL_IMAGETYPES = "fitImage zImage"
KERNEL_CLASSES_append_sota = " kernel-fitimage"
KERNEL_IMAGETYPE_sota = "fitImage"
UBOOT_ENTRYPOINT_sota = "0x13000000"
KERNEL_MODULE_PROBECONF += "ath10k_pci" KERNEL_MODULE_PROBECONF += "ath10k_pci"
module_conf_ath10k_pci = "options ath10k_pci irq_mode=1" module_conf_ath10k_pci = "options ath10k_pci irq_mode=1"
PREFERRED_PROVIDER_virtual/kernel = "linux-netmodule"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-armada-385-nrhw18-v2" PREFERRED_PROVIDER_virtual/bootloader = "u-boot-armada-385-nrhw18-v2"
IMAGE_BOOT_FILES = "u-boot-armada-385-nrhw18-v2.kwb" IMAGE_BOOT_FILES = "u-boot-armada-385-nrhw18-v2.kwb"

View File

@ -18,3 +18,5 @@ UBOOT_LOADADDRESS = "0x13000000"
# List common SoC features, may need to add touchscreen for specific machines # List common SoC features, may need to add touchscreen for specific machines
MACHINE_FEATURES = "kernel26 usbgadget usbhost vfat ext2 ext4 ethernet" MACHINE_FEATURES = "kernel26 usbgadget usbhost vfat ext2 ext4 ethernet"
SOTA_MACHINE = "armada-385"

View File

@ -17,7 +17,7 @@ PV = "v2017.11+git${SRCPV}"
UBOOT_SUFFIX = "kwb" UBOOT_SUFFIX = "kwb"
UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}" UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}"
do_deploy() { do_deploy_append() {
rm -f ${DEPLOYDIR}/${PN}-spl.bin rm -f ${DEPLOYDIR}/${PN}-spl.bin
rm -f ${DEPLOYDIR}/${PN}.bin rm -f ${DEPLOYDIR}/${PN}.bin
rm -f ${DEPLOYDIR}/${PN}-spl.kwb rm -f ${DEPLOYDIR}/${PN}-spl.kwb

View File

@ -0,0 +1,5 @@
# short-description: Create OTA-enabled SD card image
# long-description: Creates a partitioned SD card image with OSTree
part u-boot --source rawcopy --sourceparams="file=u-boot-spl.kwb" --ondisk mmcblk --no-table --align 384
part / --source otaimage --ondisk mmcblk --fstype=ext4 --align 4096