How to access the flash rootfs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 17, 2008 at 09:41:20AM +0100, Frantisek Dufka wrote:
> Marius Gedminas wrote:
> > On Tue, Jan 15, 2008 at 07:49:06PM +0100, Frantisek Dufka wrote:
> >> You don't need scratchbox, any linux distribution will do. Follow this 
> >> guide to unpack and recreate initfs  by Rodrigo Vivi 
> >> http://labs.vivi.eng.br/blog/?p=29
> > 
> > And here's where it breaks down:
> > 
> >   sudo modprobe mtdram total_size=65536 erase_size=256
> > 
> > 64 megs is not large enough for the OS2008 image.  Anything larger
> > causes modprobe mtdram to fail ("allocation failed: out of vmalloc space
> > - use vmalloc=<size> to increase size.")
> 
> Well this guide is for initfs which is ~2MB large.

Oops!

Yes, I encountered that error when I was looking at the rootfs, not
initfs.  My inattention.

> There are more ways 
> to do it. For rootfs you can use variation of this
> 
> mkdir rootfs
> losetup /dev/loop0 rootfs.jffs2 
> 
> modprobe mtd 
> 
> modprobe mtd_blkdevs 
> 
> modprobe mtdblock 
> 
> modprobe block2mtd block2mtd=/dev/loop0,131072 
> 
> modprobe jffs2 
> 
> mount -t jffs2 /dev/loop0 rootfs 

Thanks for the instructions!

Marius Gedminas
-- 
I'm a sorceress, not a miracle worker.
	-- The Spellsong War by L. E. Modesitt, Jr.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-users/attachments/20080117/fd40dea7/attachment-0001.pgp 


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux