Kernel crash on startup in latest firmware (squashfs) image for olinuxino micro

Image downloaded from https://downloads.lede-project.org/releases/17.01.1/targets/sunxi/generic/lede-17.01.1-sunxi-sun7i-a20-olinuxino-micro-squashfs-sdcard.img.gz.

Bootlogs:

U-Boot 2016.03 (Apr 15 2017 - 16:13:45 +0000) Allwinner Technology


CPU:   Allwinner A20 (SUN7I)

Model: Olimex A20-Olinuxino Micro

I2C:   ready

DRAM:  1 GiB

MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1

*** Warning - bad CRC, using default environment


Setting up a 1024x768 vga console (overscan 0x0)

In:    serial

Out:   vga

Err:   vga

SCSI:  SUNXI SCSI INIT

AHCI PHY power up failed.

Net:   eth0: ethernet@01c50000

starting USB...

USB0:   USB EHCI 1.00

USB1:   USB OHCI 1.0

USB2:   USB EHCI 1.00

USB3:   USB OHCI 1.0

scanning bus 0 for devices... 1 USB Device(s) found

scanning bus 2 for devices... 1 USB Device(s) found

Hit any key to stop autoboot:  2 ... 1 ... 0 

switch to partitions #0, OK

mmc0 is current device

Scanning mmc 0:1...

Found U-Boot script /boot.scr

reading /boot.scr

377 bytes read in 17 ms (21.5 KiB/s)

## Executing script at 43100000

reading uImage

2151032 bytes read in 126 ms (16.3 MiB/s)

reading dtb

30655 bytes read in 28 ms (1 MiB/s)

## Booting kernel from Legacy Image at 42000000 ...

   Image Name:   ARM LEDE Linux-4.4.61

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    2150968 Bytes = 2.1 MiB

   Load Address: 40008000

   Entry Point:  40008000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 43000000

   Booting using the fdt blob at 0x43000000

   Loading Kernel Image ... OK

   Using Device Tree in place at 43000000, end 4300a7be


Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.61 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3103-1b51a49) ) #0 SMP PREEMPT Sat Apr 15 16:13:45 2017
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=30c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Olimex A20-Olinuxino Micro
[    0.000000] Forcing write-allocate cache policy for SMP
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] PERCPU: Embedded 12 pages/cpu @ef7c5000 s17984 r8192 d22976 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 259840
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1029980K/1045504K available (4726K kernel code, 219K rwdata, 764K rodata, 276K init, 267K bss, 15524K reserved, 0K cma-reserved, 259072K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0564e90   (5492 kB)
[    0.000000]       .init : 0xc0565000 - 0xc05aa000   ( 276 kB)
[    0.000000]       .data : 0xc05aa000 - 0xc05e0e78   ( 220 kB)
[    0.000000]        .bss : 0xc05e3000 - 0xc0625c74   ( 268 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] .RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000478] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000704] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 12741736309 ns
[    0.000870] Console: colour dummy device 80x30
[    0.000905] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000921] pid_max: default: 32768 minimum: 301
[    0.001025] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001037] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001648] CPU: Testing write buffer coherency: ok
[    0.002030] /cpus/cpu@0 missing clock-frequency property
[    0.002054] /cpus/cpu@1 missing clock-frequency property
[    0.002068] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002098] Setting up static identity map for 0x400082c0 - 0x40008318
[    0.080406] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.080493] Brought up 2 CPUs
[    0.080516] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.080523] CPU: All CPU(s) started in HYP mode.
[    0.080529] CPU: Virtualization extensions available.
[    0.089860] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.090750] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.090786] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.090965] pinctrl core: initialized pinctrl subsystem
[    0.092612] NET: Registered protocol family 16
[    0.092979] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.161927] reg-fixed-voltage ahci-5v: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/ahci_pwr_pin@0, deferring probe
[    0.161993] reg-fixed-voltage usb0-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb0_vbus_pin@0, deferring probe
[    0.162029] reg-fixed-voltage usb1-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe
[    0.162063] reg-fixed-voltage usb2-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, deferring probe
[    0.164322] SCSI subsystem initialized
[    0.165483] usbcore: registered new interface driver usbfs
[    0.165641] usbcore: registered new interface driver hub
[    0.165812] usbcore: registered new device driver usb
[    0.166191] Linux video capture interface: v2.00
[    0.166368] pps_core: LinuxPPS API ver. 1 registered
[    0.166379] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.166465] PTP clock support registered
[    0.167331] Advanced Linux Sound Architecture Driver Initialized.
[    0.168752] clocksource: Switched to clocksource arch_sys_counter
[    0.170029] simple-framebuffer 7fd00000.framebuffer: framebuffer at 0x7fd00000, 0x300000 bytes, mapped to 0xf0900000
[    0.170054] simple-framebuffer 7fd00000.framebuffer: format=x8r8g8b8, mode=1024x768x32, linelength=4096
[    0.185004] Console: switching to colour frame buffer device 128x48
[    0.197808] simple-framebuffer 7fd00000.framebuffer: fb0: simplefb registered!
[    0.211368] NET: Registered protocol family 2
[    0.212331] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.212418] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.212547] TCP: Hash tables configured (established 8192 bind 8192)
[    0.212634] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.212699] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.212963] NET: Registered protocol family 1
[    0.213994] kvm [1]: interrupt-controller@1c84000 IRQ55
[    0.214400] kvm [1]: timer IRQ19
[    0.214422] kvm [1]: Hyp mode initialized successfully
[    0.216525] audit: initializing netlink subsys (disabled)
[    0.216623] audit: type=2000 audit(0.200:1): initialized
[    0.216667] No memory allocated for crashlog
[    0.228124] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.230863] bounce: pool size: 64 pages
[    0.230886] io scheduler noop registered
[    0.230894] io scheduler deadline registered
[    0.230947] io scheduler cfq registered (default)
[    0.231743] sun4i-usb-phy 1c13400.phy: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb0_id_detect_pin@0, deferring probe
[    0.235792] sun7i-a20-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.336953] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.343408] console [ttyS0] disabled
[    0.363740] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 45, base_baud = 1500000) is a U6_16550A
[    1.012410] console [ttyS0] enabled
[    1.037721] 1c29800.serial: ttyS1 at MMIO 0x1c29800 (irq = 46, base_baud = 1500000) is a U6_16550A
[    1.070636] 1c29c00.serial: ttyS2 at MMIO 0x1c29c00 (irq = 47, base_baud = 1500000) is a U6_16550A
[    1.149332] loop: module loaded
[    1.155938] sun7i-dwmac 1c50000.ethernet: no regulator found
[    1.161775] sun7i-dwmac 1c50000.ethernet: no reset control found
[    1.167781]  Ring mode enabled
[    1.170872]  No HW DMA feature register supported
[    1.175400]  Normal descriptors
[    1.178811]  TX Checksum insertion supported
[    1.147066] libphy: stmmac: probed
[    1.150557] eth%d: PHY ID 00008201 at 1 IRQ POLL (stmmac-0:01) active
[    1.158342] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.164976] ehci-platform: EHCI generic platform driver
[    1.170812] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.177018] ohci-platform: OHCI generic platform driver
[    1.182856] usbcore: registered new interface driver usb-storage
[    1.189365] mousedev: PS/2 mouse device common for all mice
[    1.195652] input: 1c22800.lradc as /devices/platform/soc@01c00000/1c22800.lradc/input/input0
[    1.205364] i2c /dev entries driver
[    1.210168] axp20x 0-0034: AXP20x variant AXP209 found
[    1.228466] input: axp20x-pek as /devices/platform/soc@01c00000/1c2ac00.i2c/i2c-0/0-0034/axp20x-pek/input/input1
[    1.239059] axp20x-regulator axp20x-regulator: regulators node not found
[    1.249782] axp20x 0-0034: AXP20X driver loaded
[    1.257040] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.266016] sunxi-mmc 1c0f000.mmc: No vqmmc regulator found
[    1.272205] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    1.309115] sunxi-mmc 1c0f000.mmc: base:0xf08d6000 irq:27
[    1.315189] sunxi-mmc 1c12000.mmc: No vqmmc regulator found
[    1.321510] sunxi-mmc 1c12000.mmc: Got CD GPIO
[    1.357193] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.359151] sunxi-mmc 1c12000.mmc: base:0xf08da000 irq:28
[    1.360168] sun4i-ss 1c15000.crypto-engine: no reset control found
[    1.361699] sun4i-ss 1c15000.crypto-engine: Die ID 0
[    1.365768] NET: Registered protocol family 10
[    1.377815] NET: Registered protocol family 17
[    1.377874] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.377877] can: controller area network core (rev 20120528 abi 9)
[    1.378128] NET: Registered protocol family 29
[    1.378138] 8021q: 802.1Q VLAN Support v1.8
[    1.389166] Registering SWP/SWPB emulation handler
[    1.403748] ehci-platform 1c14000.usb: EHCI Host Controller
[    1.403789] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
[    1.403965] ehci-platform 1c14000.usb: irq 30, io mem 0x01c14000
[    1.418969] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[    1.419293] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.419302] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.419308] usb usb1: Product: EHCI Host Controller
[    1.419313] usb usb1: Manufacturer: Linux 4.4.61 ehci_hcd
[    1.419319] usb usb1: SerialNumber: 1c14000.usb
[    1.420166] hub 1-0:1.0: USB hub found
[    1.420279] hub 1-0:1.0: 1 port detected
[    1.421131] ehci-platform 1c1c000.usb: EHCI Host Controller
[    1.421169] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2
[    1.421347] ehci-platform 1c1c000.usb: irq 35, io mem 0x01c1c000
[    1.438896] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    1.439166] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.439174] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.439180] usb usb2: Product: EHCI Host Controller
[    1.439185] usb usb2: Manufacturer: Linux 4.4.61 ehci_hcd
[    1.439191] usb usb2: SerialNumber: 1c1c000.usb
[    1.440009] hub 2-0:1.0: USB hub found
[    1.440136] hub 2-0:1.0: 1 port detected
[    1.440927] ohci-platform 1c14400.usb: Generic Platform OHCI controller
[    1.440963] ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 3
[    1.441139] ohci-platform 1c14400.usb: irq 31, io mem 0x01c14400
[    1.503079] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    1.503088] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.503094] usb usb3: Product: Generic Platform OHCI controller
[    1.503100] usb usb3: Manufacturer: Linux 4.4.61 ohci_hcd
[    1.503105] usb usb3: SerialNumber: 1c14400.usb
[    1.504001] hub 3-0:1.0: USB hub found
[    1.504046] hub 3-0:1.0: 1 port detected
[    1.504855] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    1.504893] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 4
[    1.505074] ohci-platform 1c1c400.usb: irq 36, io mem 0x01c1c400
[    1.563045] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    1.563054] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.563060] usb usb4: Product: Generic Platform OHCI controller
[    1.563065] usb usb4: Manufacturer: Linux 4.4.61 ohci_hcd
[    1.563071] usb usb4: SerialNumber: 1c1c400.usb
[    1.564007] hub 4-0:1.0: USB hub found
[    1.564052] hub 4-0:1.0: 1 port detected
[    1.564493] hctosys: unable to open rtc device (rtc0)
[    1.570889] vcc5v0: disabling
[    1.570904] ahci-5v: disabling
[    1.570914] usb0-vbus: disabling
[    1.571067] ALSA device list:
[    1.571070]   No soundcards found.
[    1.683984] Waiting for root device /dev/mmcblk0p2...
[    1.689810] mmc0: new high speed SDHC card at address aaaa
[    1.706115] mmcblk0: mmc0:aaaa SL16G 14.8 GiB 
[    1.715758]  mmcblk0: p1 p2
[    1.805127] squashfs: SQUASHFS error: unable to read inode lookup table
[    1.813278] F2FS-fs (mmcblk0p2): Magic Mismatch, valid(0xf2f52010) - read(0x14102f72)
[    1.821203] F2FS-fs (mmcblk0p2): Can't find valid F2FS filesystem in 1th superblock
[    1.832185] F2FS-fs (mmcblk0p2): Magic Mismatch, valid(0xf2f52010) - read(0x8f457a22)
[    1.840085] F2FS-fs (mmcblk0p2): Can't find valid F2FS filesystem in 2th superblock
[    1.847741] F2FS-fs (mmcblk0p2): Magic Mismatch, valid(0xf2f52010) - read(0x14102f72)
[    1.855581] F2FS-fs (mmcblk0p2): Can't find valid F2FS filesystem in 1th superblock
[    1.863242] F2FS-fs (mmcblk0p2): Magic Mismatch, valid(0xf2f52010) - read(0x8f457a22)
[    1.871075] F2FS-fs (mmcblk0p2): Can't find valid F2FS filesystem in 2th superblock
[    1.878785] List of all partitions:
[    1.882335] b300        15558144 mmcblk0  driver: mmcblk
[    1.887659]   b301           20480 mmcblk0p1 5452574f-01
[    1.893020]   b302          262144 mmcblk0p2 5452574f-02
[    1.898335] No filesystem could mount root, tried:  ext3 ext2 ext4 squashfs vfat f2fs
[    1.906292] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    1.914721] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.61 #0
[    1.920631] Hardware name: Allwinner sun7i (A20) Family
[    1.925863] Function entered at [<c0031c5c>] from [<c002f3e0>]
[    1.931687] Function entered at [<c002f3e0>] from [<c01f7b88>]
[    1.937513] Function entered at [<c01f7b88>] from [<c003a740>]
[    1.943339] Function entered at [<c003a740>] from [<c05662f0>]
[    1.949166] Function entered at [<c05662f0>] from [<c05664dc>]
[    1.954990] Function entered at [<c05664dc>] from [<c0565e8c>]
[    1.960815] Function entered at [<c0565e8c>] from [<c000f53c>]
[    1.966640] Function entered at [<c000f53c>] from [<c000a8a8>]
[    1.972476] CPU1: stopping
[    1.975186] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.61 #0
[    1.981097] Hardware name: Allwinner sun7i (A20) Family
[    1.986316] Function entered at [<c0031c5c>] from [<c002f3e0>]
[    1.992141] Function entered at [<c002f3e0>] from [<c01f7b88>]
[    1.997965] Function entered at [<c01f7b88>] from [<c0030fac>]
[    2.003789] Function entered at [<c0030fac>] from [<c0009514>]
[    2.009614] Function entered at [<c0009514>] from [<c000b140>]
[    2.015439] Exception stack(0xef08df98 to 0xef08dfe0)
[    2.020485] df80:                                                       ef7d12c8 00000000
[    2.028654] dfa0: 00000afc c000bf80 ef08c000 c05ac4a8 c048fa54 c05a52a4 ef08dff0 c05b0310
[    2.036822] dfc0: 00000000 00000000 60000013 ef08dfe8 c002cda0 c002cda4 60000013 ffffffff
[    2.044987] Function entered at [<c000b140>] from [<c002cda4>]
[    2.050812] Function entered at [<c002cda4>] from [<c006eb90>]
[    2.056638] Function entered at [<c006eb90>] from [<400095cc>]
[    2.062470] Rebooting in 1 seconds..

I stumbled upon this problem, too. Just add a third partition to the sdcard. Don't format it. Just create another partition across the remaining space. After that LEDE starts and formats this third partition.