openwrt/target/linux/ath79
Michael Pratt 4a0cc5d4ef 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>
2021-04-08 09:20:59 +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-04-08 09:20:59 +02:00
files ath79: ar934x-nand: fix broken nand on kernel 5.10 2021-04-06 17:00:07 +02:00
generic ath79: fix label_mac for NEC Aterm WG1200CR 2021-03-27 16:28:01 +01:00
image ath79: remove 'fakeroot' for Senao devices 2021-04-08 09:20:59 +02:00
mikrotik treewide: remove execute bit and shebang from board.d files 2021-03-06 11:30:06 +01:00
nand treewide: remove execute bit and shebang from board.d files 2021-03-06 11:30:06 +01:00
patches-5.4 kernel: backport 5.13 mtd partitioning changes 2021-03-29 08:46:17 +02:00
patches-5.10 kernel: backport 5.13 mtd partitioning changes 2021-03-29 08:46:17 +02:00
tiny treewide: remove execute bit and shebang from board.d files 2021-03-06 11:30:06 +01:00
config-5.4 ath79: enable Regulator support for target 2021-02-22 00:57:25 +01:00
config-5.10 ath79: enable AT803X PHY for kernel 5.10 2021-03-05 00:03:57 +01:00
Makefile ath79: add kernel 5.10 support 2021-02-20 01:26:33 +01:00
modules.mk ath79: add new OF only target for QCA MIPS silicon 2018-05-07 08:06:51 +02:00