forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/openwrt/openwrt into mr7350
- Loading branch information
Showing
953 changed files
with
89,774 additions
and
6,389 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
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 |
---|---|---|
|
@@ -244,6 +244,43 @@ define Build/copy-file | |
cat "$(1)" > "$@" | ||
endef | ||
|
||
# Create a header for a D-Link AI series recovery image and add it at the beginning of the image | ||
# Currently supported: AQUILA M30, EAGLE M32 and R32 | ||
# Arguments: | ||
# 1: Start string of the header | ||
# 2: Firmware version | ||
# 3: Block start address | ||
# 4: Block length | ||
# 5: Device FMID | ||
define Build/dlink-ai-recovery-header | ||
$(eval header_start=$(word 1,$(1))) | ||
$(eval firmware_version=$(word 2,$(1))) | ||
$(eval block_start=$(word 3,$(1))) | ||
$(eval block_length=$(word 4,$(1))) | ||
$(eval device_fmid=$(word 5,$(1))) | ||
# create [email protected] without the checksum | ||
echo -en "$(header_start)\x00\x00" > "$@.header" | ||
# Calculate checksum over data area ($@) and append it to the header. | ||
# The checksum is the 2byte-sum over the whole data area. | ||
# Every overflow during the checksum calculation must increment the current checksum value by 1. | ||
od -v -w2 -tu2 -An --endian little "$@" | awk '{ s+=$$1; } END { s%=65535; printf "%c%c",s%256,s/256; }' >> "$@.header" | ||
echo -en "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00" >> "$@.header" | ||
echo -en "$(firmware_version)" >> "$@.header" | ||
# Only one block supported: Erase start/length is identical to data start/length | ||
echo -en "$(block_start)$(block_length)$(block_start)$(block_length)" >> "$@.header" | ||
# Only zeros | ||
echo -en "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" >> "$@.header" | ||
# Last 16 bytes, but without checksum | ||
echo -en "\x42\x48\x02\x00\x00\x00\x08\x00\x00\x00\x00\x00" >> "$@.header" | ||
echo -en "$(device_fmid)" >> "$@.header" | ||
# Calculate and append checksum: The checksum must be set so that the 2byte-sum of the whole header is 0. | ||
# Every overflow during the checksum calculation must increment the current checksum value by 1. | ||
od -v -w2 -tu2 -An --endian little "$@.header" | awk '{s+=65535-$$1;}END{s%=65535;printf "%c%c",s%256,s/256;}' >> "$@.header" | ||
cat "$@.header" "$@" > "$@.new" | ||
mv "$@.new" "$@" | ||
rm "$@.header" | ||
endef | ||
|
||
define Build/dlink-sge-image | ||
$(STAGING_DIR_HOST)/bin/dlink-sge-image $(1) $@ $@.enc | ||
mv $@.enc $@ | ||
|
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,2 @@ | ||
LINUX_VERSION-5.15 = .150 | ||
LINUX_KERNEL_HASH-5.15.150 = ee05592b458e7fcdc515b43605883a10cc2f65f2e2b58d60af8a72b93467e4d4 | ||
LINUX_VERSION-5.15 = .153 | ||
LINUX_KERNEL_HASH-5.15.153 = d7ddb1e144a88773b56a5b4a71baea0b241f3996d446be45290537c6997c84bc |
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,2 @@ | ||
LINUX_VERSION-6.6 = .22 | ||
LINUX_KERNEL_HASH-6.6.22 = 23e3e7b56407250f5411bdab95763d0bc4e3a19dfa431d951df7eacabd61a2f4 | ||
LINUX_VERSION-6.6 = .23 | ||
LINUX_KERNEL_HASH-6.6.23 = 200fd119cb9ef06bcedcdb52be00ba443163eab154295c5831fed9a12211a8b9 |
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
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
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
Oops, something went wrong.