How to add driver/modules to modules-3.1.10-15-gabaf62d
I have followed this guide hhtps://wiki.ubuntu.com/KernelTeam/KernelGitBuild exept were marqued inBold.
Prerequisites
There are a few tools that are necessary in order to build your own kernel(s). The 'git' (or 'git-core' for 10.04 or before) package provides the git revision control system which will be used to clone the mainline git repository. The 'kernel-package' provides the make-kpkg utility which automatically build your kernel and generate the linux-image and linux-header .deb files which can be installed. You will need to install the following packages:
sudo apt-get install git build-essential kernel-package fakeroot libncurses5-dev
Kernel Build and Installation
Change to the directory where you want to clone the git tree. In this example we will use $HOME:
cd $HOME
Clone the mainline kernel git tree:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
I have downloaded the git:https://github.com/jmrohwer/TF101-GNU-kernel end extrated the zip
I have not checked the commits.
Change to directory linux:
cd linux
Info (!) If you only want to test all commits up to and including a specific one, instead of every commit you just downloaded, one may execute:
git checkout COMMIT
where COMMIT is the specific commit number (ex. 9587190107d0c0cbaccbf7bf6b0245d29095a9ae).
You want now to clean up from previous build(not necessary first time), with
sudo make mrproper
Copy the kernel config file from your existing system to the kernel tree:
cp /boot/config-`uname -r` .config
Since /boot/config-.. not exist, I have followed SteeveJ guide:
extracted /proc/config.gz to .config
or extracted the .config from the git with:
make tf101-linux_defconfig
verify:that CONFIG_LOCALVERSION=-15 (in my case) is correct!
Bring the config file up to date. Answer any questions that get prompted. Unless you know you are interested in a particular feature, accepting the default option by pressing Enter should be a safe choice:
make oldconfig
In cases where your kernel source is significantly newer than the existing config file, you'll be presented with all of the new config options for which there is no existing config file setting. You can either sit there and keep hitting Enter to take the default (generally safe), or you can just run:
yes '' | make oldconfig
which emulates exactly the same thing and saves you all that time.
(optional) If you need to make any kernel config changes, do the following and save your changes when prompted:
make menuconfig
Selecting the driver I want to add -(>Drivers ->Usb ->.Usbserial->fdti_sio in my case)
From now on the Guide is not relevant anymore I had to continue using other suggestions.Thanks to SteeveJ and TomTcom
Build the modules files using a thread per core + 2. This process may take time:
make -j2 modules
Finally I try to install the new module:
insdep driverFileName.ko
THANKS TO:
JROHWER
STEEVEJ
TOMTCOM
I have followed this guide hhtps://wiki.ubuntu.com/KernelTeam/KernelGitBuild exept were marqued inBold.
Prerequisites
There are a few tools that are necessary in order to build your own kernel(s). The 'git' (or 'git-core' for 10.04 or before) package provides the git revision control system which will be used to clone the mainline git repository. The 'kernel-package' provides the make-kpkg utility which automatically build your kernel and generate the linux-image and linux-header .deb files which can be installed. You will need to install the following packages:
sudo apt-get install git build-essential kernel-package fakeroot libncurses5-dev
Kernel Build and Installation
Change to the directory where you want to clone the git tree. In this example we will use $HOME:
cd $HOME
Clone the mainline kernel git tree:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
I have downloaded the git:https://github.com/jmrohwer/TF101-GNU-kernel end extrated the zip
I have not checked the commits.
Change to directory linux:
cd linux
Info (!) If you only want to test all commits up to and including a specific one, instead of every commit you just downloaded, one may execute:
git checkout COMMIT
where COMMIT is the specific commit number (ex. 9587190107d0c0cbaccbf7bf6b0245d29095a9ae).
You want now to clean up from previous build(not necessary first time), with
sudo make mrproper
Copy the kernel config file from your existing system to the kernel tree:
cp /boot/config-`uname -r` .config
Since /boot/config-.. not exist, I have followed SteeveJ guide:
extracted /proc/config.gz to .config
or extracted the .config from the git with:
make tf101-linux_defconfig
verify:that CONFIG_LOCALVERSION=-15 (in my case) is correct!
Bring the config file up to date. Answer any questions that get prompted. Unless you know you are interested in a particular feature, accepting the default option by pressing Enter should be a safe choice:
make oldconfig
In cases where your kernel source is significantly newer than the existing config file, you'll be presented with all of the new config options for which there is no existing config file setting. You can either sit there and keep hitting Enter to take the default (generally safe), or you can just run:
yes '' | make oldconfig
which emulates exactly the same thing and saves you all that time.
(optional) If you need to make any kernel config changes, do the following and save your changes when prompted:
make menuconfig
Selecting the driver I want to add -(>Drivers ->Usb ->.Usbserial->fdti_sio in my case)
From now on the Guide is not relevant anymore I had to continue using other suggestions.Thanks to SteeveJ and TomTcom
Build the modules files using a thread per core + 2. This process may take time:
make -j2 modules
Finally I try to install the new module:
insdep driverFileName.ko
THANKS TO:
JROHWER
STEEVEJ
TOMTCOM
Last edited: