Tiny Core Extensions > TCE Tips & Tricks

Compiling kernel and modules on TC

<< < (3/12) > >>

kerpob:

--- Quote from: curaga on February 19, 2009, 07:30:34 AM ---Our .config is available at a mirror near you - look for release/src/config-2.6.26-tinycore :)

Cramfs yeah, I think zisofs is disabled by default too (transparent compression of iso9660) (currently tcz are one of these two formats)

--- End quote ---
CONFIG_ZISOFS - listed under CD/DVD file systems!

kerpob:
I used perl5 from tce and it compiled fine... only 3 modules - bit annoying as I was aiming for none.

Now - do I need to create a new initrd (& how on tcl), or can I use the one already there for the old kernel?

curaga:
Since on TC the initramfs is the OS :)

If you don't need the new modules, you can use the old initramfs.
If you do, you'd just add the modules there, and remove the old ones. On how to do this see the wiki page "Remastering"

kerpob:

--- Quote from: curaga on February 20, 2009, 04:41:32 AM ---Since on TC the initramfs is the OS :)

If you don't need the new modules, you can use the old initramfs.
If you do, you'd just add the modules there, and remove the old ones. On how to do this see the wiki page "Remastering"

--- End quote ---
Tried it with the old initrd and it booted to jwm ok, but no keys or the mouse (touchpad on the eee) worked.

So, following the remastering instructions I put my 3 modules into lib/modules and rebuilt  a new initrd.

This time only 1 module failed (hid_dummy, which is apparently an unused relic) but still jwm won't allow mouse or keys - although i can do ctrl-alt-backspace and drop to a root prompt which I can type away merrily into.

I think I might be missing other important things from my kernel, but not sure what they are!

softwaregurl:
I failed so many times trying to get the multimedia modules right I finaly just put it all in a few scripts.

this all happens from a root terminal and in the same directory as the kernel source and .config.  Theres also the src directory and symlink already
--- Code: ---rm -rv ./src/linux-2.6.26
cd src
tar xzvf linux-2.6.26.tar.bz2
mkdir -p /usr/src
mount --bind /mnt/sda1/src /usr/src
cd /usr/src/linux
make mrproper
cp /mnt/sda1/config-2.6.26-tinycore /usr/src/linux/.config
make menuconfig

--- End code ---
I split it up here so I could save the new .config elsewhere or load an old one (or just to check things out).

--- Code: ---cd /usr/src/linux
make all
mkdir -pv /tmp/usr/local
make modules_install INSTALL_MOD_PATH=/tmp/usr/local/
#rm -v /tmp/usr/local/lib/modules/2.6.26-tinycore/source
cd /tmp/
find usr/ -not -type d >new-modules.lst

--- End code ---
This makes and installs for a PPI compatible extension.  Now edit out everything that doesn't belong from new-modules.lst. The commented out line, I may well have done something wrong.  Somehow I ended up with a symlink to the entire source.  It was getting late (thats my excuse and I'm sticking with it).  Theres other modules I want so I'll find out soon.
Then just

--- Code: ---tar -zcvf new-modules.tcem -T new-modules.lst
--- End code ---
rename and cp it to the tce directory (I use optional) and convert to tczm with tce2tcz.sh

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version