Go Back   maemo.org - Talk > OS / Platform > MeeGo / Harmattan
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2011-08-28, 10:35
xxxxts's Avatar
xxxxts xxxxts is offline
 
Join Date: Nov 2009
Location: LA
Posts: 491
Thanks!: 94
Thanked 341 Times in 134 Posts
Question MeeGo on SD with FAT partition?

I would love to dual boot MeeGo (which I have) but I would also like to have a useable MMC... it should be possible, how is it done?
Reply With Quote
  #2  
Old 2011-08-28, 14:19
Hurrian Hurrian is offline
 
Join Date: Feb 2011
Location: Quezon City, Philippines
Posts: 1,225
Thanks!: 882
Thanked 1,905 Times in 672 Posts
Default Re: MeeGo on SD with FAT partition?

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.
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
Reply With Quote
  #3  
Old 2011-08-28, 23:16
xxxxts's Avatar
xxxxts xxxxts is offline
 
Join Date: Nov 2009
Location: LA
Posts: 491
Thanks!: 94
Thanked 341 Times in 134 Posts
Default Re: MeeGo on SD with FAT partition?

Quote:
Originally Posted by Hurrian View Post
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.
Shucks, it doesn't look like I know how to do that...
Reply With Quote
  #4  
Old 2011-08-28, 23:44
Hurrian Hurrian is offline
 
Join Date: Feb 2011
Location: Quezon City, Philippines
Posts: 1,225
Thanks!: 882
Thanked 1,905 Times in 672 Posts
Default Re: MeeGo on SD with FAT partition?

Quote:
Originally Posted by xxxxts View Post
Shucks, it doesn't look like I know how to do that...
This file:

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" +
Quote:
"loaduimage=fatload mmc 0:3 ${loadaddr} uImage\0" \
This is the interesting part.

Wait a bit, I'll get a u-boot image out.
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
Reply With Quote
  #5  
Old 2011-08-28, 23:48
xxxxts's Avatar
xxxxts xxxxts is offline
 
Join Date: Nov 2009
Location: LA
Posts: 491
Thanks!: 94
Thanked 341 Times in 134 Posts
Default Re: MeeGo on SD with FAT partition?

Quote:
Originally Posted by Hurrian View Post
This file:

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" +
This is the interesting part.

Wait a bit, I'll get a u-boot image out.
I am so lost... what I am trying to do is create an image for my 16GB card with 2GB for NITDroid (U12), 6GB for MeeGo(CE 1.2.0.90.6.20110630.4.DE.2011-07-01.1), and the rest for storage (FAT32) so I can triboot. After I make this image I intend of uploading the image on here to make it easier for everyone else... this is going on an MMC not eMMC.

Last edited by xxxxts; 2011-08-28 at 23:55.
Reply With Quote
  #6  
Old 2011-08-28, 23:56
ivyking ivyking is offline
 
Join Date: Jul 2010
Posts: 237
Thanks!: 2,020
Thanked 274 Times in 111 Posts
Default Re: MeeGo on SD with FAT partition?

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
Reply With Quote
  #7  
Old 2011-08-29, 00:29
xxxxts's Avatar
xxxxts xxxxts is offline
 
Join Date: Nov 2009
Location: LA
Posts: 491
Thanks!: 94
Thanked 341 Times in 134 Posts
Default Re: MeeGo on SD with FAT partition?

Quote:
Originally Posted by ivyking View Post
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
Okay... I am still very confused - I flash my SD card using these instructions;

http://wiki.meego.com/ARM/N900/Install/MMC#Windows

With the exception of #11, put my SD card into my phone and boot into Maemo. However due to the way the image has partitioned my SD card I cannot access it as storage, thus also making it very difficult to install NITDroid on - I might be a little mixed up but I don't see how this so much has to do with u-boot...
Reply With Quote
  #8  
Old 2011-08-29, 04:51
xxxxts's Avatar
xxxxts xxxxts is offline
 
Join Date: Nov 2009
Location: LA
Posts: 491
Thanks!: 94
Thanked 341 Times in 134 Posts
Default Re: MeeGo on SD with FAT partition?

I am not throuly frustrated, I cannot think of anything else to do...
Reply With Quote
  #9  
Old 2011-08-29, 09:00
xxxxts's Avatar
xxxxts xxxxts is offline
 
Join Date: Nov 2009
Location: LA
Posts: 491
Thanks!: 94
Thanked 341 Times in 134 Posts
Default Re: MeeGo on SD with FAT partition?

Bump for desperation.
Reply With Quote
  #10  
Old 2011-08-29, 13:07
Daneel's Avatar
Daneel Daneel is offline
 
Join Date: Apr 2010
Posts: 549
Thanks!: 1,312
Thanked 698 Times in 250 Posts
Default Re: MeeGo on SD with FAT partition?

It actually would be cool if they released flashable FAT images, my bet is more people would try out/test meego.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:16.