Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: alecnotalex on March 15, 2013, 11:45:20 PM

Title: Trouble booting linux
Post by: alecnotalex on March 15, 2013, 11:45:20 PM
I recently received my A13 Olinuxino WiFi and have gotten it to boot Android just fine. I cannot seem to get it to boot Linux though. I formatted my SD card to ext4, and used dd to put the Debian with gui R18 (from wiki) onto the card. I put the card into the slot and power on the board, but it just boots to Android. Android tells me that it is a damaged SD card, but the same thing happened when I tried a different card. I was hoping you could help me out.

Any ideas?
Title: Re: Trouble booting linux
Post by: JohnS on March 15, 2013, 11:53:15 PM
You didn't need to format the cards - but it also does not matter.

What does matter is how you used dd.  You need to dd to the raw entire card so such as /dev/sdb not /dev/sdb1
(or /dev/sdc etc - make sure you choose the right one!)

Can you connect to the WiFi's uart1?  You'll see debug messages if you can.  You need such as a USB to RS232 device (cheap ones on ebay use PL2303).

John
Title: Re: Trouble booting linux
Post by: alecnotalex on March 16, 2013, 12:00:54 AM
Thanks for responding. I did dd to mmcblk0p1 not just mmcblk0. I'll try that and say how it does, but a suspect that that was what the problem was.

Update:
After making that change it works great!
Thank you so much!
Title: Re: Trouble booting linux
Post by: JohnS on March 16, 2013, 12:27:13 AM
No worries - it's easily done.

Do try to connect via uart1 as you get both kernel messages and later a login prompt (though not on Android, by default - you can use adb instead, via the OTG port)

Connect with putty or the like at 115200 8N1

John
Title: Re: Trouble booting linux
Post by: vinifr on March 16, 2013, 09:49:17 PM
hi, try this: https://www.olimex.com/wiki/Build_Bootable_SD_Card_with_Debian (https://www.olimex.com/wiki/Build_Bootable_SD_Card_with_Debian) or
http://rhombus-tech.net/allwinner_a10/a10_mmc_boot/ (http://rhombus-tech.net/allwinner_a10/a10_mmc_boot/) ;)

Take a image of file system or mount from scratch: http://rhombus-tech.net/allwinner_a10/hacking_the_mele_a1000/Building_Debian_From_Source_Code_for_Mele/ (http://rhombus-tech.net/allwinner_a10/hacking_the_mele_a1000/Building_Debian_From_Source_Code_for_Mele/)
Title: Re: Trouble booting linux
Post by: alecnotalex on March 17, 2013, 12:33:50 AM
Thanks for responding, but I already got it working.