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)

qwerty12 2008-01-23 06:50

Re: bootmenu initfs flasher updated for OS2008
 
At the moment, I am not interested in MMC booting (I just got it yesterday, from what I see, if I want to boot a dump of OS2007, I'll have to flash back).
But the USB Network Recovery Mode does sound great (due to my habit of "bricking" things) but I am unsure if I use the default N800 config supplied (bootmenu.conf.n800.example), I will be able to still reboot into my internal flash after a 10 sec timeout? (I really don't want to brick it because I don't have a Linux install ATM and my Dad will kill me if it don't boot :\)

Thank you.

fanoush 2008-01-23 08:28

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by qwerty12 (Post 132365)
But the USB Network Recovery Mode does sound great (due to my habit of "bricking" things) but I am unsure if I use the default N800 config supplied (bootmenu.conf.n800.example), I will be able to still reboot into my internal flash after a 10 sec timeout?

You don't need to add bootmenu.conf and unless you set different root device name or press menu key at boot time, there is no significant difference, the menu will be hidden and it will still boot directly from flash (no timeout, no slowdown).

fanoush 2008-01-23 08:42

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by Zebee (Post 126894)
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?

If you don't use custom kernel, dafault kernel can be extracted from firmware .bin image via
Code:

flasher-3.0 -u -F firmwareimagename.bin
Get the zImage file.
Quote:

Originally Posted by Zebee (Post 126894)
Is there a kernel flasher for the tablet, or only one for the PC?

http://fanoush.wz.cz/maemo/#kernelflasher
Quote:

Originally Posted by Zebee (Post 126894)
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?

initfs.bootmenu.jffs2 in initfs_flasher directory. This is created when you install bootmenu. You probably have two of them one in each OS200x installation. Just copy them to the other system or have both on SD card. Both initfs and kernel can be on SD but the flashers needs to be in internal flash. Then you can run something like
Code:

kernel_flasher/kernel_flash /media/mmc2/zImage-OS200x
initfs_flasher/initfs_flash /media/mmc2/initfs.OS200x.jffs2

and let it reboot and select matching OS200x item for current kernel and initfs version.

Unfortunately you need to confirm flashing of both parts. In next version of flashers I will add -f option to disable the confirmation.

fanoush 2008-01-23 08:54

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by Machster (Post 132319)
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.

Yes, people reported similar issues also with 8GB cards. I got 8GB card few days ago, partitioned via sfdisk on device and cloned it via tar and have no problem so I am not sure what is wrong here, see http://www.internettablettalk.com/fo...682#post131682
I think either partitioning or cloning went somehow wrong for you.

qwerty12 2008-01-23 16:04

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 132399)
You don't need to add bootmenu.conf and unless you set different root device name or press menu key at boot time, there is no significant difference, the menu will be hidden and it will still boot directly from flash (no timeout, no slowdown).


w00t, thank you :). I flashed it fine and it works great. I just have one small question, the extra unneeded stuff that is removed, is there any way to get it back (i.e reflash image again)? I'm not bothered if you cant, but I am just interested out of curiosity.

Thank you for the flasher and all your help.

fanoush 2008-01-23 16:37

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by qwerty12 (Post 132506)
w00t, thank you :). I flashed it fine and it works great.

So you actually logged in over usb networking?
Quote:

Originally Posted by qwerty12 (Post 132506)
I just have one small question, the extra unneeded stuff that is removed, is there any way to get it back (i.e reflash image again)?

Either you flash the backup initfs.orig.jffs2 image created by initfs_flasher (if you answered yes to backup question) or you can extract initfs image from firmware .bin image.

qwerty12 2008-01-23 18:01

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 132533)
So you actually logged in over usb networking?


I tried but Putty keeps timing out. I don't know if I have the drivers installed properly or if my computer hates me (I chose to install the dropbear and the ssh server). But I will try on a linux machine sometime.

Quote:

Originally Posted by fanoush (Post 132533)
Either you flash the backup initfs.orig.jffs2 image created by initfs_flasher (if you answered yes to backup question) or you can extract initfs image from firmware .bin image.

Ok, thank you :)

Machster 2008-01-24 00:45

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by vormund (Post 132331)
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.

Thanks for the suggestion, vormund. I read about that situation but I don't think that's the problem here. It will not boot from SD if there is a card in the external slot or not.

Machster 2008-01-24 00:55

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 132406)
Yes, people reported similar issues also with 8GB cards. I got 8GB card few days ago, partitioned via sfdisk on device and cloned it via tar and have no problem so I am not sure what is wrong here, see http://www.internettablettalk.com/fo...682#post131682
I think either partitioning or cloning went somehow wrong for you.

Actually reformatted and partitioned now about four times (just to make sure). Each time cloned without errors. Card and file system look as they should when viewed on my Mac too.

kernelpanic 2008-01-25 17:05

Re: bootmenu initfs flasher updated for OS2008
 
Fanoush,
I think I know what's up with the mmc's switching. The device nodes for the mmc's are reversed between the initfs and the root fs!

If I do-
# cd /mnt/initfs/dev && ls -l mmcblk*

I get-
brw------- 1 root root 254, 0 ..... mmcblk0
...
brw------- 1 root root 254, 8 ..... mmcblk1

if I do-
# cd /dev && ls -l mmcblk*

I get-
brw------- 1 root root 254, 8 ..... mmcblk0
...
brw------- 1 root root 254, 0 ..... mmcblk1
...

The nodes are reversed. mmcblk0 is 254, 8 and mmcblk1 is 254, 0. I'm going to make the initfs /dev entries match the root filesystem and see if it bricks my tablet. I'll post back in a bit

kernelpanic ;-)

kernelpanic 2008-01-25 19:02

Re: bootmenu initfs flasher updated for OS2008
 
o.k. closer...

I extracted the initfs.osso-RX-44.2007-49.tgz file from initfs_flasher and rewrote all of the /dev/mmcblk* nodes to match the root fs. Then I recreated the tgz file and ran initfs_flash.

Success! (mostly)

Now can boot to mmc and df shows the correct devices for the root filesystem (mmcblk1p2) and the external mmc (mmcblk1p1) (Yes, I'm booting to the external card. I'm hacking this thing a lot right now.. If I wear out the flash, I'd like to be able to replace it.)

However, df now shows that the /mnt/initfs device is /dev/mmcblk1p2 (or if booted from flash /dev/mtdblock4), and not /dev/root??? But /etc/mtab correctly shows /mnt/initfs as /dev/root in either case...

Interesting eh?

kernelpanic

As /dev/root is mounted read-only, I'm not too worried about it...

Machster 2008-01-26 14:30

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by Machster (Post 132319)
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?

Update:

I have now also attempted to clone the OS to a 1GB Kingmax card. During the cloning process outlined by Millhouse many errors are being generated when taring the ./usr directory. These errors include "Cannot open: No such file or directory" or "Cannot open: Input Output error". If I let xterm run it takes about 12 hours for step 4 to stop. After that it won't complete step 5 and the file system on the second partition is corrupt. Xterm is also unresponsive at this point.

I decided to reflash OS2008 and start from scratch. But after repeating all the steps again, including installing the bootmenu, the results have been exactly the same. The new cloned 16GB will not boot and the seasoned 1GB card is still generating errors during cloning.

mbfrog 2008-01-26 16:10

Re: bootmenu initfs flasher updated for OS2008
 
Trying to boot from MMC with a N810 and the latest OS2008 2.2007.50-2 I came across a few issues like mmcblk0 and mmcblk1 being swapped after booting (like vormund earlier). I finally got it right by swapping the devices in the initfs and also managed to prevent the root file system from being mounted over USB. A few pointers here.

For the MMC swapping problem, It may be a good idea to add specific initfs patches in the initfs flasher, but I do not know if this applies only to the N810, to OS2008 2.2007.50-2 or both...

kernelpanic 2008-01-26 18:18

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by mbfrog (Post 134028)
I finally got it right by swapping the devices in the initfs and also managed to prevent the root file system from being mounted over USB. A few pointers here.

For the MMC swapping problem, It may be a good idea to add specific initfs patches in the initfs flasher, but I do not know if this applies only to the N810, to OS2008 2.2007.50-2 or both...

To solve the mmc swapping issue, I just changed the device nodes in the appropriate *tgz file for my initfs in the initfs_flasher package. (Added nodes for the device and partitions 1 and 2 and changed the nodes for partitions 3 and 4.) That way if I reflash later I don't need to redo the hack.

kernelpanic

p.s.- thanks for pointing out the osso-usb-mass-storage-enable.sh hack. I'd been looking for a way to disable the root fs mounting over usb...

Machster 2008-01-26 18:21

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by mbfrog (Post 134028)
Trying to boot from MMC with a N810 and the latest OS2008 2.2007.50-2 I came across a few issues like mmcblk0 and mmcblk1 being swapped after booting (like vormund earlier). I finally got it right by swapping the devices in the initfs and also managed to prevent the root file system from being mounted over USB. A few pointers here.

For the MMC swapping problem, It may be a good idea to add specific initfs patches in the initfs flasher, but I do not know if this applies only to the N810, to OS2008 2.2007.50-2 or both...

Using your tips page I've verified that the MMC swapping problem is not affecting my n800. You used the Maemo wiki to clone your card. Those instructions are only intended for 2006, 2007. Did you follow the one for OS2007?

geneven 2008-01-26 18:40

Re: bootmenu initfs flasher updated for OS2008
 
The problem has certainly affected me. I tried the instructions given in the Millhouse thread and the Nuclear instructions, as recommended on the tablet hacker site. I will try the fixes mentioned above.

fanoush 2008-01-26 18:48

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by mbfrog (Post 134028)
I finally got it right by swapping the devices in the initfs

No, this does not solve anything except cosmetic issue with naming. Device minor number is still wrong. Also you now have it 'right' only for situation when you boot with external card inside slot. Once you remove the card and boot it will be wrong again.
Quote:

Originally Posted by mbfrog (Post 134028)
and also managed to prevent the root file system from being mounted over USB.

Is there some OS that automounts second partition on mmc card (formatted as ext2)? At least Windows does not see past first partition on removable devices so this does not matter much. But of course with linux one should not mount same partition which is currently booted.

Quote:

Originally Posted by mbfrog (Post 134028)
It may be a good idea to add specific initfs patches in the initfs flasher, but I do not know if this applies only to the N810, to OS2008 2.2007.50-2 or both...

Swapping device names is not solution, this needs to be fixed in kernel, see also few pages back in this thread. There is also workaround which at least boots from correct card in both situations.

fanoush 2008-01-26 20:51

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.

This little N810 specific bug is fixed now. And BTW, I got my N810 yesterday :-)

Also my kernel flasher didn't work on n810 at all and nobody told me :-) Fixed this one too, it was just matter of adding RX-44 to the script.

kernelpanic 2008-01-27 06:01

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 134090)

Is there some OS that automounts second partition on mmc card (formatted as ext2)? At least Windows does not see past first partition on removable devices so this does not matter much. But of course with linux one should not mount same partition which is currently booted.

Debian automouunts every partition it can find. (I had a fat32 partition and 2 ext2 partitions on my external MMC and all of them were being automounted.... Then my laptop crashed with my root mmc partition mounted and I ended up in the endless boot cycle. I had to boot from flash and re-copy...


cheers,
kernelpanic

mbfrog 2008-01-27 15:20

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by fanoush (Post 134090)
No, this does not solve anything except cosmetic issue with naming. Device minor number is still wrong. Also you now have it 'right' only for situation when you boot with external card inside slot. Once you remove the card and boot it will be wrong again.

Right, I didn't think about booting without an external card... That would be pretty bad indeed. I don't like having my root partition mounted on a non-existing device, but until the kernel is fixed I'll have to live with it I guess ;)

Quote:

Originally Posted by fanoush (Post 134090)
Is there some OS that automounts second partition on mmc card (formatted as ext2)? At least Windows does not see past first partition on removable devices so this does not matter much. But of course with linux one should not mount same partition which is currently booted.

I confirm what kernelpanic just said: Debian (or at least Ubuntu Gutsy) mounts everything the kernel can read. So limiting the USB sharing to the first partition is definitely a good idea for those using Linux.

Quote:

Originally Posted by Machster
Using your tips page I've verified that the MMC swapping problem is not affecting my n800. You used the Maemo wiki to clone your card. Those instructions are only intended for 2006, 2007. Did you follow the one for OS2007?

Yes, that's the one I used. The whole cloning process works on 2008 (no reason why it wouldn't). And I didn't find anything specific to 2007.

Machster 2008-01-28 00:07

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by mbfrog (Post 134383)

Yes, that's the one I used. The whole cloning process works on 2008 (no reason why it wouldn't). And I didn't find anything specific to 2007.

Thanks for the confirmation. I tried that too now. I had to make a slight adjustment to the kernel version in the insmod code as OS2008 apparently has 2.6.21 instead of 2.6.18. But still no success. Do I now conclude that both of my cards are not compatible? I don't know what to think. I will continue to watch here for an answer.

bunanson 2008-02-02 16:28

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by geneven (Post 134087)
The problem has certainly affected me. I tried the instructions given in the Millhouse thread and the Nuclear instructions, as recommended on the tablet hacker site. I will try the fixes mentioned above.

this maybe your fix, http://www.internettablettalk.com/fo...162#post137162. Kind to tell us what brand of the SD card you are using?

TIA,

bun

locutus 2008-02-03 12:21

Re: bootmenu initfs flasher updated for OS2008
 
I want to buy a new SDHC card for booting OS2008 from it.
What do you think is the card with the best performace? I think about transfer speed that the OS runs very fast.
The capacity is really not important as long as it is 4 or 8 or 16 GB.
And would the OS be faster or slower with this card compared to the build-in memory?

(didn't know if i should post in the sdhc thread or here, but it's related to OS-booting so...)
Thanks

bunanson 2008-02-04 08:53

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by locutus (Post 137574)
I want to buy a new SDHC card for booting OS2008 from it.
What do you think is the card with the best performace? I think about transfer speed that the OS runs very fast.
The capacity is really not important as long as it is 4 or 8 or 16 GB.
And would the OS be faster or slower with this card compared to the build-in memory?

(didn't know if i should post in the sdhc thread or here, but it's related to OS-booting so...)
Thanks

Just for you, http://www.internettablettalk.com/fo...ad.php?t=16067,

bun

locutus 2008-02-04 21:46

Re: bootmenu initfs flasher updated for OS2008
 
Oh, thank you.

bunanson 2008-02-08 06:21

Re: bootmenu initfs flasher updated for OS2008
 
@Fanoush: On N800, how can I edit/add a pointer to bootmenu to have options boot from 1) internal flash,
2) internal SD (mmcblk0)
3) external SD (mmcblk1)

I already cloned OS on 2 SD cards, and they have different contents, I would like to have options to choose booting, rather than physically swap them. Would edit the bootmenu.conf work? If so, please spoon feed with instructions, thanks.

I want to do the same to N810, are they,

1) internal flash, 256 MB
2) internal card, 2G (mmcblk0)
3) external card, SD (mmcblk1)

I made these up. I am totally confused with this internal/external things. They are like playing rudby :(


I did read up thread #50s, not quite sure 'how to approach it though, in particular to avoid re-flash if possible as i have accumulated quite some progs by now and dont quite trust 'restore'.



TIA,

bun

penguinbait 2008-02-19 00:52

Re: bootmenu initfs flasher updated for OS2008
 
NOKIA:~ ROOT#df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mmcblk1p2 2048 1916 132 94% /mnt/initfs
none 512 104 408 20% /mnt/initfs/tmp
/dev/mmcblk0p2 3748988 1359760 2198788 38% /
none 512 104 408 20% /tmp
none 1024 32 992 3% /dev
tmpfs 1024 0 1024 0% /dev/shm
/dev/mmcblk0p1 128220 121360 6860 95% /media/mmc2
/dev/mmcblk1p1 122952 122542 410 100% /media/mmc1


Fanoush is this a bug? I am booting N810 off both mmc1 and mmc2. I noticed it when trying to mount /dev/mmcblk1p2 to access some files.

Any Ideas?

vormund 2008-02-19 02:11

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by penguinbait (Post 144416)
NOKIA:~ ROOT#df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mmcblk1p2 2048 1916 132 94% /mnt/initfs
none 512 104 408 20% /mnt/initfs/tmp
/dev/mmcblk0p2 3748988 1359760 2198788 38% /
none 512 104 408 20% /tmp
none 1024 32 992 3% /dev
tmpfs 1024 0 1024 0% /dev/shm
/dev/mmcblk0p1 128220 121360 6860 95% /media/mmc2
/dev/mmcblk1p1 122952 122542 410 100% /media/mmc1


Fanoush is this a bug? I am booting N810 off both mmc1 and mmc2. I noticed it when trying to mount /dev/mmcblk1p2 to access some files.

Any Ideas?

I had a problem with the internal and external cards switching labels when I formatted to get KDE working on my N810. The internal card would remain named mmcblk0 if there was no external card in the slot, but once the external card was in they would switch, I noticed it when I couldnt boot from mmcblk0 when I had the external card in. I'm not sure what causes it, just that it happens for some reason.

fanoush 2008-02-19 08:03

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by penguinbait (Post 144416)
NOKIA:~ ROOT#df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mmcblk1p2 2048 1916 132 94% /mnt/initfs
none 512 104 408 20% /mnt/initfs/tmp
/dev/mmcblk0p2 3748988 1359760 2198788 38% /
..
Fanoush is this a bug?

Yes, was discussed here too, see also
http://bugs.maemo.org/show_bug.cgi?id=2747

fanoush 2008-02-19 08:34

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by bunanson (Post 139692)
I already cloned OS on 2 SD cards, and they have different contents, I would like to have options to choose booting, rather than physically swap them. Would edit the bootmenu.conf work?

Yes.
Quote:

Originally Posted by bunanson (Post 139692)
If so, please spoon feed with instructions, thanks.

There is a README in initfs_flasher folder and example bootmenu.conf.*.example files.


Quote:

Originally Posted by bunanson (Post 139692)
I want to do the same to N810, are they,
1) internal flash, 256 MB
2) internal card, 2G (mmcblk0)
3) external card, SD (mmcblk1)

With N810 beware of bug
http://bugs.maemo.org/show_bug.cgi?id=2747 and see workaround here http://www.internettablettalk.com/fo...657#post124657

Sadly I still had no time to update flasher with similar workaround. I'd like to fix it in kernel and have the workaround working with both fixed and broken kernel.

Quote:

Originally Posted by bunanson (Post 139692)
not quite sure 'how to approach it though, in particular to avoid re-flash if possible as i have accumulated quite some progs by now and dont quite trust 'restore'.

you can re-run bootmenu installation many times (with reboots between), rootfs is not touched, when you screw up initfs and system does not boot, you can reflash just initfs part via linux flasher

pisti 2008-02-19 19:57

Re: bootmenu initfs flasher updated for OS2008
 
do you have any idea on how to solve the wlan issue?

Replace all old udev files in OS2007 root directory with OS2008 udev files and wlan works.

Udev files:
/etc/udev
/lib/udev
/lib/firmware
/sbin/udevd
/usr/bin/udevinfo
/usr/sbin/udevmonitor

pisti 2008-02-19 22:34

Re: bootmenu initfs flasher updated for OS2008
 
do you have any idea on how to solve the wlan issue?

Replace udev files and replace /usr/sbin/wlancond
And copy new files:
/usr/lib/libdbus-1.so.3
/usr/lib/libdbus-1.so.3.2.0
/lib/libiw.so.29

fanoush 2008-02-20 08:58

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by Graham Cobb (Post 124657)
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"                                                                                                                 
...

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?

Hi,

here is version that I'd like to put to boomenu.sh
Code:

INT_CARD=""
EXT_CARD=""
case `grep product /proc/component_version` in
*SU-18)
        [ -d /sys/block/mmcblk0 ] && EXT_CARD="mmcblk0"
        ;;
*RX-*)
        for i in mmcblk0 mmcblk1 ; do
        if [ -d /sys/block/$i ] ; then
        case `cat /sys/block/$i/device/../slot_name` in
                internal) INT_CARD=$i ;;
                external) EXT_CARD=$i ;;
        esac
        fi
        done
        ;;
esac

Anyone wants to put it to beginning of their bootmenu.conf instead of Graham's code and report how it works? Seems to work here with N810 and 770 at least. Should work with N800 too.

tolou 2008-02-20 09:31

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by pisti (Post 144977)
do you have any idea on how to solve the wlan issue?

Replace udev files and replace /usr/sbin/wlancond
And copy new files:
/usr/lib/libdbus-1.so.3
/usr/lib/libdbus-1.so.3.2.0
/lib/libiw.so.29

Was that a question or a suggestion? Are you on to something?

mscdex 2008-02-23 04:00

Re: bootmenu initfs flasher updated for OS2008
 
I am unable to boot to the internal flash on my n810 even after using the modifications I've read in this thread (quoted below). When I try to boot to it it says "boot to mmcint2 failed. booting from flash..." or similar.

Here is what I have in my bootmenu.conf file (changes from the n800 example conf file anyway):

Quote:

Originally Posted by fanoush (Post 145155)
Code:

INT_CARD=""
EXT_CARD=""
case `grep product /proc/component_version` in
*SU-18)
        [ -d /sys/block/mmcblk0 ] && EXT_CARD="mmcblk0"
        ;;
*RX-*)
        for i in mmcblk0 mmcblk1 ; do
        if [ -d /sys/block/$i ] ; then
        case `cat /sys/block/$i/device/../slot_name` in
                internal) INT_CARD=$i ;;
                external) EXT_CARD=$i ;;
        esac
        fi
        done
        ;;
esac


Followed by:
Quote:

Originally Posted by Graham Cobb (Post 124657)
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"


Is there something I am doing wrong?

fanoush 2008-03-04 13:59

Re: bootmenu initfs flasher updated for OS2008
 
Hi, just to let you know that there is newer initfs_flasher.tgz with workaround for inconsistent mmc device names (N8x0 only).

Additional changes:
- there are now boot items for both internal and external cards in default bootmenu.sh so no custom bootmenu.conf needed (unless you want to)
- if partition does not exist, item name "x" is renamed to "(x) N/A"
- the 'booting from ..." message contains also mmc device name and filesystem (for better troubleshooting)

Thanks to Graham Cobb for initial idea.

EDIT:
two default items are named 'mmc2' for external card and 'immc2' fro internal card, I kept mmc2 name for compatibility with 770 and various guides on the net. If you are booting from internal card with N8x0 you may need to update default choice (as root)
Code:

chroot /mnt/initfs cal-tool -R ask:immc2
or remove the "ask:" part if you want to boot straight from it without seeing menu

cdmackay 2008-03-06 03:52

Re: bootmenu initfs flasher updated for OS2008
 
hi, thanks much for these tools; just cloned my OS2008 to external 8GB, working perfectly :)

Two comments:

o in the default n8x0 bootmenu.conf, the external SD card defaults to ext3. Was that intentional? It caught me out as I was using Milhouse's clone script which defaults to ext2. Changing it in bootmenu.conf worked fine, of course

o timeout: changing MENU_TIMEOUT in bootmenu.conf (and reflashing) seems to have no effect, for me. Whatever it's set to (e.g 15, 20, 30), I only get about 1/2sec to hold down MENU before it boots the default flash. Is it just me?

thanks again...

fanoush 2008-03-06 06:27

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by cdmackay (Post 151469)
o in the default n8x0 bootmenu.conf, the external SD card defaults to ext3. Was that intentional? It caught me out as I was using Milhouse's clone script which defaults to ext2. Changing it in bootmenu.conf worked fine, of course

Yes, that's just example how to do it. You are supposed to edit the file, not just rename blindly to bootmenu.conf. Also you don't need bootmenu.conf file at all, default menu has ext2 for both cards. Still, I could change the example to leave 2nd partitions as ext2.
Quote:

Originally Posted by cdmackay (Post 151469)
o timeout: changing MENU_TIMEOUT in bootmenu.conf (and reflashing) seems to have no effect, for me. Whatever it's set to (e.g 15, 20, 30), I only get about 1/2sec to hold down MENU before it boots the default flash.

Timeout is used later for the menu itself (when you set default choice via cal-tool -R ask:youridofchoice), not for triggering it via menu key. If you have troubles hitting it, use cal-tool and set root device to 'ask'.

cdmackay 2008-03-06 14:27

Re: bootmenu initfs flasher updated for OS2008
 
Thanks very much indeed, Fanoush,

Quote:

Originally Posted by fanoush (Post 151499)
Yes, that's just example how to do it. You are supposed to edit the file, not just rename blindly to bootmenu.conf.

heh; well I wasn't quite blind; I *did* edit the file, but I failed (stupidly) to spot the ext3 in that line whilst I was in there.

Quote:

Timeout is used later for the menu itself (when you set default choice via cal-tool -R ask:youridofchoice), not for triggering it via menu key.
Ah! that makes sense now, thanks.

Quote:

If you have troubles hitting it, use cal-tool and set root device to 'ask'.
that does require red-pill mode, yes? I've avoided having to do that at all, so far, so hadn't tried it. The menu key timeout is ok, I just have to be ready for it.

thanks again for a great tool.

fanoush 2008-03-06 14:38

Re: bootmenu initfs flasher updated for OS2008
 
Quote:

Originally Posted by cdmackay (Post 151566)
that does require red-pill mode, yes?

no need to take any pills, you just need root privileges (= run 'sudo gainroot') to run cal-tool as mentioned above, you already needed root for installing bootmenu so there should be no problem


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

vBulletin® Version 3.8.8