openwrt/target/linux
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
..
apm821xx kernel: bump 5.10 to 5.10.24 2021-03-24 11:36:31 +00:00
arc770 treewide: remove execute bit and shebang from board.d files 2021-03-06 11:30:06 +01:00
archs38 archs38: Add CONFIG_HZ=100 2021-03-19 18:00:22 +01:00
armvirt armvirt: add 5.10 testing kernel 2021-04-03 18:56:02 +02:00
at91 treewide: make AddDepends/usb-serial selective 2021-03-06 12:38:38 +01:00
ath25 treewide: remove execute bit and shebang from board.d files 2021-03-06 11:30:06 +01:00
ath79 ath79: remove 'fakeroot' for Senao devices 2021-04-08 09:20:59 +02:00
bcm27xx kernel: bump 5.4 to 5.4.108 2021-03-27 16:39:31 +01:00
bcm47xx bcm47xx: make WGT634U NVRAM patch apply again 2021-03-12 21:09:11 +01:00
bcm53xx bcm53xx: enhance support for Linksys EA9500 2021-04-01 08:58:14 +02:00
bcm63xx kernel: bump 5.10 to 5.10.26 2021-03-26 08:19:11 +00:00
bcm4908 bcm4908: fix Netgear R8000P image 2021-04-07 14:46:46 +02:00
bmips kernel: bump 5.10 to 5.10.27 2021-04-03 21:07:22 +01:00
gemini kernel: Move CONFIG_USERIO to generic config 2021-03-27 14:34:22 +01:00
generic kernel: bump 5.10 to 5.10.27 2021-04-03 21:07:22 +01:00
imx6 kernel: move some disabled symbols to generic 2021-03-19 00:59:22 +01:00
ipq40xx ipq40xx: add MikroTik hAP ac2 support 2021-04-05 04:13:28 +02:00
ipq806x kernel: bump 5.4 to 5.4.109 2021-04-02 16:45:28 +02:00
ipq807x kernel: move some disabled symbols to generic 2021-03-19 00:59:22 +01:00
kirkwood kernel: backport 5.13 mtd partitioning changes 2021-03-29 08:46:17 +02:00
lantiq lantiq: add basic support for AVM FRITZ!Box 3390 2021-04-03 18:56:51 +02:00
layerscape kernel: bump 5.4 to 5.4.109 2021-04-02 16:45:28 +02:00
malta kernel: Move CONFIG_USERIO to generic config 2021-03-27 14:34:22 +01:00
mediatek kernel: bump 5.4 to 5.4.109 2021-04-02 16:45:28 +02:00
mpc85xx treewide: remove execute bit and shebang from board.d files 2021-03-06 11:30:06 +01:00
mvebu kernel: backport 5.13 mtd partitioning changes 2021-03-29 08:46:17 +02:00
mxs treewide: remove execute bit and shebang from board.d files 2021-03-06 11:30:06 +01:00
octeon kernel: move some disabled symbols to generic 2021-03-19 00:59:22 +01:00
octeontx kernel: move some disabled symbols to generic 2021-03-19 00:59:22 +01:00
omap kernel: Move CONFIG_USERIO to generic config 2021-03-27 14:34:22 +01:00
oxnas kernel: Move CONFIG_USERIO to generic config 2021-03-27 14:34:22 +01:00
pistachio kernel: add pending mtd patches adding NVMEM support 2021-03-12 18:49:46 +01:00
ramips kernel: bump 5.10 to 5.10.27 2021-04-03 21:07:22 +01:00
realtek realtek: allow writing to "u-boot-env2" 2021-04-08 09:20:59 +02:00
rockchip kernel: bump 5.10 to 5.10.27 2021-04-03 21:07:22 +01:00
sunxi sunxi: enable wifi module on Pine64 boards 2021-03-29 21:44:34 +02:00
tegra kernel: Move CONFIG_USERIO to generic config 2021-03-27 14:34:22 +01:00
uml target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
x86 kernel: Move CONFIG_USERIO to generic config 2021-03-27 14:34:22 +01:00
zynq kernel: Move CONFIG_USERIO to generic config 2021-03-27 14:34:22 +01:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00