浏览代码

apm821xx: split MBL's rootfs.img.gz into a sysupgrade and factory image

@vahid-dan reported a issue with extracting the rpi images with
Gnome's Archive Manager:
"Ubuntu Archive Manager cannot extract the file and it just
throws a general error message: "An error occurred while
extracting files".
<https://forum.lede-project.org/t/corrupted-pre-built-v18-06-0-rc2-image-for-rpi>

The MBL's rootfs.img.gz image is generated in much the same way.
Hence this patch preemptively splits the rootfs.img.gz image into
a sysupgrade and a factory image.

Signed-off-by: Christian Lamparter <[email protected]>
Christian Lamparter 7 年之前
父节点
当前提交
cff6548948
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      target/linux/apm821xx/image/Makefile

+ 3 - 2
target/linux/apm821xx/image/Makefile

@@ -224,11 +224,12 @@ define Device/wd_mybooklive
   KERNEL := kernel-bin | dtb | gzip | uImage gzip
   KERNEL := kernel-bin | dtb | gzip | uImage gzip
   KERNEL_INITRAMFS := kernel-bin | dtb | gzip | uImage gzip
   KERNEL_INITRAMFS := kernel-bin | dtb | gzip | uImage gzip
   BOOT_SIZE := 8
   BOOT_SIZE := 8
-  IMAGES := rootfs.img.gz kernel.dtb
+  IMAGES := factory.img.gz kernel.dtb sysupgrade.img.gz
   DEVICE_DTB := apollo3g.dtb
   DEVICE_DTB := apollo3g.dtb
   FILESYSTEMS := ext4 squashfs
   FILESYSTEMS := ext4 squashfs
+  IMAGE/factory.img.gz := boot-script | boot-img | hdd-img | gzip
   IMAGE/kernel.dtb := export-dtb
   IMAGE/kernel.dtb := export-dtb
-  IMAGE/rootfs.img.gz := boot-script | boot-img | hdd-img | gzip | append-metadata
+  IMAGE/sysupgrade.img.gz := boot-script | boot-img | hdd-img | gzip | append-metadata
 endef
 endef
 
 
 TARGET_DEVICES += wd_mybooklive
 TARGET_DEVICES += wd_mybooklive