Đăng ký hoặc đăng nhập
Logging in...
Ghi Nhớ?
Ðăng Nhập
Forgot password or user name?
or
Đăng ký
Log in with
Facebook
Search in titles only
Search in Core 32-bit only
Tìm kiếm
Kiếm Chi Tiết
DIỄN ĐÀN
Chủ đề mới
Bài viết trong ngày
Thành viên trực tuyến
Đánh dấu đã đọc
Danh sách thành viên
Linh kiện điện tử
Calendar
Trang chủ
Diễn đàn
Vi điều khiển (MCU) - Bộ điều khiển tín hiệu số (DSC)
Core 32-bit
Biên dịch nhân uClinux
Nếu đây là lần đầu tiên đến với Điện Tử Việt Nam, bạn có thể đọc phần
Hỏi đáp
bằng cách nhấn vào liên kết. Có thể bạn cần
đăng kí
trước khi có thể gửi bài . Để bắt đầu xem bài viết, chọn diễn đàn bạn muốn thăm dưới đây.
Biên dịch nhân uClinux
Collapse
X
Collapse
Bài viết
Hoạt động gần đây
Hình ảnh
Trang
of
1
Lọc
Giờ
All Time
hôm nay
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Trước
template
Next
ga_cong
Thành viên chính thức
Tham gia:
Mar 2008
Bài viết:
65
Share
Post
#1
Biên dịch nhân uClinux
26-01-2012, 11:31
Có ai biết cách Biên dịch 1 nhân uClinux trên ubuntu thì giúp tôi với
nhóm điện tử facebook
itx
Moderator
Tham gia:
Feb 2008
Bài viết:
1365
Share
Post
#2
27-01-2012, 19:17
Làm theo hướng dẫn sau:
Building uClinux on Ubuntu
The article describes how to build uClinux on your Linux, i.g. Ubuntu…
.
For cross compile, we should install some cross toolchain…
$ wget
http://www.uclinux.org/pub/uClinux/a...ls-20030314.sh
$ ./arm-elf-tools-20030314.sh
But it will pop up an error: tail: cannot open `+43′ for reading: No such file or directory
[FIX]:
$ sed ‘s/^tail /tail -n/’ arm-elf-tools-20030314.sh > arm-elf-tools-20030314.sh.tmp
$ chmod +x arm-elf-tools-20030314.sh.tmp
$ sudo ./arm-elf-tools-20030314.sh.tmp
.
Download uClinux source, and unzip it
$ wget
http://www.uclinux.org/pub/uClinux/d...0040408.tar.gz
$ tar -zxvf uClinux-dist-20040408.tar.gz
.
To compile uClinux source, you have to install some library
$ sudo apt-get install ncurses-dev tcl tk
.
Change to the root of uClinux-dist, and enter those command to build it
$ make xconfig
$ make dep
$ make
.
Good idear to run image on skyeye if you donot have any board on hand.
.
Install skyeye as this:
$ sudo apt-get install skyeye
.
Also, skyeye needs an configure file: skyeye.conf, create it, and its content should be:
#skyeye config file sample
cpu: arm7tdmi
mach: at91
mem_bank: map=M, type=RW, addr=0×00000000, size=0×00004000
mem_bank: map=M, type=RW, addr=0×01000000, size=0×00400000
mem_bank: map=M, type=R, addr=0×01400000, size=0×00400000, file=./boot.rom
mem_bank: map=M, type=RW, addr=0×02000000, size=0×00400000
mem_bank: map=M, type=RW, addr=0×02400000, size=0×00008000
mem_bank: map=M, type=RW, addr=0×04000000, size=0×00400000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0×10000000
.
What’s the file: boot.rom, create an link from images/romfs.img in the root directory of uClinux-dist
$ ln -s images/romfs.img boot.rom
.
And now, you could skyeye it as this:
$ skyeye -e linux-2.4.x/linux
.
Welcome to
____ _ _
/ __| ||_|
_ _| | | | _ ____ _ _ _ _
| | | | | | || | _ | | | | / /
| |_| | |__| || | | | | |_| |/
| _______|_||_|_| |_|____|_/_/
| |
|_|
GDB/ARMulator support by <davidm@snapgear.com>
For further information check:
uClinux
Execution Finished, Exiting
Sash command shell (version 1.1.1)
/>
note:ITX giữ nguyên bản tiếng anh vì lười dịch.
Từ chối trách nhiệm:
Mọi thông tin từ ITX cung cấp với hi vọng nó có ích và không đi kèm với bất kì sự bảo đảm nào.
Blog:
http://mritx.blogspot.com
Comment
Gửi bài viết
Huỷ bỏ
Trước
template
Next
Về tác giả
Collapse
Tìm hiểu thêm về
ga_cong
Bài viết mới nhất
Collapse
Trả lời cho
Tp. HCM. Thanh lý một số vật tư điện nước, thiết bị vệ sinh
bởi
ittc
Hi, một ngày mới vui vẻ và gặp nhiều may mắn, thuận lợi nhé.
14-09-2026, 07:34
Đang tải...
OK
OK
Huỷ bỏ
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕
Comment