Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: Lilian on October 28, 2013, 11:39:45 PM

Title: Boot from 2nd partition
Post by: Lilian on October 28, 2013, 11:39:45 PM
Hi everyone,

Is there a way to boot the linux kernel from the 2nd partition (instead of the 1st one) of the sdcard ?

Thank you for any advice,
Lilian
Title: Re: Boot from 2nd partition
Post by: lambda on October 29, 2013, 01:26:05 PM
There is imx23 suppport in u-boot. (Haven't tested yet.) Is this what you have in mind?

What other reason is there to not boot from the first partition?
Title: Re: Boot from 2nd partition
Post by: picmaster on November 11, 2013, 09:17:33 PM
Hi Lilian,

The iMX233 ROM will boot from the first primary partition on your uSD-card that's marked as type 53, and which contains valid boot-stream (bootlets+kernel, or U-Boot). I've tried to put U-boot on all 4 primary partitions and it worked for me.

Here's one example, where my board boots from the 4th partition:

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048       34815       16384    b  W95 FAT32
/dev/sdb2           34816       67583       16384    b  W95 FAT32
/dev/sdb3           67584      100351       16384    b  W95 FAT32
/dev/sdb4          100352      133119       16384   53  OnTrack DM6 Aux3

Hope this helps. Regards,
picmaster