Jump to content

OPI ZERO: Boot stuck when no console is connected


Recommended Posts

Posted

Hi Experts,

 

I am using Armbian Ubuntu Xenial image on Orange Pi Zero. Board boots fine every time when serial console is connected without pressing any key. However booting stuck most of the time at (Loading, please wait...) when no serial console is connected. We have to connect serial console and press enter every time it gets stuck and then  booting proceeds further as usual. Any idea what might be wrong.

 

Logs when serial console is connected and not key is pressed during boot

U-Boot SPL 2017.01-armbian (Feb 02 2017 - 03:04:34)
DRAM: 512 MiB
Trying to boot from MMC1

U-Boot 2017.01-armbian (Feb 02 2017 - 03:04:34 +0100) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi Zero
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
Hit any key to stop autoboot:  0
6944 bytes read in 159 ms (42 KiB/s)
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2652 bytes read in 190 ms (12.7 KiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
123 bytes read in 145 ms (0 Bytes/s)
6404257 bytes read in 762 ms (8 MiB/s)
4754648 bytes read in 654 ms (6.9 MiB/s)
** File not found /boot/.next **
** File not found .next **
35384 bytes read in 521 ms (65.4 KiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6404193 Bytes = 6.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
Using machid 0x1029 from environment

Starting kernel ...

[sun8i_fixup]: From boot, get meminfo:
        Start:  0x40000000
        Size:   512MB
ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1
ion_reserve_select: ion chipid  [0x2c00042!
ion_reserve_common: ion reserve: [0x57e00000, 0x60000000]!
Loading, please wait...
starting version 229
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Will now check root file system ... fsck from util-linux 2.27.1
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1
/dev/mmcblk0p1: clean, 51581/211744 files, 459810/841984 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... Warning: overlayroot: configuring overlayroot with driver=overlayfs mode=tmpfs opts='' per /dev/mmcblk0p1/etc/overlayroot.conf
Success: overlayroot: configured root with 'tmpfs' using overlayfs per /dev/mmcblk0p1/etc/overlayroot.conf
/scripts/init-bottom/plymouth: line 18: /bin/plymouth: not found
done.

Welcome to Ubuntu 16.04.1 LTS!

[  OK  ] Listening on Journal Socket.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Set up automount Arbitrary Executab...ats File System Automount Point.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Reached target Swap.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Created slice System Slice.
         Starting Create list of required st... nodes for the current kernel...
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting Remount Root and Kernel File Systems...
         Starting Set console keymap...
[  OK  ] Created slice system-systemd\x2dfsck.slice.
         Starting Restore / save the current clock...
         Mounting Debug File System...
[  OK  ] Reached target Remote File Systems.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on udev Control Socket.
         Mounting POSIX Message Queue File System...
[  OK  ] Reached target Slices.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
         Starting Nameserver information manager...
         Starting Load Kernel Modules...
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Set console keymap.
[  OK  ] Started Restore / save the current clock.
[  OK  ] Started Nameserver information manager.
         Starting Load/Save Random Seed...
         Starting udev Coldplug all Devices...
         Starting Create Static Device Nodes in /dev...
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /tmp...
         Mounting FUSE Control File System...
         Starting Apply Kernel Variables...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted /tmp.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Found device /dev/ttyGS0.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Found device /dev/disk/by-uuid/fd472eba-571d-4583-8873-97f09353655c.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Starting File System Check on /dev/...a-571d-4583-8873-97f09353655c...
[  OK  ] Reached target Sound Card.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Entropy daemon using the HAVEGE algorithm.
         Starting Journal Service...
[  OK  ] Started File System Check on /dev/d...eba-571d-4583-8873-97f09353655c.
[  OK  ] Started Journal Service.
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Started File System Check Daemon to report status.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Reached target Local File Systems.
         Starting Commit a transient machine-id on disk...
         Starting Armbian enhanced Log2Ram...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Set console font and keymap...
         Starting LSB: AppArmor initialization...
[  OK  ] Started Load/Save RF Kill Switch Status.
[FAILED] Failed to start Commit a transient machine-id on disk.
See 'systemctl status systemd-machine-id-commit.service' for details.
[  OK  ] Started Armbian enhanced Log2Ram.
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Set console font and keymap.
[  OK  ] Created slice system-getty.slice.
[FAILED] Failed to start LSB: AppArmor initialization.
See 'systemctl status apparmor.service' for details.
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
         Starting Raise network interfaces...
[  OK  ] Started ifup for wlan0.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Reached target System Time Synchronized.
[   17.520753] [STA] !!!xradio_vif_setup: id=0, type=2, p2p=0
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
         Starting Armbian filesystem resize service...
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Paths.
[  OK  ] Started Daily apt activities.
[  OK  ] Reached target Timers.
[  OK  ] Started Raise network interfaces.
[   18.656920] [STA_WRN] Freq 2447 (wsm ch: 8).
[   18.827715] [AP_WRN] [STA] ASSOC HTCAP 11N 58
[   18.852748] [AP_WRN] [STA] ASSOC HTCAP 11N 58
[  OK  ] Started Armbian filesystem resize service.
[  OK  ] Reached target Basic System.
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
         Starting System Logging Service...
[  OK  ] Started RFID Reader Service.
         Starting Login Service...
         Starting Data Parition Mount...
         Starting Save/Restore Sound Card State...
         Starting Permit User Sessions...
         Starting LSB: Starts LIRC daemon....
         Starting LSB: Armbian gathering hardware information...
[  OK  ] Started D-Bus System Message Bus.
         Starting Network Manager...
         Starting LSB: Start/stop sysstat's sadc...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started System Logging Service.
[  OK  ] Started Data Parition Mount.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Save/Restore Sound Card State.
[  OK  ] Started LSB: Starts LIRC daemon..
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started LSB: Start/stop sysstat's sadc.
[  OK  ] Started Network Manager.
[  OK  ] Started Login Service.
         Starting Network Manager Script Dispatcher Service...
         Starting Network Manager Wait Online...
[  OK  ] Reached target Network.
         Starting OpenBSD Secure Shell server...
         Starting MySQL Community Server...
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started LSB: Armbian gathering hardware information.
[  OK  ] Started Network Manager Script Dispatcher Service.
         Starting Hostname Service...
[  OK  ] Started Hostname Service.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
         Starting LSB: Set sysfs variables from /etc/sysfs.conf...
         Starting Authenticate and Authorize Users to Run Privileged Tasks...
         Starting WPA supplicant...
[  OK  ] Started LSB: Set sysfs variables from /etc/sysfs.conf.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Network Manager Wait Online.
[  OK  ] Started Authenticate and Authorize Users to Run Privileged Tasks.
[  OK  ] Reached target Network is Online.
         Starting LSB: Apache2 web server...
         Starting LSB: disk temperature monitoring daemon...
         Starting LSB: Advanced IEEE 802.11 management daemon...
         Starting /etc/rc.local Compatibility...
         Starting LSB: Start NTP daemon...
[  OK  ] Started LSB: Advanced IEEE 802.11 management daemon.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started LSB: disk temperature monitoring daemon.
         Starting Hold until boot process finishes up...
         Starting Terminate Plymouth Boot Screen...
[  OK  ] Started Hold until boot process finishes up.
[  OK  ] Started Terminate Plymouth Boot Screen.
         Starting Set console scheme...
[  OK  ] Started Serial Getty on ttyGS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Set console scheme.
[  OK  ] Started LSB: Start NTP daemon.
[  OK  ] Started MySQL Community Server.
[  OK  ] Started Access Control Service.
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Started Load/Save RF Kill Switch Status.
[  OK  ] Started LSB: Apache2 web server.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

Ubuntu 16.04.1 LTS orangepizero ttyS0

orangepizero login:

Logs When Serial Console is not connected and where we connect serial console and press enter key

starting version 229
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Will now check root file system ... fsck from util-linux 2.27.1
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1
/dev/mmcblk0p1: clean, 51581/211744 files, 459810/841984 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... Warning: overlayroot: configuring overlayroot with driver=overlayfs mode=tmpfs opts='' per /dev/mmcblk0p1/etc/overlayroot.conf
Success: overlayroot: configured root with 'tmpfs' using overlayfs per /dev/mmcblk0p1/etc/overlayroot.conf
/scripts/init-bottom/plymouth: line 18: /bin/plymouth: not found
done.

Welcome to Ubuntu 16.04.1 LTS!

[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Listening on Journal Socket.
[  OK  ] Reached target Swap.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Syslog Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Created slice System Slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting Set console keymap...
[  OK  ] Created slice system-systemd\x2dfsck.slice.
         Starting Create list of required st... nodes for the current kernel...
         Mounting Debug File System...
         Starting Remount Root and Kernel File Systems...
         Mounting POSIX Message Queue File System...
         Starting Restore / save the current clock...
[  OK  ] Reached target Slices.
         Starting Nameserver information manager...
[  OK  ] Set up automount Arbitrary Executab...ats File System Automount Point.
         Starting Load Kernel Modules...
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Set console keymap.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Restore / save the current clock.
[  OK  ] Started Nameserver information manager.
         Starting Load/Save Random Seed...
         Starting udev Coldplug all Devices...
         Starting Create Static Device Nodes in /dev...
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /tmp...
         Starting udev Kernel Device Manager...
         Starting Apply Kernel Variables...
         Mounting FUSE Control File System...
[  OK  ] Mounted /tmp.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Found device /dev/ttyGS0.
[  OK  ] Reached target Sound Card.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Entropy daemon using the HAVEGE algorithm.
         Starting Journal Service...
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started Journal Service.
[  OK  ] Found device /dev/disk/by-uuid/fd472eba-571d-4583-8873-97f09353655c.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Starting File System Check on /dev/...a-571d-4583-8873-97f09353655c...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started File System Check on /dev/d...eba-571d-4583-8873-97f09353655c.
[  OK  ] Started File System Check Daemon to report status.
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Reached target Local File Systems.
         Starting LSB: AppArmor initialization...
         Starting Set console font and keymap...
         Starting Armbian enhanced Log2Ram...
         Starting Commit a transient machine-id on disk...
         Starting Tell Plymouth To Write Out Runtime Data...
[  OK  ] Started Load/Save RF Kill Switch Status.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Set console font and keymap.
[  OK  ] Started Armbian enhanced Log2Ram.
[FAILED] Failed to start Commit a transient machine-id on disk.
See 'systemctl status systemd-machine-id-commit.service' for details.
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Created slice system-getty.slice.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
[FAILED] Failed to start LSB: AppArmor initialization.
See 'systemctl status apparmor.service' for details.
[  OK  ] Started ifup for wlan0.
         Starting Raise network interfaces...
[  OK  ] Reached target System Time Synchronized.
         Starting Update UTMP about System Boot/Shutdown...
[10037.920800] [STA] !!!xradio_vif_setup: id=0, type=2, p2p=0
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
         Starting Armbian filesystem resize service...
[  OK  ] Started Daily apt activities.
[  OK  ] Reached target Paths.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
         Starting Cleanup of Temporary Directories...
[  OK  ] Started Cleanup of Temporary Directories.
[10039.039249] [STA_WRN] Freq 2447 (wsm ch: 8).
[  OK  ] Started Raise network interfaces.
[10039.188750] [AP_WRN] [STA] ASSOC HTCAP 11N 58
[10039.269411] [AP_WRN] [STA] ASSOC HTCAP 11N 58
[  OK  ] Started Armbian filesystem resize service.
[  OK  ] Reached target Basic System.
         Starting LSB: Start/stop sysstat's sadc...
[  OK  ] Started Regular background program processing daemon.
         Starting System Logging Service...
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started RFID Reader Service.
         Starting Data Parition Mount...
         Starting Save/Restore Sound Card State...
         Starting LSB: Armbian gathering hardware information...
         Starting Login Service...
         Starting Network Manager...
         Starting Permit User Sessions...
         Starting LSB: Starts LIRC daemon....
[  OK  ] Started System Logging Service.
[  OK  ] Started Data Parition Mount.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Save/Restore Sound Card State.
[  OK  ] Started LSB: Start/stop sysstat's sadc.
[  OK  ] Started Network Manager.
[  OK  ] Started LSB: Starts LIRC daemon..
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started Login Service.
         Starting Network Manager Script Dispatcher Service...
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Reached target Network.
         Starting MySQL Community Server...
         Starting OpenBSD Secure Shell server...
         Starting Network Manager Wait Online...
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started Network Manager Script Dispatcher Service.
         Starting Hostname Service...
[  OK  ] Started LSB: Armbian gathering hardware information.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[  OK  ] Started Hostname Service.
         Starting LSB: Set sysfs variables from /etc/sysfs.conf...
         Starting Authenticate and Authorize Users to Run Privileged Tasks...
         Starting WPA supplicant...
[  OK  ] Started LSB: Set sysfs variables from /etc/sysfs.conf.
[  OK  ] Started Network Manager Wait Online.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Authenticate and Authorize Users to Run Privileged Tasks.
[  OK  ] Reached target Network is Online.
         Starting /etc/rc.local Compatibility...
         Starting LSB: Apache2 web server...
         Starting LSB: Start NTP daemon...
         Starting LSB: disk temperature monitoring daemon...
         Starting LSB: Advanced IEEE 802.11 management daemon...
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started LSB: Advanced IEEE 802.11 management daemon.
[  OK  ] Started LSB: disk temperature monitoring daemon.
         Starting Hold until boot process finishes up...
         Starting Terminate Plymouth Boot Screen...
[  OK  ] Started Hold until boot process finishes up.
[  OK  ] Started Terminate Plymouth Boot Screen.
         Starting Set console scheme...
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Serial Getty on ttyGS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Set console scheme.
[  OK  ] Started LSB: Start NTP daemon.
[  OK  ] Started MySQL Community Server.
[  OK  ] Started Access Control Service.

Ubuntu 16.04.1 LTS orangepizero ttyS0

orangepizero login:

Posted

Our system in the field will not have console connected and it is impossible to release with this issue as it just keeps waiting any key to press. Looking for directions to resolve. Have no clue why it keeps waiting for key press to move forward. 

Posted

Any directions what the kernel waits for before we get log "starting version 229"?  and what are possible reasons that without console connected boot progress stop just before this print and moves ahead only when we connect console and press enter.

 

FYI: I am using overlayroot on Ubuntu xenial where I see this behaviour

Posted

Made the progress so just to update/close this thread. It looks like some issue if the wires are connected to FTDI USB TTL and USB is plugged out from laptop. If console wires are detached altogether from OPI Zero, then it boots fine. 

Posted

This is because USB-TTL been un-powered, it acts like a Pull-Down on the RX signal, which is seen as BREAK condition.

Never leave a USB-TTL on header when not in use.

Posted

This is very late reply.   I faced almost same problem with OP Zero.   Ubuntu, Debian both were same.

 

I used compressed air and blow OP Zero, the problem is settled.  

 

I use heat conductive grease to install heat sink.  it seems extra dried grease outside the sink dropped on the board.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines