- sudo apt-get install fakeroot kernel-wedge build-essential makedumpfile kernel-package libncurses5 libncurses5-dev
The following packages have unmet dependencies: build-essential: Depends: g++ (>= 4:4.3.1) but it is not going to be installedSolution: Update ubuntu with all packages using update manager.
- Under ~/src/linux-2.6.32, using command
$make menuconfig
- Then I add the home-brewed system call into the file bounds.c (because this file is short).
http://macboypro.wordpress.com/2009/05/15/adding-a-custom-system-call-to-the-linux-os/
http://enzam.wordpress.com/2011/03/26/how-to-add-a-system-call-in-linux-kernel-ubuntu-os/
- I forgot to use this command line below the first time:
sudo update-initramfs -c -k 2.6.32.11+drm33.2-alphaThen I got an unbootable kernel :(
Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
- And I had to make a live CD and boot from CD-ROM
http://askubuntu.com/questions/41930/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block0-0
Create two folders under /mnt : /mnt/dev and /mnt/proc
Start with a livecd, open a a terminal
sudo fdisk -l
sudo mount /dev/sdax /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo chroot /mnt
with the new root folder, cd under /boot and find all the kernel versions.
$update-initramfs -u -k 2.6.32.59+drm33.24-alpha
$update-grub
- After boot up, use $uname to verify the booted version.
/**************END******************/
No comments:
Post a Comment