Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: iw2lsi on February 22, 2013, 10:05:41 AM

Title: olinuxino a13 (slow) boot process
Post by: iw2lsi on February 22, 2013, 10:05:41 AM
Hi all

  I'm working on a olinuxino board with jwischka R15 image... my system takes more than 2 minutes to boot... I wonder if it's normal and if other distros (debian, android etc) are faster.

also... during the boot process I see no log on the attached HDMI monitor... does this depends on the kernel configuration (loglevel or quiet cheat-codes) or it's related to the video interface (LCD vs HDMI) ?

thanks a lot for any hints

           giampaolo

Title: Re: olinuxino a13 (slow) boot process
Post by: JohnS on February 22, 2013, 10:39:52 AM
What do you see on the uart that everyone else uses for debug?

John
Title: Re: olinuxino a13 (slow) boot process
Post by: iw2lsi on February 22, 2013, 12:29:18 PM

hello John

   oh... sorry... I have not yet try attaching a serial device... I'll try this evening.

   anyway... how long does your boot process takes ?

         best regards

             Giampaolo
Title: Re: olinuxino a13 (slow) boot process
Post by: yt7pwr on February 22, 2013, 12:57:29 PM
Read dmesg (each line have timestamp, it's very easy to find stall period). You did not say which A13 board but my A13 WiFi can boot much longer if wireless connection is not established until DHCP timeout. Also use class 10 SD card.
Title: Re: olinuxino a13 (slow) boot process
Post by: jwischka on February 23, 2013, 06:10:00 PM
Quote from: iw2lsi on February 22, 2013, 12:29:18 PM

hello John

   oh... sorry... I have not yet try attaching a serial device... I'll try this evening.

   anyway... how long does your boot process takes ?

         best regards

             Giampaolo

Are you using a slow SD card? Mine boots in about 10 seconds.
Title: Re: olinuxino a13 (slow) boot process
Post by: iw2lsi on February 26, 2013, 10:14:06 PM

Hi...

   I finally got my serial cable and I'm now able to see where the system lost it's time... well... it's at the very end of the boot process... after mounting the swap and before showing the login prompt.

I don't think it's related to the sdcard... a sandisk ULTRA 8GB HC1

attached is my log

  best regards

          Giampaolo


Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Linux version 3.4.29-jwischka-3.4-video-20130209-R15+ (root@jeff-ThinkPad-T420) (gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-1ubuntu1) ) #20 PREEMPT Sat Feb 9 17:57:12 ES
T 2013
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun5i
[    0.000000] Memory Reserved:
[    0.000000]  SYS  : 0x43000000 - 0x4300ffff  (  64 kB)
[    0.000000]  LCD  : 0x5a000000 - 0x5bffffff  (  32 MB)
[    0.000000]  VE   : 0x44000000 - 0x48ffffff  (  80 MB)
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] chip-id: Unknown (AW1625)
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c075ae48, node_mem_map c0803000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 130048 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc:
Title: Re: olinuxino a13 (slow) boot process
Post by: iw2lsi on February 27, 2013, 12:03:03 AM

uh... could it be that the delay is caused by the starts of xfce ?

as I don't need X, is there a way to disable it ?

I've try to comment all entries in /home/olinuxino/.vnc/xstartup but with no effects

       giampaolo
Title: Re: olinuxino a13 (slow) boot process
Post by: iw2lsi on February 27, 2013, 01:35:52 AM

just an update

looking at the following log, the problem seems related to init/login that is not propertly terminated.

  giampaolo

Feb 26 22:59:54 ubuntu kernel: [    4.130000] init: gator-daemon main process (139) terminated with status 1
Feb 26 22:59:56 ubuntu kernel: [    5.770000] asix 2-1.1:1.0: eth0: register 'asix' at usb-sw-ehci-1.1, ASIX AX88772 USB 2.0 Ethernet, 00:80:80:8a:64:14
Feb 26 22:59:56 ubuntu kernel: [    5.770000] usbcore: registered new interface driver asix
Feb 26 23:01:57 ubuntu kernel: [  127.240000] asix 2-1.1:1.0: eth0: link down
Feb 26 23:01:57 ubuntu kernel: [  127.250000] init: tty1 main process (456) killed by TERM signal
Feb 26 23:01:59 ubuntu kernel: [  128.910000] asix 2-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
Title: Re: olinuxino a13 (slow) boot process
Post by: jwischka on February 27, 2013, 04:27:07 PM
It only starts XFCE in a VNC window. It shouldn't delay.

What happens if you hit enter at the 4 second mark? (during the two minute delay)

Quote from: iw2lsi on February 27, 2013, 12:03:03 AM

uh... could it be that the delay is caused by the starts of xfce ?

as I don't need X, is there a way to disable it ?

I've try to comment all entries in /home/olinuxino/.vnc/xstartup but with no effects

       giampaolo
Title: Re: olinuxino a13 (slow) boot process
Post by: iw2lsi on February 27, 2013, 04:46:46 PM
Hello jwischka

  pressing return/enter does nothing, either when connected via serial port or via a wired keyboard

  I really do not understand what's happen... the message: "init: tty1 main process (456) killed by TERM signal"

  is normal ?

       thanks

             Giampaolo
Title: Re: olinuxino a13 (slow) boot process
Post by: iw2lsi on February 28, 2013, 10:13:34 AM

Hi...

   I've formatted my sd-card and moving from R15 to R17 but with the same results
   the system boots in about 5 seconds and then "sleep" for 2 minutes and then show the login.
   I'll try again with a different size sd-card (the current one is 8GB)

           Giampaolo
Title: Re: olinuxino a13 (slow) boot process
Post by: Lurch on February 28, 2013, 11:42:03 AM
Looks suspiciously like a network problem (i.e. timeout). Just out of curiosity, are you sure that the network values (MAC, IP, Mask, Nameserver) are correct for your network?
Title: Re: olinuxino a13 (slow) boot process
Post by: iw2lsi on February 28, 2013, 11:54:39 AM

Hi Lurch

  maybe you are right... just some notes:

  the problem comes with/without the usb to ethernet converter attached

  when I boot R17 the first time, network is not up... normally I enable it manually using ifconfig/route

  in R15 I add ifconfig/route commands in rc.local... but maybe they where executed too late in the boot process

   where is the right place to set the IP address statically ?

       Giampaolo
Title: Re: olinuxino a13 (slow) boot process
Post by: iso9660 on February 28, 2013, 01:38:49 PM
The only reason I got a general slowdown with the A13 Micro was when I compiled my own u-boot with the sources in https://github.com/linux-sunxi/u-boot-sunxi
Now I'm using the u-boot files from Hans de Goede's Fedora 18 spin.
Title: Re: olinuxino a13 (slow) boot process
Post by: jwischka on February 28, 2013, 02:30:58 PM
Quote from: iw2lsi on February 28, 2013, 11:54:39 AM

Hi Lurch

  maybe you are right... just some notes:

  the problem comes with/without the usb to ethernet converter attached

  when I boot R17 the first time, network is not up... normally I enable it manually using ifconfig/route

  in R15 I add ifconfig/route commands in rc.local... but maybe they where executed too late in the boot process

   where is the right place to set the IP address statically ?

       Giampaolo

Editing the /etc/network/interfaces (http://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/) file.

Try that on R17 (removing whatever you did in rc.local) and see if it boots faster.
Title: Re: olinuxino a13 (slow) boot process
Post by: iw2lsi on February 28, 2013, 11:46:18 PM

Hello jwischka
   
   damn me... you where right... the problem was that R15/R17 try to start the wifi interface...

   removing wifi entries in /etc/interfaces solve the problem...

   thanks a lot for your help

           Giampaolo