![]() |
u-boot, can change booting place?
Can I configure u-boot to boot from internal eMMC ?
|
Re: u-boot, can change booting place?
yes , you write your boot.scr , specifying root wherever you want..
|
Re: u-boot, can change booting place?
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 . |
All times are GMT. The time now is 10:19. |
vBulletin® Version 3.8.8