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

Reply
 
Thread Tools
  #1  
Old 2011-06-19, 09:55
Bernard Bernard is offline
 
Join Date: Jun 2006
Posts: 468
Thanks!: 67
Thanked 610 Times in 204 Posts
Default how to generate flashable eMMC image with fiasco-gen and flasher?

Can anybody help me explain how to use the fiasco-gen tool from the sdk-fiasco-gen_2.8.2.0.1+0m5_i386.deb package to generate a flashable EMMC image ?

Fiasco-gen is part of a SDK tool package and can be used to make fiasco images.
http://maemo.org/packages/view/sdk-fiasco-gen/
http://repository.maemo.org/pool/mae...1+0m5_i386.deb

I have used it successfully to make a flashable image for the NAND memory. By combining a rootfs image and a kernel image in one fiasco image with:
Code:
fiasco-gen -g -k kernelImage -r rootfsImage -o myOwnFiasco.bin
I can flash this image to the N900 with:
Code:
flasher-3.5 -F myOwnFiasco.bin -f -R
And that works perfectly

But now I want to make a fiasco image for the eMMC memory.
Code:
fiasco-gen -g -m mmcImage -o myMmcFiasco.bin
But flashing that image does not work. The flasher exits with "SU_GET_UPDATE_STATUS_REQ terminated with error code 2."

I think the problem is with the way I use the fiasco-gen tool. It has a number of extra options that I don't know how to use:
Code:
  -m, --mmc=ARG            Location of MMC image
      --mmc-append=ARG     MMC raw image to append
      --mmc-partition=ARG  Partition for the MMC raw image (in layout)
      --initrd=ARG         Location of intird image
The mmc image is correct as it is just the mmc image that I extracted from the current VANILLA EMMC fiasco image with the flasher tool:
Code:
flasher-3.5 -F RX-51_2009SE_10.2010.13-2.VANILLA_PR_EMMC_MR0_ARM.bin -u
When comparing the new fiasco image with the original using hexedit you can clearly see that i am missing partition table information. As my file does not have stuff like:
Code:
{...name = "internal";...partition {....fs_type = "vfat";....prefix = "mydocs";....no_create = true;...}...partition {....size = 2048;....fs_type = "ext3";....prefix = "home";...}...partition{....size = 768;....fs_type = "swap";...}..}
at the beginning of the file.

Can anybody help me figure out how to use this tool? I have not found any documentation for this (non-free Nokia) tool other than the help text.

Last edited by Bernard; 2011-06-19 at 10:31.
Reply With Quote
  #2  
Old 2011-06-19, 10:01
MohammadAG's Avatar
MohammadAG MohammadAG is offline
 
Join Date: Oct 2009
Location: Jerusalem, PS/IL
Posts: 2,473
Thanks!: 1,091
Thanked 12,265 Times in 1,478 Posts
Send a message via MSN to MohammadAG Send a message via Skype™ to MohammadAG
Default Re: how to generate flashable eMMC image with fiasco-gen and flasher?

You'll need to pass a layout file
Code:
mmc {
	name = "internal";
	partition {
		fs_type = "vfat";
		prefix = "mydocs";
		no_create = true;
	}
	partition {
		size = 2048;
		fs_type = "ext3";
		prefix = "home";
	}
	partition {
		size = 768;
		fs_type = "swap";
	}
}
Put that in some text file (e.g layoutFile) and use
Code:
fiasco-gen -l layoutFile -m mmcImage -o myMmcFiasco.bin
Reply With Quote
The Following User Says Thank You to MohammadAG For This Useful Post:
  #3  
Old 2011-06-19, 10:14
Bernard Bernard is offline
 
Join Date: Jun 2006
Posts: 468
Thanks!: 67
Thanked 610 Times in 204 Posts
Default Re: how to generate flashable eMMC image with fiasco-gen and flasher?

hmm, I get an error:

Code:
Layout should belong to image
Why does it think it doesn't ?
Reply With Quote
  #4  
Old 2011-06-19, 10:20
MohammadAG's Avatar
MohammadAG MohammadAG is offline
 
Join Date: Oct 2009
Location: Jerusalem, PS/IL
Posts: 2,473
Thanks!: 1,091
Thanked 12,265 Times in 1,478 Posts
Send a message via MSN to MohammadAG Send a message via Skype™ to MohammadAG
Default Re: how to generate flashable eMMC image with fiasco-gen and flasher?

No idea, I've only tested this with the same "mmc" file from the VANILLA file and it worked.
How are you creating that file?
Reply With Quote
  #5  
Old 2011-06-19, 10:24
Bernard Bernard is offline
 
Join Date: Jun 2006
Posts: 468
Thanks!: 67
Thanked 610 Times in 204 Posts
Default Re: how to generate flashable eMMC image with fiasco-gen and flasher?

Code:
flasher-3.5 -F RX-51_2009SE_10.2010.13-2.VANILLA_PR_EMMC_MR0_ARM.bin -u
and after that I use the layoutFile you posted:
Code:
fiasco-gen -l layoutFile -m mmc -o myMmcFiasco.bin
And that gives:
Quote:
fiasco-gen v2.8.2 (Jan 28 2011)

Layout should belong to image
Reply With Quote
  #6  
Old 2011-06-19, 10:31
MohammadAG's Avatar
MohammadAG MohammadAG is offline
 
Join Date: Oct 2009
Location: Jerusalem, PS/IL
Posts: 2,473
Thanks!: 1,091
Thanked 12,265 Times in 1,478 Posts
Send a message via MSN to MohammadAG Send a message via Skype™ to MohammadAG
Default Re: how to generate flashable eMMC image with fiasco-gen and flasher?

Code:
[sbox-FREMANTLE_ARMEL: ~/custom] > fiasco-gen --mmc=mmc --layout=layout -o test.fiasco -g
fiasco-gen v2.8.2 (Jan 26 2010)

Adding mmc         : mmc (255947 kB)
That seems to work fine (your line also gave me the same error for some reason)
Reply With Quote
  #7  
Old 2011-06-19, 10:34
Bernard Bernard is offline
 
Join Date: Jun 2006
Posts: 468
Thanks!: 67
Thanked 610 Times in 204 Posts
Default Re: how to generate flashable eMMC image with fiasco-gen and flasher?

It seems you first need to specify the mmc, than the layout file

Code:
fiasco-gen -g -m mmc  -l layoutFile -o myMmcFiasco.bin
Thank you very much!
Reply With Quote
The Following User Says Thank You to Bernard For This Useful Post:
  #8  
Old 2011-06-19, 13:32
Boemien's Avatar
Boemien Boemien is offline
 
Join Date: Mar 2010
Location: Abidjan
Posts: 770
Thanks!: 1,651
Thanked 558 Times in 254 Posts
Default Re: how to generate flashable eMMC image with fiasco-gen and flasher?

Hi, I would like to know if your generated eMMc image contains some tweaks or some new scripts which do not exist in the original ? The main question is is it possible to tweak the SDK and produce a modified image file which will be flashable withe nookia N900??
I'm a BIG noob in linux system but I have a few Ideas. Thanks in advance.
Reply With Quote
  #9  
Old 2011-06-19, 13:46
Bernard Bernard is offline
 
Join Date: Jun 2006
Posts: 468
Thanks!: 67
Thanked 610 Times in 204 Posts
Default Re: how to generate flashable eMMC image with fiasco-gen and flasher?

my fiasco image for NAND is modified, because it is based on a backupmenu rootfs and a different kernel image.

But you also need the files in the /home folder on the ext3 partition on eMMC to make a complete backup. You can just boot the backup menu and restore the optfs backup, but I would much rather like to alter the eMMC flashable image.
But I haven't figured out how to build my own mmc image.
You can easily mount the first vFAT partition using mount:
Code:
sudo mount -o loop mmc mountFolder
But when you modify the files the maximum size cannot increase, and if you want to modify the ext3 partition, you would need to find the offset (and fdisk -ul does not seem to work to find that out), adn I haven't yet.
Reply With Quote
  #10  
Old 2011-06-19, 15:10
rlinfati rlinfati is offline
 
Join Date: Nov 2007
Location: Concepcion, Chile
Posts: 177
Thanks!: 92
Thanked 199 Times in 70 Posts
Default Re: how to generate flashable eMMC image with fiasco-gen and flasher?

To add 1 giga do:

Code:
dd if=/dev/zero bs=1M count=1024 >> mmc
Note:
the "maximal" size of the file mmc is ~4.1G.... when is expanded ?
__________________
User:rlinfati

Last edited by rlinfati; 2011-06-19 at 15:26.
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 18:26.