freebsd-wifi-build
freebsd-wifi-build copied to clipboard
tl-mr3020 fails to build on "mktplinkfw: illegal option -- Q"
...
cluster #135, in 131072 bytes, out 148 bytes
cluster #136, in 131072 bytes, out 148 bytes
cluster #137, in 131072 bytes, out 152 bytes
padding data with 24 bytes so that file size is multiple of 512
compressed data to 4145152 bytes, saved 13832192 bytes, 76.94% decrease.
*** Target Done.
*** Target : tplink
LZMA 9.22 beta : Igor Pavlov : Public domain : 2011-04-18
mktplinkfw: illegal option -- Q
Usage: mktplinkfw [OPTIONS...]
Options:
-B <board> create image for the board specified with <board>
-c use combined kernel image
...
Notably I was able to build tl-wdr3600
which output "tftpboot/tl-wdr3600.factory.bin" loaded on the device.
Looks like just removing the "-Q" option will let this "just compile", but I suspect there's more to it...
Add "-Q" to ignore the fact that the f/w image will exceed the capacity of the flash on the device.
diff --git a/build/bin/build_tplink b/build/bin/build_tplink
index 4acf065..ac22a2a 100755
--- a/build/bin/build_tplink
+++ b/build/bin/build_tplink
@@ -51,7 +51,7 @@ if [ "x${TPLINK_CONFIG_STYLE}" = "xNEW" ]; then
elif [ "x${X_MFSROOT}" = "xYES" ]; then
# Create firmware suitable for TFTP
${SCRIPT_DIR}/../../programs/mktplinkfw/mktplinkfw \
- -Q -B ${TPLINK_BOARDTYPE} -R ${TPLINK_ROOTFS_START} \
+ -B ${TPLINK_BOARDTYPE} -R ${TPLINK_ROOTFS_START} \
-L ${TPLINK_KERN_LOADADDR} -E ${TPLINK_KERN_STARTADDR} \
-k ${TPLINK_KERNEL} -c -N ${TPLINK_IMG_NAME} \
-V ${TPLINK_IMG_VERSION} \
Sponsored by: @kev009
Yeah, this may be a hack from Sean/Hiren to ignore things - they wanted to try and build an image that they could netboot an image.
I'll go take another look later. But 4mb is not a lot of flash; I think the aim for this platform was to boot off of flash, but run a rootfs via USB.
-adrian