天天看點

ubuntu+skyeye+arm-elf-tools+uClinux-------轉

ubuntu: uClinux終于可以跑在skyeye下了。

首先確定root使用者,let's go.

1.install skyeye_1_2_2_Rel

代碼:

$make (note: refer to skyeye/README, gcc4.1.2)

2.install cross-compiler

代碼:

$chmod 777 arm-elf-tools-20030314.sh

$./arm-elf-tools-20030314.sh

3.compile uClinux-dist-20060803

step1:

代碼:

$make xconfig (note:choose GDB/ARMulator,kernel2.4,ucLibc)

q: wish: Command not found,when make xconfig

a:need TK tookit package(TK8.4)

step2:

代碼:

$make dep

step3:

代碼:

$make (成功後生成linux-2.4-x/linux,images/boot.rom和linux)

q:arm-linux-gcc: Command not found

a:change arm-linux- cross-compiler into arm-elf- in vendors/config/armnommu/config.arch

4.run the uClinux in skyeye

step1: add the skyeye.conf in director uClinux-dist/

skyeye.conf:

代碼:

cpu: arm7tdmi

mach: at91

mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000

mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000

mem_bank: map=M, type=R,  addr=0x01400000, size=0x00400000, file=./boot.rom

mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000

mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000

mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000

mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000

step2: for file=./boot.rom in skyeye.conf

代碼:

$ln -s images/boot.rom boot.rom

step2: run uClinux

代碼:

$skyeye -e linux-2.4.x/linux

OK, >ls, 熟悉了吧,haha

q:backspace key is not suppot in uClinux?

a:ctrl+H

q:loading is stoped when $skyeye linux?

a:$skyeye -e linux, because the file:linux is ELF image.

note: 其他版本未測試,google應該能g出來,hehe。

繼續閱讀