WRT1900AC v1 kernel panic after installation (UBI error)

Hi,

I tried to install mvebu for Armada XP (MV78230) serveral times, several distros (openWRT, DD-WRT, finally LEDE) and I always get a kernel panic because of obviously corrupt UBI partition. Can anyone point out for me, what is going wrong here? Can it have something to do with the bad nand block within that partition? (or kernel partition)

I tried to install it as first AND as second OS on different partitions, but no other result, just different addresses, but it always ends in 'kernel panic', no root fs.
Kernel was 4.4.50

Kernel 4.9.20 says similar things, see below.

Going back to Factory Linksys image always bings up the device normally (via TTL USB cable, interrupting uboot and boot manually into the other partition.)

Any ideas? Uboot env to change? Does it handle bad blocks incorrectly? NAND flash devices always have bad blocks.
Am I the only one having that problem?
It would be great if anyone had some infos on that.

Thanks,
Stefan

some log info from TTY Serial console:

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.4.50 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3103-1b51a49) ) #0 SMP Mon Feb 20 17:13:44 2017
[ 0.000000] CPU: ARMv7 Processor [562f5842] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] Machine model: Linksys WRT1900AC
[ 0.000000] Memory policy: Data cache writealloc
....
...

[ 0.886586] loop: module loaded
[ 0.890215] sata_mv f10a0000.sata: slots 32 ports 1
[ 0.895649] scsi host0: sata_mv
[ 0.898951] ata1: SATA max UDMA/133 irq 29
[ 0.903469] pxa3xx-nand f10d0000.nand: This platform can't do DMA on this device
[ 0.911402] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[ 0.917797] nand: AMD/Spansion S34ML01G1
[ 0.921732] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.929341] pxa3xx-nand f10d0000.nand: ECC strength 16, ECC step size 2048
[ 0.936551] Bad block table found at page 65472, version 0x01
[ 0.942830] Bad block table found at page 65408, version 0x01
[ 0.948852] nand_read_bbt: bad block at 0x000000b80000
[ 0.954031] nand_read_bbt: bad block at 0x000003340000
[ 0.959352] 10 ofpart partitions found on MTD device pxa3xx_nand-0
[ 0.965573] Creating 10 MTD partitions on "pxa3xx_nand-0":
[ 0.971081] 0x000000000000-0x000000100000 : "u-boot"
[ 0.976639] 0x000000100000-0x000000140000 : "u_env"
[ 0.982033] 0x000000140000-0x000000180000 : "s_env"
[ 0.987481] 0x000000900000-0x000000a00000 : "devinfo"
[ 0.993112] 0x000000a00000-0x000003200000 : "kernel1"
[ 0.998774] 0x000000d00000-0x000003200000 : "rootfs1"
[ 1.004374] 0x000003200000-0x000005a00000 : "kernel2"
[ 1.009969] 0x000003500000-0x000005a00000 : "ubi"
[ 1.015265] 0x000005a00000-0x000008000000 : "syscfg"
[ 1.020797] 0x000000180000-0x000000900000 : "unused_area"
[ 1.027356] m25p80 spi0.0: mr25h256 (32 Kbytes)
[ 1.033226] libphy: Fixed MDIO Bus: probed
[ 1.037529] libphy: orion_mdio_bus: probed
[ 1.041869] mvneta_bm f10c0000.bm: Buffer Manager for network controller enabled
[ 1.051527] mvneta f1070000.ethernet eth0: Using random mac address ce:3f:bb:7e:5c:f0
[ 1.061125] mvneta f1074000.ethernet eth1: Using random mac address 82:ff:01:8f:e9:82
[ 1.069080] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.075645] ehci-pci: EHCI PCI platform driver
..
..
[ 1.276512] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.289199] 8021q: 802.1Q VLAN Support v1.8
[ 1.293565] Registering SWP/SWPB emulation handler
[ 1.300159] UBI error: no valid UBI magic found inside mtd7
[ 1.306052] mvsw61xx 1000000003.mvsw61xx: Found MV88E6172 at f1072004.mdio-mi:10
[ 1.313700] mvsw61xx 1000000003.mvsw61xx: Using direct addressing
[ 1.330216] hctosys: unable to open rtc device (rtc0)
[ 1.337844] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 1.345402] Please append a correct "root=" boot option; here are the available partitions:
[ 1.353822] 1f00 1024 mtdblock0 (driver?)
[ 1.358912] 1f01 256 mtdblock1 (driver?)
[ 1.364027] 1f02 256 mtdblock2 (driver?)
[ 1.369114] 1f03 1024 mtdblock3 (driver?)
[ 1.374228] 1f04 40960 mtdblock4 (driver?)
[ 1.379315] 1f05 37888 mtdblock5 (driver?)
[ 1.384429] 1f06 40960 mtdblock6 (driver?)
[ 1.389515] 1f07 37888 mtdblock7 (driver?)
[ 1.394631] 1f08 38912 mtdblock8 (driver?)
[ 1.399717] 1f09 7680 mtdblock9 (driver?)
[ 1.404831] 1f0a 32 mtdblock10 (driver?)
[ 1.410002] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 1.418321] CPU1: stopping
[ 1.421051] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.50 #0
[ 1.426990] Hardware name: Marvell Armada 370/XP (Device Tree)
[ 1.432852] Function entered at [] from []
[ 1.438707] Function entered at [] from []
[ 1.444561] Function entered at [] from []
[ 1.450416] Function entered at [] from []
[ 1.456271] Function entered at [] from []
[ 1.462125] Exception stack(0xcf861f58 to 0xcf861fa0)
[ 1.467199] 1f40: 00000000 0000001a
[ 1.475414] 1f60: 0f846000 cfde0c00 54662c78 00000000 00000002 cfde0120 005a2508 00000000
[ 1.483628] 1f80: 00000000 c059a118 a0000000 cf861fa8 c035f0c8 c035ef4c 20000153 ffffffff
[ 1.491833] Function entered at [] from []
[ 1.497689] Function entered at [] from []
[ 1.503543] Function entered at [] from [<000095ac>]
[ 1.510987] Rebooting in 1 seconds..

Kernel 4.9.20:
[ 1.367392] UBI error: no valid UBI magic found inside mtd7
[ 1.373084] mvsw61xx 1000000003.mvsw61xx: Found MV88E6172 at f1072004.mdio-mi:10
[ 1.380504] mvsw61xx 1000000003.mvsw61xx: Using direct addressing
[ 1.396302] hctosys: unable to open rtc device (rtc0)
[ 1.401935] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 1.409497] Please append a correct "root=" boot option; here are the available partitions:
[ 1.417897] 1f00 1024 mtdblock0 [ 1.421915] (driver?)
[ 1.424305] 1f01 256 mtdblock1 [ 1.428323] (driver?)
[ 1.430693] 1f02 256 mtdblock2 [ 1.434723] (driver?)
[ 1.437094] 1f03 1024 mtdblock3 [ 1.441112] (driver?)
[ 1.443495] 1f04 40960 mtdblock4 [ 1.447513] (driver?)
[ 1.449882] 1f05 37888 mtdblock5 [ 1.453912] (driver?)
[ 1.456283] 1f06 40960 mtdblock6 [ 1.460301] (driver?)
[ 1.462683] 1f07 37888 mtdblock7 [ 1.466702] (driver?)
[ 1.469071] 1f08 38912 mtdblock8 [ 1.473101] (driver?)
[ 1.475472] 1f09 7680 mtdblock9 [ 1.479490] (driver?)
[ 1.481859] 1f0a 32 mtdblock10 [ 1.485980] (driver?)
[ 1.488351] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 1.496667] CPU0: stopping
[ 1.499396] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.20 #0
[ 1.505335] Hardware name: Marvell Armada 370/XP (Device Tree)
[ 1.511224] [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
[ 1.519006] [] (show_stack) from [] (dump_stack+0x7c/0x9c)
[ 1.526262] [] (dump_stack) from [] (handle_IPI+0xcc/0x184)
[ 1.533607] [] (handle_IPI) from [] (armada_370_xp_handle_irq+0x8c/0xa0)
[ 1.542080] [] (armada_370_xp_handle_irq) from [] (__irq_svc+0x6c/0x90)
[ 1.550459] Exception stack(0xc0617f48 to 0xc0617f90)
[ 1.555538] 7f40: 003ff750 00000000 0f7c0000 cfdd3e80 00000002 cfdd3140
[ 1.563751] 7f60: 58f538b0 00000000 59353000 00000000 00000000 00000000 0000000b c0617f98
[ 1.571960] 7f80: c0352ea0 c0352eec 20000153 ffffffff
[ 1.577054] [] (__irq_svc) from [] (cpuidle_enter_state+0x15c/0x238)
[ 1.585197] [] (cpuidle_enter_state) from [] (cpu_startup_entry+0x12c/0x19c)
[ 1.594029] [] (cpu_startup_entry) from [] (start_kernel+0x398/0x41c)
[ 1.602241] [] (start_kernel) from [<0000807c>] (0x807c)
[ 1.609302] Rebooting in 1 seconds..