Skip to content

Instantly share code, notes, and snippets.

@SerialVelocity
Created December 24, 2020 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SerialVelocity/d590d86a90c4fff625cb3b3fd67e3c5f to your computer and use it in GitHub Desktop.
Save SerialVelocity/d590d86a90c4fff625cb3b3fd67e3c5f to your computer and use it in GitHub Desktop.
OpenWrt build issue
$ binwalk bin/targets/ath79/generic/openwrt-ath79-generic-tplink_re450-v3-squashfs-sysupgrade.bin.lastworking
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
512 0x200 LZMA compressed data, properties: 0x6D, dictionary size: 8388608 bytes, uncompressed size: 6430395 bytes
2015098 0x1EBF7A Squashfs filesystem, little endian, version 4.0, compression:xz, size: 3017998 bytes, 850 inodes, blocksize: 262144 bytes, created: 2020-12-22 18:11:50
$ binwalk bin/targets/ath79/generic/openwrt-ath79-generic-tplink_re450-v3-squashfs-sysupgrade.bin
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
0 0x0 POSIX tar archive (GNU), owner user name: "de-tplink_re450-v3/"
$ tar tvf bin/targets/ath79/generic/openwrt-ath79-generic-tplink_re450-v3-squashfs-sysupgrade.bin
drwxr-xr-x 0/0 0 2020-12-22 18:11 sysupgrade-tplink_re450-v3/
-rw-r--r-- 0/0 22 2020-12-22 18:11 sysupgrade-tplink_re450-v3/CONTROL
-rw-r--r-- 0/0 2015098 2020-12-22 18:11 sysupgrade-tplink_re450-v3/kernel
-rw-r--r-- 0/0 3080196 2020-12-22 18:11 sysupgrade-tplink_re450-v3/root
@SerialVelocity
Copy link
Author

Fix to get the correct output:

diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk
index 101c7597b8..abb01b0b3e 100644
--- a/target/linux/ath79/image/generic.mk
+++ b/target/linux/ath79/image/generic.mk
@@ -1614,30 +1614,6 @@ define Device/pisen_wmm003n
 endef
 TARGET_DEVICES += pisen_wmm003n

-define Device/plasmacloud_pa300-common
-  SOC := qca9533
-  DEVICE_VENDOR := Plasma Cloud
-  DEVICE_PACKAGES := uboot-envtools
-  IMAGE_SIZE := 7168k
-  BLOCKSIZE := 64k
-  IMAGES += factory.bin
-  KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | pad-to $$(BLOCKSIZE)
-  IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=PA300
-  IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
-endef
-
-define Device/plasmacloud_pa300
-  $(Device/plasmacloud_pa300-common)
-  DEVICE_MODEL := PA300
-endef
-TARGET_DEVICES += plasmacloud_pa300
-
-define Device/plasmacloud_pa300e
-  $(Device/plasmacloud_pa300-common)
-  DEVICE_MODEL := PA300E
-endef
-TARGET_DEVICES += plasmacloud_pa300e
-
 define Device/qihoo_c301
   $(Device/seama)
   SOC := ar9344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment