Linux Kernel 2.6 compilation Guide, User Mode Linux (UML), Ext4 support
When I wrote this guide 3 years ago, it was my first ever attempt at writing articles which I had yearned to start. I had to get bluetooth support on my Linux 2.4 kernel and the easier and better way out was to upgrade to a 2.6 series kernel. Hence the guide. Its still good. Let me know, if otherwise.
Today, I wanted to play around with the Ext4 filesystem and User Mode Linux. Hence I am recompiling a vanilla 2.6.28 kernel, the first time after I had written that article. I am reproducing it here with some modifications and the theme as compilation of a vanilla kernel, rather than the upgradation and spelling corrections specific to User Mode Linux (UML) and ext4.
The idea is to build a ‘ext4’ and a UML enabled kernel, then some newbie style playing with the UML and ‘ext4’ filesystem. I am using Debian 5.0 “Lenny” on VirtualBox (I don’t have much to loose, that way :-))
Obtaining the kernel source code
Get the latest kernel source code (I am using 2.6.28) and extract it to a directory under your $HOME.
You will need to enable the ‘ext4’ support under ‘Filesystems’ and also specify that we are building a UML kernel:
debian:/home/amit/kernel/sources/linux-2.6.28# make depconfig ARCH=um
debian:/home/amit/kernel/sources/linux-2.6.28# make menuconfig ARCH=um
Save the configuration.
Building the Kernel
Once the configuration is over, you can start the build process:
debian:/home/amit/kernel/sources/linux-2.6.28# make linux ARCH=um
After the build process is over, you will have a binary, linux which is the kernel just built for you with UML support.
Booting into UML
Before you can boot, you will need a UML root file system. You can either download one from here or build one yourself, or you may boot your host file system. I am using the root filesystem image for DSL provided in the earlier mentioned link:
Locating the bottom of the address space ... 0x0
Locating the top of the address space ... 0xc0000000
Core dump limits :
soft - 0
hard - NONE
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking for tmpfs mount on /dev/shm...OK
Checking PROT_EXEC mmap in /dev/shm/...OK
Checking for the skas3 patch in the host:
and finally you will get a root# prompt. To ensure, that we are really in UML,
cat /proc/cpuinfo :
processor : 0
vendor_id : User Mode Linux
model name : UML
mode : skas
host : Linux debian 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686
bogomips : 10643.04
Well, we just got started. You might want to try lots of other things. Networking, Jails, blah blah. Visit the UML homepage for more resources. Also, read the UML documentation in the Kernel source tree under Documentation/.
We will need to do some extra things to start playing around with ‘ext4’.
We will have to: create a new kernel image, make the modules, install them and boot into the new kernel (as mentioned here). Once booted into the new kernel, try out some of the stuffs as in here
I tried one of the alpha releases of Kubuntu 9.04, which supports ‘ext4’. It was pretty much blazingly fast.
Weekends to peopleig2tmean that they can have a two-day wowgold4europe good rest. For example， people gameusdcan go out to enjoy themselves or get meinwowgoldtogether with relatives and friends to talk with each storeingameother or watch interesting video tapes with the speebiewhole family.Everyone spends agamegoldweekends in his ownmmoflyway. Within two days,some people can relax themselves by listening to music， reading novels，or watchingogeworld films. Others perhaps are more active by playing basketball，wimming ormmorpgvipdancing. Different people have different gamesavorrelaxations.I often spend weekends withoggsalemy family or my friends. Sometimes my parents take me on a visit to their old friends. Sometimesgamersell I go to the library to study or borrow some books tommovirtexgain much knowledge. I also go to see various exhibition to broadenrpg tradermy vision. An excursion to seashore or mountain resorts is my favorite way of spending weekends. Weekends are always enjoyable for me.igxe swagvaultoforu wowgold-usaignmax wowgoldlivebrogame thsaleGoldRockUbrogameswagvaultgoldsoonoforuigxethsale
links of london tiffany jewellerytiffany jewelrylinks of londontiffany jewellery gucci jewellery
Today,we are proud to announce the launch of the new wedding support service sell ffxi gil,packed with features sure to sell ffxi gils delight adventurers across Vana'diel looking to exchange eternal vows with their beloved!Responding to player demands for greater customization,the new service will grant brides and grooms freedom in choosing location,timing,dialogue,and sell Final Fantasy XI Gil more for their ceremony,allowing them to create a truly memorable event all their own.Information on all the features,including in-game sell ffxi gil item vendors and wedding certificates,can be found on the new wedding support site,so head on over sell ffxi gils and get started planning the wedding of your dreams sell Final Fantasy XIGil!
Interesting post. I have been wondering about this issue,so thanks for posting. I’ll likely be coming back to your blog. Keep up great writing. Find your great Travel News and sing the songs at Free Song Lyric or you can watch the drama at Korea Drama Online one of great korea drama is A Love to Kill if you go to travel to Indonesia learn Learn Indonesia Language first! And find your home cari rumah or make a blog Belajar membuat Blog find your home again rumah dijual and again at jual rumah the point is cari rumah, jual rumah, rumah dijual, download youtube and find blog widget and then if you want buy a new laptop see the Laptop Price List or you can buy a New Blackberry and then take care your Health & Jewerly good job, very great article Cari Rumah, Jual Rumah, Rumah dijual Thanks ever so much Cari Rumah, Jual Rumah, Rumah dijual very useful article Cari Rumah, Jual Rumah, Rumah dijual Great information Cari Rumah, Jual Rumah, Rumah dijual I like your blog Cari Rumah, Jual Rumah, Rumah dijual I will be checking back for any new articles Cari Rumah, Jual Rumah, Rumah dijual just bookmarked it for later reference Cari Rumah, Jual Rumah, Rumah dijual. Thanks for kindly sharing it with us. Very well done indeed