You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux
David Woodhouse 6eb63019af mediatek: mt7623: fix sysupgrade from vendor OpenWrt on UniElec U7623
This board ships with an ancient 14.07-based OpenWrt using block2mtd, and
the MBR partition table contains nonsense.

It is possible to sysupgrade to an upstream OpenWrt image, but the
legacy layout of the OpenWrt images start at 0xA00 in the eMMC, with
a raw uImage. The legacy OpenWrt image doesn't "own" the beginning
of the device, including the MBR and U-Boot.

This means that when a user upgrades to upstream OpenWrt, it doesn't
boot because it can't find the right partitions. So hard-code them on
the kernel's command line using CONFIG_CMDLINE_PARTITION (for block).

Additionally, the vendor firmware doesn't cope with images larger than
about 36MiB, because it only overwrites the contents of its "firmware"
MTD partition. The current layout of the legacy image wastes a lot of
space, allowing over 32MiB for the kernel and another 10MiB for the FAT
recovery file system which is only created as 3MiB. So pull those in
to allow 4¾ MiB for the kernel, 3MiB for recovery, and then we have over
20MiB for the root file system.

This doesn't affect the new images which ship with a full eMMC image
including a different MBR layout and a partition for U-Boot, because
our modern U-Boot can actually pass the command line to the kernel, and
the built-in one doesn't get used anyway.

Tested by upgrading from vendor OpenWrt to the current legacy image,
from legacy to itself, to the previous legacy layout, and then to
finally the full-system image.

This commit probably wants backporting to 19.07, which also doesn't
install over the vendor OpenWrt and doesn't even have a full-system
installation option.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
4 years ago
..
apm821xx apm821xx: derive DEVICE_DTS from device name 4 years ago
ar71xx ar71xx: Fix mikrotik NAND compile problem 4 years ago
arc770 arc770: use generic 02_sysinfo 4 years ago
archs38 archs38: use generic 02_sysinfo 4 years ago
armvirt armvirt,x86: fix build breakage of crypto ccp module 4 years ago
at91 treewide: drop shebang from non-executable target files 4 years ago
ath25 treewide: drop shebang from non-executable target files 4 years ago
ath79 ath79: add support for Compex WPJ563 4 years ago
bcm27xx kernel: bump 5.4 to 5.4.52 4 years ago
bcm47xx bcm47xx: fix switch setup for Linksys WRT610N v2 4 years ago
bcm53xx kernel: Update kernel 4.19 to version 4.19.131 4 years ago
bcm63xx bcm63xx: R5010UNv2: fix flash partitions for 16MB flash 4 years ago
cns3xxx kernel: Update kernel 4.19 to version 4.19.131 4 years ago
gemini treewide: drop shebang from non-executable target files 4 years ago
generic treewide: rename POWER_ON_STRIP register 4 years ago
imx6 treewide: drop shebang from non-executable target files 4 years ago
ipq40xx ipq40xx: support reset button for WPJ419 4 years ago
ipq806x ipq806x: really fix aliases node for Qualcomm IPQ8064/DB149 4 years ago
ipq807x treewide: remove maintainer variable from targets 4 years ago
kirkwood kernel: bump 5.4 to 5.4.52 4 years ago
lantiq lantiq: xrx200: disable unused switch and phy 4 years ago
layerscape layerscape: fix indent 4 years ago
malta malta: add missing symbols for kernel 5.4 4 years ago
mediatek mediatek: mt7623: fix sysupgrade from vendor OpenWrt on UniElec U7623 4 years ago
mpc85xx treewide: rename POWER_ON_STRIP register 4 years ago
mvebu kernel: bump 5.4 to 5.4.52 4 years ago
mxs kernel: bump 5.4 to 5.4.28 4 years ago
octeon treewide: drop shebang from non-executable target files 4 years ago
octeontx treewide: kernel: drop redundant USB_EHCI_HCD=n config symbol 4 years ago
omap omap: derive DEVICE_DTS from device name 4 years ago
oxnas oxnas: use vendor_model scheme for ox810se 4 years ago
pistachio kernel: Update kernel 4.14 to version 4.14.187 4 years ago
ramips ramips: remove non-existant poe_passthrough for RouterBOARD 750Gr3 4 years ago
rb532 treewide: remove maintainer variable from targets 4 years ago
rockchip rockchip: don't disable timer LED trigger 4 years ago
samsung kernel: Update kernel 4.14 to version 4.14.187 4 years ago
sunxi sunxi: add text referencing Allwinner H3 and H5 CPUs 4 years ago
tegra tegra: correct cpu subtype 4 years ago
uml treewide: Remove self from MAINTAINER entries 4 years ago
x86 kernel/pcengines-apu2: detect apuv4 board 4 years ago
zynq zynq: switch to kernel 5.4 4 years ago
Makefile build: add 'make kernel_xconfig' command 4 years ago