Complete a simple round-robin multi-channel kernel code
- Set up this platform:
Since this step:
wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.9.4.tar.xz
Download too slow, I downloaded directly in the Windows environment and copy and paste into a virtual machine
among them:
wget https://raw.github.com/mengning/mykernel/master/mykernel_for_linux3.9.4sc.patch
Into this:
wget https://github.com/mengning/mykernel/blob/master/mykernel_for_linux3.9.4sc.patch
You can be downloaded to patch file
problem appear:
Compressed file to decompress the end of tar.xz, as follows:
$xz -d ***.tar.xz
$tar -xvf ***.tar
In this way will result in the original * .tar.xz archive does not exist, you can see that this archive is then compressed package, is outside xz compression, the inner layer is packaged tar way.
A command can be used directly decompress:
tar xvJf ***.tar.xz
To extract
- quote from the wind to the sand to
Decompression results:
Ubuntu installed to make:
Phrase began to have problems:
Try adding patch:
diff -Naur linux-3.9.4 linux-3.9.4.new/ > mykernel_for_linux3.9.4sc.patch
Or there should be a problem from extracting, re-extract delete unzip the file:
The results still have this question:
Is it because:
1. The file in question
2. Extract command error
Some people say, identify problems and access to information, is the time to download the installation package, download the installation package is not complete, once again re-download the installation package, unpack it again successful.
Download again, because the middle speed interrupted several times, use the following command can continue interrupted download from:
wget -c https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.9.4.tar.xz
Finally, the decompression process with no errors! Here decompression command is:
$xz -d ***.tar.xz
$tar -xvf ***.tar
But the problem still exists
Later found
wget https://github.com/mengning/mykernel/blob/master/mykernel_for_linux3.9.4sc.patch
It is down to the file, but not the content, so I copy and paste the code directly under the patch in a virtual machine environment. If this is the truth, copy and paste can be achieved by sharing files.
try again:
This should be no problem.
make allnoconfig very smoothly
make this problem has emerged
Downstairs experimental implementation process: