Welcome, Guest

Author Topic: SD-card with ArchLinux will not boot on Olimex iMX233-OLinuXino-MAXI  (Read 5377 times)

Eplotech

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Hi,

I have used the instructions from :

https://www.olimex.com/Products/OLinuXino/iMX233/_resources/ARCH-README.TXT

to make a bootable SD-card (Kingston 8 GB). The SD-card devices enumerate to “sdd1”, “sdd2”, “sdd3” instead of “sdb1” .. I copied the boot image into the sdd1-partition (step 23, see the URL mentioned above) and after step 24, put the SD-card into the slot of Olimex-MAXI board. Then I started kermit (speed 115200, no flow-control,  carrier-watch off, /dev/ttyUSB0, then connect) but the 'alarm' prompt would not appear. Then I formatted the sdd1-partition again but now with an ext4 filesystem, and then copied the boot image again, using :


 'sudo dd if=/home/user/imx233-Olinuxino.img of=/dev/sdb1'

but the 'alarm' prompt still would not appear after connecting with kermit, minicom or even picocom. Here is the 'sudo fdisk -l' output for the SD-card (sorry for the Dutch output  :-\) :

Schijf /dev/sdd: 7822 MB, 7822376960 bytes
241 koppen, 62 sectoren/spoor, 1022 cilinders, totaal 15278080 sectoren
Eenheid = sectoren van 1 * 512 = 512 bytes
Sectorgrootte (logischl/fysiek): 512 bytes / 512 bytes
in-/uitvoergrootte (minimaal/optimaal): 512 bytes / 512 bytes
Schijf-ID: 0x00000000

 Apparaat Opstart   Begin       Einde     Blokken   ID  Systeem
/dev/sdd1            2048     4196351     2097152   53  OnTrack DM6 Aux3
/dev/sdd2         4196352    15277566     5540607+  83  Linux
/dev/sdd3        15277567    15278079         256+  83  Linux



What do I do wrong? Is there a step missing?

Thanks for any comments or ideas, :D
kind regards,
Evert (owner of Eplotech B.V.).

jeroends

  • Jr. Member
  • **
  • Posts: 76
  • Karma: +2/-0
Re: SD-card with ArchLinux will not boot on Olimex iMX233-OLinuXino-MAXI
« Reply #1 on: January 04, 2013, 11:15:53 AM »
Why do you let your first partition start at 2048? It has to start at 1 and then 16Mb big to hold the kernel.

ps: Nederlands is geen probleem hoor  :)

Fadil Berisha

  • Full Member
  • ***
  • Posts: 124
  • Karma: +7/-0
Re: SD-card with ArchLinux will not boot on Olimex iMX233-OLinuXino-MAXI
« Reply #2 on: January 04, 2013, 04:26:19 PM »
hi Eplotech,



 Apparaat Opstart   Begin       Einde     Blokken   ID  Systeem
/dev/sdd1            2048     4196351     2097152   53  OnTrack DM6 Aux3


Looks like your host PC recognize SD card as /dev/sdd and not as /dev/sdb. In this case command to copy kernel on 1st partition should be:

sudo dd if=/home/user/imx233-Olinuxino.img of=/dev/sdd1

Hope this help

Fadil Berisha

Eplotech

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: SD-card with ArchLinux will not boot on Olimex iMX233-OLinuXino-MAXI
« Reply #3 on: January 06, 2013, 12:40:53 AM »
Thanks for your replies. ;) I formatted my SD-card (Kingston 8 GB) again and issued the commands listed below :  :P

$ su root

$ fdisk /dev/sdd

$ mkfs.ext4 /dev/sdd1

$ mkfs.ext4 /dev/sdd2

$ fdisk -l /dev/sdd


Schijf /dev/sdd: 7822 MB, 7822376960 bytes
241 koppen, 62 sectoren/spoor, 1022 cilinders, totaal 15278080 sectoren
Eenheid = sectoren van 1 * 512 = 512 bytes
Sectorgrootte (logischl/fysiek): 512 bytes / 512 bytes
in-/uitvoergrootte (minimaal/optimaal): 512 bytes / 512 bytes
Schijf-ID: 0x00000000

 Apparaat Opstart   Begin       Einde     Blokken   ID  Systeem
/dev/sdd1   *        2048       34815       16384   53  OnTrack DM6 Aux3
/dev/sdd2           34816    15278079     7621632   83  Linux



The begin sector will not start at 1 (at the 'Begin' column) when doing a 'fdisk /dev/sdd'. All my disk-(first-)partitions start at 2048 so maybe that is not the problem. 8)



$ mount /dev/sdd2 /mnt/mmc

$ cd /mnt/mmc

$ tar -xzf /home/evert/Prog*/Project-L*/SD*/alarm-olinuxino-rootfs.tar.gz 

$ dd if=/home/evert/Prog*/Project-L*/SD*/imx233-Olinuxino.img of=/dev/sdd1

$ cd

$ sync


$ umount /dev/sdd2


When I put my SD-card into the SD-card slot at Olimex-MAXI-board, the green LED starts to burn, so that looked quite hopefully. But when starting kermit, there is no answer at all from the MAXI-board. That was quite a disappointment. :'( Maybe someone can come up with something? Something I have forgotten something or overlooked .. Thanks in advance.

Kind regards,
Evert.

Fadil Berisha

  • Full Member
  • ***
  • Posts: 124
  • Karma: +7/-0
Re: SD-card with ArchLinux will not boot on Olimex iMX233-OLinuXino-MAXI
« Reply #4 on: January 06, 2013, 02:24:19 AM »
Hi Eplotech,
Partitions on your card are good. Since you are getting gren LED ON, your kernel is booting but probably you have problem with your USB serial cable or kermit configuration.

1.) Make sure to use 115200, 8 data bits, no parity, 1 stop bit in kermit configuration.
2.) If you are using olimex's USB-Serial-Cable-F please follow instruction on board's manual, otherwise identify GND,TX and RX and connect as per boards instruction (don't connect any 5V pin if that is available in your USB-Serial-Cable).

Fadil Berisha
 

sbaccam

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: SD-card with ArchLinux will not boot on Olimex iMX233-OLinuXino-MAXI
« Reply #5 on: January 07, 2013, 12:09:12 AM »
hi,
Your problem is your SDcard. I tried to boot with a Sony SD and it didn't work; I only could look the penguin.So, I tried with a SanDisk SD and it work fine. Now, I don't know why it doesn't recognize my keyboard. Can someone help me? 

thank you

sbaccam

ehsan51

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: SD-card with ArchLinux will not boot on Olimex iMX233-OLinuXino-MAXI
« Reply #6 on: November 29, 2014, 05:54:55 AM »
I have same problem. I have nothing at TV out, I have several questions:
1) Does the green LED should blink or just be on?
2) is there any limitation on SD capacity? I am using 16GB SD card.
3) Should I use linux on an actual machine? I use virtual machine and ubuntu 14.04.
Best Regards
Ehsan

MBR

  • Sr. Member
  • ****
  • Posts: 256
  • Karma: +19/-0
Re: SD-card with ArchLinux will not boot on Olimex iMX233-OLinuXino-MAXI
« Reply #7 on: November 29, 2014, 07:59:16 AM »
2) is there any limitation on SD capacity? I am using 16GB SD card.

The limit is 32GB on SDHC cards in the SD 2.0 specification.

3) Should I use linux on an actual machine? I use virtual machine and ubuntu 14.04.

It could be better (try some live CD), but as long as the USB redirection works fine, you don't have to.

ehsan51

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: SD-card with ArchLinux will not boot on Olimex iMX233-OLinuXino-MAXI
« Reply #8 on: November 29, 2014, 11:39:00 AM »
Thanks MBR :)