maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   N800: EXT2/3 at boot (https://talk.maemo.org/showthread.php?t=11181)

JeffElkins 2007-10-31 13:00

N800: EXT2/3 at boot
 
I formatted my two new SDHC 8GB cards as ext3, but the file manager doesn't recognize them. After sshing into my N800, I see lsmod does not show ext2.ko or ext3.ko as being loaded. Modprobe/insmod both failed. How can I enable these filesystems at boot?

Code:

Nokia-N800-39:/mnt/initfs/lib/modules/2.6.18-omap1# insmod ext2.ko
insmod: cannot insert 'ext2.ko': Unknown symbol in module (-1): No such file or directory
Nokia-N800-39:/mnt/initfs/lib/modules/2.6.18-omap1# insmod ext3.ko
insmod: cannot insert 'ext3.ko': Unknown symbol in module (-1): No such file or directory
Nokia-N800-39:/mnt/initfs/lib/modules/2.6.18-omap1# modprobe ext2.ko
modprobe: cannot parse modules.dep
Nokia-N800-39:/mnt/initfs/lib/modules/2.6.18-omap1# modprobe ext3.ko
modprobe: cannot parse modules.dep


The cards work fine as ext3 from the PC-side (when mounted via USB).

Jeff

fanoush 2007-10-31 13:20

Re: N800: EXT2/3 at boot
 
insmod mbcache.ko first, and for ext3 jbd.ko too
for second part try searching this forum, it was discussed few times

TA-t3 2007-10-31 13:55

Re: N800: EXT2/3 at boot
 
Too bad modprobe doesn't work on the N800. I guess it's actually depmod that doesn't work, but it would ease things a bit (no need to insmod multiple modules in the right sequence). Does anyone know if this has been fixed for OS2008? It shouldn't be too tricky to fix I believe.

JeffElkins 2007-10-31 13:59

Re: N800: EXT2/3 at boot
 
Thanks. I'm all set for part one, but searching isn't turning up much for part two. I'm getting a lot of threads on booting from SD but nothing specific to my question. Still looking :(

Edit: as a quick fix, I stuck a script to do the insmods in init.d. Works, but I'm still looking for a better way.

gLobster 2007-10-31 14:11

Re: N800: EXT2/3 at boot
 
May be need put full path for *.ko files:

insmod /mnt/initfs/lib/modules/2.6.18-omap1/mbcache.ko

but not

cd /mnt/initfs/lib/modules/2.6.18-omap1/
insmod mbcache.ko

?

fanoush 2007-10-31 14:37

Re: N800: EXT2/3 at boot
 
Quote:

Originally Posted by JeffElkins (Post 89000)
Thanks. I'm all set for part one, but searching isn't turning up much for part two.

the filesystem type is hardcoded to FAT in /etc/fstab or in some osso_<whatever>_mount.sh script so you should tweak that. I don't remember exact name, maybe just fstab tweaking works (as long as you have proper filesystem modules inserted of course).

L0cutus 2007-10-31 16:10

Re: N800: EXT2/3 at boot
 
i have edit the /etc/init.d/rcS and addes lines to load the kernel modules just after the PATH= line.
then i have edit fstab and set to 'auto' the fs type and to rw,noauto,exec,users th options.

it work ok.

JeffElkins 2007-10-31 16:25

Re: N800: EXT2/3 at boot
 
Thanks folks!

JeffElkins 2007-10-31 22:28

Re: N800: EXT2/3 at boot
 
I'm having a problem with my SDHC cards that I'm wondering if others have had:

I'm using two Transend C6 8GB cards. I'm getting irregular bootup recognition of these cards when formatted as ext3. In fact, my N800 does not see them 90% of the time! SShing into the N800 and doing a lsmod tells me that all the required ext* modules (noted above) are loaded.

No matter if the N800 "sees" the cards or not, connecting the N800 to my Linux PC via USB loads the cards on the PC 100% of the time!

When the cards are formatted as vfat, the N800 sees them (so far) w/o fail.

Jeff

sarahn 2007-11-07 16:14

Re: N800: EXT2/3 at boot
 
I am using a 1GB card and it won't boot the ext3 partition. It will mount the ext3 partition when booted from flash, and it will boot an ext2 partition. I have been using an ext2 root but I have had so many problems with constantly having to fsck that I am moving back to booting off the main flash and changing some of the mount points to ext3 partitions.

fanoush 2007-11-08 10:05

Re: N800: EXT2/3 at boot
 
Quote:

Originally Posted by sarahn (Post 91812)
I am using a 1GB card and it won't boot the ext3 partition.

It will, once you set up correct configuration in bootmenu.conf. Read README and/or bootmenu.conf.nXXX.example

You need to set MENU_X_FSTYPE and MENU_X_MODULES correctly for your menu item X.

fanoush 2007-11-08 10:07

Re: N800: EXT2/3 at boot
 
Oh, BTW ext3 is backward compatible so it should boot as ext2 too. Then it might be good to fsck it before switching to ext3 again.

sarahn 2007-11-08 16:52

Re: N800: EXT2/3 at boot
 
No, I tried booting/mounting as ext2 and this did not work. I copied the ext3 settings from the example in n800 conf file.

MENU_1_NAME="Internal flash"
MENU_1_ID="flash"

MENU_2_NAME="MMC card"
MENU_2_ID="mmc"

MENU_3_NAME="MMC card, partition 2, ext2"
MENU_3_ID="mmc2"
MENU_3_DEVICE="mmcblk0p2"
MENU_3_MODULES="mbcache ext2"
MENU_3_FSTYPE="ext2"
MENU_3_FSOPTIONS="noatime"

MENU_4_NAME="MMC card, partition 2, ext3"
MENU_4_ID="mmc02"
MENU_4_DEVICE="mmcblk0p2"
MENU_4_MODULES="mbcache jbd ext3"
MENU_4_FSTYPE="ext3"
MENU_4_FSOPTIONS="noatime" #",data=writeback"

MENU_5_NAME="Power off (when not on charger)"
MENU_5_ID="off"

#change max if you add/remove items
MENU_MAX=5

I insmodded the same kernel modules booting off of flash and I could mount the partition.

sarahn 2007-11-08 17:03

Re: N800: EXT2/3 at boot
 
The problem was the ext3 was not cleanly unmounted and there was still journalling data. Have to figure out how to cleanly dismount with the n800 if it doesn't already (I don't think it does.) That is probably the OP problem as well.

BanditRider 2007-11-19 01:18

Re: N800: EXT2/3 at boot
 
add the mountpoints to umount line in /etc/init.d/minireboot and minishutdown.
look for this section near the end og the files:

echo "Unmounting filesystems... "
umount -r /media/mmc1 /media/mmc2 /mnt/initfs /

fanoush 2007-11-19 09:47

Re: N800: EXT2/3 at boot
 
Quote:

Originally Posted by sarahn (Post 92248)
Have to figure out how to cleanly dismount with the n800 if it doesn't already (I don't think it does.)

If you don't have any custom mount points, it does. When system is cloned to MMC there is no modification needed. Well except tweaking the USB storage script in OS2007 if you want to see the card you are booting from over USB.


All times are GMT. The time now is 14:59.

vBulletin® Version 3.8.8