Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: danielr on August 30, 2014, 04:38:20 AM

Title: plugged it in and nothing happened
Post by: danielr on August 30, 2014, 04:38:20 AM
Hello,

I've received my new A20-OlinuXino-Lime board (the one without NAND flash) today, but I appear to have fallen at the first hurdle.

following instructions for the lime in the Wiki, I've downloaded the Debian image from the drive.google.com link.
the file appears to be the full file (988MB in size) and downloads without error.

the image unpacks happily enough using 7Zip to an .img file.
and win32diskimager writes the image to an SD microcard with no worries.

then I come to plug the device in.
I started trying to use a USB cable plugged into a USB port on my laptop, that didn't work, now i've resorted to using a 5v 2A power supply (tablet charger) the output of that charger is USB and I am again trying to use the OTG port to power the device. -like the Wiki says I should be able to.

I know that the SD card is good (I can boot my rasperry pi using it in an adapter.) -SD card is a Samsung branded 64GB class 10 card.
I know that the power supply is good - I can measure that.



When I plug the device in... if I have a network cable attached, then I see network lights, and a flashing light (see below), if I unplug the network then just the flashing light.

There is a green light (shown as Status light on the wiki picture ) and LED1 on the silk screen that blinks twice in rapid succession, then goes off, then blinks twice goes off.

It does this at a rate of 84bpm (yes I used a tap metronome on my phone to measure it in case it was important)

Aside from that, there is nothing, nothing on the screen, (HDMI).

To be honest it's a bit of a disappointment/let down - Can't quite understand how and why it's not just working out of the box!



Any ideas where I've gone wrong or what to look at next?

I'm guessing that I need to dig out a serial cable and look at the UART0?

if I have to do that can someone confirm what the port settings are for speed parity flow control etc will be?


Many many thanks,
Danny.
Title: Re: plugged it in and nothing happened
Post by: Lurch on August 30, 2014, 06:36:23 AM
Can't help much, I only have the A20-Micro boards.
UART0 is for all boards 115200 Baud, no parity, 1 stop bit. The output is usually very helpful in finding problems.
The green LED blinking once per second on A20-Micro means the board is booting/booted.
Title: Re: plugged it in and nothing happened
Post by: kaloyan on August 30, 2014, 10:20:08 AM
I have the same issue, as you.
Since my cards are slower(4GB, class 2), I have left the device for some minutes,
but again nothing happened.

The network lights are from packets comming into the device, nothing goes out.
I have attached it to my laptop and capture traffic  with tcpdump.

I have the A20-Olinuxino-Lime-4Gb, use 5V/2.5A to the power connector.
Title: Re: plugged it in and nothing happened
Post by: JohnS on August 30, 2014, 12:39:22 PM
Without looking at debug on the uart you've no data.

(Common problems are expecting HDMI from an image that does VGA or writing the IMG wrongly.  Another is bad PSU.)

John
Title: Re: plugged it in and nothing happened
Post by: klausbm on August 30, 2014, 01:42:22 PM
Hello Danny,

on page 21 of the A10-OLINUXINO-LIME manual it is written "The board works with micro SDHC cards up to 32GB of storage."
You are trying to use "-SD card is a Samsung branded 64GB class 10 card". Maybe you have to try out another SD card.

Klaus
Title: Re: plugged it in and nothing happened
Post by: danielr on August 31, 2014, 06:41:46 PM
Well, I changed memory cards, and still no joy regarding getting a picture on the display.

I'm now using a branded Sandisk 16GB card, this time class 4 rather than 10, but it should still work (according to the WIKI) just slower...


I've dug out a USB serial converter, and the db9 to three pin lead that I made up years ago.

I am getting some kind of output in the putty terminal window, but it's not clear what that output actually is...

It just looks like a mess! full of weird characters, appears to scroll backwards at times.

¿c!75                                                                         åØ6}/-5­ëå-7A%=¿753='¿¿%-#-%%¿¿åØ6m#--='-7£ëåí}77--!#='¿5y_U¿-#3!¿7¿-/¿=''£ëåàc[Am[]Y
¿9=99ëå8m#--='--;-#1¿75'=57¿5=9'!9-#1¿91;eo
åàm#--='-      -#1¿91;                     §¿!'-!#¿¿55
¿75-95ëåÀØ6m#--='-
¿35               -#1¿91;
   5åm#--='-
¿;')-!ëåpm#--='-91;
5!åØ6y_U¿/=7¿¥1/¿¿y_Uëå8Ye_¿W!='¿!3¿5!=9-=57¿¯£¿{!1!em_Y­£ëåØ675%3¿-#--='-¿¿=-9¿-75F-
¿ëåØ6we}¿=''!9=57¿¿i-{¿!!'¿3!=!%-9¿9!/5#¿=''!9=-!#ëå²°)TÛÚ5=)!-#¿3!#7¿¿¯©57­¿;=)!-#¿=#7¿¿=9/!-#¿1-5ëåÀØ6/¥;=)!-#¿%=-%%¿=9/!-#¿-
5£ëåpI99¥-#3E¿=¿9'!9)¿%=#=15-#-ëåI99¥-#3E¿=A99A-#-ëåØ6I99¥-#3E¿99!#3-1¿''¿!¿eo
                                                                              ëå8I99¥-#3E¿99!#3-1¿''¿!¿eo                         eo
                    ëå<I99¥-#3E¿99!#3-1¿''¿!¿  ëåpI99¥-#3E¿99!#3-1¿''¿!¿eo
                                                                          ëåØ6m#-¿5q!#¿-#¿%!7'5¿¦ëåØ6;-!¿9=5¿'=;¿;-!¥¿=¿ëåØ6#-A1-!¿7-#-¿51-57¿q_ma¿5%¿-#--='-
                                                                        57ëåX6'-;==¿55­ëå²°U}-¿o=/¿=;'5¿9!#3-17¿¯5=;'-/57¿¿;-#7¿­ëåWy_¿#!¿1-57ëåpUw_¿/=/¿=;'5¿5#¿¿¯!5¿5­ëå¿7¿#=%57¿UcmO¿!9)5¿#!%!7'5£ëåØ6[_y¿[51-57¿7¿#!%!7'5£ëå[_y¿[51-57¿9¿#!%!7'5£ëå[_y¿[51-57¿9¿csY£#!%!7'5£ëåØ6=7-¿-#--='-5¿755957ëåØ6cuW¿[51-57¿!'¿3=%-'
5ëåØ6cWsY¿7-!#¿£­ëåØ6%1%#-¿/=¿;55#¿5¿!¿ëåX6='1¿9!%¿y!%-!#¿5¿'
¿=7-¯£¿¿¯!5§¿                                                !¥15#5¿!¿'5#¿
5YyYm¿15#56-9¿¯;1­¿75£¿'!=757¿¯%=+!ëåp-!¿9/57'5#!!¿1-57ëåÀØ6-!¿9/57'575=7'-#5¿1-57ëåÀØ6-!¿9/57'593¿1-57¿¯753='­ëåØ6#-¿7-¿7'!=757¿¯¡75¡7-¿=-¿'¿¡¿7¿¿!¿m[]¿/=¿7-=;'57ëåØ6I=
¿57¿=-#3!£¿E¿5'¿5¿¿-¿%=;=5¿ëå
Not useful!

I'm guessing that there is something wrong with either the settings or the serial adapter.

Settings are:
Baud: 115200
data bits: 8
Stop bits: 1
Parity: none
Flow control: none

I'm using putty, with the serial port as com9 on the laptop (checked in device manager)


The serial adapter that I'm using is quite old.
It's case suggests it's a U232-P9 adapter, but it is a TTL adaptor, and so should work.

I've got a new one arriving from ebay in a few weeks to rule that out as well.



I could perhaps see the issue when I was trying to use a card that was too big to be supported, but now I'm using a card of correct size (half max), with the image downloaded straight from the link provided on the Olimex site.

Can anyone confirm that the default image is meant to have HDMI enabled?




Title: Re: plugged it in and nothing happened
Post by: dave-at-axon on September 01, 2014, 08:53:12 AM
A search on Google shows that the U232-P9 is an RS232 level device.

Does it have a DB9 connector on the end? If it does, it will most likely be RS232 levels and would explain the corrupted data.

I hope you didn't connect the TX line to the RX input on the A20? That would be bad as it will put +-12V onto the 3.3V IO pin and that is not good. :(
Title: Re: plugged it in and nothing happened
Post by: danielr on September 01, 2014, 12:25:39 PM
Thankfully no, I haven't swapped around the pins.

I guess I'll just wait for a new serial adapter to come...
Title: Re: plugged it in and nothing happened
Post by: JohnS on September 01, 2014, 01:03:57 PM
If you connected a +- 12V pin then probably damaged the A20, sadly.

John
Title: Re: plugged it in and nothing happened
Post by: danielr on September 01, 2014, 03:24:54 PM
well... It's worth trying at least before giving up.

Though to be honest, I think that the adapter I have is a cheaper version without the charge pump circuitry, there are a lot of unpopulated spaces on the board, I'll have a look with a scope and see what sort of voltages are present...


I've ordered a cable from Olimex, mostly as I'll "trust it" to work with the device, and secondly because it should arrive by tomorrow. (so no need to wait the near month it seems to take stuff to arrive if ordered from China.)



I'd be very frustrated if it is broken or damaged...
not least because I should never have had to connect this cable in the first place!

A brand new board, used with a good SD card flashed moments before with the image supplied and recommended by the vendor should just work!
The fact that it doesn't is a pretty poor show from Olimex and points to a lack of testing somewhere.
there is a thread asking how they can improve their images, and compete with the Raspberry pi. -well testing that they work would be a start!


At the moment the board is still behaving in the same way as it was before attaching anything, sort of looking like it might be doing something, but having no output on the screen and just a regular flashing LED. no output on the TV using HDMI.


This isn't the first thread on these forums that questions why the lime board fails to boot from SD, and other threads suggest that if you didn't get the NAND equipped version (enabling you to do a warm reboot) then there may be no way to boot the board at all?
Title: Re: plugged it in and nothing happened
Post by: JohnS on September 01, 2014, 04:05:09 PM
Most if not all problems posted have not been the board.  They've been bad power, wrongly written SD, wrong image put on the SD, etc.

I think you'll find that Olimex test every board.

John
Title: Re: plugged it in and nothing happened
Post by: danielr on September 01, 2014, 06:53:21 PM
OK,

I used a 5v 2A capable supply.
With a mini USB plugged into the USB OTG port.

This would give a total available power of 10w which is more than the board draws according to the wiki

https://www.olimex.com/wiki/A20-OLinuXino-LIME

The wiki specifies an image.
https://drive.google.com/file/d/0B-bAEPML8fwlV0RsenB6cXBqSWM/edit?usp=sharing

To be downloaded and written to an SD card. The wiki didn't specify that there was a maximum size, So at first I used a 64GB card, but have since used a 16GB card.

The wiki (the only documentation on the main Olimex site) says that HDMI should be enabled, but it appears to show nothing. -there is a suggestion that the video output is only enabled after the system is booted, which may explain the issues I'm having.


I guess my point is.
the SD Card is fine, it was and is working perfectly fine to boot a raspberry pi (with the correct image for that of course)
The TV and HDMI cables are fine and working with the Raspberry pi,
The power supply is fine and again working with the Pi.


I have followed the documentation "to the letter" and the board just doesn't work in the way that it is supposed to -i.e there is no display. and I can't tell what the problem is without buying further equipment.

For "some reason" this board is not booting correctly (problem with the image), or is booting correctly but is not working (problem with the hardware).


The "other thread" that I talked about.
the poster said that thy bought a board (call it board A) and the micro power supply, the fried the board then realised what they had done.
So they bought board B and a Lime power supply. and the board doesn't work. not that they fried both boards of tried to make the fried board work again.

Olimex may well test all boards, but this is at least the second thread started in August that points to failure to boot the stock image, when the (sparse) documentation is closely followed.


Funnily enough I bought this board rather than buying a third Raspberry Pi as I thought that it sounded like a better spec'd board, and certainly had better disk support with SATA. Now I'm starting to regret that decision.
Title: Re: plugged it in and nothing happened
Post by: JohnS on September 01, 2014, 08:35:24 PM
Quote from: danielr on September 01, 2014, 06:53:21 PM
The wiki (the only documentation on the main Olimex site) says that HDMI should be enabled, but it appears to show nothing. -there is a suggestion that the video output is only enabled after the system is booted, which may explain the issues I'm having.

I have followed the documentation "to the letter" and the board just doesn't work in the way that it is supposed to -i.e there is no display. and I can't tell what the problem is without buying further equipment.
I understand you're frustrated but the wiki is not "the only documentation" as there's a 40-page user manual on the main site and links to other places such as github.

Also, "to the letter" isn't right as you've connected an RS232-level device as well as using an SD card that exceeds the stated size.  (The usual mistakes with SD cards are failing to use the right image or failing to write it to the card correctly.)

It would be nice if HDMI were enabled on power on, well, no it wouldn't be nice at all for those who wanted to save power but it would be nice for you.  However, Allwinner make the chips and they make the ROM code inside them which doesn't enable HDMI early on so short of Allwinner having a total re-think we are where we are.

It still may be a faulty board as no manufacturer of anything seems to have 100% perfection, not even Rolls-Royce or Ferrari.

As you own a 'scope maybe you can look at what comes out of the uart early on even if you can't decode the characters (if any).

John
Title: Re: plugged it in and nothing happened
Post by: danielr on September 02, 2014, 11:08:37 PM
well the cable came...


I can see and interact with a terminal now.
good news, teh system is actually started as it should.
it's booted to linux as it should, and the adapter that I had did not break anything I can send recieve data via the RX/TX lines, as I should be able to.

I can boot with both the 16GB card, and the 64GB card that I made earlier - so note the A20Lime board DOES support booting from a 64GB microSD. (good news).


I've also found out that there is a message that comes up saying that there is no IPV6 routers present.

and the DHCP is set to static with an address of 192.168.1.1 (I've now changed that to my own static preference in a range that I use. -whilst I understand it's impossible to please all the people all the time, I think that DHCP for initial setup is fairly universal as manufacturers simply do not know what address ranges people use.
After changing the address I also needed to add a default route.


So great, it seems that my cable didn't break anything...


however, what does seem clear is that the HDMI just doesn't work...
I've tried every setting in the
./change_display_a20_lime.sh script, nothing is displayed on my TV.


This does kind of leave me with the question, what next...?


Quotet would be nice if HDMI were enabled on power on, well, no it wouldn't be nice at all for those who wanted to save power but it would be nice for you.  However, Allwinner make the chips and they make the ROM code inside them which doesn't enable HDMI early on so short of Allwinner having a total re-think we are where we are.
I invite you to read what I wrote again.
Olimex claim to have HDMI enabled in the image, but it doesn't seem to work. I understand that I should not expect a picture to appear on power on (like it does on the Raspberry Pi) -and I'm happy with that, -never suggested that anything should be re-thought.

What I was suggesting is that the "average" new user is probably going to get a board, burn an image and plug it into a TV (where HDMI enabled TV's are cheap as chips now and pretty ubiquitous), you'd expect most people to have a DHCP enabled router with "whatever their ISP set it as" still working.

In the image thread someone asks how can Olimex beat the Raspberry Pi?, simple answer is that there needs to be a lot more user friendly, a lot more "plug and play", a lot more just ready to go, with more documentation, or documentation that is easier to find -yes the user manual is linked, halfway through another page.



That's all besides the point at the minute, HDMI still doesn't seem to work.
Title: Re: plugged it in and nothing happened
Post by: JohnS on September 02, 2014, 11:24:14 PM
I prefer a static IP.  You prefer DHCP.  Can't please everyone 100%.

HDMI works for most people as you can tell by reading the threads.  Maybe your device is flakey.

John
Title: Re: plugged it in and nothing happened
Post by: danielr on September 03, 2014, 01:09:28 AM
ok, you prefer static?

I still can't find in the documentation where it says that the default address is 192.168.1.254/24?

It happens that the default network at mine is 192.168.0.1/24.

But could just as easily have been class A or B or any other Class C network?
I'm not saying that IP SHOULDN'T be static, over all I could not care less.

What I am saying is making it static would mean I either need to change the address scheme of my network (as a whole) to just plug it in and make it work, or I need to assign a static IP on a random network to the wired network car on my laptop, (thank god I don't just have a small netbook without wired network conncetion!)

And that's if you can find what the default address is...

Dynamic assignment means, plug into spare home on home router/hub.
If you have disabled DHCP, then simply enabling it.

I understand some people disable DHCP either for reasons of security, or because they plain don't like it.
those people would have the understanding to either setup a local one on a machine or turn it on briefly to get the box working.

The question "how can A10/A20 boards beat the Pi"... that's one really really small thing, make it really really simple to use.

Those that want to complicate things can complicate it for themselves.


As it is I had a board that I thought was broken, and paid 8x the cost of getting a serial adapter from China as I knew that Olimex would deliver next day...

This took, Friday night/Saturday morning, Sunday evening, made me need to buy new hardware, and finally I figure out what the issue is!


I'll leave this now, I wanted the board to be a small headless file server anyway, so that the HDMI doesn't seem to work on my board is kind of neither here nor there...
Title: Re: plugged it in and nothing happened
Post by: JohnS on September 03, 2014, 11:33:49 AM
The short answer is that nothing from Olimex can beat RPi unless they can get serious support from Allwinner (no chance - AW don't even obey GPL) and insider help at BBC.

John
Title: Re: plugged it in and nothing happened
Post by: dod38fr on September 03, 2014, 09:44:32 PM
Back to boot with SD card problem...

I also had some trouble to boot my A20 lime/4GB board with a SD card.

Turns out the the board is not compatible with the Debian SD card provided by Olimex. When booting, the serial console reports that no RAM is found and ask user to reboot the board (even with a 2A power supply).

I've copied Olimex Debian image to a 8GB SD card and the board is working fine now.  :D

If you have problem booting from a SD card, you may want to try other brands of SD card.

Hope this helps
Title: Re: plugged it in and nothing happened
Post by: kaloyan on September 07, 2014, 04:12:55 PM
Quote from: kaloyan on August 30, 2014, 10:20:08 AM
I have the same issue, as you.
Since my cards are slower(4GB, class 2), I have left the device for some minutes,
but again nothing happened.

The network lights are from packets comming into the device, nothing goes out.
I have attached it to my laptop and capture traffic  with tcpdump.

I have the A20-Olinuxino-Lime-4Gb, use 5V/2.5A to the power connector.

Today I bought brand new TDK class10 8GB microSD HC card, copied same files I used with my old cards,
and board just worked. :)
Title: Re: plugged it in and nothing happened
Post by: dannym on September 18, 2014, 02:33:21 PM
Hi danielr,

Quote from: danielr on September 02, 2014, 11:08:37 PM
however, what does seem clear is that the HDMI just doesn't work...
I've tried every setting in the
./change_display_a20_lime.sh script, nothing is displayed on my TV.

I had the same problem but with A20 Olinuxino MICRO.

Try putting into /boot/uEnv.txt (or whereever your existing uEnv.txt or kernel is):
extraargs=disp.screen0_output_type=3 disp.screen0_output_mode=EDID:1920x1080p60 hdmi.audio=EDID:0 root=/dev/sda1

.. or whatever your root is, of course.

This and the ./change_display_a20.sh make HDMI work on a DVI monitor, if that's what you are trying to do. (the monitor engineers of my monitor apparently got confused with changing requirements - my monitor has loudspeakers but not HDMI audio)