Professional Documents
Culture Documents
Or
cd /usr/src/linux-3.9.3
This command will open a menu for configuration of kernel options. We can navigate around to see different options and to edit a part use space-bar for enable and disabling the driver/module. Save the configuration file as .config. Since make command use .config file to build the kernel. We can load the already configured file files form the source code directory and then save as .config. We can also load the configuration file for which current system's running kernel was built form /boot/ directory. Copy and rename configuration file with the following command.
cp source-file destination-directory/[new-Name-optional] cp /boot/config-3.x.y.etc /usr/src/linux-3.9.3/.config
This command will start compiling the kernel and will take some time depend on the configuration and hardware you are using for compiling.
Make a new directory with name of friendlyARM in home directory. Copy and untar the source files in the ~/friendlyARM/ directory.
Mkdir ~/friendlyARM/ cd ~/friendlyARM/ tar -xvjf linux-3.9.3.tar.gz
Or
cd ~/friendlyARM/linux-3.9.3
untar the arm-linux-gcc packge for the CD to the /usr/local/arm/. After untar browse the bin directory. In our case make it something like this /usr/local/arm/4_5_1/bin. Original directory structure was different we change for simplicity. /usr/local/arm/opt/frindlyARM/arm/4.5.1/bin to /usr/local/arm/4_5_1/bin Note: 4.5.1 was changed to 4_5_1 because sometimes . does not work correctly in terminal.
Now we need to export this this directory to $PATH so whenever we need this command arm-linux-gcc system can find the command. For this go to home directory and open the .bashrc file.
cd gedit .bashrc
Or
gedit ~/.bashrc
A text editor will open the file, Now scroll to the end of the file and append with following text.
export PATH=$PATH:/usr/local/arm/4_5_1/bin
Save and close the file. Exit and re-launch the terminal so that above command can take effect. Compiler for arm-linux has been installed.
This command will open a menu for configuration of kernel options. We can navigate around to see different options and to edit a part use space-bar for enable and disabling the driver/module. Save the configuration file as .config. Since make command use .config file to build the kernel. We can load the already configured file files form the source code directory and then save as .config. There are different configuration files are available for different systems use one which is suitable for your system.
mini210_android_defconfig mini210_linux_defconfig mini210-tvp5150_android_defconfig mini210-tvp5150_linux_defconfig mini210_ubuntu_defconfig
e.g.
cp mini210_linux_defconfig .config
This command will start compiling the kernel and will take some time depend on the configuration and hardware you are using for compiling.