Starting from compiling uClinux!

Source: Internet
Author: User
Starting from compiling uClinux! -- Linux general technology-Linux programming and kernel information. The following is a detailed description. It has been compiling for a while.
Previously, the failure was due to insufficient hard disk space. We could only use smbmount to film the problem. As a result, we did not have the write permission, that is, the write permission!
Later, I cleaned up my hard disk and made room for it! Now I can write a story!
First download the uClinux back,: http://www.uclinux.org/pub/uClin... ist-20051110.tar.gz
Then create a cross-compilation environment according to the instructions on the website: http://www.uclinux.org/pub/uClin... f-tools-20030314.sh
Install arm-elf-tools and then compile uClinux:

[Ljjk @ localhost root] # wget http://www.uclinux.org/pub/uClin... ist-20051110.tar.gz
[Ljjk @ localhost root] # wget http://www.uclinux.org/pub/uClin... f-tools-20030314.sh
[Ljjk @ localhost root] # chmod 777 arm-elf-tools-20030314.sh
[Ljjk @ localhost root] #./arm-elf-tools-20030314.sh
[Ljjk @ localhost root] # tar zxvf uClinux-dist-20051110.tar.gz
[Ljjk @ localhost root] # cd uClinux-dist
[Ljjk @ localhost uClinux-dist] # make mrproper
[Ljjk @ localhost uClinux-dist] # vi linux2.4.x/arch/armnommu/vmlinux-armv.lds.in
In _ sto _ kallsyms = ,;
* (. Got) is followed:
Romfs_data = .;
Romfa. o
Romfs_data.end = .;
Then wq exits.
If this step is not done, minor issues may occur during compilation. I reported a romfs_data error when I was cheap.
[Ljjk @ localhost uClinux-dist] # vi vendors/Samsung/4510B/Makefile
Add the following line of genromfs-v-V "ROMdisk"-f $ (ROMFSIMG)-d $ (ROMFSDIR)
Arm-elf-ld-r-o $ (ROOTDIR)/$ (LINUXDIR)/romfs. o-B binary $ (ROMFSIMG)
Then wq is saved and exited.
[Ljjk @ localhost uClinux-dist] # make menuconfig
At this time, a selection menu appears, move to the first option to highlight, and press enter to enter. There are two options, one is the second row, and the other is the fourth row, the second line is used to select the supported product structure (the hardware platform we usually call), and the fourth line is used to select Products! Select samsung and 5410B respectively, because these two are used more in us!
Then, select Exit to return to the main menu, highlight it to the Kernel/Library, and enter. Select 2.4.x as the kernel, and select uClibc as the lib library. Remember, it is not uC-libc ., Then Exit and then Exit. A prompt is displayed. Select yes to save.
[Ljjk @ localhost uClinux-dist] # make dep
[Ljjk @ localhost uClinux-dist] # make lib_only
[Ljjk @ localhost uClinux-dist] # vi config/. config
Then comment out "CONFIG_USER_OLD_PASSWORDS = y" # CONFIG_USER_OLD_PASSWORDS = y"
[Ljjk @ localhost uClinux-dist] # make user_only
[Ljjk @ localhost uClinux-dist] # make romfs
[Ljjk @ localhost uClinux-dist] # make image
If an error occurs during this step, perform the following steps:
[Ljjk @ localhost uClinux-dist] # make
This will generate the desired file under the image.
[Ljjk @ localhost uClinux-dist] ls romfs
Bin dev etc home lib mnt proc sbin tmp usr var doc written by 1jjk
[Ljjk @ localhost uClinux-dist] ls image
Image. bin linux. data linux. text romfs. img
Compilation is completed here.


Give a success story:




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cublog.cn/u/8709/upfile/060718211302.jpg'); ">

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.