Kernel for Marvell Orion bigger than it's mtd size due to OpenWrt mtd patch
|Reported by:||Maddes <maddes_trac@…>||Owned by:||developers|
|Priority:||high||Milestone:||Barrier Breaker 14.07|
|Keywords:||kernel mtd size offset||Cc:|
No other feeds installed
Build Environment: Debian 5.0
The kernel for Marvell Orion exceeds 1MB and the OpenWrt patch restricts the "kernel" mtd to exactly 1MB (0x00100000).
Therefore the kernel does not fit inside its own mtd, and if flashed the end of the kernel will be the start of the rootfs.
The OpenWrt patch "100-openwrt_partition_map.patch" also messes a lot with the original mtd defintion.
Attached is a replacement for "100-openwrt_partition_map.patch" (copy to target/linux/orion/patches)
It keeps the original size for the kernel in a non-overlapping mtd defintion, keeps the original mtd order, takes care of eRcOmM hell and provides the original overlapping mtd0 as an additional mtd definition.
The patch has been enhanced that the size of the kernel (and offset of rootfs) can be changed without having to deal with diff/patch stuff. This is done by "changing" the rootfs to the same value.[BR]]
This way everyone can reduce the kernel size if they want more rootfs space, but the OpenWrt source stays close to the vanilla kernel.
Please check and apply to the repository. Thanks.