Jump to content
  • 0

Olimex Lime 2 eMMC “reboots”/powers down on every power up


hook
 Share

Question

I’ve recently ran into this where whenever I power up my Olimex Lime 2 eMMC with Armbian, it powers down before it propretly starts. Here’s what I managed to observe so far. Armbian version …em, latest at this stage, I guess, it’s a bit hard to check exactly right now ;)

 

  1. press power on button, it powers on
  2. via HDMI I see the Armbian boot logo
  3. some early boot messages pop up and ends with “Starting kernel ....” (Loading init Ramdisk seems OK, loading of device tree also OK)
  4. it goes back to black screen with Armbian logo and the _ blinking
  5. for a very short time I see an error with a long number and saying something about ”rebooting again”
  6. it powers down by itself

 

I tried to reboot with and without the external SATA disk attached as well as other with the battery plugged in or not, and everything leads to the same result.

 

Edited by hook
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Oddly enough, after I managed to connect it via UART/serial, it just stopped rebooting itself. (the reboot in the log below was triggered by me with `shutdown`)

 

The only noticeable issue I found so far is the CRC warning at the beginning, but I’m fairly sure I’m running it all from the external 2.5" HDD.

 

Any ideas?

 

U-Boot SPL 2017.05-armbian (Jun 15 2017 - 02:55:35)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC2


U-Boot 2017.05-armbian (Jun 15 2017 - 02:55:35 +0200) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: Olimex A20-OLinuXino-LIME2-eMMC
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 1, SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
SCSI:  Target spinup took 0 ms.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst 
Net:   eth0: ethernet@01c50000
Hit any key to stop autoboot:  0 
6944 bytes read in 168 ms (40 KiB/s)
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2092 bytes read in 184 ms (10.7 KiB/s)
## Executing script at 43100000
Booting from eMMC or secondary SD
146 bytes read in 80 ms (1000 Bytes/s)
6328370 bytes read in 687 ms (8.8 MiB/s)
7497384 bytes read in 768 ms (9.3 MiB/s)
0 bytes read in 142 ms (0 Bytes/s)
40538 bytes read in 538 ms (73.2 KiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6328306 Bytes = 6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Ramdisk to 499f7000, end 49fffff2 ... OK
   Loading Device Tree to 499ea000, end 499f6e59 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Loading, please wait...
Starting version 241
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.
Warning: fsck not present, so skipping root file system
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

Welcome to Debian GNU/Linux 10 (buster)!

[  OK  ] Set up automount Arbitrary…s File System Automount Point.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Created slice system-getty.slice.
[  OK  ] Listening on Journal Socket.
         Starting Restore / save the current clock...
         Starting Load Kernel Modules...
         Mounting Kernel Debug File System...
         Starting Remount Root and Kernel File Systems...
         Starting Create list of re…odes for the current kernel...
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Listening on udev Kernel Socket.
         Starting Set the console keyboard layout...
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Created slice system-systemd\x2dfsck.slice.
         Starting Journal Service...
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Slices.
[  OK  ] Created slice system-postgresql.slice.
         Mounting POSIX Message Queue File System...
         Starting udev Coldplug all Devices...
[  OK  ] Started Restore / save the current clock.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Create list of req… nodes for the current kernel.
[  OK  ] Mounted POSIX Message Queue File System.
         Starting Load/Save Random Seed...
         Starting Create System Users...
         Mounting Kernel Configuration File System...
         Starting Apply Kernel Variables...
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Create System Users.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Set the console keyboard layout.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Coldplug all Devices.
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Helper to synchronize boot up for ifupdown.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Found device /dev/disk/by-…1-7f59-4dd5-8991-8f6c2f2157af.
[  OK  ] Found device WDC_WD10JFCX-68N6GN0 1.
[  OK  ] Found device WDC_WD10JFCX-68N6GN0 2.
         Mounting /srv...
         Mounting /home...
         Activating swap /dev/sda1...
[  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
         Starting File System Check…7f59-4dd5-8991-8f6c2f2157af...
[  OK  ] Mounted /srv.
[  OK  ] Mounted /home.
[  OK  ] Activated swap /dev/sda1.
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Reached target Swap.
         Mounting /tmp...
[  OK  ] Mounted /tmp.
[  OK  ] Started File System Check …1-7f59-4dd5-8991-8f6c2f2157af.
         Mounting /media/mmcboot...
[  OK  ] Mounted /media/mmcboot.
         Mounting /boot...
[  OK  ] Mounted /boot.
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
         Starting Set console font and keymap...
         Starting Raise network interfaces...
[  OK  ] Started ifup for eth0.
[  OK  ] Started Set console font and keymap.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Entropy daemon using the HAVEGE algorithm.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started watches the cert bundle.
[  OK  ] Started Daily man-db regeneration.
[  OK  ] Started watch blog for changes.
[  OK  ] Reached target Paths.
[  OK  ] Started Clean PHP session files every 30 mins.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Deferred execution scheduler...
[  OK  ] Started Self Monitoring an…ing Technology (SMART) Daemon.
         Starting LSB: Armbian gathering hardware information...
         Starting Resets System Activity Data Collector...
[  OK  ] Started Regular background program processing daemon.
         Starting LSB: Load kernel …d to enable cpufreq scaling...
         Starting System Logging Service...
[  OK  ] Started Handle events from…R remotes decoded by lircd(8).
[  OK  ] Started D-Bus System Message Bus.
         Starting WPA supplicant...
         Starting Network Manager...
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Run certbot twice daily.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Reached target Timers.
         Starting Login Service...
[  OK  ] Started Deferred execution scheduler.
[  OK  ] Started Resets System Activity Data Collector.
[  OK  ] Started System Logging Service.
[  OK  ] Started LSB: Load kernel m…ded to enable cpufreq scaling.
[  OK  ] Started Login Service.
[  OK  ] Started Raise network interfaces.
[  OK  ] Started LSB: Armbian gathering hardware information.
[  OK  ] Started WPA supplicant.
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started LSB: set CPUFreq kernel parameters.
         Starting LSB: Set sysfs variables from /etc/sysfs.conf...
[  OK  ] Started Network Manager.
[  OK  ] Started LSB: Set sysfs variables from /etc/sysfs.conf.
         Starting Hostname Service...
         Starting Network Manager Wait Online...
[  OK  ] Reached target Network.
         Starting A high performanc… and a reverse proxy server...
         Starting OpenBSD Secure Shell server...
         Starting PostgreSQL Cluster 11-main...
         Starting Advanced key-value store...
         Starting The PHP 7.0 FastCGI Process Manager...
         Starting The PHP 7.3 FastCGI Process Manager...
         Starting Network Time Service...
         Starting PostgreSQL Cluster 9.6-main...
         Starting Permit User Sessions...
[  OK  ] Started Unattended Upgrades Shutdown.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started Hostname Service.
[  OK  ] Started Network Time Service.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started Advanced key-value store.
         Starting Authorization Manager...
[  OK  ] Started Network Manager Wait Online.
[  OK  ] Reached target Network is Online.
         Starting /etc/rc.local Compatibility...
         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 Serial Getty on ttyS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started LSB: disk temperature monitoring daemon.
[  OK  ] Started Authorization Manager.
[FAILED] Failed to start PostgreSQL Cluster 9.6-main.
See 'systemctl status postgresql@9.6-main.service' for details.
[  OK  ] Started The PHP 7.0 FastCGI Process Manager.
[  OK  ] Started A high performance…er and a reverse proxy server.
[  OK  ] Started The PHP 7.3 FastCGI Process Manager.

Debian GNU/Linux 10 juno ttyS0

juno login:

 

Link to comment
Share on other sites

Open source development is fun. Join Armbian Linux development team today!

  • 0
Posted (edited)

I was actually starting to wonder if it’s the battery. Will look into it, thanks :)

 

How do I figure out if it is faulty, BTW?

 

If I `cat` the files in `\/sys/power/axp_pmu/battery/*` I get:

 

capacity = 99

 

charge = 3827848

 

voltage = 4208600

 

ts_voltage = 2400

Edited by hook
added actual question
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...