NanoPi NEO Core boots from eMMC instead of SD Card

I have flashed DietPi NanoPi Neo image ‘DietPi_v6.14_NanoPiNEO-ARMv7-Stretch.img’ to a SD Card and installed it to my NanoPi NEO Core (which has 512MB RAM and 8GB eMMC) assuming both SBC’s are identical.

It seems like the board is not looking for the SD Card when booting and instead goes directly to the eMMC, do some initialization and then keep rebooting. I am not an expert but it looks like the eMMC had been previously flashed with some image which is a bit strange sine it is a new board.

Here is the output on the serial terminal:

U-Boot SPL 2017.11 (Dec 18 2017 - 12:11:24)
DRAM: 512 MiB(408MHz)
CPU Freq: 408MHz
Trying to boot from MMC1


U-Boot 2017.11 (Dec 18 2017 - 12:11:24 +0800) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: FriendlyElec NanoPi H3
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
SID: 2c00081-24004620-24004620-78768304
Detecting eMMC...
switch to partitions #0, OK
mmc1(part 0) is current device
switch to partitions #0, OK
mmc0 is current device
eMMC exist, PC6=1
BOARD: nanopi-neo-core
starting USB...
No controllers found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
968 bytes read in 19 ms (48.8 KiB/s)
## Executing script at 43100000
reading zImage
5547968 bytes read in 438 ms (12.1 MiB/s)
reading rootfs.cpio.gz
2845838 bytes read in 232 ms (11.7 MiB/s)
reading sun8i-h3-nanopi-neo-core.dtb
32461 bytes read in 28 ms (1.1 MiB/s)
## Flattened Device Tree blob at 48000000
   Booting using the fdt blob at 0x48000000
   Loading Ramdisk to 49b00000, end 4a000000 ... OK
   Loading Device Tree to 49af5000, end 49affecc ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.0 (root@wwd) (gcc version 4.9.3 (ctng-1.21.0-229g-FA)) #1 SMP Mon Dec 18 11:43:22 CST 2017
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: FriendlyElec NanoPi-NEO-Core
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x000000005f000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 16 pages/cpu @deb19000 s36544 r8192 d20800 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait fsck.repair=yes panic=10 fbcon=map:0
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 482252K/524288K available (8192K kernel code, 373K rwdata, 1856K rodata, 2048K init, 311K bss, 25652K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0a00000   (10208 kB)
[    0.000000]       .init : 0xc0e00000 - 0xc1000000   (2048 kB)
[    0.000000]       .data : 0xc1000000 - 0xc105d658   ( 374 kB)
[    0.000000]        .bss : 0xc106644c - 0xc10b406c   ( 312 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000000] arch_timer: 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.000014] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000040] Switching to timer-based delay loop, resolution 41ns
[    0.000420] Console: colour dummy device 80x30
[    0.000483] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=120000)
[    0.000512] pid_max: default: 32768 minimum: 301
[    0.000842] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000871] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002210] CPU: Testing write buffer coherency: ok
[    0.002928] CPU0: update cpu_capacity 1024
[    0.002953] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003613] Setting up static identity map for 0x40200000 - 0x40200060
[    0.003839] Hierarchical SRCU implementation.
[    0.005052] smp: Bringing up secondary CPUs ...
[    0.016285] CPU1: update cpu_capacity 1024
[    0.016297] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.027731] CPU2: update cpu_capacity 1024
[    0.027744] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.039062] CPU3: update cpu_capacity 1024
[    0.039074] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.039243] smp: Brought up 1 node, 4 CPUs
[    0.039303] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.039318] CPU: All CPU(s) started in HYP mode.
[    0.039329] CPU: Virtualization extensions available.
[    0.040449] devtmpfs: initialized
[    0.055269] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.055779] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302231375000 ns
[    0.055822] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.057683] xor: measuring software checksum speed
[    0.103842]    arm4regs  :   556.000 MB/sec
[    0.153976]    8regs     :   312.000 MB/sec
[    0.204108]    32regs    :   344.800 MB/sec
[    0.254241]    neon      :   520.000 MB/sec
[    0.254258] xor: using function: arm4regs (556.000 MB/sec)
[    0.254289] pinctrl core: initialized pinctrl subsystem
[    0.255970] NET: Registered protocol family 16
[    0.258923] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.260591] cpuidle: using governor ladder
[    0.260675] cpuidle: using governor menu
[    0.261382] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.261405] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.298568] gpio-regulator gpio-regulator: could not find pctldev for node /soc/pinctrl@01f02c00/regulator_pins@0, deferring probe
[    0.299467] SCSI subsystem initialized
[    0.300271] usbcore: registered new interface driver usbfs
[    0.300371] usbcore: registered new interface driver hub
[    0.300551] usbcore: registered new device driver usb
[    0.301067] pps_core: LinuxPPS API ver. 1 registered
[    0.301085] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.301138] PTP clock support registered
[    0.301507] Advanced Linux Sound Architecture Driver Initialized.
[    0.304557] clocksource: Switched to clocksource arch_sys_counter
[    0.304919] VFS: Disk quotas dquot_6.6.0
[    0.305061] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.305372] FS-Cache: Loaded
[    0.321791] NET: Registered protocol family 2
[    0.323196] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.323322] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.323472] TCP: Hash tables configured (established 4096 bind 4096)
[    0.323678] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.323746] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.324122] NET: Registered protocol family 1
[    0.325093] RPC: Registered named UNIX socket transport module.
[    0.325117] RPC: Registered udp transport module.
[    0.325130] RPC: Registered tcp transport module.
[    0.325143] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.325542] Unpacking initramfs...
[    0.681216] Initramfs unpacking failed: junk in compressed archive
[    0.693167] Freeing initrd memory: 5120K
[    0.693814] kvm [1]: 8-bit VMID
[    0.693837] kvm [1]: IDMAP page: 40201000
[    0.693854] kvm [1]: HYP VA range: c0000000:ffffffff
[    0.694882] kvm [1]: vgic-v2@1c84000
[    0.695163] kvm [1]: vgic interrupt IRQ16
[    0.695206] kvm [1]: virtual timer IRQ20
[    0.695385] kvm [1]: Hyp mode initialized successfully
[    0.700910] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.711352] zbud: loaded
[    0.714429] FS-Cache: Netfs 'nfs' registered for caching
[    0.715609] NFS: Registering the id_resolver key type
[    0.715678] Key type id_resolver registered
[    0.715694] Key type id_legacy registered
[    0.715727] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.715756] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.717302] fuse init (API version 7.26)
[    0.728637] async_tx: api initialized (async)
[    0.728822] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.729084] io scheduler noop registered (default)
[    0.729103] io scheduler deadline registered
[    0.729740] io scheduler cfq registered
[    0.729766] io scheduler mq-deadline registered
[    0.730050] io scheduler bfq registered
[    0.731281] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.739473] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.742853] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    0.754580] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.758499] console [ttyS0] disabled
[    0.778823] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 45, base_baud = 1500000) is a U6_16550A
[    1.543567] console [ttyS0] enabled
[    1.571598] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 46, base_baud = 1500000) is a U6_16550A
[    1.604959] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 47, base_baud = 1500000) is a U6_16550A
[    1.638361] 1c28c00.serial: ttyS3 at MMIO 0x1c28c00 (irq = 48, base_baud = 1500000) is a U6_16550A
[    1.652038] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.658706] [drm] No driver support for vblank timestamp query.
[    1.685631] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc0a51174)
[    1.692955] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[    1.700840] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0a4fe78)
[    1.829755] sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller v1.32a with HDCP (sun8i_dw_hdmi_phy)
[    1.840004] sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI I2C bus driver
[    1.848012] sun4i-drm display-engine: bound 1ee0000.hdmi (ops 0xc0a514f4)
[    1.854946] [drm] Cannot find any crtc or sizes - going 1920x1080
[    1.938266] Console: switching to colour frame buffer device 240x67
[    2.005390] sun4i-drm display-engine: fb0:  frame buffer device
[    2.012178] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    2.037306] loop: module loaded
[    2.075285] libphy: Fixed MDIO Bus: probed
[    2.079405] tun: Universal TUN/TAP device driver, 1.6
[    2.084866] CAN device driver interface
[    2.089769] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    2.095626] dwmac-sun8i 1c30000.ethernet: No regulator found
[    2.101395] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    2.107611] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    2.113313] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    2.120561] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    2.126254] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    2.133499] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    2.138498] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    2.145510] libphy: stmmac: probed
[    2.161739] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.168345] ehci-platform: EHCI generic platform driver
[    2.174046] ehci-platform 1c1a000.usb: EHCI Host Controller
[    2.179709] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    2.188246] ehci-platform 1c1a000.usb: irq 29, io mem 0x01c1a000
[    2.204611] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    2.211103] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.217936] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.225186] usb usb1: Product: EHCI Host Controller
[    2.230093] usb usb1: Manufacturer: Linux 4.14.0 ehci_hcd
[    2.235517] usb usb1: SerialNumber: 1c1a000.usb
[    2.241156] hub 1-0:1.0: USB hub found
[    2.245033] hub 1-0:1.0: 1 port detected
[    2.250447] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.256704] ohci-platform: OHCI generic platform driver
[    2.262369] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    2.269065] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    2.277266] ohci-platform 1c1a400.usb: irq 30, io mem 0x01c1a400
[    2.343934] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    2.350791] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.358052] usb usb2: Product: Generic Platform OHCI controller
[    2.364006] usb usb2: Manufacturer: Linux 4.14.0 ohci_hcd
[    2.369439] usb usb2: SerialNumber: 1c1a400.usb
[    2.377841] hub 2-0:1.0: USB hub found
[    2.381704] hub 2-0:1.0: 1 port detected
[    2.387150] usbcore: registered new interface driver cdc_acm
[    2.392856] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    2.400987] usbcore: registered new interface driver usblp
[    2.406587] usbcore: registered new interface driver cdc_wdm
[    2.412460] usbcore: registered new interface driver usb-storage
[    2.418665] usbcore: registered new interface driver usbserial
[    2.424615] usbcore: registered new interface driver usbserial_generic
[    2.431224] usbserial: USB Serial support registered for generic
[    2.438757] mousedev: PS/2 mouse device common for all mice
[    2.445406] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
[    2.452253] sun6i-rtc 1f00000.rtc: RTC enabled
[    2.456884] i2c /dev entries driver
[    2.464978] thermal thermal_zone0: failed to read out thermal zone (-16)
[    2.472769] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    2.481575] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com
[    2.493574] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    2.534686] sunxi-mmc 1c0f000.mmc: base:0xe0873000 irq:26
[    2.576684] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.584967] sunxi-mmc 1c11000.mmc: base:0xe0875000 irq:27
[    2.586489] mmc0: Problem switching card into high-speed mode!
[    2.586697] mmc0: new SDHC card at address 0001
[    2.587482] mmcblk0: mmc0:0001 SD16G 14.6 GiB
[    2.589448]  mmcblk0: p1 p2
[    2.612519] ledtrig-cpu: registered to indicate activity on CPUs
[    2.618981] hidraw: raw HID events driver (C) Jiri Kosina
[    2.624749] usbcore: registered new interface driver usbhid
[    2.630373] usbhid: USB HID core driver
[    2.655682] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    2.668994] wireguard: WireGuard 0.0.20171111 loaded. See www.wireguard.com for information.
[    2.675018] mmc1: new DDR MMC card at address 0001
[    2.675910] mmcblk1: mmc1:0001 8GTF4R 7.28 GiB
[    2.676308] mmcblk1boot0: mmc1:0001 8GTF4R partition 1 4.00 MiB
[    2.676688] mmcblk1boot1: mmc1:0001 8GTF4R partition 2 4.00 MiB
[    2.678193]  mmcblk1: p1 p2
[    2.701612] wireguard: Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.711551] Initializing XFRM netlink socket
[    2.716829] NET: Registered protocol family 10
[    2.761513] Segment Routing with IPv6
[    2.765456] NET: Registered protocol family 17
[    2.770010] NET: Registered protocol family 15
[    2.774463] can: controller area network core (rev 20170425 abi 9)
[    2.780866] NET: Registered protocol family 29
[    2.785348] can: raw protocol (rev 20170425)
[    2.789644] can: broadcast manager protocol (rev 20170425 t)
[    2.795340] can: netlink gateway (rev 20170425) max_hops=1
[    2.801717] Key type dns_resolver registered
[    2.806521] Registering SWP/SWPB emulation handler
[    2.813900] registered taskstats version 1
[    2.837187] Key type encrypted registered
[    2.855888] ehci-platform 1c1b000.usb: EHCI Host Controller
[    2.861578] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3
[    2.869937] ehci-platform 1c1b000.usb: irq 31, io mem 0x01c1b000
[    2.889613] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    2.896149] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    2.902984] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.910238] usb usb3: Product: EHCI Host Controller
[    2.915144] usb usb3: Manufacturer: Linux 4.14.0 ehci_hcd
[    2.920570] usb usb3: SerialNumber: 1c1b000.usb
[    2.926199] hub 3-0:1.0: USB hub found
[    2.930078] hub 3-0:1.0: 1 port detected
[    2.935439] ehci-platform 1c1c000.usb: EHCI Host Controller
[    2.941098] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 4
[    2.949362] ehci-platform 1c1c000.usb: irq 33, io mem 0x01c1c000
[    2.969602] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    2.976097] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    2.982931] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.990192] usb usb4: Product: EHCI Host Controller
[    2.995099] usb usb4: Manufacturer: Linux 4.14.0 ehci_hcd
[    3.000531] usb usb4: SerialNumber: 1c1c000.usb
[    3.006043] hub 4-0:1.0: USB hub found
[    3.009929] hub 4-0:1.0: 1 port detected
[    3.015226] ehci-platform 1c1d000.usb: EHCI Host Controller
[    3.020908] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 5
[    3.029167] ehci-platform 1c1d000.usb: irq 35, io mem 0x01c1d000
[    3.049608] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
[    3.056068] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[    3.062910] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.070167] usb usb5: Product: EHCI Host Controller
[    3.075079] usb usb5: Manufacturer: Linux 4.14.0 ehci_hcd
[    3.080511] usb usb5: SerialNumber: 1c1d000.usb
[    3.086079] hub 5-0:1.0: USB hub found
[    3.089970] hub 5-0:1.0: 1 port detected
[    3.095266] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    3.101968] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 6
[    3.110111] ohci-platform 1c1b400.usb: irq 32, io mem 0x01c1b400
[    3.178907] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
[    3.185749] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.193007] usb usb6: Product: Generic Platform OHCI controller
[    3.198962] usb usb6: Manufacturer: Linux 4.14.0 ohci_hcd
[    3.204394] usb usb6: SerialNumber: 1c1b400.usb
[    3.209945] hub 6-0:1.0: USB hub found
[    3.213768] hub 6-0:1.0: 1 port detected
[    3.219033] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    3.225754] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 7
[    3.233887] ohci-platform 1c1c400.usb: irq 34, io mem 0x01c1c400
[    3.303932] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001
[    3.310770] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.318028] usb usb7: Product: Generic Platform OHCI controller
[    3.323982] usb usb7: Manufacturer: Linux 4.14.0 ohci_hcd
[    3.329413] usb usb7: SerialNumber: 1c1c400.usb
[    3.335054] hub 7-0:1.0: USB hub found
[    3.338888] hub 7-0:1.0: 1 port detected
[    3.344137] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[    3.350853] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8
[    3.358956] ohci-platform 1c1d400.usb: irq 36, io mem 0x01c1d400
[    3.428895] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001
[    3.435739] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.442995] usb usb8: Product: Generic Platform OHCI controller
[    3.448951] usb usb8: Manufacturer: Linux 4.14.0 ohci_hcd
[    3.454383] usb usb8: SerialNumber: 1c1d400.usb
[    3.459952] hub 8-0:1.0: USB hub found
[    3.463773] hub 8-0:1.0: 1 port detected
[    3.467776] usb 5-1: new high-speed USB device number 2 using ehci-platform
[    3.476295] usb_phy_generic usb_phy_generic.3.auto: usb_phy_generic.3.auto supply vcc not found, using dummy regulator
[    3.487758] musb-hdrc musb-hdrc.4.auto: MUSB HDRC host driver
[    3.493577] musb-hdrc musb-hdrc.4.auto: new USB bus registered, assigned bus number 9
[    3.501774] usb usb9: New USB device found, idVendor=1d6b, idProduct=0002
[    3.508627] usb usb9: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.515880] usb usb9: Product: MUSB HDRC host driver
[    3.520881] usb usb9: Manufacturer: Linux 4.14.0 musb-hcd
[    3.526313] usb usb9: SerialNumber: musb-hdrc.4.auto
[    3.532227] hub 9-0:1.0: USB hub found
[    3.536088] hub 9-0:1.0: 1 port detected
[    3.542725] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 408000 KHz
[    3.551571] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 480000 KHz
[    3.562323] asoc-simple-card soc:sound: i2s-hifi <-> 1c22800.i2s mapping ok
[    3.572653] input: r_gpio_keys as /devices/platform/r_gpio_keys/input/input0
[    3.581100] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01 00:00:33 UTC (33)
[    3.589566] vcc3v0: disabling
[    3.592540] vcc5v0: disabling
[    3.595519] ALSA device list:
[    3.598483]   #0: Dummy 1
[    3.601120]   #1: Loopback 1
[    3.603997]   #2: H3 Audio Codec
[    3.607232]   #3: allwinner,hdmi
[    3.612896] Freeing unused kernel memory: 2048K
[    3.646775] usb 5-1: New USB device found, idVendor=152d, idProduct=0578
[    3.653606] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.660792] usb 5-1: Product: External Disk 3.0
[    3.665359] usb 5-1: Manufacturer: JMicron
Loading, please wait...
[    3.669476] usb 5-1: SerialNumber: 00000000577F
starting version 225
[    3.601239] ▒
U-Boot SPL 2017.11 (Dec 18 2017 - 12:11:24)
DRAM: 512 MiB(408MHz)
CPU Freq: 408MHz
Trying to boot from MMC1


U-Boot 2017.11 (Dec 18 2017 - 12:11:24 +0800) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: FriendlyElec NanoPi H3
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
*** Warning - bad CRC, using default environment

In:    serial

I am not interested at the moment in booting from eMMC and instead would like to make it boot normally from SD Card.
Appreciate your help!

abulafi
Why you think it’s booting from eMMC?

Trying to boot from MMC1
...
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr

For me this looks like it is booting from SDcard.

Detecting eMMC… does no mean it is booting from there.
All other logs match exactly our image:

reading zImage
5547968 bytes read in 438 ms (12.1 MiB/s)
reading rootfs.cpio.gz
2845838 bytes read in 232 ms (11.7 MiB/s)
reading sun8i-h3-nanopi-neo-core.dtb

But now the question why it boot-loops.

  • Last kernel log is about a JMicron USB device bein detected. Please try to detach the USB port (attached via board pins, right?) for first boot.
  • On the other hand very last console output is starting version 225 which is the systemd version that is about to be initialised.

Okay not sure finally. General failure reasons to check:

  • Try another power adapter with stable voltage supply, not a charging adapter, since those usually have no stable voltage.
  • Try to run fsck on the SDcard from an external GNU/Linux system, perhaps there is a file system corruption. In case try to reflash.
  • Assure that on first boot everything besides the serial console is detached for debugging, even Ethernet.