mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
6eb63019af
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> |
||
---|---|---|
.. | ||
0001-v5.7-spi-make-spi-max-frequency-optional.patch | ||
0002-v5.7-spi-add-support-for-mediatek-spi-nor-controller.patch | ||
0003-switch-add-mt7531.patch | ||
0005-dts-mt7622-add-gsw.patch | ||
0005-dts-mt7629-add-gsw.patch | ||
0006-dts-fix-bpi2-console.patch | ||
0006-dts-fix-bpi64-console.patch | ||
0010-dts-mt7629-rfb-fix-firmware-partition.patch | ||
0226-phy-phy-mtk-tphy-Add-hifsys-support.patch | ||
0227-arm-dts-Add-Unielec-U7623-DTS.patch | ||
0301-mtd-mtk-ecc-move-mtk-ecc-header-file-to-include-mtd.patch | ||
0303-mtd-spinand-disable-on-die-ECC.patch | ||
0306-spi-spi-mem-MediaTek-Add-SPI-NAND-Flash-interface-dr.patch | ||
0307-dts-mt7629-add-snand-support.patch | ||
0308-dts-mt7622-add-snand-support.patch | ||
0310-dts-add-wmac-support-for-mt7622-rfb1.patch | ||
0400-eth-fix-rx-vlan-hw-offload.patch | ||
0401-eth-fix-eth1-tx-timeout.patch | ||
0500-v5.6-crypto-backport-inside-secure.patch | ||
0501-crypto-add-eip97-inside-secure-support.patch | ||
0502-dts-mt7623-eip97-inside-secure-support.patch | ||
0600-1-6-net-dsa-mt7530-Refine-message-in-Kconfig.patch | ||
0600-2-6-net-dsa-mt7530-Extend-device-data-ready-for-adding-a-new-hardware.patch | ||
0600-3-6-dt-bindings-net-dsa-add-new-MT7531-binding-to-support-MT7531.patch | ||
0600-4-6-net-dsa-mt7530-Add-the-support-of-MT7531-switch.patch | ||
0600-6-6-arm64-dts-mt7622-add-mt7531-dsa-to-bananapi-bpi-r64-board.patch | ||
0900-bt-mtk-serial-fix.patch | ||
0990-gsw-rtl8367s-mt7622-support.patch | ||
0991-dt-bindings-PCI-Mediatek-Update-PCIe-binding.patch | ||
0992-PCI-mediatek-Use-regmap-to-get-shared-pcie-cfg-base.patch | ||
0993-arm64-dts-mediatek-Split-PCIe-node-for-MT2712-MT7622.patch | ||
0994-ARM-dts-mediatek-Update-mt7629-PCIe-node.patch | ||
0999-hnat.patch | ||
1000-eth-gdm-config-backport.patch | ||
1001-eth-mtk-disable-TBDDONE-support.patch |