openwrtv4/target/linux
Gabor Juhos d6cb5215a9 ar71xx: WNR2200: fix mounting root fs problem
Solves ticket #14356 <https://dev.openwrt.org/ticket/14356>

Without this patch, UART output will show only 4 partitions:
  [    0.740000] 4 cmdlinepart partitions found on MTD device spi0.0
  [    0.750000] Creating 4 MTD partitions on "spi0.0":
  [    0.750000] 0x000000000000-0x000000050000 : "u-boot"
  [    0.760000] 0x000000050000-0x000000070000 : "u-boot-env"
  [    0.770000] 0x000000070000-0x0000007f0000 : "firmware"
  [    0.790000] 0x0000007f0000-0x000000800000 : "art"
and then linux complains :VFS: Cannot open root device "(null)"

With this patch, UART out will show 7 partitions:
  [    0.740000] 4 cmdlinepart partitions found on MTD device spi0.0
  [    0.750000] Creating 4 MTD partitions on "spi0.0":
  [    0.750000] 0x000000000000-0x000000040000 : "u-boot"
  [    0.760000] 0x000000040000-0x000000050000 : "u-boot-env"
  [    0.770000] 0x000000050000-0x0000007f0000 : "firmware"
  [    0.780000] 2 netgear-fw partitions found on MTD device firmware
  [    0.780000] 0x000000050000-0x00000014b440 : "kernel"
  [    0.790000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
  [    0.800000] 0x00000014b440-0x0000007f0000 : "rootfs"
  [    0.810000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
  [    0.820000] mtd: device 4 (rootfs) set to be root filesystem
  [    0.830000] 1 squashfs-split partitions found on MTD device rootfs
  [    0.830000] 0x000000340000-0x0000007f0000 : "rootfs_data"
  [    0.840000] 0x0000007f0000-0x000000800000 : "art"

This patch is tested against r39502 of trunk.

Signed-off-by: Jonathan Chang <changcs@santos.ee.ntu.edu.tw>
Patchwork: http://patchwork.openwrt.org/patch/4870/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39625
2014-02-18 17:34:16 +00:00
..
adm5120 kernel: remove obsolete yaffs options from target configs 2013-12-16 07:51:21 +00:00
adm8668 targets: prepare for supporting normal and initramfs images 2013-06-27 19:58:31 +00:00
amazon target: don't build jffs2 nor images by default 2013-06-05 20:58:59 +00:00
ar7 kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
ar71xx ar71xx: WNR2200: fix mounting root fs problem 2014-02-18 17:34:16 +00:00
at91 at91: fix typo in network file 2013-11-17 17:14:32 +00:00
atheros atheros: change LINUX_VERSON from 3.8.13 to 3.10.28 2014-02-05 20:03:48 +00:00
au1000 au1000: make sysupgrade compatible with all file system types 2013-11-07 12:46:16 +00:00
avr32 kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
bcm53xx bcm53xx: update the bcm53xx patches 2014-02-04 23:00:55 +00:00
brcm47xx brcm47xx: new patch adding arch workarounds.c 2014-02-04 23:32:01 +00:00
brcm63xx brcm63xx: fix warning in Redboot code 2014-01-27 04:34:39 +00:00
brcm2708 kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
cns3xxx add uImage image build 2013-11-10 09:57:07 +00:00
cns21xx kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
cobalt cobalt: do not build userland with support for mips1 2013-10-13 22:10:57 +00:00
ep93xx ep93xx: fix kmod-input-keyboard-ep93xx dependencies 2013-10-01 22:39:28 +00:00
gemini build: unify arm target cflags 2013-09-26 17:53:20 +00:00
generic 3.13: revert r39601 as the symbol is already there 2014-02-17 11:49:34 +00:00
imx6 imx6: drop 3.12 support 2014-02-12 00:46:02 +00:00
iop32x targets: prepare for supporting normal and initramfs images 2013-06-27 19:58:31 +00:00
ixp4xx kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
kirkwood kirkwood: dockstar: remove sata from packages 2014-02-16 00:14:29 +00:00
lantiq lantiq: fix typo in pinctl driver 2014-02-15 22:54:34 +00:00
malta kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
mcs814x build: unify arm target cflags 2013-09-26 17:53:20 +00:00
mpc52xx build: unify powerpc target cflags 2013-09-26 17:53:28 +00:00
mpc83xx kernel: remove obsolete yaffs options from target configs 2013-12-16 07:51:21 +00:00
mpc85xx kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
mvebu mvebu: enable NAND controller support 2014-02-11 02:16:04 +00:00
mxs upgrade 3.13 targets to 3.13.2, refresh patches 2014-02-13 13:27:14 +00:00
octeon kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
omap use the default package set 2014-02-14 10:09:07 +00:00
omap24xx additional musb fixups 2014-02-09 16:14:30 +00:00
orion build: unify arm target cflags 2013-09-26 17:53:20 +00:00
ppc40x kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
ppc44x kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
pxa targets: prepare for supporting normal and initramfs images 2013-06-27 19:58:31 +00:00
ramips ralink: add support for na930 2014-02-18 13:33:25 +00:00
rb532 kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
realview kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
sibyte build: unify mips target cflags 2013-09-26 17:53:14 +00:00
sparc kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
sunxi upgrade 3.13 targets to 3.13.2, refresh patches 2014-02-13 13:27:14 +00:00
uml uml: work around mangled parameter handling for ubd 2013-09-24 13:36:42 +00:00
x86 x86: remove 3.6 support 2014-01-26 17:42:26 +00:00
x86_64 upgrade 3.13 targets to 3.13.2, refresh patches 2014-02-13 13:27:14 +00:00
xburst kernel: update 3.10 to 3.10.28 2014-01-26 11:30:34 +00:00
Makefile Add kernel_nconfig make target 2010-08-06 21:36:35 +00:00