Author Topic: A Kernel With Everything  (Read 15630 times)

gjarboni

  • Newbie
  • *
  • Posts: 20
    • View Profile
A Kernel With Everything
« on: February 05, 2005, 06:02:08 pm »
Okay, since I'm a consultant and intend to use my Zaurus at different sites, I decided to try and compile a kernel with every resonable module selected.  I started with the patches listed at tetsu.homelinux.org (which has precompiled kernels as well, for some great instructions, this thread was a great help.

I included every USB driver (usb serial converters, tablets, mice, usb ethernet, usb wifi, NTFS, NFS, NCPFS (for mounting netware volumes), IPX, Appletalk, 802.1q, QoS (I'm a network engineer), Video for Linux and a bunch of other stuff that I don't remember. Eeverything compiled without a hitch (a testiment to Linux' robustness), and only one module flunked depmod (miropcm20.o). And indeed the kernel booted -- with the Sharp logo gone.

Now the resulting modules directory is over 4Mb, so I had to create a modules directory on /hdd2/modules and change the symlink in /home/root to point there.

So I have two questions. First, I've been using it for a couple of days with no problems, but I'm wondering if anyone can forsee a problem with moving the modules off the ramdisk?

Second, would this be useful to anyone else? If so, I can upload it to my web site (the kernel and modules total 2.8Mb tarred and gzipped so they won't fit here).

Thanks!

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
A Kernel With Everything
« Reply #1 on: February 05, 2005, 09:22:32 pm »
gjarboni,

Sounds great!

Think I and some others with C3000's would be interested in your kernel.

What about squashfs?

https://www.oesf.org/forums/index.php?showtopic=10571

That's needed to run 'dev_img-1.6' that Maslovsky released recently....

Thanks,

Mark
« Last Edit: February 05, 2005, 09:23:41 pm by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

m-morino

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://morimasa.net/
A Kernel With Everything
« Reply #2 on: February 05, 2005, 10:55:56 pm »
Hi,

I already made a squashfs-2.1 kernel module package for C3000.
It works fine, at least for my C3000.

Try it.

HTH,

--
 m-morimo
« Last Edit: February 05, 2005, 11:08:15 pm by m-morino »
m-morino

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
A Kernel With Everything
« Reply #3 on: February 05, 2005, 11:15:16 pm »
Thanks m-morino,

What is the proper way to install it on my C3000?

Thanks,

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

m-morino

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://morimasa.net/
A Kernel With Everything
« Reply #4 on: February 05, 2005, 11:30:44 pm »
Hi Mark,

Quote
What is the proper way to install it on my C3000?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65772\"][{POST_SNAPBACK}][/a][/div]

$ su
# ipkg install kern-mod-squashfs_C3000-2.1-2_arm.ipk

The module will be placed into:
/lib/modules/2.4.20/kernel/fs/squashfs/squashfs.o

A "postinst" script included in the package also does depmod -a.
The only thing you have to do is mounting squashfs images  

HTH,

--
 m-morino
« Last Edit: February 05, 2005, 11:52:10 pm by m-morino »
m-morino

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
A Kernel With Everything
« Reply #5 on: February 06, 2005, 12:10:54 am »
Thanks for the explanation m-morino! That's great!

In the meantime, I have managed to screw up my C3000 trying to install your pre-compiled kernel....

Hope you can advise!

thanks,

mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

mammothrept

  • Newbie
  • *
  • Posts: 22
    • View Profile
A Kernel With Everything
« Reply #6 on: February 06, 2005, 05:03:42 am »
Will this kernel screw up the Japanese on the original Sharp ROM?  I have mine altered to do most things in English but still retain all the Japanese characters and dictionaries.

Quote
Okay, since I'm a consultant and intend to use my Zaurus at different sites, I decided to try and compile a kernel with every resonable module selected.  I started with the patches listed at tetsu.homelinux.org (which has precompiled kernels as well, for some great instructions, this thread was a great help.

I included every USB driver (usb serial converters, tablets, mice, usb ethernet, usb wifi, NTFS, NFS, NCPFS (for mounting netware volumes), IPX, Appletalk, 802.1q, QoS (I'm a network engineer), Video for Linux and a bunch of other stuff that I don't remember. Eeverything compiled without a hitch (a testiment to Linux' robustness), and only one module flunked depmod (miropcm20.o). And indeed the kernel booted -- with the Sharp logo gone.

Now the resulting modules directory is over 4Mb, so I had to create a modules directory on /hdd2/modules and change the symlink in /home/root to point there.

So I have two questions. First, I've been using it for a couple of days with no problems, but I'm wondering if anyone can forsee a problem with moving the modules off the ramdisk?

Second, would this be useful to anyone else? If so, I can upload it to my web site (the kernel and modules total 2.8Mb tarred and gzipped so they won't fit here).

Thanks!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65745\"][{POST_SNAPBACK}][/a][/div]

gjarboni

  • Newbie
  • *
  • Posts: 20
    • View Profile
A Kernel With Everything
« Reply #7 on: February 06, 2005, 01:32:57 pm »
Quote
Will this kernel screw up the Japanese on the original Sharp ROM?  I have mine altered to do most things in English but still retain all the Japanese characters and dictionaries.

[div align=\"right\"][a href=\"index.php?act=findpost&pid=65805\"][{POST_SNAPBACK}][/a][/div]

I don't believe this kernel will mess with the Japanese character handling. I based my kernel on the patches from testu's site and started from Sharp's original .config file (from the original Japanese kernel).

I'll post the kernel and modules tonight (gotta run to get ready for my Superbowl party).

gjarboni

  • Newbie
  • *
  • Posts: 20
    • View Profile
A Kernel With Everything
« Reply #8 on: February 06, 2005, 11:27:02 pm »
Quote
I'll post the kernel and modules tonight (gotta run to get ready for my Superbowl party).
Okay, the Superbowl is over (and was fun to watch!). I've uploaded the kernel and a gzipped tar of the modules to:

ftp://www.rtgx.com/pub/c3000-bigkernel. There are three files:

zImage (the kernel)
updater.sh (the script that installs a new kernel -- it's in Japanese)
2.4.20.modules.tar.gz

For instructions on how to install a new kernel, please go to: http://www.steyla.com/zaurus/kernel.php3.

This great site has easy to follow instructions on how to compile and install your own kernel. To install the modules, download the tar file, unzip it and unpack it in the root of hdd2:

wget ftp://www.rtgx.com/pub/c3000-bigkernel/2.4.20.modules.tar.gz
cd /hdd2
gunzip 2.4.20.modules.tar.gz
tar -xvf 2.4.20.modules.tar.gz

This will create a modules directory under /hdd2. Now, we need to change a symlink to point to this directory (rather than the directory in /home/root/modules).

cd /home/root
mv modules modules.orig
ln -s /hdd2/modules modules

Now to check that everything works, list the contents of /lib/modules

ls /lib/modules/

You should see one entry:

2.4.20

Now I've included all the patches from tetsu.homelinux.org. The only feature that that site that might not work is the overclocking (I'm not sure that the overclocking patch took). If someone could test that out (check out this thread for details) that would be great.

euroclie

  • Full Member
  • ***
  • Posts: 205
    • View Profile
    • http://
A Kernel With Everything
« Reply #9 on: February 23, 2005, 07:13:35 pm »
Hello,

First of all, thank you gjarboni for your hard work. Here's a feedback after trying your kernel/modules.

I've followed your instructions (btw there a small typo in the modules installation part of your explanation, when you write:
Quote
cd /hdd2
gunzip 2.4.20.modules.tar.gz
tar -xvf 2.4.20.modules.tar.gz
the tar command is applied on the 2.4.20.modules.tar file (not .tar.gz) since we just gunzipped it on the previous line  )

My SL-C3000 reboots just fine (I had installed the modules before updating the kernel), and it feels somewhat more responsive, which is a good thing.

The one thing I immediately noted, though, is that my SD card had disappeared. I couldn't even mount it manually, I got error messages about a non existent /dev/mmcda1 device or something like that... Can you confirm if you also witness this behavior or if I did something wrong?

I then installed v17g kernel and modules from tetsu.homelinux.org, and everything worked as expected (SD card recognized again)...

Regardless of the problem I encountered, I wanted to congratulate you for compiling that stuff and hosting it for us Zaurus end-users... Thank you heartily for your efforts and generosity!
Patrick

m-morino

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://morimasa.net/
A Kernel With Everything
« Reply #10 on: February 23, 2005, 09:54:29 pm »
Hi euroclie,

Quote
The one thing I immediately noted, though, is that my SD card had disappeared. I couldn't even mount it manually, I got error messages about a non existent /dev/mmcda1 device or something like that... Can you confirm if you also witness this behavior or if I did something wrong?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=68361\"][{POST_SNAPBACK}][/a][/div]
You have to make a symbolic link of the SD driver module, then generate a list of module dependencies:

Code: [Select]
$ su
# bash
bash-2.05 # ln -s /lib/modules{.rom,}/2.4.20/kernel/drivers/block/sharp_mmcsd_m.o
bash-2.05 # depmod -a
After that reboot your Z.

HTH,
« Last Edit: February 23, 2005, 09:56:50 pm by m-morino »
m-morino

euroclie

  • Full Member
  • ***
  • Posts: 205
    • View Profile
    • http://
A Kernel With Everything
« Reply #11 on: February 24, 2005, 06:43:05 am »
Quote
You have to make a symbolic link of the SD driver module, then generate a list of module dependencies:
Hmm... Indeed that should fix the problem. I'll give it a try when I find the time to update the kernel again. Thanks a lot!
Patrick

euroclie

  • Full Member
  • ***
  • Posts: 205
    • View Profile
    • http://
A Kernel With Everything
« Reply #12 on: February 25, 2005, 05:57:00 am »
Quote
You have to make a symbolic link of the SD driver module, then generate a list of module dependencies:
OK, I've made the symlink.

To save other newbies some time, I'll add a small note: I initially made the mistake of simlinking to /home/root/modules/2.4.20/kernel/drivers/block/sharp_mmcsd_m.o (because I didn't have m-morino post available at that moment, and this was the first occurrence of the module when doing a "locate mmcsd") which caused problem when runing depmod -a because of too many nested links, and once I linked to /lib/modules.rom/2.4.20/kernel/drivers/block/sharp_mmcsd_m.o, depmod -a worked as expected.

After a reboot the SD card works again. Cool! Now I'll try my GSM/GPRS card with that kernel/modules setup and see if it still works...

Thanks again m-morino!
Patrick

euroclie

  • Full Member
  • ***
  • Posts: 205
    • View Profile
    • http://
A Kernel With Everything
« Reply #13 on: February 25, 2005, 08:18:33 am »
One more question: I'm playing with my GSM/GPRS CF card right now, with gjarboni's kernel & modules.

I thought that everything possible would be compiled as a module, but am I correct in thinking that the serial stuff is still in the kernel (and not in a serial_cs module)? I don't have serial_cs listed with the other modules when inserting my CF card, and yet it does answer the AT commands using minicom...
Patrick

realm

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • http://
A Kernel With Everything
« Reply #14 on: April 07, 2005, 09:08:09 pm »
does anyone still have a copy of this kernel and the modules, i've tried to download it a few times and it looks like the files aren't up anymore.
SL-C860   r197
SL-C3000 Angstrom with e17 /1 Gig SD/Senao Wifi/CF Bluetooth/CF GPS