文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>转:Linux-2.6.16 For AT91RM9200开发过程

转:Linux-2.6.16 For AT91RM9200开发过程

时间:2006-08-08  来源:lengxb

1、安装
  从 www.kernel.org 上下载Linux2.6.16版的kernel,解压到 /usr/src/arm/linux-2.6.16
  从http://maxim.org.za/AT91RM9200/2.6/ 上下载针对rm9200的补丁,文件名:2.6.16-at91.patch.gz,复制到  /usr/src/arm/linux-2.6.16,然后在命令行界面中执行 zcat 2.6.16-at91.patch.gz |patch -p1

  从http://www.aleph1.co.uk/cgi-bin/viewcvs.cgi/yaffs2.tar.gz?view=tar下载YAFFS2补丁 yaffs2.tar.gz 解压缩后到文件目录下运行 sh patch-ker.sh ../linux-2.6.16 把YAFF2加到内核中去;

  下载GCC编译器,文件名:arm-linux-gcc-3.4.1.tar.bz2,解压到 /usr/local/arm/3.4.1

2、修改

打开内核原代码根目录下的Makefile,找到如下两行:
ARCH ?=$(SUBARCH)
CROSS_COMPILE ?=
修改为:
ARCH ?=arm
CROSS_COMPILE ?=/usr/local/arm/3.4.1/bin/arm-linux-

3、编译内核

执行如下命令:
make at91rm9200dk_defconfig
make menuconfig
    改 Boot options 选项下的 Z-BOOT-ROM-TEXT 为0x21000000
                             Z-BOOT-ROM-BSS  为0x21100000
make zImage

4、运行
在开发板上运行u-boot后
tftp 21000000 zImage
tftp 21100000 Ramdisk
go 21000000

运行过程:
NJZD-Boot> tftp 21000000 zImage
TFTP from server 192.168.1.50; our IP address is 192.168.1.200
Filename 'zImage'.
Load address: 0x21000000
Loading: #################################################################
         #################################################################
         #######################################################
done
Bytes transferred = 946828 (e728c hex)

NJZD-Boot> tftp 21100000 linux4
TFTP from server 192.168.1.50; our IP address is 192.168.1.200
Filename 'linux4'.
Load address: 0x21100000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################################
done
Bytes transferred = 2511823 (2653cf hex)
NJZD-Boot> go 21000000
## Starting application at 0x21000000 ...
Uncompressing Linux.............................................................. done, booting the kernel.
Linux version 2.6.16 ([email protected]) (gcc version 3.4.1) #3 Mon Aug 7 12:02:11 UTC 2006
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: Atmel AT91RM9200-DK
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 179 MHz, master 59 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: mem=32M console=ttyS0,115200 initrd=0x21100000,6000000 root=/dev/ram0 rw
AT91: 128 gpio irqs in 4 banks
PID hash table entries: 256 (order: 8, 4096 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB = 32MB total
Memory: 24548KB available (1544K code, 342K data, 88K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 5859K
NET: Registered protocol family 16
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
AT91 Real Time Clock driver.
AT91 SPI driver loaded
AT91 Watchdog Timer enabled (5 seconds, nowayout=1)
at91_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a AT91_SERIAL
at91_usart.1: ttyS1 at MMIO 0xfffc4000 (irq = 7) is a AT91_SERIAL
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
eth0: Link now 100-FullDuplex
eth0: AT91 ethernet at 0xfefbc000 int=24 100-FullDuplex (12:34:56:78:9a:bc)
eth0: Davicom 9196 PHY (Copper)
physmap flash device: 200000 at 10000000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
Support for command set 0001 not present
gen_probe: No supported Vendor Command Set found
at91_nand: init by njzd-zsh.
No SmartMedia card inserted.
at91_nand: probe of at91_nand failed with error 6
at91_cf: irqs det #64, io #0
udc: at91_udc version 8 March 2005
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
at91_i2c at91_i2c: AT91 i2c bus driver.
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 88K
INIT: version 2.74 booting
/dev/tty1: File exists
INIT: Entering runlevel: 3
Starting system logger:  syslogd
Starting interfaces execvp: Permission denied

Starting rtc

AT91RM9200DK login:

本人能力有限希望有更多的朋友加入进来让更多人能更快地在自已板子上跑起linux-2.6!!
本人能力有限希望有更多的朋友加入进来让更多人能更快地在自已板子上跑起linux-2.6!!

相关阅读 更多 +
排行榜 更多 +
进击的小动物安卓版

进击的小动物安卓版

飞行射击 下载
进攻yalghaar

进攻yalghaar

飞行射击 下载
深空战场

深空战场

飞行射击 下载