openwrt/target/linux/ath79
Michael Pratt 64d845ef02 ath79: remove 'fakeroot' for Senao devices
By using the same custom kernel header magic
in both OKLI lzma-loader, DTS, and makefile
this hack is not necessary anymore

However, "rootfs" size and checksum
must now be supplied by the factory.bin image
through a script that is accepted by the OEM upgrade script.

This is because Senao OEM scripts assume a squashfs header exists
at the offset for the original "rootfs" partition
which is actually the kernel + rootfs in this implementation,
and takes size value from the header that would be there with hexdump,
but this offset is now the uImage header instead.

This frees up 1 eraseblock
previously used by the "fakeroot" partition
for bypassing the OEM image verification.

Also, these Senao devices with a 'failsafe' partition
and the tar-gz factory.bin platform would otherwise require
flashing the new tar-gz sysupgrade.bin afterward.
So this also prevents having to flash both images
when starting from OEM or 'failsafe'

the OEM upgrade script verifies the header magic numbers,
but only the first two bytes.
Example:

    [ "${magic_word_kernel}" = "2705" ] &&
    [ "${magic_word_rootfs}" = "7371" -o "${magic_word_rootfs}" = "6873" ] &&
    errcode="0"

therefore picked the magic number
0x73714f4b
which is
'sqOK'

Signed-off-by: Michael Pratt <mcpratt@pm.me>
(cherry picked from commit 4a0cc5d4ef)
2021-06-11 07:20:31 +02:00
..
base-files/etc/hotplug.d/ieee80211 ath79: add WiFi migration for AR913x 2020-09-28 16:23:03 +02:00
dts ath79: remove 'fakeroot' for Senao devices 2021-06-11 07:20:31 +02:00
files ath79: force SGMII SerDes mode to MAC operation 2021-05-03 01:39:10 +02:00
generic ath79: fix label_mac for NEC Aterm WG1200CR 2021-04-02 16:04:47 +02:00
image ath79: remove 'fakeroot' for Senao devices 2021-06-11 07:20:31 +02:00
mikrotik ath79: mikrotik: swap RB922UAGS-5HPaCD eth0/1 MACs 2021-04-30 10:26:34 +02:00
nand ath79: remove generic profiles 2021-01-27 21:31:20 +01:00
patches-5.4 kernel: bump 5.4 to 5.4.124 2021-06-06 17:54:51 +02:00
tiny ath79: make all eth ports LAN for Engenius APs 2021-02-08 16:34:18 +01:00
config-5.4 ath79: enable elf mtd splitter 2020-09-09 20:41:50 +03:00
Makefile ath79: move the squashfs feature to the parent target 2020-11-23 13:20:53 +01:00
modules.mk