Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A10 => Topic started by: codec on May 16, 2014, 02:01:30 am

Title: A10 lime not booting of SD Card
Post by: codec on May 16, 2014, 02:01:30 am
I wrote the 4 GB Image downloaded from the wiki to an SD-Card, which had been an SD card for A20.
I used Win32DiskImager to write it to the SD Card using a Logilink USB to SD-card writer.
I can see the FAT32 partition on windows. When I try to start the lime with this SD-card nothing really happens. Nothing to bee seen on HDMI screen, Blinking of EThernet interface stops after a second... that's it.
What am I doing wrong??
What can I do to find out what might be wrong??

Thanks in advance

codec
Title: Re: A10 lime not booting of SD Card
Post by: MBR on May 16, 2014, 10:36:56 am
I'm not sure how Win32DiskImager works (I don't have Windows), but if it does the same as commands like dd (so it writes the exact disc image, whole device bit-for-bit), the culprit may be the SD card itself. See, for example, a RPi page about SD card compatibility at http://elinux.org/RPi_SD_cards (http://elinux.org/RPi_SD_cards). Some cards will just work, some won't. Try another one. When I was trying my A13 MICRO for the very first time, I picked the only card which does not work with it (Murphy laws in action :-) ). And some card readers have compatibily issues too, the best ones are those from card manufacturers.
Title: Re: A10 lime not booting of SD Card
Post by: codec on May 16, 2014, 12:00:18 pm
Good point, but the SD I used was an "original" Olimex SD which had been used for my A20, thus it should be working on the lime too I suppose.
I just tried a transcend SD with 16GB, same problem.
No signal on HDMI, first the ethernet shows a link and activity then after 5 to 10 seconds no other LED's are lit than the power LED.

Any more suggestions???

Thanks

codec
Title: Re: A10 lime not booting of SD Card
Post by: Lurch on May 16, 2014, 12:42:51 pm
Without the boot output from uart0 it's going to be hard to find the problem.
You really need a USB-TTL Usart converter to see what's going on.
Then you can also probably use boot commands.
5-10 seconds before dying might indicate that it's probably getting pretty far along in the boot process.
Title: Re: A10 lime not booting of SD Card
Post by: LubOlimex on May 19, 2014, 09:34:29 am
Hey there,

Test with these two images (I believe you have already tried with the first one, so you might skip that):

1. Debian: https://drive.google.com/file/d/0B-bAEPML8fwlZWMtZHZCNVNoYTQ/edit?usp=sharing (https://drive.google.com/file/d/0B-bAEPML8fwlZWMtZHZCNVNoYTQ/edit?usp=sharing)
2. Android: https://drive.google.com/file/d/0B-bAEPML8fwlVy02LXYxMmlqUTg/edit?usp=sharing (https://drive.google.com/file/d/0B-bAEPML8fwlVy02LXYxMmlqUTg/edit?usp=sharing)

If the problem persists with both the images it might be a hardware problem. In such case I recommend you to send an e-mail at support@olimex.com.

Best regards,
Lub/OLIMEX
Title: Re: A10 lime not booting of SD Card
Post by: codec on May 20, 2014, 01:24:58 am
Hello,

the system is only booting with no ethernet connected and no HDMI connected.
Here's the log of the boot with ethernet connected and the original olimex power supply no HDMI:

U-Boot SPL 2014.01-rc1-09130-g4e491b0 (Dec 12 2013 - 15:15:19)<\r><\n>
Board: A10-OLinuXino-Lime<\r><\n>
DRAM: 512 MiB<\r><\n>
CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2<\r><\n>
spl: not an uImage at 1600<\r><\n>
<\r><\n>
<\r><\n>
U-Boot 2014.01-rc1-09130-g4e491b0 (Dec 12 2013 - 15:15:19) Allwinner Technology<\r><\n>
<\r><\n>
CPU:   Allwinner A10 (SUN4I)<\r><\n>
Board: A10-OLinuXino-Lime<\r><\n>
I2C:   ready<\r><\n>
DRAM:  512 MiB<\r><\n>
MMC:   SUNXI SD/MMC: 0<\r><\n>
In:    serial<\r><\n>
Out:   serial<\r><\n>
Err:   serial<\r><\n>
Net:   emac<\r><\n>
Hit any key to stop autoboot:  3 <\b><\b><\b> 2 <\b><\b><\b> 1 <\b><\b><\b> 0 <\r><\n>
reading uEnv.txt<\r><\n>
104 bytes read in 3 ms (33.2 KiB/s)<\r><\n>
Loaded environment from uEnv.txt<\r><\n>
reading boot.scr<\r><\n>
337 bytes read in 3 ms (109.4 KiB/s)<\r><\n>
Jumping to boot.scr<\r><\n>
## Executing script at 44000000<\r><\n>
reading script.bin<\r><\n>
49804 bytes read in 7 ms (6.8 MiB/s)<\r><\n>
reading uImage<\r><\n>
4408744 bytes read in 199 ms (21.1 MiB/s)<\r><\n>
## Booting kernel from Legacy Image at 48000000 ...<\r><\n>
   Image Name:   Linux-3.4.67+<\r><\n>
   Created:      2013-12-14  13:12:26 UTC<\r><\n>
   Image Type:   ARM Linux Kernel Image (uncompressed)<\r><\n>
   Data Size:    4408680 Bytes = 4.2 MiB<\r><\n>
   Load Address: 40008000<\r><\n>
   Entry Point:  40008000<\r><\n>
   Verifying Checksum ... OK<\r><\n>
   Loading Kernel Image ... OK<\r><\n>
<\r><\n>
Starting kernel ...<\r><\n>
<\r><\n>
<6>Booting Linux on physical CPU 0<\n><\r><6>Initializing cgroup subsys cpuset<\n><\r><5>Linux version 3.4.67+ (root@debian) (gcc version 4.7.1 (Debian 4.7.1-7) ) #4 PREEMPT Sat Dec 14 15:12:10 EET 2013<\n><\r>CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d<\n><\r>CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache<\n><\r>Machine: sun4i<\n><\r><6>Memory cut off:<\n><\r><6><9>MALI : 0x5c000000 - 0x5fffffff  (  64 MB)<\n><\r><4>Ignoring unrecognised tag 0x00000000<\n><\r><6>Memory Reserved:<\n><\r><6><9>SYS  : 0x43000000 - 0x4300ffff  (  64 kB)<\n><\r><6><9>VE   : 0x44000000 - 0x48ffffff  (  80 MB)<\n><\r><6><9>LCD  : 0x5a000000 - 0x5affffff  (  16 MB)<\n><\r>Memory policy: ECC disabled, Data cache writeback<\n><\r><6>sunxi: Allwinner A10 revision C (AW1623/sun4i) detected.<\n><\r><7>On node 0 totalpages: 114688<\n><\r><7>free_area_init_node: node 0, pgdat c0844e88, node_mem_map c0a0d000<\n><\r><7>  Normal zone: 896 pages used for memmap<\n><\r><7>  Normal zone: 0 pages reserved<\n><\r><7>  Normal zone: 113792 pages, LIFO batch:31<\n><\r><7>pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768<c><\n><\r><7>pcpu-alloc: <c>
Title: Re: A10 lime not booting of SD Card
Post by: codec on May 20, 2014, 01:25:47 am
I tried the android image you suggested, with ethernet connected it doesn't boot either:

U-Boot SPL 2013.10-rc2-08405-g1b1908c-dirty (Nov 19 2013 - 16:46:29)<\r><\n>
Board: A10-OLinuXino-Lime<\r><\n>
DRAM: 512 MiB<\r><\n>
CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2<\r><\n>
spl: not an uImage at 1600<\r><\n>
<\r><\n>
<\r><\n>
U-Boot 2013.10-rc2-08405-g1b1908c-dirty (Nov 19 2013 - 16:46:29) Allwinner Technology<\r><\n>
<\r><\n>
CPU:   Allwinner A10 (SUN4I)<\r><\n>
Board: A10-OLinuXino-Lime<\r><\n>
I2C:   ready<\r><\n>
DRAM:  512 MiB<\r><\n>
MMC:   SUNXI SD/MMC: 0<\r><\n>
*** Warning - bad CRC, using default environment<\r><\n>
<\r><\n>
In:    serial<\r><\n>
Out:   serial<\r><\n>
Err:   serial<\r><\n>
Net:   emac<\r><\n>
Hit any key to stop autoboot:  3 <\b><\b><\b> 2 <\b><\b><\b> 1 <\b><\b><\b> 0 <\r><\n>
reading uEnv.txt<\r><\n>
225 bytes read in 3 ms (73.2 KiB/s)<\r><\n>
Loaded environment from uEnv.txt<\r><\n>
reading boot.scr<\r><\n>
** Unable to read file boot.scr **<\r><\n>
Failed to mount ext2 filesystem...<\r><\n>
** Unrecognized filesystem type **<\r><\n>
Failed to mount ext2 filesystem...<\r><\n>
** Unrecognized filesystem type **<\r><\n>
Failed to mount ext2 filesystem...<\r><\n>
** Unrecognized filesystem type **<\r><\n>
reading script.bin<\r><\n>
49868 bytes read in 6 ms (7.9 MiB/s)<\r><\n>
reading uImage<\r><\n>
4006424 bytes read in 193 ms (19.8 MiB/s)<\r><\n>
## Booting kernel from Legacy Image at 48000000 ...<\r><\n>
   Image Name:   Linux-3.0.8+<\r><\n>
   Created:      2014-02-04  21:26:44 UTC<\r><\n>
   Image Type:   ARM Linux Kernel Image (uncompressed)<\r><\n>
   Data Size:    4006360 Bytes = 3.8 MiB<\r><\n>
   Load Address: 40008000<\r><\n>
   Entry Point:  40008000<\r><\n>
   Verifying Checksum ... OK<\r><\n>
   Loading Kernel Image ... OK<\r><\n>
<\r><\n>
Starting kernel ...<\r><\n>
<\r><\n>
DRAM: 512<\0>

Title: Re: A10 lime not booting of SD Card
Post by: codec on May 20, 2014, 01:33:49 am
When I disconnect Ethernet and try to boot, with no HDMI, it ends up like this:

U-Boot SPL 2013.10-rc2-08405-g1b1908c-dirty (Nov 19 2013 - 16:46:29)<\r><\n>
Board: A10-OLinuXino-Lime<\r><\n>
DRAM: 512 MiB<\r><\n>
CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2<\r><\n>
spl: not an uImage at 1600<\r><\n>
...
DRAM: 512[    0.000000] Linux version 3.0.8+ (root@bundie) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50) ) #9 PREEMPT Tue Feb 4 23:26:30 EET 2014<\r><\n>
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f<\r><\n>
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache<\r><\n>
[    0.000000] Machine: sun4i<\r><\n>
[    0.000000] Total Detected Memory: 512MB with 1 banks<\r><\n>
[    0.000000] Ignoring unrecognised tag 0x00000000<\r><\n>
[    0.000000] Memory Reserved(in bytes):<\r><\n>
[    0.000000] <9>LCD: 0x5a000000, 0x02000000<\r><\n>
[    0.000000] <9>SYS: 0x43000000, 0x00010000<\r><\n>
[    0.000000] <9>G2D: 0x58000000, 0x01000000<\r><\n>
[    0.000000] <9>VE : 0x44000000, 0x05000000<\r><\n>
[    0.000000] <9>VE : 0x49000000, 0x01000000<\r><\n>
[    0.000000] Memory policy: ECC disabled, Data cache writeback<\r><\n>
[    0.000000] On node 0 totalpages: 114688<\r><\n>
[    0.000000] free_area_init_node: node 0, pgdat c07b5918, node_mem_map c097a000<\r><\n>
[    0.000000]   Normal zone: 896 pages used for memmap<\r><\n>
[    0.000000]   Normal zone: 0 pages reserved<\r><\n>
[    0.000000]   Normal zone: 113792 pages, LIFO batch:31<\r><\n>
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768<\r><\n>
[    0.000000] pcpu-alloc:
Title: Re: A10 lime not booting of SD Card
Post by: codec on May 22, 2014, 05:57:04 pm
Well... I figured out what was going wrong myself.  :o

The power supply I ordered from Olimex was to weak. I've now added some power to the board with an USB cable connected to the OTG USB port, now it is booting and working fine.
As it was an original powersupply from Olimex, I tested this close before sending the board back....

Thanks for your thoughts

codec
Title: Re: A10 lime not booting of SD Card
Post by: otyugh on May 23, 2014, 02:43:28 am
You took the 6V instead of 12V power supply ?
Or is that the "chinese version" that is deficient ?