Reply
Thread Tools
Posts: 53 | Thanked: 2 times | Joined on Apr 2011
#1
Can I configure u-boot to boot from internal eMMC ?
 

The Following User Says Thank You to oneat For This Useful Post:
Posts: 237 | Thanked: 274 times | Joined on Jul 2010
#2
yes , you write your boot.scr , specifying root wherever you want..
 

The Following User Says Thank You to ivyking For This Useful Post:
Posts: 237 | Thanked: 274 times | Joined on Jul 2010
#3
you can create your boot.scr by first writing commands to a text file then converting it to a u-boot script , that text file would look close to something like this :

setenv bootcmd 'mmc init; fatload mmc1 0:1 0x82000000 /uImage; fatload mmc1 0:1 0x83000000 /uInitrd; bootm 0x82000000 0x83000000'
setenv bootargs 'root=/dev/mmcblk1p5 rootwait console=tty0 omapfb.vram=0:2M,1:2M,2:2M mtdoops.mtddev=2 nosplash'
boot

the first line tells uboot that the uImage and the uInitrd are in first partition of the sdcard (a fat partition in this case) , and where it should load these .

the second line specifies where the root of the system to be booted is , as you can see (/dev/mmcblk1p5) this refers to the 5th partition on the internal emmc , if the root partition was on the sdcard it would be /dev/mmcblk0p5 , donot be confused by the numbering as maemo has diffirent numbering mmcblk1 is sdcard while mmcblk0 is emmc .

now you need to convert your text file to a uboot script

mkimage -A arm -O linux -T script -C none -a 0 -e 0 -d mytextfilename boot.scr

ofcourse you need to repartition your emmc , also the maximum number of primary partitions is 4 , so your 4th partition should be an extended partition , which is counted as a partition also , so p1 is vFat (MyDocs) , p2 is ext3 (/home) , p3 is swap , p4 is extended , p5 is your first logical partition . although you will be using your emmc , you will still need your sdcard to boot .
 

The Following User Says Thank You to ivyking For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 13:05.