maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   bootmenu initfs flasher updated for OS2008 (https://talk.maemo.org/showthread.php?t=11703)

penguinbait 2007-12-14 22:23

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 108787)
OK, I have updated initfs flasher archive. it uses event0 for N810, both enter and select keys should work for selecting menu and -19 N810 firmware should now work too (initfs version changed in -19 but otherwise linuxrc script is same as in -18). If someone tries this with N810, let me know here how it works. Thanks.


Thank you !!


Seriously, as soon as I hit post reply, I wondered why I did not just hit the Thanks button. I guess I will go do that now:D

vormund 2007-12-15 00:32

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 108787)
OK, I have updated initfs flasher archive. it uses event0 for N810, both enter and select keys should work for selecting menu and -19 N810 firmware should now work too (initfs version changed in -19 but otherwise linuxrc script is same as in -18). If someone tries this with N810, let me know here how it works. Thanks.

I'll just upgrade mine to -19 before reflashing then and I'll let you know how it goes. Thanks for getting that done so fast.

vormund 2007-12-15 03:16

Re: bootmenu initfs flasher updated for OS2008
 
Ok I updated my n810 to -19 and initfs flasher worked fine, also the keys now work on the n810 as well. However Ive found that if I have my external sd card in when booting it cant boot to the internal mmc2, partition 2 and it boots from the flash memory.

fanoush 2007-12-15 18:16

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by vormund (Post 108874)
However Ive found that if I have my external sd card in when booting it cant boot to the internal mmc2, partition 2 and it boots from the flash memory.

There was/is similar/same bug with N800. The problem I've seen is that when you only had card in N800 external slot, it was named /dev/mmcblk0 but with both cards or card only in internal slot the internal was mmcblk0 and external mmcblk1. You can verify that it is this bug by customizing menu via optional bootmenu.conf and creating item for both external and internal card partition 2. Then you can try to boot the external one and see whether the internal one boots. Maybe it is even this bug combined with the fact that N810 has MMC slots named differently? With N800 internal one is mmcblk0 and external mmcblk1, can you check how it it with N810?

vormund 2007-12-15 19:04

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 109036)
There was/is similar/same bug with N800. The problem I've seen is that when you only had card in N800 external slot, it was named /dev/mmcblk0 but with both cards or card only in internal slot the internal was mmcblk0 and external mmcblk1. You can verify that it is this bug by customizing menu via optional bootmenu.conf and creating item for both external and internal card partition 2. Then you can try to boot the external one and see whether the internal one boots. Maybe it is even this bug combined with the fact that N810 has MMC slots named differently? With N800 internal one is mmcblk0 and external mmcblk1, can you check how it it with N810?

I added an option to boot from mmcblk1p2 and that worked when I had the external card in. It looks like when theres no external card the internal card is mmcblk0, and when the external card is in the internal is mmcblk1 and external is mmcblk0.

fanoush 2007-12-15 20:18

Re: bootmenu initfs flasher updated for OS2008
 
Hmm, so it is same problem but card slots are switched. This is unfortunate. With N800 people rarely boot from external card with internal slot empty because internal slot is ideal for booting. Looks like with N810 mmc interfaces are switched so this bug will bite more people. What is interesting is that after the device boots the device name changes back. I remember when I booted system from external card 'df' command printed root partition being on mmcblk0p2 but FAT partition (on the same card) was named mmcblk1p1, do you see it too (if you still have FAT partition on internal card)? I am not sure where the bug is - kernel or udev or something else. Perhaps it is time to report it in Maemo bugzilla.

vormund 2007-12-15 22:01

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 109074)
Hmm, so it is same problem but card slots are switched. This is unfortunate. With N800 people rarely boot from external card with internal slot empty because internal slot is ideal for booting. Looks like with N810 mmc interfaces are switched so this bug will bite more people. What is interesting is that after the device boots the device name changes back. I remember when I booted system from external card 'df' command printed root partition being on mmcblk0p2 but FAT partition (on the same card) was named mmcblk1p1, do you see it too (if you still have FAT partition on internal card)? I am not sure where the bug is - kernel or udev or something else. Perhaps it is time to report it in Maemo bugzilla.

Yeah I noticed that it switches back after booting because when I partitioned the internal card I partitioned and formated mmcblk0 and the external card was also in and it wasnt formated. Mines showing that I've booted from mmcblk1p2 and that my FAT partition on the internal card is mmcblk0p1, and my external card is mmcblk1p1.

fanoush 2007-12-18 13:59

Re: bootmenu initfs flasher updated for OS2008
 
http://fanoush.wz.cz/maemo/#initfs is now updated for latest 2.2007.50-2
I have not tested it yet with my N800 but linuxrc script in 2.2007.50-2 is same as in OS2008 beta for N800 (1.2007.44-4) so I have just updated list of supported versions and it should work both for N800 and N810. Will try this evening.

I updated also README.txt with some info about usb network recovery mode. Nothing new, just stuff that was already said here in the forum.

tolou 2007-12-19 09:52

Re: bootmenu initfs flasher updated for OS2008
 
Soo, what about a dual boot with OS2007? Is there a way to perhaps modify OS2007 kernels to the updated versions of WLAN modules to get online with OS2007 as well? Once over this obstacle I´ve no plans for going back, soo...

ascherjim 2007-12-19 15:44

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 94575)
Hi,

http://fanoush.wz.cz/maemo/initfs_flasher.tgz is now updated for OS2008. Seems to work with N800. Not sure about N810 but hopefully it is same.

Fanoush: Rather that start a new thread at this time, I'll try to append to this thread a description of my current (quite serious!) problem.

I have had to reflash the new firmware twice now in the last 24 hours, reinstalling all my apps, etc., because after I've executed your latest initfs_flash, not only can't I boot from my trusty mmc2 clone, but trying to boot from flash then fails also. The Nokia screen comes up, I get the menu screen, then it automatically tries to reboot -- failing each time, with no ultimate success.

My initial attempts at executing initfs_flash were in fact failing with the message stating "Cannot find initfs.bootmenu.jffs2, something failed, nothing flashed." Following this, I restored my previous (2007) MyDocs/.documents directory, and then I was able to effect what I though was a successful establishing of my bootmenu. But it doesn't work, and now I'm going to have to reflash a third time! Will I have to abandon my mmc clone? Thanks and regards, Jim

lbattraw 2007-12-19 16:13

Re: bootmenu initfs flasher updated for OS2008
 
I can confirm problems with the initfs flasher with the new OS2008/n800 image. I've tried it a couple times and it will never boot from the mmc card, using the default settings as before. It will fail to boot from mmc and boot from flash but then I find I can't mount anything in the second SD slot; it's like I have a n810 without the keyboard/GPS :rolleyes:

Larry

fanoush 2007-12-19 21:32

Re: bootmenu initfs flasher updated for OS2008
 
Hmm, that's strange. Yesterday evening I downloaded flasher from the web to N800 with latest firmware and my bootmenu installation works fine. The only difference may be that I have my own bootmenu.conf which may override something. Will try with default bootmenu.sh with no customization. Do you use custom bootmenu.conf or copy one of examples included or have none?

Quote:

Originally Posted by ascherjim (Post 111166)
My initial attempts at executing initfs_flash were in fact failing with the message stating "Cannot find initfs.bootmenu.jffs2, something failed, nothing flashed."

This looks like something serious, posting of full output (including extraction via tar) would tell more. Looks like full disk or currupted archive.


Quote:

Originally Posted by ascherjim (Post 111166)
Following this, I restored my previous (2007) MyDocs/.documents directory, and then I was able to effect what I though was a successful establishing of my bootmenu.

Again full output of such "what I though was a successful establishing of my bootmenu" would say more.

Quote:

Originally Posted by ascherjim (Post 111166)
But it doesn't work, and now I'm going to have to reflash a third time!

With linux flasher you can restore just initfs so your rootfs in flash (with all applications) is not touched. I think you need to add '--flash-only initfs' to flasher arguments (-f -F RX-34......bin -R) or you can first unpack firmware (flasher-3.0 -u -F RX-34...bin) and then flash just initfs.jffs2 (flasher-3.0 -n initfs.jffs2 -f) to be safe from flashing full firmware in case you make some typo with full firmware image as a parameter.

Quote:

Originally Posted by ascherjim (Post 111166)
Will I have to abandon my mmc clone? Thanks and regards, Jim

No. Your clone on mmc is 2007 or 2008 system?

fanoush 2007-12-19 21:41

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by lbattraw (Post 111190)
I can confirm problems with the initfs flasher with the new OS2008/n800 image. I've tried it a couple times and it will never boot from the mmc card, using the default settings as before. It will fail to boot from mmc and boot from flash but then I find I can't mount anything in the second SD slot
Larry

Looks like different problem. So in this case boot from flash works but mmc fails. Which slot doesn't work, the one you tried to boot from? If you select first item and boot from flash directly (i.e. no mmc boot failure) then second slot works? If you restore original initfs from firmware then second slot works?

Is anyone except me actually having no problem with initfs_flasher and latest 2008 firmware?

ascherjim 2007-12-19 21:59

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 111427)
Hmm, that's strange. Yesterday evening I downloaded flasher from the web to N800 with latest firmware and my bootmenu installation works fine. The only difference may be that I have my own bootmenu.conf which may override something. Will try with default bootmenu.sh with no customization. Do you use custom bootmenu.conf or copy one of examples included or have none?

I tried it once with my own customized bootmenu.conf and once with the default. It failed in both instances.


This looks like something serious, posting of full output (including extraction via tar) would tell more. Looks like full disk or currupted archive.

The only way I can post this is to repeat the (failing) effort, which I am understandably loathe to do.

Again full output of such "what I though was a successful establishing of my bootmenu" would say more.

Ditto, my reluctance.

With linux flasher you can restore just initfs so your rootfs in flash (with all applications) is not touched. I think you need to add '--flash-only initfs' to flasher arguments (-f -F RX-34......bin -R) or you can first unpack firmware (flasher-3.0 -u -F RX-34...bin) and then flash just initfs.jffs2 (flasher-3.0 -n initfs.jffs2 -f) to be safe from flashing full firmware in case you make some typo with full firmware image as a parameter.

This is clearly a safer way for me to proceed -- if I entirely understood it, which I don't. I'm afraid you'd have to be a bit more explicit, i.e. give me the actual code language and place of the command. Sorry.

No. Your clone on mmc is 2007 or 2008 system?

My clone is of quite recent vintage.

Many thanks and regards,

coffeedrinker 2007-12-19 22:00

Re: bootmenu initfs flasher updated for OS2008
 
I successfully used the bootmenu by editing bootmenu.sh and I am using it to boot from the external slot on my n800 (/dev/mmcblk1p1).

fnordianslip 2007-12-19 22:11

Re: bootmenu initfs flasher updated for OS2008
 
I followed the cloning to sd card procedure with new OS2008 image on N800 and had no probs.

ascherjim 2007-12-19 22:29

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 111427)
Hmm, that's strange. Yesterday evening I downloaded flasher from the web to N800 with latest firmware and my bootmenu installation works fine. The only difference may be that I have my own bootmenu.conf which may override something. Will try with default bootmenu.sh with no customization. Do you use custom bootmenu.conf or copy one of examples included or have none?


This looks like something serious, posting of full output (including extraction via tar) would tell more. Looks like full disk or currupted archive.



Again full output of such "what I though was a successful establishing of my bootmenu" would say more.



With linux flasher you can restore just initfs so your rootfs in flash (with all applications) is not touched. I think you need to add '--flash-only initfs' to flasher arguments (-f -F RX-34......bin -R) or you can first unpack firmware (flasher-3.0 -u -F RX-34...bin) and then flash just initfs.jffs2 (flasher-3.0 -n initfs.jffs2 -f) to be safe from flashing full firmware in case you make some typo with full firmware image as a parameter.


No. Your clone on mmc is 2007 or 2008 system?

FANOUSH: WELL, I DECIDED TO THROW CAUTION TO THE WINDS, AND ON THE BASIS OF ALL YOUR PRIOR EXCELLENT ADVICE OVER YEARS I GAVE IT ANOTHER TRY. THIS WAS NOT STRICTLY A BLIND ROLLING OF THE DICE ON MY PART, BUT THERE WAS ONE CHANGED CIRCUMSTANCE WHICH MADE ME WILLING TO TRY AGAIN: IN MY THIRD FLASHING OF THE NEW FIRMWARE, I DID NOT RESTORE ANY FILES FROM PREVIOUSLY. I WAS THEREFORE, I FIGURED, STARTING WITH A CLEAN SLATE. (OH, THESE METAPHORS!)

ANYWAY, EVERYTHING WENT FINE AND I CAN USE MY MMC SYSTEM AGAIN. WHICH IS GREAT, IN THAT THERE ARE FEW APPLICATIONS YET AVAILABLE TO ME THROUGH SUCCESSFUL DOWNLOADING IN THE NEW FIRMWARE. AGAIN, MANY THANKS. SORRY TO HAVE TROUBLED YOU. WE MUST BE VERY CAUTIOUS (OR SELECTIVE) IN RESTORING AFTER A RE-FLASHING, WHICH WE HAVE BEEN VARIOUSLY WARNED AGAINST ELSEWHERE IN THIS FORUM

fanoush 2007-12-19 22:44

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by ascherjim (Post 111448)
This is clearly a safer way for me to proceed -- if I entirely understood it, which I don't. I'm afraid you'd have to be a bit more explicit, i.e. give me the actual code language and place of the command. Sorry.

You can flash full firmware from linux PC via
Code:

flasher-3.0 -f -F RX-34_2008SE_2.2007.50-2_PR_COMBINED_MR0_ARM.bin -R
You can flash only initfs part by adding --flash-only initfs so whole line is
Code:

flasher-3.0 --flash-only initfs -f -F RX-34_2008SE_2.2007.50-2_PR_COMBINED_MR0_ARM.bin -R
This will, restore initfs without losing any other data.

Anyway, I am happy it worked fine after all. Still, restoring backup should not affect anything. Well except when it is so large it fills whole flash leaving not enough space for initfs flasher to create initfs.bootmenu.jffs2 image.

Thanks to others for confirming that it works for them.

ascherjim 2007-12-19 23:15

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 111479)
You can flash full firmware from linux PC via
Code:

flasher-3.0 -f -F RX-34_2008SE_2.2007.50-2_PR_COMBINED_MR0_ARM.bin -R
You can flash only initfs part by adding --flash-only initfs so whole line is
Code:

flasher-3.0 --flash-only initfs -f -F RX-34_2008SE_2.2007.50-2_PR_COMBINED_MR0_ARM.bin -R
This will, restore initfs without losing any other data.

Anyway, I am happy it worked fine after all. Still, restoring backup should not affect anything. Well except when it is so large it fills whole flash leaving not enough space for initfs flasher to create initfs.bootmenu.jffs2 image.

Thanks to others for confirming that it works for them.

Fanoush: Thanks. I will definitely save those code commands for possible future use.

There's always a slight cloud in a silver lining! My mmc clone will now not allow me to access wi-fi and the internet -- it doesn't recognize my router, and my codes are still all right -- and the directional toggles in the D-button don't work. But since I can access wi-fi all right in the main flash firmware, I'm not at this point seriously inconvenienced. Thanks again.

fanoush 2007-12-20 08:10

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by ascherjim (Post 111501)
My mmc clone will now not allow me to access wi-fi and the internet -- it doesn't recognize my router, and my codes are still all right -- and the directional toggles in the D-button don't work

Yes, this is known issue. You may check beginning of this thread for more details.

ascherjim 2007-12-20 15:38

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 111764)
Yes, this is known issue. You may check beginning of this thread for more details.

In view of the wlan and D-button problems on the 2007 mmc clone, I think I'll give up on using it and remove it from the mmc and reformat the card to gain use of the entire mmc for file storage purposes. I think I'll retain the bootmenu, though, for possible future use if I choose to clone the present 2008 firmware if and when new firmware is released, correcting all the present bugs being detected. I may have to acquire an additional card to do so, but by then the prices will really have dropped. Thanks again.

tolou 2007-12-21 14:01

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by tolou (Post 110993)
Soo, what about a dual boot with OS2007? Is there a way to perhaps modify OS2007 kernels to the updated versions of WLAN modules to get online with OS2007 as well? Once over this obstacle I´ve no plans for going back, soo...

One more thought. Is the OS2008 perhaps backwards compatible and what if I were to re-install a earlier version of initsfs with a bootloader for OS2007, will the OS2008 be able to boot on that?
A long shot maybe after having read the boot issues above but might be worth a try don´t you think?

roblynn 2007-12-21 19:57

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 111436)
Is anyone except me actually having no problem with initfs_flasher and latest 2008 firmware?

I am using your latest version, and have no problem with either OS2008beta or OS2008 clones (on a N800)

Robert B.

FGol 2008-01-03 00:00

Re: bootmenu initfs flasher updated for OS2008
 
After installing init_flasher, I get the "Press Menu to activate boot menu" message for like a half a second and it immediately goes to booting from flash. No pressing of menu or any key seems to affect it. I wonder if the problem is that I upgraded the OS to Nokia's latest fix level after unpacking my N810 on Dec 30. Has anyone else experienced this kind of behavior?

hmm... iwhen removing "extra stuff" the shell text says "extracting boot menu files for initfs version osso-RX-44.2007-49..." Should that be 2008?

Thanks
Frank

PinCushionQueen 2008-01-03 00:38

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by FGol (Post 119620)
After installing init_flasher, I get the "Press Menu to activate boot menu" message for like a half a second and it immediately goes to booting from flash. No pressing of menu or any key seems to affect it. I wonder if the problem is that I upgraded the OS to Nokia's latest fix level after unpacking my N810 on Dec 30. Has anyone else experienced this kind of behavior?

hmm... iwhen removing "extra stuff" the shell text says "extracting boot menu files for initfs version osso-RX-44.2007-49..." Should that be 2008?

Thanks
Frank

No 2007 is correct but the newest OS is 50-2 not 49-18/19.

I've flashed my N810 after the OS2008 50-2 upgrade and the only way to get it to boot from my new clone was to add the bootmenu.conf file to the init_flasher directory and then rerun/rebuild ( # ./initfs_flash ).

There are some samples included in the init_flasher tarball for the 770 & 800. There appears to be a bug in the 810s find out more here.

Here's what my bootmenu.conf looks like:
Code:

# bootmenu customisation file
#
# included from bootmenu.sh after default menu is defined
# you can change some items or redefine menu completely

# timeout for automatic selection when no key is pressed
# set to -1 for no timeout (not recommended, can drain battery when device reboots unatteded)
MENU_TIMEOUT=3

# IP address for USB networking
USB_IP=192.168.1.2

# dim screen when in menu
#/usr/sbin/dsmetest -l 1

# menu items
MENU_MIN=1 # first item index

#no need to redefine
#MENU_1_NAME="Internal flash"
#MENU_1_ID="flash"

MENU_2_NAME="Internal MMC, partition 2, ext2"
MENU_2_ID="mmc2"
MENU_2_DEVICE="mmcblk1p2"
MENU_2_MODULES="mbcache ext2"
MENU_2_FSTYPE="ext2"
MENU_2_FSOPTIONS="noatime"

MENU_3_NAME="External MMC card, partition 2, ext3"
MENU_3_ID="mmc12"
MENU_3_DEVICE="mmcblk0p2"
MENU_3_MODULES="mbcache jbd ext3"
MENU_3_FSTYPE="ext3"
MENU_3_FSOPTIONS="noatime" #",data=writeback"

MENU_4_NAME="Power off (when not on charger)"
MENU_4_ID="off"

#last item index, change if you add/remove items
MENU_MAX=4


FGol 2008-01-03 02:26

Re: bootmenu initfs flasher updated for OS2008
 
Thank you PCQ. Yes, I had updated a /home/user/initfs_flasher/bootmenu.conf and rebuilt. This time I copied your text directly into the N810, made it the bootmenu.conf, rebuilt again, rebooted and no affect. I don't get the menu at all. I can update the message the shell puts out so I know it's running; it just doesn't seem to recognize or react to the menu button.

??

Thank you,
Frank

fanoush 2008-01-03 09:04

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by FGol (Post 119712)
it just doesn't seem to recognize or react to the menu button.

Yes, this is a bug and I think I know how to fix it. Sorry, it is hard to spot such bugs without having N810. Meanwhile as a workaround you can force the menu to appear everytime by running
Code:

chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
as root on your tablet. The 'ask' part is important, mmc2 is preselected choice.

fanoush 2008-01-03 09:16

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by PinCushionQueen (Post 119646)
No 2007 is correct but the newest OS is 50-2 not 49-18/19.

initfs partition has its own version numbering and it can be shared between various firmware releases so version of firmware (50-2 in this case) does not matter for initfs flasher (and is not checked). The only thing that matters is content of /mnt/initfs/etc/initfs_version.

Also the flasher should always refuse to modify unknown (newer) initfs. With every new firmware release I need to check it and see if it needs different patch or I can make an alias (soft link) to any older one.

FGol 2008-01-03 13:59

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 119822)
Yes, this is a bug and I think I know how to fix it. Sorry, it is hard to spot such bugs without having N810. Meanwhile as a workaround you can force the menu to appear everytime by running
Code:

chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
as root on your tablet. The 'ask' part is important, mmc2 is preselected choice.

Excellent -- thank you. That forces the menu and the preselected mmc2 boot. I guess moving the menubar via up and down hardware presses fails also due to the same problem as the menu key?

Thank you,
Frank

fanoush 2008-01-03 14:33

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by FGol (Post 119901)
I guess moving the menubar via up and down hardware presses fails also due to the same problem as the menu key?

No, D-pad arrows in menu should work. Make sure you got latest version, this was fixed recently (2 weeks?).

http://fanoush.wz.cz/maemo/initfs_flasher.tgz - 349993 bytes

dan 2008-01-05 17:54

Re: bootmenu initfs flasher updated for OS2008
 
Fanoush and others,

I'm really new to this linux and I barely understand these threads about dual booting.
Can someone point me in the right direction.
I would like to have only the os2008 boot from my removable 16gb card. I don't want or need os2007. Is this possible and will all my apps and updated apps from os2008 work properly? If there is a final version of this coming i will gladly wait. Thanks, lol, Dan

nhanquy 2008-01-08 18:51

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by dan (Post 121427)
Fanoush and others,

I'm really new to this linux and I barely understand these threads about dual booting.
Can someone point me in the right direction.
I would like to have only the os2008 boot from my removable 16gb card. I don't want or need os2007. Is this possible and will all my apps and updated apps from os2008 work properly? If there is a final version of this coming i will gladly wait. Thanks, lol, Dan

Dual booting means you have an option either booting from internal flash or from an SD card. In the case of the N800, the SD card is
also installed internally. It could be your new 16gb! Don't confuse
the internal flash which is very small in size and running OS in compression for space saving.

To be able dual boot you have to format the new card, create partitions on the card, put a new boot loader into flash so the Nokia can do a dual boot, and lastly clone the OS into your SD.


In order to format the card, you have to become (unix super user) root and be able to access to a command window, called xterm.

Some related links:

http://maemo.org/community/wiki/HowTo_EASILY_BecomeRoot
http://maemo.org/community/wiki/HowT..._From_MMC_card
http://www.internettablettalk.com/fo...975#post111975

Link you can download apps after cloning and booting from your SD:

http://www.internettablettalk.com/wi...08_OS_Software

Please read more!

Graham Cobb 2008-01-10 10:34

Re: bootmenu initfs flasher updated for OS2008
 
I have been bitten by the N810 device names changing with/without the removable card present but I think I have found a solution. I have put the following code at the top of my bootmenu.conf:

Code:

# Set up card names by model                                                                                                       
# Assume 770                                                                                                                       
INT_CARD=""                                                                                                                         
EXT_CARD="mmcblk0"                                                                                                                 
if grep -q RX-34 /proc/component_version                                                                                           
then #N800                                                                                                                         
INT_CARD="mmcblk0"                                                                                                                 
if grep -q mmcblk1 /proc/partitions                                                                                                 
then # Removable card present                                                                                                       
EXT_CARD="mmcblk1"                                                                                                                 
else # Removable card not present                                                                                                   
EXT_CARD=""                                                                                                                         
fi                                                                                                                                 
fi                                                                                                                                 
if grep -q RX-44 /proc/component_version                                                                                           
then #N810                                                                                                                         
if grep -q mmcblk1 /proc/partitions                                                                                                 
then # Removable card present                                                                                                       
INT_CARD="mmcblk1"                                                                                                                 
EXT_CARD="mmcblk0"                                                                                                                 
else # Removable card not present                                                                                                   
INT_CARD="mmcblk0"                                                                                                                 
EXT_CARD=""                                                                                                                         
fi                                                                                                                                 
fi

This then allows me to create entries that look like:

Code:

MENU_2_NAME="Boot internal MMC card, partiton 2, ext2"                                                                             
MENU_2_ID="mmcint2"                                                                                                                 
MENU_2_DEVICE=${INT_CARD}p2                                                                                                         
MENU_2_MODULES="mbcache ext2"                                                                                                       
MENU_2_FSTYPE="ext2"                                                                                                               
MENU_2_FSOPTIONS="noatime"                                                                                                         
                                                                                                                                   
MENU_3_NAME="Boot removable MMC card, partiton 2, ext2"                                                                             
[ -z "$EXT_CARD" ] && MENU_3_NAME="No removable card -- do not select this"                                                         
MENU_3_ID="mmcext2"                                                                                                                 
MENU_3_DEVICE=${EXT_CARD}p2                                                                                                         
MENU_3_MODULES="mbcache ext2"                                                                                                       
MENU_3_FSTYPE="ext2"                                                                                                               
MENU_3_FSOPTIONS="noatime"

This has only been tested on my N810 but it works there. Would someone with an N800 like to test it as well?

Maybe Frantisek could consider adding the device name logic to the standard bootmenu.sh and we could all just use the device name variables in our bootmenu.conf?

Graham

fanoush 2008-01-10 11:36

Re: bootmenu initfs flasher updated for OS2008
 
Yes, I guess I should add something like this to bootmenu.sh. I was trying to find it in kernel sources and I would rather try to fix this bug in kernel so the names are consistent but it can be done as a temporary workaround. And also having such variables could be useful so one does not need to remeber naming of the slots for various devices. I'll try to add it but I'll try to figure out slot naming from information in /sys/devices/platform/mmc...

But still this bug needs to be fixed. Once you boot from such mismatched device the system device naming is not consistent. With N800 it happens when you only have card in external slot, with N810 in internal slot. Sadly with N810 this is more likely. See output of df after you boot, you may see two partitions mounted from same card but one starting with mmcblk0 and the other with mmcblk1. This may be confusing to some (system) programs and even dangerous. Imagine e.g. formatting external card in file manager and having the other card erased by mistake. Also the usb storage functionality may be confused when trying to unmount the card when you insert usb cable.

fanoush 2008-01-10 12:08

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 124677)
But still this bug needs to be fixed.

I have reported it here http://bugs.maemo.org/show_bug.cgi?id=2747

Zebee 2008-01-12 20:40

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 111479)
You can flash full firmware from linux PC via
Code:

flasher-3.0 -f -F RX-34_2008SE_2.2007.50-2_PR_COMBINED_MR0_ARM.bin -R
You can flash only initfs part by adding --flash-only initfs so whole line is
Code:

flasher-3.0 --flash-only initfs -f -F RX-34_2008SE_2.2007.50-2_PR_COMBINED_MR0_ARM.bin -R
This will, restore initfs without losing any other data.

I currently have 2008 on the SD card and 2007 on internal. If I boot from SD, then wireless doesn't work as you have noted.

If I flash the initfs with 2008 as above and boot from SD card, will that work or break everything? And then when booted with SD/2008, flash with 2007 and then can boot from internal/2007? (I ask rather than trying for fear of brick...)

Is it possible to redo the initfs from the tablet itself, rather than having to flash from a PC?

Still looking for dual boot os2007/OS2008. Seems that the initfs is the key?

Zebee

fanoush 2008-01-13 12:10

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by Zebee (Post 126313)
I currently have 2008 on the SD card and 2007 on internal. If I boot from SD, then wireless doesn't work as you have noted.

If I flash the initfs with 2008 as above and boot from SD card, will that work or break everything?

You should always have matching kernel and initfs or tablet may not boot. So if you flash initfs for OS2008 you should also flash kernel for OS2008.

Quote:

Originally Posted by Zebee (Post 126313)
Is it possible to redo the initfs from the tablet itself, rather than having to flash from a PC?

Yes, you can flash prepared initfs image from the tablet, just run initfs_flash script with existing jffs2 initfs image.This will skip the wizard and just flash the image (original or with bootmenu, doesn't matter). There should be one or two such images in initfs_flasher directory if you installed bootmenu.

If you combine this with kernel flasher you can do it in one go before rebooting to different OS200x. First flash kernel, then initfs and reboot.

Zebee 2008-01-13 19:39

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 126700)
You should always have matching kernel and initfs or tablet may not boot. So if you flash initfs for OS2008 you should also flash kernel for OS2008.

That makes sense (and I should have thought of it, aggh!) THe kernel is /mnt/initfs/linuxrc?

So I need to have a copy of the 2007 kernel image available to 2008 and the 2008 image to 2007. Do they need to be in /mnt/initfs, or can they be elsewhere?

Quote:

Yes, you can flash prepared initfs image from the tablet, just run initfs_flash script with existing jffs2 initfs image.This will skip the wizard and just flash the image (original or with bootmenu, doesn't matter). There should be one or two such images in initfs_flasher directory if you installed bootmenu.

If you combine this with kernel flasher you can do it in one go before rebooting to different OS200x. First flash kernel, then initfs and reboot.
Is there a kernel flasher for the tablet, or only one for the PC? (In my case a linux PC.) Does your initfs_flash do it?

And which initfs? Presumably it does matter if it's a 2007 or 2008 one, where are they and how do I tell the difference?

so...

1) find kernel for required OS
- be somewhere on SD card or internal
2) find initfs for required OS
- I have the backup I made on original flash, so I know where that is
3) use PC version of flasher to flash kernel
4) reboot

THe obvious pain is step 3, but initfs_flash doesn't do kernels does it?

Zebee

Machster 2008-01-23 04:34

Re: bootmenu initfs flasher updated for OS2008
 
Fanoush,

Just some feedback from a relatively new user here. When I received my n800 a few weeks ago I immediately flashed to the latest release OS2008. I was surprised at the lack of memory after adding just a few applications.

I searched for a solution and found the thread for using the SD card instead of the internal flash for OS2007. Then Sunday I successfully (i.e. no errors) completed instructions posted by Millhouse using your initfs_flasher. However I have had no luck booting from the internal slot using a partitioned 16GB card. The bootmenu is installed but selecting the second partition results in a failure every time. I have repeated the installation process to no avail.

I have read here in the forums that some have had success (albeit without access to WIFI???) and some like myself that have not. It is yet unclear to me after browsing the forums that this process is successful with the n800 and OS2008. This thread makes it sound that a custom bootmenu file may need to be in the initfs_flasher folder?

vormund 2008-01-23 04:55

Re: bootmenu initfs flasher updated for OS2008
 
Do you have a card in both slots? When I did this on my n810 the labels for the internal and external cards would switch when booting and then switch back after booting. To fix this I had to add an entry to the boot menu to boot from partition 2 of what would normally be the external card. This was discussed back on page 5 of this thread for more info on what to do if this is your problem. If you do have two cards in try booting with only the internal card in first to see if that works.


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

vBulletin® Version 3.8.8