Install debian linux kernel compilation and summary

1. Install debian

Use UNetbootin ( http://unetbootin.sourceforge.net/ ) to create a boot disk, and download the basic package debian.

The disk compression operation, and to retain the position of a primary partition.

Then, restart the system press F12, select U disk, install it.

 

There are a few caveats:

1) pre-Windows systems, "Computer -> Manage -> Disk Management" tool, free space larger partition "compact disc" operation, compression 40G of space I have here, and then divided into two Partition : for mounting "/" root directory for a swap swap.

Here, we take a partition set primary partition root directory, which can be indexed directly to the MBR partitioning, which allows the system to boot from this partition.

After 2). Reboot the system, my Thinkpad series notebook is press F12 to enter the Boot Media Selection menu, where you choose to boot from USB.

3) After the start of the installation process of each system are substantially the same, mainly in the step of setting a disk, select "Set (Manual)" mode, leaving the upper partition is provided to the corresponding file system format and mount points .

 

2. Compile linux kernel step

Why should compile linux kernel, because the direct release version of the kernel source code, are often unable to make module successfully, always suggesting lack of documentation. Simply recompile the source code directly, and then use the newly compiled kernel to boot the system.

But doing it is very simple:

 
  
make menuconfig
Do not need to do any special configuration, you can use the default.
 
  
make

Start compiling, from about 1 to 2 hours.

 
  
make bzImage

Build the kernel compression format, in fact, do not need to do this step, because then the compiler will automatically generate.

 
  
make modules

Compile the module part

 
  
make modules_install

The resulting module file (* .ko) mounted to an appropriate location.

 
  
make install

Initrd image generation, together with the kernel image to the copy / boot / directory, and updates the grub.

 

The final step, reboot the system.

 

3. end

 

After a good toss over the pages, considered Debian, Linux Mint Debian, Fedora, CentOS, Linux Mint, OpenSuse and so on, finally chose Ubuntu 13.10.

By UNetBootin way, it is mounted directly on the hard disk partition.

And then try to write the kernel module, directly modify the kernel source and install Win XP install Xen and Xen have smooth sailing in.

 

Xen installation steps of:

 
  
sudo apt-get install xen-hypervisor-4.3-amd64 
 
  
sudo apt-get install virt-manager
Then reboot the system, run the virt-manager, you can manage the same as virtualbox or create a virtual machine.

Reproduced in: https: //www.cnblogs.com/long123king/p/3537979.html

Guess you like

Origin blog.csdn.net/weixin_34032792/article/details/94503619