Active Topics

 


Reply
Thread Tools
Posts: 179 | Thanked: 90 times | Joined on Dec 2007
#91
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...
 
Posts: 51 | Thanked: 2 times | Joined on Jan 2008
#92
Originally Posted by Machster View Post
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.
 
Posts: 4 | Thanked: 3 times | Joined on Jan 2008
#93
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...
 

The Following User Says Thank You to mbfrog For This Useful Post:
Posts: 179 | Thanked: 90 times | Joined on Dec 2007
#94
Originally Posted by mbfrog View Post
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...
 
Posts: 51 | Thanked: 2 times | Joined on Jan 2008
#95
Originally Posted by mbfrog View Post
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?
 
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#96
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.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#97
Originally Posted by mbfrog View Post
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.
Originally Posted by mbfrog View Post
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.

Originally Posted by mbfrog View Post
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.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#98
Originally Posted by FGol View Post
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.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 

The Following User Says Thank You to fanoush For This Useful Post:
Posts: 179 | Thanked: 90 times | Joined on Dec 2007
#99
Originally Posted by fanoush View Post

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
 
Posts: 4 | Thanked: 3 times | Joined on Jan 2008
#100
Originally Posted by fanoush View Post
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

Originally Posted by fanoush View Post
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.

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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:15.