Linux compilation + Replacement 3.4 version Kernel tutorial

Source: Internet
Author: User

Master don't look, to the novice to see
"Compilation 3.4"
"On the PC, my system is Ubuntu 12.04 Desktop 32bit"

    1. sudo su

    2. wget https://github.com/linux-sunxi/linux-sunxi/archive/sunxi-3.4.zip

    3. Unzip sunxi-3.4

    4. CD linux*sunxi*3.4

    5. Make Sun4i_defconfig ARC H=arm

 
unzip
 
make config
when finished

    1. Apt-get Install build-essential u-boot-tools uboot-mkimage gcc-arm-linux-gnueabihf-y

Install the necessary things
Then get the menu and choose what you want (drive something).

    1. Make Menuconfig arch=arm

See Clearly, above is written linux/arm 3.4.29, if you are linux/arm 3.0.xx then you download wrong, if you are linux/i386 or linux/x86_64 that more unreliable, Why don't you download it to I386 's bag? You didn't write arm on arch .
you slowly choose, the following device driver is the driver, network support is the Internet. Pull down, there's something underneath.

The first one (Ge ... Setup) There is a default Hostname, also is the Hostname, can modify their own
to choose something, use a button:
Y set to built-in (deleted)
N set to No (no kernel inside, can increase through module)
M set to module (can increase or decrease by module)
let's see .

This is the network, there is a wireless is wireless, network support the following is the hardware driver

This is the wireless option for everyone to refer to
Devices driver->graphics Support->bootup logo inside has a boot icon, you can choose, haha


This is the Penguin icon for Linux.
You picked it?
OK, left and right button select Exit

Choose Yes, save, OK.

    1. Make Uimage cross_compile=arm-linux-gnueabihf--j2 arch=arm #编译uImage文件

    2. Make Arch=arm cross_compile=arm-linux-gnueabihf--j2 install_mod_path=output modules #编译lib文件夹里的文件

    3. Make Arch=arm cross_compile=arm-linux-gnueabihf--j2 install_mod_path=output modules_install #编译lib文件夹里的文件

    4. MV Arch/arm/boot/uimage Output #移动


above J2 means double thread, can change

Compiling now

OK
Uimage and Lib can be compiled at the same time, open two terminals can be
compiled and copied directly to SD card .
two files are in the output folder.
uimage Copy the FAT partition to the SD card
lib Copy to sd card on Linux partition
then plug the SD card into it.
Remember to take the original backup, or the damage will be tragic
copy process Look at the second floor


Original Tll
Original link: http://forum.cubietech.com/forum.php?mod=viewthread&tid=371

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.