maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Upgrading (https://talk.maemo.org/forumdisplay.php?f=8)
-   -   Booting from MMC on N800 Now Available!! (https://talk.maemo.org/showthread.php?t=4053)

fanoush 2007-10-02 18:41

Re: Booting from MMC on N800 Now Available!!
 
You tried it and it didn't work? There is some chance it will work, initfs version may be same like in previous FW. If not, it wil tell you so and won't change anything.

Moonshine 2007-10-02 19:06

Re: Booting from MMC on N800 Now Available!!
 
Yes.. After answering that I want to "remove the unneeded extra stuff" it starts processing things and fails with:

Code:

!!! unknown initfs version osso-RX-34.2007-38, cannot install bootmenu
Be glad to help with anything else you might need right after I get back from lunch here..

fanoush 2007-10-02 19:12

Re: Booting from MMC on N800 Now Available!!
 
Oh, I see. Bad luck. I'll take a look at the firmware ASAP.

fanoush 2007-10-02 20:30

Re: Booting from MMC on N800 Now Available!!
 
I have updated initfs_flasher.tgz with changes for this FW. It is untested but I hope it will work. There are no changes in linuxrc script which is the only thing that matters for bootmenu.sh script. USB recovery mode is also included but you may always answer no if you don't want it :-)

Please let me know if it works. I will probably update when Nokia releases new kernel source as I don't want to lose my private changes.

mlind 2007-10-03 18:24

Re: Booting from MMC on N800 Now Available!!
 
@fanoush
thank you for your excellent work with inifs flasher! Going to update soonishly.

I dunno if this has been mentioned before, but if someone manages to screw up their initfs (like me), you can flash only the initfs part from the kernel image like this:

Code:

./flasher-3.0 --flash-only initfs -F RX-34_2007SE_4.2007.38-2_PR_COMBINED_MR0_ARM.bin -f

gLobster 2007-10-03 19:03

Re: Booting from MMC on N800 Now Available!!
 
Soory, but I can't reflash initfs:
Quote:

./initfs_flash: ./initfs_flash: 225: /home/user/MyDocs/.documents/initfs_flasher/mkfs.jffs2: not found
Cannot find initfs.bootmenu.jffs2, something failed, nothing flashed.

Moonshine 2007-10-03 21:38

Re: Booting from MMC on N800 Now Available!!
 
Looks like you might not have copied the entire "initfs_flasher" directory, as it's complaining about portions being missing. (mkfs.jffs2 to start) Did you just copy over the initfs_flash script by itself by chance?

gLobster 2007-10-04 06:44

Re: Booting from MMC on N800 Now Available!!
 
I try. But after I copy mkfs.jffs2 from old packet and flashing jffs may N800 is dead :-( Now I reflash original firmware.

fanoush 2007-10-04 07:58

Re: Booting from MMC on N800 Now Available!!
 
Symptoms look like you run out of disk space. But it is really hard to tell what went wrong since you provided almost zero information.

Missing mkfs.jffs2 looks like you either did something by hand or there was no space to extract it. I have checked the download and mkfs.jffs2 is there.

When you fill internal flash completely and reboot, device becomes bricked since the boot process needs to write.

gLobster 2007-10-04 10:14

Re: Booting from MMC on N800 Now Available!!
 
I had many free space on device.
I load initfs_flasher.tgz from post #204, unpacked its and run ./initfs_flash script. Say yes for backup, free space, ssh and after them scipt terminate abnormaly with errors.
After them I copy mkfs.jffs2 from previos initfs_flasher.tgz and rerun ./initfs_flash.

When script successful ended I reboot N800 by press enter :)
Tablet not loaded, freezed on "NOKIA" screen

fanoush 2007-10-04 12:01

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by gLobster (Post 79682)
I had many free space on device.

Ok, then I don't know.

Quote:

Originally Posted by gLobster (Post 79682)
I load initfs_flasher.tgz from post #204, unpacked its and run ./initfs_flash script. Say yes for backup, free space, ssh and after them script terminate abnormally with errors.
After them I copy mkfs.jffs2 from previous initfs_flasher.tgz and rerun ./initfs_flash.

Sadly for troubleshooting this, full output of shell session would be needed. Missing mkfs.jffs2 means something went seriously wrong with unpacking initfs_flasher.tgz archive. If you try this again after reflash and see errors, could you copy full output (including your commands) to clipboard and paste it here? You can even do it over ssh from desktop if it is easier for you to save screen output that way. You can also answer 'no' to last flashing question if the output looks strange. The final produced initfs.bootmenu.jffs2 image should be 1.6-1.9MB large (depends on your choices).

gLobster 2007-10-04 13:33

Re: Booting from MMC on N800 Now Available!!
 
Ok. I try it today evening.

gLobster 2007-10-04 19:33

Re: Booting from MMC on N800 Now Available!!
 
Sorry, I find my error:
Quote:

tar: unexpected end of file
tar: short read
Bad download :)

Airw0lf 2007-10-22 07:39

Re: Booting from MMC on N800 Now Available!!
 
I am following the instructions here - http://maemo.org/community/wiki/howt...from_mmc_card/.

Everything looks good except that insmod /mnt/initfs/lib/modules/current/ext2.ko will not work for me. I have a N800 and I know I have to insmod /mnt/initfs/lib/modules/2.6.18-omap1/mbcache.ko first...

But it looks like I will have to install ext2.ko via /mnt/initfs/lib/modules/2.6.18-omap1/ext2.ko.

Is this safe to do? I've read (googled) that a few people have had the same problem...

fanoush 2007-10-22 09:36

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by Airw0lf (Post 85511)
But it looks like I will have to install ext2.ko via /mnt/initfs/lib/modules/2.6.18-omap1/ext2.ko.

Is this safe to do? I've read (googled) that a few people have had the same problem...

Yes, the 'current' part is simply broken on N800, you have to use 2.6.18-omap1.

Hmm, when thinking about this, it shouldn't be a problem to fix this 'current' link in bootmenu installation so people are less confused.

pearl62 2007-11-15 06:29

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by fanoush (Post 79280)
I have updated initfs_flasher.tgz with changes for this FW. It is untested but I hope it will work. There are no changes in linuxrc script which is the only thing that matters for bootmenu.sh script. USB recovery mode is also included but you may always answer no if you don't want it :-)

Please let me know if it works. I will probably update when Nokia releases new kernel source as I don't want to lose my private changes.

Yes, it seems to work fine. My N800 now has OS2008 in Flash and OS2007 on MMC2, and I can choose which one I want from the bootmenu.

Thanks!

rone 2007-11-16 13:22

Re: Booting from MMC on N800 Now Available!!
 
Do the instructions in the first post work for the n800 with 2008? I know a new initfs_flasher has been released.

Has anybody successfully copied 2008 to a flash memory card and boot from it?

Any special work arounds needed?

fanoush 2007-11-16 13:31

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by rone (Post 95757)
Has anybody successfully copied 2008 to a flash memory card and boot from it?

Yes
Quote:

Originally Posted by rone (Post 95757)
Any special work arounds needed?

No but due to newer kernel there are issues with wlan and arrow keys so old system is not very usable. Please continue discussion here
http://www.internettablettalk.com/fo...ad.php?t=11703

pauljohn32 2008-01-11 05:27

Re: Booting from MMC on N800 Now Available!!
 
i am experienced with linux. I think the simplified nature of these instructions is perplexing.

1. Can i boot from the external SD card? (instructions seem to always assume internal)

2. Why do we need the vfat partiition on the front of the flash disk?

3. Why not create a more ordinary partition arrangement, as on a full linux system. Separate partition for /home, Especially. That would allow us to protect docs while replacing OS.

TIA

PJ

nhanquy 2008-01-19 22:28

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by pauljohn32 (Post 125274)
i am experienced with linux. I think the simplified nature of these instructions is perplexing.

1. Can i boot from the external SD card? (instructions seem to always assume internal)

2. Why do we need the vfat partiition on the front of the flash disk?

3. Why not create a more ordinary partition arrangement, as on a full linux system. Separate partition for /home, Especially. That would allow us to protect docs while replacing OS.

TIA

PJ

1. yes you can ! Just add external SD (mmc1, mmcblk1p2) [clone it from the item for internal SD (mmc2, mmcblk0p2) ] to bootmenu.config before you flash the boot loader.

2. You don't need to just to make it work with windoze I think. Note that the above item could be different and no longer blk1p1 but maybe blk1p0. I am taking the N800 as an example here. I do not have a N810!

3. Yes. You can do that.

AbelMN 2008-01-26 21:55

Re: Booting from MMC on N800 Now Available!!
 
220 posts on Rebooting from MMC.

Not very reassuring !

Question 5 (or so) already said it all: Why should I reboot from MMC ? :confused:

ghoonk 2008-01-27 06:43

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by gLobster (Post 79786)
Sorry, I find my error:
Bad download :)

Hang on, i got this error too.

Where do I get a 'good' download then?

fanoush 2008-01-27 07:30

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by ghoonk (Post 134274)
Hang on, i got this error too.

Where do I get a 'good' download then?

Just try again.

mooler 2008-01-29 05:41

Re: Booting from MMC on N800 Now Available!!
 
Anybody know why my boot menu has disappeared and it boots directly from my SD card? It boots in 12 seconds. Also I have noticed that my battery icon has disappeared only to reappear when i plug in the charger. the icon does not indicate charging but does show "charging" when i tap the icon

mooler 2008-01-29 05:50

Re: Booting from MMC on N800 Now Available!!
 
well the menu reappeared. i unplugged the charger and rebooted again. does this have anything to do with it? I am also using fanoush's custom kernel with SD high speed

braveally 2008-03-06 02:01

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by fanoush (Post 40839)
Now I got bitten by this too. Workaround is to edit file
/usr/sbin/osso-mmc-umount.sh (as already mentioned here http://www.internettablettalk.com/fo...&postcount=123 )
and change one line 'umount $mp 2> /dev/null' in this loop
Code:

        for mp in $MPS; do
          umount $mp 2> /dev/null
          RC=$?
          if [ $RC != 0 ]; then
            echo "$0: could not unmount $mp"
            exit $RC
          fi
        done

to be
Code:

        for mp in $MPS; do
          if [ "$mp" != "/" ] ; then umount $mp 2> /dev/null ; fi
          RC=$?
          if [ $RC != 0 ]; then
            echo "$0: could not unmount $mp"
            exit $RC
          fi
        done

Which means skip unmounting root filesystem. If you don't write to same filesystem (i.e the active linux partition) over usb, it is safe. Most probably you just want to write to first FAT partition anyway.

how do i save the script back in place. I downloaded a 3rd party file manager just to find the file. I changed it but i am unable to replace it and the notes app (or regular file manager) refuses to let me replace the file.

rhkuo 2008-03-07 20:43

Re: Booting from MMC on N800 Now Available!!
 
Are you logged in as root? You probably can't do it as default user.

iliaden 2008-03-14 15:01

Re: Booting from MMC on N800 Now Available!!
 
either my search techniques are awful, or it isn't yet completely described:
how does one create an exact backup of the entire filesystem to mmc card?

what I have is :
#mount -t jffs2 /dev/mtdblock4 /opt
#./mkfs.jffs2 -r /opt -o /media/mmc2/rootfs.jffs2 -e 128 -l -n
/bin/sh: ./mkfs.jffs2: not found

I am running OS 2008 from an n800. any suggestions?

rhkuo 2008-03-14 20:02

Re: Booting from MMC on N800 Now Available!!
 
I believe I had a similar problem... make sure that the downloaded initfs_flasher.tgz file extracted properly when you untar'ed it, with no error messages. It may be incomplete and you may have to redownload it. Alternatively you might need a different version of the tar program (the GNU tar on Penguinbait's site).

GeraldKo 2008-03-14 20:04

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by iliaden (Post 155028)
how does one create an exact backup of the entire filesystem to mmc card?

iliaden, since I'm not sure what your goal is, I'm not positive this will answer your question, but it might.

fanoush 2008-03-14 20:13

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by iliaden (Post 155028)
how does one create an exact backup of the entire filesystem to mmc card?

what I have is :
#mount -t jffs2 /dev/mtdblock4 /opt
#./mkfs.jffs2 -r /opt -o /media/mmc2/rootfs.jffs2 -e 128 -l -n
/bin/sh: ./mkfs.jffs2: not found

The './' part tells it to search for command in current directory. mkfs.jffs2 is inside initfs_flasher/ directory of initfs flasher


These steps will make jffs2 image directly flashable by linux flasher over usb or by mtd-utils (flash_eraseall, nandwrite) when running from device.

iliaden 2008-03-15 17:06

Re: Booting from MMC on N800 Now Available!!
 
I feel embarassed...
I knew this, yet failed to think about it.
Thanks for reminding me.

jffs2 image created successfully :D

iliaden 2008-03-18 03:11

Re: Booting from MMC on N800 Now Available!!
 
problem: mmc boot, no applets, no programs open works perfectly.

As soon as I insert a media card that has
1) ~2000 ID3-tagged mp3 files
2) 128Mb swap created when it was used as internal mmc
3) that's it

at this point, the cpu jumps to 100% for at least 30min (I'll leave it overnight; tell you the results in a few hours)
As far as I see it- the use of the information stored on this sd card is not available while booting from mmc.
Any reasons why and what I might do to solve this?

Thank you

Ilia

UPDATE: only 7 hours! after this the CPU went back to normal, and the card was recognized correctly.

smileyninja 2008-03-19 20:46

Re: Booting from MMC on N800 Now Available!!
 
I have a question/problem and searching doesn't seem to provide any simple solution. I flashed my N800 from OS2007 to the latest OS2008 (51-3 version). Using the nupgrade.sh scripts everything seemed to work OK- until I finished. Everytime I reboot, I get a popup message stating memory card is corrupt. File manager complains the card is not formatted and offers to format it- when I do so it complains that it's unable to and that I should use File Manager to format the card. In OS2007 and the first OS2008, I was able to edit the /usr/sbin/osso-mmc-umount.sh file and "turn on" the DOS partition, but the script is different in the latest version.

Did I miss a step somewhere or is my card truly corrupted? Windows can't find anything wrong with the card.

fanoush 2008-03-20 05:47

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by iliaden (Post 156662)
As soon as I insert a media card that has
1) ~2000 ID3-tagged mp3 files
...
at this point, the cpu jumps to 100% for at least 30min (I'll leave it overnight; tell you the results in a few hours)

It looks like the metalayer-crawler media indexing daemon has tough time with your media files. How long it takes when you boot from interrnal flash and do same thing? Do you use ext2 or ext3 filesystem on mmc boot partition? This is latest OS2008 firmware or OS2007?

iliaden 2008-03-20 11:10

Re: Booting from MMC on N800 Now Available!!
 
sorry for omitting that info.

n800, OS2008, 1gb SD card to boot from; booting from ext2.

I thought it was doing this, but when I boot from flas, hand ask the load appelet to show me what processes are running, it shows me metalayer-crawler uses about 30-40%, and the cpu bar isn't at 100%. Oh, and it runs for no more than 5-10 minutes.

why would the boot from the mmc be so different?

Ilia

p.s. what would be the difference in this case between ext2 and ext3? doesn't it come to the same result?

fanoush 2008-03-21 09:33

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by iliaden (Post 157707)
why would the boot from the mmc be so different?

I've seen something similar but don't have so much media files on my card. Hard to say why exactly but the simple answer is that metalayer crawler is badly written or not optimized/tested for running from ext2 filesystem. I guess the problem is that /home/user containing metalayer crawler database is now on MMC and scanned media too so metalayer-crawler both reads and writes (different or even same) mmc card at the same time and the performance is poor because of this concurrent access. 7 hours vs 10 minutes is really pathological and needs fixing. Either it is some real bug or simply bad programming style that does not hurt with internal flash. I guess better write caching when updating the database should help a lot.


Quote:

Originally Posted by iliaden (Post 157707)
p.s. what would be the difference in this case between ext2 and ext3? doesn't it come to the same result?

I guess ext3 could be much slower in this case than ext2 so I hoped you're using ext3 and got those 7 hours.

iliaden 2008-03-25 00:45

Re: Booting from MMC on N800 Now Available!!
 
Thanks for the guidelines... guess when i'll be using my n800 as a media player, i'll be booting from internal flash ;)

I don't have any media files on internal flash card (except 3 mp3 tracks included into OS2008). Repeated the test with the same flash card - same result (~5-6 hours); tried with another card (~250 mp3 tracks); took me ~30-45 minutes.
Although, when the metalayer-crawler is working, I can play those media files (with canola at least)... so the process isn't mandatory. Yet when I kill it, it automatically restarts. Does any manual solution exist?

Thanks

Ilia

fanoush 2008-03-25 09:34

Re: Booting from MMC on N800 Now Available!!
 
Quote:

Originally Posted by iliaden (Post 159684)
Although, when the metalayer-crawler is working, I can play those media files (with canola at least)... so the process isn't mandatory. Yet when I kill it, it automatically restarts. Does any manual solution exist?

You can disable it altogether if you don't use built-in media player. Search this forum for details, people do it for many reasons. You can remove or rename the /etc/rc2.d/S99metalayer-crawler0 startup script (as root) and reboot but beware that you won't see any media files in built-in player. You can still use it when opening files directly from File Manager.

BTW I have reported your experience in related bug here http://bugs.maemo.org/show_bug.cgi?id=1842

iliaden 2008-03-25 10:17

Re: Booting from MMC on N800 Now Available!!
 
thanks.

Regarding the bug you submitted, I have a correction to add: the process does NOT consume extra RAM. Only CPU is drained to 100%; for the RAM, it reports a usage of ~ 3Mb. The device is not paralyzed, yet becomes incredibly slow.

Ilia


All times are GMT. The time now is 02:53.

vBulletin® Version 3.8.8