On my full install (Macpup 430/431) running a 30.9-i586-8cores-300Hz and a 30.9-i386-8cores-300Hz EXT3_DEFAULTS_TO_ORDERED=y kernel for testing which is running well so far (want to explore 1000Hz and -AMD architectures also)
I created a script to compress the modules at /lib/modules/`uname -r`/kernel which reduced the size of the modules from 48 MB to 20 MB :
Code: Select all
#!/bin/bash
case $1 in
-ko-gzip-func)
echo starting now gzip kernel modules script
cd /lib/modules/`uname -r`/kernel
PWD=`pwd`
echo $PWD
echo will start to transform ".ko" to ".ko.gz" in 10 sec
sleep 10
echo
echo 5th depth
for i in */*/*/*/*; do echo "$i" | grep '.ko'; j=`echo "$i" | grep '.ko'`;echo "$j"; [ ! "$j" = "" ] && k=`realpath "$j"`&& echo "$k" && gzip "$k";echo; done
echo finished to gzip 5th depth kernelmodules
echo sleeping now 10 sec
sleep 10
echo
echo 4th depth
for i in */*/*/*; do echo "$i" | grep '.ko'; j=`echo "$i" | grep '.ko'`;echo "$j"; [ ! "$j" = "" ] && k=`realpath "$j"`&& echo "$k" && gzip "$k";echo; done
echo finished to gzip 4th depth kernelmodules
echo sleeping now 10 sec
sleep 10
echo
echo 3th depth
for i in */*/*; do echo "$i" | grep '.ko'; j=`echo "$i" | grep '.ko'`;echo "$j"; [ ! "$j" = "" ] && k=`realpath "$j"`&& echo "$k" && gzip "$k";echo; done
echo finished to gzip 3th depth kernelmodules
echo sleeping now 10 sec
sleep 10
echo
echo 2th depth
for i in */*; do echo "$i" | grep '.ko'; j=`echo "$i" | grep '.ko'`; echo "$j";[ ! "$j" = "" ] && k=`realpath "$j"`&& echo "$k" && gzip "$k";echo; done
echo finished to gzip 2th depth kernelmodules
echo sleeping now 10 sec
sleep 10
echo
echo now running depmod so modprobe and modinfo find the modules again
depmod
echo finished running \(busybox\) depmod
echo
echo controlling it now
CPM=`cat /proc/modules | grep aes_generic`
echo $CPM
[ "$CPM" = "" ] && echo " probing always loading module aes_generic" && modinfo aes_generic && echo && modprobe aes_generic
echo tried to insert aes_generic
echo sleeping now 10 sec
sleep 10
echo removing aes_generic again
rmmod aes_generic
echo aes_generic removed
echo any warning or error messages occured \?
echo script finished
echo press ctrl and c to close the terminal window
while [ 2=2 ]; do sleep 4; done
exit 0
;;
*)
rxvt -e KO-GZIP.sh -ko-gzip-func
;;
esac
exit
and also if there is a more elegant way to find the .ko files and transform them to .ko.gz .
I could have posted this at the programming section also but I thought that the possibility to reduce the size of the pup-.sfs would fit here better.