-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use OEM fs-uboot to boot from 0x40000
- Loading branch information
1 parent
9a72440
commit 02e0fcc
Showing
8 changed files
with
129 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
openwrt-imagebuilder-* | ||
linux-include | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
# Generate a "default-mac" partition for TL-WPA8630P v2.0 | ||
|
||
printf '%b' '\x00\x00\x00\x06\x00\x00\x00\x00' > default-mac | ||
printf '%b' '\x02\xBC\xDE\x39\xE8\x32' | dd of=default-mac oflag=seek_bytes seek=8 conv=notrunc | ||
hexdump -C default-mac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
# Extract "fs-uboot" from an OEM firmware release that loads "os-image" from 0x40000. | ||
# Hardware Model: TP-Link TL-WPA8630P(AU) v2.0 | ||
# Firmware Version: 2.0.0 Build 20170608 Rel.64411 | ||
|
||
curl $CURL_OPTS --fail -LO "https://static.tp-link.com/TL-WPA8630P%20KIT(AU)_V2_170608.zip" | ||
filemd5="$(md5sum 'TL-WPA8630P%20KIT(AU)_V2_170608.zip' | awk '{print $1}')" | ||
if [ "$filemd5" != "1cb80fb680d8189076ecec4011ea9355" ]; then | ||
echo "Error: Invalid md5sum" 1>&2 | ||
exit 1 | ||
fi | ||
unzip -j "TL-WPA8630P%20KIT(AU)_V2_170608.zip" "*.bin" | ||
dd if="wpa8630pv2_au-up-ver2-0-0-P1-20170608-rel64411-APPLC.bin" of="fs-uboot" iflag=skip_bytes skip=8272 bs=68076 count=1 | ||
rm -f "TL-WPA8630P%20KIT(AU)_V2_170608.zip" "wpa8630pv2_au-up-ver2-0-0-P1-20170608-rel64411-APPLC.bin" |