![]() |
2011-08-28
, 10:35
|
|
Posts: 491 |
Thanked: 341 times |
Joined on Nov 2009
@ LA
|
#1
|
![]() |
2011-08-28
, 14:19
|
Posts: 1,225 |
Thanked: 1,905 times |
Joined on Feb 2011
@ Quezon City, Philippines
|
#2
|
![]() |
2011-08-28
, 23:16
|
|
Posts: 491 |
Thanked: 341 times |
Joined on Nov 2009
@ LA
|
#3
|
You'll need to edit MeeGo's boot.scr (wonder why the hell this isn't done in the first place: u-boot bootfiles in vfat p1, MeeGo in ext3/4/btrfs p2, and swap on p3, to make it play nice with Maemo)
If you want to make the vfat partition something other than what's on the downloadable image, just download the u-boot for n900 sources, change which partition it points to, build, append and flash.
![]() |
2011-08-28
, 23:44
|
Posts: 1,225 |
Thanked: 1,905 times |
Joined on Feb 2011
@ Quezon City, Philippines
|
#4
|
+#define CONFIG_EXTRA_ENV_SETTINGS \ + "usbtty=cdc_acm\0" \ + "stdin=vga\0stdout=vga\0stderr=vga\0" \ + "setcon=setenv stdin ${con};" \ + "setenv stdout ${con};" \ + "setenv stderr ${con}\0" \ + "sercon=setenv con serial; run setcon\0" \ + "usbcon=setenv con usbtty; run setcon\0" \ + "vgacon=setenv con vga; run setcon\0" \ + "loadaddr=0x82000000\0" \ + "meegoargs=setenv bootargs\0" \ + "loadbootscript=fatload mmc 0 ${loadaddr} boot.scr\0" \ + "bootscript=echo Running bootscript from mmc ...; " \ + "source ${loadaddr}\0" \ + "loaduimage=fatload mmc 0:3 ${loadaddr} uImage\0" \ + "mmcboot=echo Booting from mmc ...; " \ + "run meegoargs; " \ + "bootm ${loadaddr}\0" \ + "noloboot=echo Booting NOLO supplied kernel ...; " \ + "setenv atags ${nolo_atagaddr};" \ + "bootm ${nolo_kernaddr}\0" +
"loaduimage=fatload mmc 0:3 ${loadaddr} uImage\0" \
![]() |
2011-08-28
, 23:48
|
|
Posts: 491 |
Thanked: 341 times |
Joined on Nov 2009
@ LA
|
#5
|
This file:
This is the interesting part.Code:+#define CONFIG_EXTRA_ENV_SETTINGS \ + "usbtty=cdc_acm\0" \ + "stdin=vga\0stdout=vga\0stderr=vga\0" \ + "setcon=setenv stdin ${con};" \ + "setenv stdout ${con};" \ + "setenv stderr ${con}\0" \ + "sercon=setenv con serial; run setcon\0" \ + "usbcon=setenv con usbtty; run setcon\0" \ + "vgacon=setenv con vga; run setcon\0" \ + "loadaddr=0x82000000\0" \ + "meegoargs=setenv bootargs\0" \ + "loadbootscript=fatload mmc 0 ${loadaddr} boot.scr\0" \ + "bootscript=echo Running bootscript from mmc ...; " \ + "source ${loadaddr}\0" \ + "loaduimage=fatload mmc 0:3 ${loadaddr} uImage\0" \ + "mmcboot=echo Booting from mmc ...; " \ + "run meegoargs; " \ + "bootm ${loadaddr}\0" \ + "noloboot=echo Booting NOLO supplied kernel ...; " \ + "setenv atags ${nolo_atagaddr};" \ + "bootm ${nolo_kernaddr}\0" +
Wait a bit, I'll get a u-boot image out.
![]() |
2011-08-28
, 23:56
|
Posts: 237 |
Thanked: 274 times |
Joined on Jul 2010
|
#6
|
![]() |
2011-08-29
, 00:29
|
|
Posts: 491 |
Thanked: 341 times |
Joined on Nov 2009
@ LA
|
#7
|
that's fairly easy !
u-boot scripts are generated from simple command files, that are then converted to as appropriate script by using mkimage.
an example command file :
mmc init
fatload mmc1 0 0x82000000 /meegos-kernel
setenv bootargs 'root=/dev/mmcblkXpY rootwait console=tty0 omapfb.vram=0:2M,1:2M,2:2M mtdoops.mtddev=2 nosplash'
bootm 0x82000000
meegos-kernel is to be replaced by the actual meego kernel uImage name,
mmcblkXpY is to be replace by the partition where you installed meego, please note that
X=0 for sd
X=1 for emmc
yes they are the reverse of maemo's ordering.
Y is the number of the partition where meego is installed.
when you are done save the file, convert it to a u-boot script called boot.scr by :
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "MeeGo" -d commandFileName boot.scr
![]() |
2011-08-29
, 04:51
|
|
Posts: 491 |
Thanked: 341 times |
Joined on Nov 2009
@ LA
|
#8
|
![]() |
2011-08-29
, 09:00
|
|
Posts: 491 |
Thanked: 341 times |
Joined on Nov 2009
@ LA
|
#9
|
![]() |
2011-08-29
, 13:07
|
|
Posts: 549 |
Thanked: 698 times |
Joined on Apr 2010
|
#10
|