How do i see what my current kernel is?
How do i see what my current kernel is?
"i want to change the world but they wont give me the source code"
Sweet guide, it's always nice to a have a guide to show you how easy compiling a new kernel is.
no matter what I do, iptables won't work (even when enabled it in xconfig). + ndiswrapper won't compile + many device-mapper errors... I guess I'm not ready for this stuff yet...
Wanna adopt your next dog, cat, or rabbit?
Vote for winmodems to be supported in the next release of Ubuntu! | DialUp Modem HowTo for Ubuntu
(my # of posts) ≠ (my level of linux experience)
uname -rOriginally Posted by Ob1
Wanna adopt your next dog, cat, or rabbit?
Vote for winmodems to be supported in the next release of Ubuntu! | DialUp Modem HowTo for Ubuntu
(my # of posts) ≠ (my level of linux experience)
So I have to recompile the kernel over again, just to apply the new patch?Originally Posted by MasterChief1234
yepOriginally Posted by massivevoid
Wanna adopt your next dog, cat, or rabbit?
Vote for winmodems to be supported in the next release of Ubuntu! | DialUp Modem HowTo for Ubuntu
(my # of posts) ≠ (my level of linux experience)
Ok, I got it now. Thanks.Originally Posted by towsonu2003
So, I gave this a whirl. Here is my output, after I ran make-kpkg -initrd --revision=ck3 kernel_image:
if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map -b /usr/src/linux/debian/tmp-image -r 2.6.16-cks4; fi
make[2]: Leaving directory `/usr/src/linux-2.6.16ck3'
test ! -e debian/tmp-image/lib/modules/2.6.16-cks4/source || \
mv debian/tmp-image/lib/modules/2.6.16-cks4/source ./debian/source-link
test ! -e debian/tmp-image/lib/modules/2.6.16-cks4/build || \
mv debian/tmp-image/lib/modules/2.6.16-cks4/build ./debian/build-link
depmod -q -FSystem.map -b debian/tmp-image 2.6.16-cks4;
test ! -e ./debian/source-link || \ mv ./debian/source-link debian/tmp-image/lib/modules/2.6.16-cks4/source
test ! -e ./debian/build-link || \ mv ./debian/build-link debian/tmp-image/lib/modules/2.6.16-cks4/build
cp arch/i386/boot/bzImage debian/tmp-image/boot/vmlinuz-2.6.16-cks4
chmod 644 debian/tmp-image/boot/vmlinuz-2.6.16-cks4;
if test -d /usr/src/linux/debian/image.d ; then \
IMAGE_TOP=debian/tmp-image version=2.6.16-cks4 \
run-parts --verbose /usr/src/linux/debian/image.d ; \
fi
if [ -x debian/post-install ]; then \
IMAGE_TOP=debian/tmp-image STEM=kernel version=2.6.16-cks4 \
debian/post-install; \
fi
test ! -s applied_patches || cp applied_patches \
debian/tmp-image/boot/patches-2.6.16-cks4
test ! -s applied_patches || chmod 644 \
debian/tmp-image/boot/patches-2.6.16-cks4
test ! -f System.map || cp System.map \
debian/tmp-image/boot/System.map-2.6.16-cks4;
test ! -f System.map || chmod 644 \
debian/tmp-image/boot/System.map-2.6.16-cks4;
# For LKCD enabled kernels
test ! -f Kerntypes || cp Kerntypes \
debian/tmp-image/boot/Kerntypes-2.6.16-cks4
test ! -f Kerntypes || chmod 644 \
debian/tmp-image/boot/Kerntypes-2.6.16-cks4
dpkg-gencontrol -DArchitecture=i386 -isp \
-pkernel-image-2.6.16-cks4 -Pdebian/tmp-image/
chmod -R og=rX debian/tmp-image
chown -R root:root debian/tmp-image
dpkg --build debian/tmp-image ..
dpkg-deb: building package `kernel-image-2.6.16-cks4' in `../kernel-image-2.6.16-cks4_ck3_i386.deb'.
rm -f -r debian/tmp-image
echo done > stamp-image
make[1]: Leaving directory `/usr/src/linux-2.6.16ck3'
root@Goliath:/usr/src/linux# dpkg -i kernel-image-2.6.16-cks4
dpkg: error processing kernel-image-2.6.16-cks4 (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
kernel-image-2.6.16-cks4
of course, it did all the other stuff, this was just the end. Anyhow, I can't seem to install the new kernel. I'm thinking it put it in a directory, and I can't seem to find it (that or I'm just stupid, and shouldn't be trying this).
Can anyone give me a clue here what to do?
Thanks in advance
Justbill
look in usr/src/ for the kernel image. It should be something like linux-image-2.16.6cks3_i386. The open terminal and type sudo dpkg -i then drag the kernel image which is a .deb into the terminal and it will automatically put it's location. Then press enter.Originally Posted by Justbill
I'm sorry, I didn't quite understand what you meant there. Here is the output from cd /usr/src , and then ls -l :
root@Goliath:/home/bill# cd /usr/src
root@Goliath:/usr/src# ls
kernel-image-2.6.16-cks4_ck3_i386.deb linux-2.6.16.tar.bz2
linux linux-headers-2.6.12-10
linux-2.6.16ck3 linux-headers-2.6.12-10-386
root@Goliath:/usr/src# dpkg -i kernel-image-2.6.16-cks_ck3_i386.deb
dpkg: error processing kernel-image-2.6.16-cks_ck3_i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
kernel-image-2.6.16-cks_ck3_i386.deb
root@Goliath:/usr/src# ls -l
total 54160
-rw-r--r-- 1 root src 14534526 2006-04-12 21:55 kernel-image-2.6.16-cks4_ck3_i386.deb
lrwxrwxrwx 1 root src 24 2006-04-12 20:54 linux -> /usr/src/linux-2.6.16ck3
drwxrwxrwx 21 root root 4096 2006-04-12 21:55 linux-2.6.16ck3
-rw-r--r-- 1 root src 40845005 2006-04-12 20:51 linux-2.6.16.tar.bz2
drwxr-xr-x 18 root root 4096 2006-04-09 13:23 linux-headers-2.6.12-10
drwxr-xr-x 4 root root 4096 2006-04-09 13:23 linux-headers-2.6.12-10-386
root@Goliath:/usr/src#
does kernel-image-2.6.16-cks4_ck3_i386.deb need to have permisions changed? and, is that what I want to install?
Thanks
Justbill
Bookmarks