![]() |
Re: Booting from MMC on N800 Now Available!!
Quote:
When I like current stable system in flash (after clean reflashing and tweaking it a bit) I boot from mmc and do a backup Code:
mount -t jffs2 /dev/mtdblock4 /opt Code:
sumtool -i rootfs.jffs2 -o rootfs.faster.jffs2 -e 128KiB -l -n Code:
./flash_eraseall -j /dev/mtd4 |
Re: Booting from MMC on N800 Now Available!!
Quote:
|
Re: Booting from MMC on N800 Now Available!!
Quote:
Reflashing config or bootloader partition may be unrecoverable. I should probably comment out -j option in nandwrite source and rebuild the binary sometimes since it is quite useless but very dangerous on nokia tablets. As for normal writing to the internal flash I wouldn't be so afraid. It would take some time to wear out internal flash. See end of https://maemo.org/bugzilla/show_bug.cgi?id=598 |
Re: Booting from MMC on N800 Now Available!!
Quote:
|
Re: Booting from MMC on N800 Now Available!!
Quote:
- speed (both of creating the filesystem and later also accessing it) - flash wear While I don't know it for sure I think that when created incrementally by tar (i.e extracting file by file) the result won't be as nice and compact as creating it via mkfs.jffs2 (and sumtool) in one go and then flashing. I also guess it will take ages but never actually tried. |
Re: Booting from MMC on N800 Now Available!!
Fanoush - do you know if it's possible to create a bootable filesystem on MMC/SD direct from a FIASCO image, ie. rather than install the FIASCO image into the device and tar over to the MMC/SD card is it possible to dump the FIASCO image on to the MMC/SD card and then boot it? This would be great to test new firmware without having to blow away a working device.
|
Re: Booting from MMC on N800 Now Available!!
without compression would it even fit on the flash device?
I see no reason to even bother, if I was worried about needing more space, I would not have moved in off flash in the first place. I moved onto flash for backup/recovery/portability/speed. booting to flash will allow you to remove packages from mmc OS easily. install a package thats bad (system wont boot), boot to flash and remove it. edit a file and mess up the boot process, boot to flash and fix it, these are GREAT advantages over default OS distribution. I personally think they should put a minimal OS in flash (with install/recovery/remote backup/) and use itself to download, upgrade and push OS onto a MMC/SD card. But I guess I am just dreaming... Seriously though, HOW MANY REPAIRS WOULD THIS SAVE NOKIA!!!!! Does it work in flash, well then run diagnostics or restore remote backup. |
Re: Booting from MMC on N800 Now Available!!
Quote:
What may be possible is to replace kernel and initfs in flash with some generic stubs and keep real kernel and initfs on mmc so we can have more of them. This is quite tricky but maybe possible. Maybe it would be even needed to dualboot between os2007 hacker edition and IT2006 so I will be forced to try to make it working :-) |
Re: Booting from MMC on N800 Now Available!!
Is it as simple as changing the root_dev info? (init and linuxrc)
If I created a partition on mmc for kernel, it seems like it would work, is there something I am not thinking of? root_dev=mtdblock4 root_dev_name="Flash" root_fstype="jffs2" root_fsoptions="rpsize=1024,rpuid=0,rpuid=30000" You got anything you want to try, you just let me know ;) EDIT Now that I think about that, mtdblock4 is rootfs right, so would you need to put something on the kernel device to redirect it, or you need to hack the xloader? |
Re: Booting from MMC on N800 Now Available!!
Quote:
The way I see it right now is that the flash have 5 sections, aka 5 partition. blk0=128KB blk1=385KB blk2=2MB blk3=2MB blk4=the rest=rootfs For obvious reason, It's safe to assume that blk0 is a loader and blk4 is the rootfs blk3 seem to be initfs in the jffs2 format. so, blk2 is the only one left large enought to fit the kernel. (I don't think nokia want to store kernel on a compressed partition) and therefore mean, if you make your own kernel, it has to be less than 2MB(there may be some overhead there as well.) blk1 then probably a special kernel used for usb flasher. and that mean leave those 2 alone(block0 and 1) if you don't want your $400 toy to be an expensive paperweight. |
All times are GMT. The time now is 17:43. |
vBulletin® Version 3.8.8