Pine64 devices: Booting hangs when eMMC is present
While booting from the SD card works fine, the same image won't boot when it's from the emmc storage.
By adding set -x
to the initramfs init script, we can see what commands it's running before it gets stuck.
Booting kernel
## Loading init Ramdisk from Legacy Image at 4fe00000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 2294342 Bytes = 2.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 4fa00000
Booting using the fdt blob at 0x4fa00000
EHCI failed to shut down host controller.
EHCI failed to shut down host controller.
Loading Ramdisk to 49dcf000, end 49fff246 ... OK
reserving fdt memory region: addr=4fa00000 size=7000
Loading Device Tree to 0000000049dc5000, end 0000000049dcefff ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 4.20.0 (pmos@localhost) (gcc version 8.2.0 (Alpine 8.2.0)) #1-postmarketos-allwinner SMP Mon Jan 21 05:53:18 UTC 2019
[ 0.000000] Machine model: Pine64 LTS
[ 0.000000] earlycon: uart0 at MMIO32 0x0000000001c28000 (options '')
[ 0.000000] printk: bootconsole [uart0] enabled
+ . /etc/deviceinfo
+ deviceinfo_format_version=0
+ deviceinfo_name='PINE A64-LTS'
+ deviceinfo_manufacturer=PINE
+ deviceinfo_codename=pine-a64lts
+ deviceinfo_date=
+ deviceinfo_dtb=allwinner/sun50i-a64-pine64-lts
+ deviceinfo_modules_initfs=
+ deviceinfo_arch=aarch64
+ deviceinfo_disable_dhcpd=true
+ deviceinfo_keyboard=true
+ deviceinfo_external_storage=true
+ deviceinfo_screen_width=1024
+ deviceinfo_screen_height=600
+ deviceinfo_dev_touchscreen=
+ deviceinfo_dev_touchscreen_calibration=
+ deviceinfo_dev_keyboard=
+ deviceinfo_flash_method=none
+ deviceinfo_generate_legacy_uboot_initfs=true
+ deviceinfo_sd_embed_firmware=u-boot/pine64-lts/u-boot-sunxi-with-spl.bin:8
+ . ./init_functions.sh
+ IP=172.16.42.1
+ export 'PATH=/usr/bin:/bin:/usr/sbin:/sbin'
+ /bin/busybox --install -s
+ /bin/busybox-extras --install -s
+ mount_proc_sys_dev
+ mount -t proc -o nodev,noexec,nosuid proc /proc
+ mount -t sysfs -o nodev,noexec,nosuid sysfs /sys
+ mkdir /config
+ mount -t configfs -o nodev,noexec,nosuid configfs /config
+ mkdir -p /dev/pts
+ mount -t devpts devpts /dev/pts
+ setup_log
+ echo '### postmarketOS initramfs ###'
### postmarketOS initramfs ###
+ grep -q PMOS_NO_OUTPUT_REDIRECT /proc/cmdline
+ return
+ '[' -d /lib/modules ]
+ modprobe -a ext4
modprobe: module ext4 not found in modules.dep
+ setup_mdev
/init: line 37: can't create /proc/sys/kernel/hotplug: nonexistent directory
+ echo /sbin/mdev
+ mdev -s
+ mount_subpartitions
+ blkid
+ grep -q pmOS_boot
Edited by Bart Ribbers