#1  
Old 10-14-2010, 02:20 PM
arlick arlick is offline
Junior Member
 
Join Date: Oct 2010
Posts: 3
Thanked: 4 times
Default How to: ext4 on MeeGo

Hello, I'm new here, but I want to make a howto about getting ext4 on meego. I didn't find usefull information here, so I hope this will help someone in future.

* What are we going to do?

Download the kernel from kernel.org, compile the module and install it.

All operations will be made as root.

0.- Preparation:

Install packages that we will need:

Quote:
yum install gcc ncurses ncurses-devel
Go to /usr/src/kernels:

Quote:
cd /usr/src/kernels/
1.- Download kernel from kernel.org:

Now the kernel used in meego is 2.6.33.5, so we download it and uncompress it:

Quote:
wget http://www.kernel.org/pub/linux/kern...6.33.5.tar.bz2
tar xvf linux-2.6.33.5.tar.bz2
Enter new directory:

Quote:
cd linux-2.6.33.5
2.- Configuration:

Modify Makefile:

Quote:
EXTRAVERSION=.5
to

Quote:
EXTRAVERSION=.5-24.1
Copy official config:

Quote:
cp /boot/config-2.6.33.5.24-1 .config
make oldconfig
Enable ext4 as module in menu "file systems":

Quote:
make menuconfig
3.- Prepare compile:

Quote:
make prepare
make modules_prepare
4.- Compile modules

NOTE: Module jbd2 is need to use ext4.

Quote:
make M=fs/jbd2
make M=fs/ext4
5.- Use it!!

Check it works:

Quote:
insmod fs/jbd2/jbd2.ko
insmod fs/ext4/ext4.ko
If all is ok install them:

Quote:
mkdir -p /lib/modules/2.6.33.5-24.1-netbook/kernel/fs/jbd2
mkdir -p /lib/modules/2.6.33.5-24.1-netbook/kernel/fs/ext4
cp fs/jbd2/jbd2.ko /lib/modules/2.6.33.5-24.1-netbook/kernel/fs/jbd2/
cp fs/ext4/ext4.ko /lib/modules/2.6.33.5-24.1-netbook/kernel/fs/ext4/
depmod
Load module:

Quote:
modprobe ext4
That's all!!

Regards,

Usufull link:

http://wiki.centos.org/HowTos/BuildingKernelModules

Last edited by arlick; 10-14-2010 at 06:42 PM.
Reply With Quote

The Following 4 Users Say Thank You to arlick For This Useful Post:
  #2  
Old 10-14-2010, 04:58 PM
arfoll's Avatar
arfoll arfoll is offline
Senior Member
 
Join Date: Apr 2010
Location: Barcelona, Spain
Posts: 153
Thanked: 31 times
Default Re: How to: ext4 on MeeGo

Nice solution, have you considered using the maemo community OBS (or the official meego one if you have access...) it's nicer IMO. Link the existing package, do a checkout, modify the kernel config to include ext4 modules, commit. Then just use your repository, it should even be updated if the target gets a new kernel, it'll rebuild automatically and you get the new kernel but with your extra modules (if your diff doesn't break) if you do a zypper upgrade (as long as your repo permissions are ok it shouldn't mess your system up!)

Actually that didn't sound as simple as it did in my head....
Reply With Quote
  #3  
Old 10-14-2010, 06:47 PM
arlick arlick is offline
Junior Member
 
Join Date: Oct 2010
Posts: 3
Thanked: 4 times
Default Re: How to: ext4 on MeeGo

Quote:
Originally Posted by arfoll View Post
Nice solution, have you considered using the maemo community OBS (or the official meego one if you have access...) it's nicer IMO. Link the existing package, do a checkout, modify the kernel config to include ext4 modules, commit. Then just use your repository, it should even be updated if the target gets a new kernel, it'll rebuild automatically and you get the new kernel but with your extra modules (if your diff doesn't break) if you do a zypper upgrade (as long as your repo permissions are ok it shouldn't mess your system up!)

Actually that didn't sound as simple as it did in my head....
I'm new using meego, and i want to know the meego way, but i think by now my solution is easier for my at least xD

I don't know what's OBS and more stuff. Any recomendation about what to learn about meego? Thanks!

Regards,
Reply With Quote
  #4  
Old 10-24-2010, 06:55 PM
minhato minhato is offline
Junior Member
 
Join Date: Oct 2010
Posts: 4
Default Ext4 on MeeGo: how

It works for me!! I just adjust the number of the new kernel to 2.6.33.5-26.1-netbook.
But I can't load the kernel on boot. I need to load it manually by executing
Code:
modprobe ext4
Following the instructions on this forum, I make a file called /etc/modules.conf with this content:
Code:
jbd2
ext4
But it doesn't work, and with every new boot the module ext4 doesn't appear in lsmod.

There is another problem. Once the module is loaded, I can't mount any partition with the filemanager (nautilus).
Reply With Quote
  #5  
Old 10-28-2010, 11:21 PM
arlick arlick is offline
Junior Member
 
Join Date: Oct 2010
Posts: 3
Thanked: 4 times
Default Re: Ext4 on MeeGo: how

Quote:
Originally Posted by minhato View Post
It works for me!! I just adjust the number of the new kernel to 2.6.33.5-26.1-netbook.
But I can't load the kernel on boot. I need to load it manually by executing
Code:
modprobe ext4
Following the instructions on this forum, I make a file called /etc/modules.conf with this content:
Code:
jbd2
ext4
But it doesn't work, and with every new boot the module ext4 doesn't appear in lsmod.

There is another problem. Once the module is loaded, I can't mount any partition with the filemanager (nautilus).
Hi!!

Well to the first question... i had same issue. you can use a workaround editing file /etc/rc.local adding the line

Code:
modprobe ext4
all you put on that file is executed like in a console at boot time.

and adding mount command could be usefull for you.

i don't have any answer for the second question
Reply With Quote
  #6  
Old 12-25-2010, 02:16 AM
iapx8088 iapx8088 is offline
Junior Member
 
Join Date: Dec 2010
Posts: 2
Default Re: How to: ext4 on MeeGo

I would like to know a way to load modules on startup in the meego way.
MODULE_ALIAS seems to be relevant but I cannot find infos and the module I need (omnibook) does not support it.
G.
Reply With Quote
  #7  
Old 01-27-2011, 06:37 AM
renha renha is offline
Junior Member
 
Join Date: Jan 2011
Posts: 9
Default Re: How to: ext4 on MeeGo

why ext4 support doesn't presence in MeeGo by default? And where could I vote for it, or make smth else to make it real?
/sorry my english/
Reply With Quote
  #8  
Old 01-27-2011, 10:02 AM
massendefekt massendefekt is offline
Junior Member
 
Join Date: Jan 2011
Posts: 2
Default Re: How to: ext4 on MeeGo

Hi everbody!
Thx for your nice HowTo, arlick. Everything seems to run fine, until the point where i have to compile the new modules i get the message:
Code:
[root@maximilian-desktop linux-2.6.35.3]# make M=fs/jbd2

  WARNING: Symbol version dump /usr/src/kernels/linux-2.6.35.3/Module.symvers is missing; modules will have no dependencies and modversions.
When i try to check the modules with insmod, i can't find the files jbd2.ko and ext4.ko in their directories. There are lots of files like jbd2.o or ext4.o, but the .ko files don't exist...

I already searched google for this error message, but it didn't help me. Can you make any suggestions?

Greets, Max
Reply With Quote
  #9  
Old 04-14-2011, 04:44 PM
sledge sledge is offline
Junior Member
 
Join Date: Apr 2011
Posts: 1
Unhappy Re: How to: ext4 on MeeGo

Doesn't work for me
Thank you still for the tutorial, I followed it with the latest (yesterday 13 April 2011) updated MeeGo 1.1 kernel 2.6.35.3-17.1-netbook on my Asus Eee PC 1005HA.

Modules get loaded successfully, however I get Oops:
Trying to mount Ubuntu 10.10 ext4 partition via mount /dev/sda6 /mnt :
Code:
klogd: [   73.505820] BUG: unable to handle kernel paging request at 00a2db45
klogd: [   73.505838] IP: [<f90d8dbd>] ext4_fill_super+0x21f/0x21f5 [ext4]
klogd: [   73.505888] *pdpt = 0000000036dca001 *pde = 0000000000000000
klogd: [   73.505901] Oops: 0000 [#1] PREEMPT SMP
klogd: [   73.505912] last sysfs file: /sys/devices/virtual/backlight/acpi_video0/uevent
klogd: [   73.505923] Modules linked in: ext4 jbd2 ath9k ath9k_common uvcvideo ath9k_hw atl1c eeepc_wmi battery joydev sparse_keymap
klogd: [   73.505955]
klogd: [   73.505965] Pid: 665, comm: mount Not tainted 2.6.35.3-17.1-netbook #1 1005HA/1005HA
klogd: [   73.505976] EIP: 0060:[<f90d8dbd>] EFLAGS: 00010293 CPU: 0
klogd: [   73.506011] EIP is at ext4_fill_super+0x21f/0x21f5 [ext4]
klogd: [   73.506011] EAX: 00000000 EBX: 00000000 ECX: 00a65000 EDX: fffc8b41
klogd: [   73.506011] ESI: c17411e8 EDI: f6eb2400 EBP: f5e3beb4 ESP: f5e3bdfc
klogd: [   73.506011]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
klogd: [   73.506011] Process mount (pid: 665, ti=f5e3a000 task=f6938270 task.ti=f5e3a000)
klogd: [   73.506011] Stack:
klogd: [   73.506011]  f5e3be08 c118c60f f6c4a800 f5e3be10 c1247e23 f5e3be1c 00000000 00000000
klogd: [   73.506011] <0> 5f76a5f0 f5e3be9c c160f695 f5e3bed0 f5e3be74 c11918e1 00000006 00000000
klogd: [   73.506011] <0> ffffff02 ffffff0a ffffffff 0000ffff c160f697 00000020 f5e3bed0 00000001
klogd: [   73.506011] Call Trace:
klogd: [   73.506011]  [<c118c60f>] ? kobject_get+0x12/0x17
klogd: [   73.506011]  [<c1247e23>] ? get_device+0x13/0x18
klogd: [   73.506011]  [<c11918e1>] ? vsnprintf+0x23a/0x279
klogd: [   73.506011]  [<c10dfaae>] ? disk_name+0x5d/0x6a
klogd: [   73.506011]  [<c10a797d>] ? get_sb_bdev+0x107/0x155
klogd: [   73.506011]  [<f90d8b9e>] ? ext4_fill_super+0x0/0x21f5 [ext4]
klogd: [   73.506011]  [<c10a3fda>] ? pcpu_alloc+0x24d/0x2d2
klogd: [   73.506011]  [<f90d6660>] ? ext4_get_sb+0x13/0x15 [ext4]
klogd: [   73.506011]  [<f90d8b9e>] ? ext4_fill_super+0x0/0x21f5 [ext4]
klogd: [   73.506011]  [<c10a6e74>] ? vfs_kern_mount+0x49/0xdb
klogd: [   73.506011]  [<c10a6f4c>] ? do_kern_mount+0x34/0xc0
klogd: [   73.506011]  [<c10b9e14>] ? do_mount+0x244/0x286
klogd: [   73.506011]  [<c108e5f2>] ? strndup_user+0x3f/0x65
klogd: [   73.506011]  [<c10b9eea>] ? sys_mount+0x62/0x95
klogd: [   73.506011]  [<c1002857>] ? sysenter_do_call+0x12/0x26
klogd: [   73.506011] Code: 00 00 00 00 c7 42 6c 20 00 00 00 89 4a 48 83 c8 ff 31 db eb 1a 8b 97 8c 00 00 00 8b 0c 85 90 10 74 c1 8b 52 48 8b 92 68 01 00 00 <03> 5c 0a 04 8d 48 01 ba 08 00 00 00 89 f0 e8 5c 27 0b c8 3b 05
klogd: [   73.506011] EIP: [<f90d8dbd>] ext4_fill_super+0x21f/0x21f5 [ext4] SS:ESP 0068:f5e3bdfc
klogd: [   73.506011] CR2: 0000000000a2db45
klogd: [   73.506665] ---[ end trace 02f40f53a8361aae ]---
After this I can still shutdown the system.

Whilst trying to mount it via File Manager, nothing happens, but after it I cannot shut down the computer at all (only hard reset..)

Please help me out on this one..
Thank you!
--&nbsp;
sledge
Reply With Quote
Reply

Tags
ext4, howto

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No ext4 support? o0arthur0o General 3 10-24-2010 06:22 PM


All times are GMT. The time now is 04:02 PM.