创建虚拟的U-boot和ARM Linux学习环境
作者:YF-YF
日期:2009-12-9
关键词:U-boot,VersatilePB, ARM, Linux, Qemu, PB926,RealView Platforms
本文介绍了一种不需要花钱购买真实的电路板,就可以学习基于ARM的嵌入式linux技术,基于U-boot的bootloader技术的方法。
构成运行嵌入式linux的三个基本构件是:启动管理器,linux内核,根文件系统。这三个部分预先会烧录到电路板上的flash里面。
具体方法是使用Qemu虚拟出ARM公司的Versatile Platform Baseboard。将编译制作好的bootloader, linux-kernel, root-filesystem三个文件制作成flash.img镜像文件。使用qemu-system-arm –Mversatilepb –pflash flash.img进行仿真。
本方法中使用的各种工具和代码均可以从ARM官方网站和其他网站下载到。
运行平台:RedhatLinux
第一步:下载需要的工具和软件包
1、
交叉编译环境 Sourcery G++ Lite 2009q3-67 for ARM GNU/Linux
参见网页http://www.codesourcery.com/sgpp/lite/arm/portal/release1039
CodeSourcery
>
Sourcery G++
>
Lite Edition
>
ARM
http://www.codesourcery.com/sgpp/lite/arm/portal/package5383/public/arm-none-linux-gnueabi/arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
2、
Qemu仿真器
使用的版本是0.10.6,我下载了qemu-0.11.1.tar.gz,发现在我系统上编译不过。
http://download.savannah.gnu.org/releases/qemu/qemu-0.10.6.tar.gz
3、
需要从 www.linux-arm.org下载的工具
参考http://www.arm.com/products/os/linux_download.html里面的说明
1)下载一个制作好的根文件系统armv5t_min.cramfs
http://www.linux-arm.org/git?p=ael.git;a=blob_plain;f=filesystem/bin/armv5t_min.cramfs;hb=2009q1
2)去http://www.linux-arm.org/git
下载修改好的linux-2.6的源码
git clonegit://linux-arm.org/linux-2.6-stable.git
如果系统里没有git工具,可以从 http://kernel.org/pub/software/scm/git/git-1.6.5.5.tar.bz2下载。
3)下载修改好的u-boot源码包
http://www.linux-arm.org/git?p=ael.git;a=blob_plain;f=u-boot/src/u-boot-armdev.git-49103cb62047a20ebd91ed200ae624a7c922e5be.tar;hb=2009q1
第二步:安装编译
Linux系统下,以源码包形式发布的工具,基本安装方法是三步:
a)配置安装目录
./configure --prefix=path_to_install_dir
b)编译代码 make
c)安装到prefix指定的目录中
安装完毕后需要在你的home目录里修改.bashrc或.tcshrc,将工具可执行文件的路径添加进去。
1)安装Sourcery G++ Lite 2009q3-67 for ARM GNU/Linux
2)安装Qemu 0.10.6
目前的Qemu并不支持直接从flash启动仿真,网络上有人做了修改,参见http://thomas.enix.org/Blog-20081002153859-TechnologieUsing U-Boot and Flash emulation in Qemu
从http://thomas.enix.org/pub/qemu-versatile-flash-emulation/versatilepb-add-flash-support
将versatilepb-add-flash-support下载下来。
解压qemu-0.10.6.tar.gz后,使用
%cat versatilepb-add-flash-support|patch –p1
修改hw/versatilepb.c,添加flash支持。
该网站说的其他修改hw/pflash_cfi01.c的patch可以忽略,因为相应代码已经修改过了。
3)编译linux内核
4)编译u-boot.bin
注意修改Makefile里的cross_compile变量为arm-none-linux-gnueabi-,和现在其他通用的前缀“arm-linux-”不一样。
第三步:制作flash.img并运行仿真
%dd if=/dev/zero of=./flash.img bs=256kcount=256
%dd if=u-boot.bin of=./flash.img bs=256kconv=notrunc
%dd if=uImage of=./flash.img bs=256k seek=2conv=notrunc
%dd if=armv5t_min.cramfs of=./flash.imgbs=256K seek=8 conv=notrunc
%qemu-system-arm -M versatilepb -m 200-nographic -pflash ./flash.img
?set bootargsroot=/dev/mtdblock0 mtdparts=armflash.0:11868k@0x00200000(cramfs) ip=dhcp mem=128M console=ttyAMA0 video=vc:1-2clcdfb:
?cp 0x340800000x7fc0 0x00200000
?bootm
运行成功输出的log文件:
U-Boot 2009.03-rc1 (Dec 02 2009 - 00:57:01)
Code cloned from branch 090204_armdev ofgit://linux-arm.org/u-boot-armdev.git
Release AEL-3.0
Remote commit cloned
UNKNOWN
Latest commit locally
UNKNOWN
git state UNKNOWN
DRAM:
0 kB
pflash_write: Unimplemented flash cmdsequence (offset 00000000, wcycle 0x0 cmd 0x0 value 0xf0)
pflash_write: Unimplemented flash cmdsequence (offset 00000000, wcycle 0x0 cmd 0x0 value 0x90)
Flash: 64 MB
*** Warning - bad CRC, using defaultenvironment
In:
serial
Out:
serial
Err:
serial
Hit any key to stop autoboot:
0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
VersatilePB # printenv
bootargs=root=/dev/mtdblock0mtdparts=armflash.0:7268k@0x02680000(cramfs) ip=dhcp mem=128M console=ttyAMA0 video =vc:1-2clcdfb:
bootcmd=cp 0x36000000 0x7fc0 0x00200000 ;bootm
bootdelay=2
baudrate=38400
bootfile="/tftpboot/uImage"
stdin=serial
stdout=serial
stderr=serial
verify=n
Environment size: 280/8188 bytes
VersatilePB # ?
?
- alias for 'help'
autoscr - run script from memory
base
- print or set address offset
bdinfo
- print Board Info structure
bootm
- boot application image from memory
bootp
- boot image via network using BOOTP/TFTP protocol
cmp
- memory compare
cp
- memory copy
crc32
- checksum calculation
dhcp
- boot image via network using DHCP/TFTP protocol
erase
- erase FLASH memory
flinfo
- print FLASH memory information
go
- start application at address 'addr'
help
- print online help
iminfo
- print header information for application image
loop
- infinite loop on address range
md
- memory display
mm
- memory modify (auto-incrementing)
mtest
- simple RAM test
mw
- memory write (fill)
nm
- memory modify (constant address)
ping
- send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH writeprotection
rarpboot- boot image via network usingRARP/TFTP protocol
reset
- Perform RESET of the CPU
saveenv - save environment variables topersistent storage
setenv
- set environment variables
tftpboot- boot image via network using TFTPprotocol
version - print monitor version
VersatilePB # set bootargsroot=/dev/mtdblock0 mtdparts=armflash.0:11868k@0x00200000(cramfs) ip=dhcp mem=128M console=ttyAMA0 video=vc:1-2clcdfb:
VersatilePB # printenv
bootcmd=cp 0x36000000 0x7fc0 0x00200000 ;bootm
bootdelay=2
baudrate=38400
bootfile="/tftpboot/uImage"
stdin=serial
stdout=serial
stderr=serial
verify=n
bootargs=root=/dev/mtdblock0mtdparts=armflash.0:11868k@0x00200000(cramfs) ip=dhcp mem=128M console=ttyAMA0 video=vc:1-2clcdfb:
Environment size: 281/8188 bytes
VersatilePB # cp 0x34080000 0x7fc00x00200000
VersatilePB # bootm
## Booting kernel from Legacy Image at00007fc0 ...
Image Name:
Linux-2.6.28-arm2
Image Type:
ARM Linux KernelImage (uncompressed)
Data Size:
1523620 Bytes =
1.5 MB
Load Address: 00008000
Entry Point:
00008000
Loading Kernel Image ... OK
OK
Starting kernel ...
UncompressingLinux...............................................................................................done, booting the kernel.
Linux version 2.6.28-arm2() (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #1 Mon Nov30 01:59:09 PST 2009
CPU: ARM926EJ-S [41069265] revision 5(ARMv5TEJ), cr=00093177
CPU: VIVT data cache, VIVT instructioncache
Machine: ARM-Versatile PB
Memory policy: ECC disabled, Data cachewriteback
Built 1 zonelists in Zone order, mobilitygrouping on.
Total pages: 32512
Kernel command line: root=/dev/mtdblock0mtdparts=armflash.0:11868k@0x00200000(cramfs) ip=dhcp mem=128M console=ttyAMA0 video=vc:1-2clcdfb:
PID hash table entries: 512 (order: 9, 2048bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384(order: 4, 65536 bytes)
Inode-cache hash table entries: 8192(order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126704KB available (2656K code,217K data, 100K init)
SLUB: Genslabs=12, HWalign=32, Order=0-3,MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 498.07 BogoMIPS(lpj=2490368)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 288 bytes
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024(order: 0, 4096 bytes)
TCP established hash table entries: 4096(order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order:2, 16384 bytes)
TCP: Hash tables configured (established4096 bind 4096)
TCP renoregistered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) © 2001-2006 RedHat, Inc.
msgmni has been set to 247
io scheduler noop registered
io scheduler anticipatory registered(default)
io scheduler deadline registered
io scheduler cfq registered
CLCD: unknown LCD panel ID 0x00001000,using VGA
CLCD: Versatile hardware, VGA display
Clock CLCDCLK: setting VCO reg params: S=1R=99 V=98
Console: switching to colour frame bufferdevice 80x30
Serial: AMBA PL011 UART driver
dev:f1: ttyAMA0 at MMIO 0x101f1000 (irq = 12) is a AMBA/PL011
console [ttyAMA0] enabled
dev:f2: ttyAMA1 at MMIO 0x101f2000 (irq = 13) is a AMBA/PL011
dev:f3: ttyAMA2 at MMIO 0x101f3000 (irq = 14) is a AMBA/PL011
fpga:09: ttyAMA3 at MMIO 0x10009000 (irq =38) is a AMBA/PL011
smc91x.c: v1.1, sep 22 2004 by NicolasPitre <nico@cam.org>
eth0: SMC91C11xFD (rev 1) at c88da000 IRQ 25 [nowait]
eth0: Ethernet addr: 52:54:00:12:34:56
pflash_write: Unimplemented flash cmdsequence (offset 00000000, wcycle 0x0 cmd 0x0 value 0xf000f0)
armflash.0: Found 1 x32 devices at 0x0 in 32-bit bank
Intel/Sharp Extended Query Table at 0x0031
pflash_write: Unimplemented flash cmdsequence (offset 00000000, wcycle 0x0 cmd 0x0 value 0xf0)
Using buffer write method
1 cmdlinepart partitions found on MTDdevice armflash.0
Creating 1 MTD partitions on"armflash.0":
0x00200000-0x00d97000 : "cramfs"
mtd: partition "cramfs" doesn'tend on an erase block -- force read-only
mice: PS/2 mouse device common for all mice
rtc-ds1307: probe of 0-0068 failed witherror -5
i2c/dev entries driver
input: AT Raw Set 2 keyboard as/devices/fpga:06/serio0/input/input0
mmc0: MMCI rev 0 cfg 00 at0x0000000010005000 irq 22,33
Advanced Linux Sound Architecture DriverVersion 1.0.18rc3.
ALSA device list:
Nosoundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
VFP support v0.3: implementor 41architecture 1 part 10 variant 9 rev 0
drivers/rtc/hctosys.c: unable to open rtcdevice (rtc0)
input: ImExPS/2 Generic Explorer Mouse as/devices/fpga:07/serio1/input/input1
eth0: link up
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 10.0.2.2,my address is 10.0.2.15
IP-Config: Complete:
device=eth0, addr=10.0.2.15,mask=255.255.255.0, gw=10.0.2.2,
host=10.0.2.15, domain=,nis-domain=(none),
bootserver=10.0.2.2,rootserver=10.0.2.2, rootpath=
VFS: Mounted root (cramfs filesystem)readonly.
Freeing init memory: 100K
init started: BusyBox v1.14.3(2009-11-12 11:03:55 GMT)
starting pid 324, tty '':'/etc/rc.d/rc.local'
/etc/rc.d/rc.local: line 14: can't create/var/testfile: Read-only file system
warning: can't open /etc/mtab: No such fileor directory
Thu Jan
1 00:00:14 UTC 1970
S: devpts
Thu Jan
1 00:00:14 UTC 1970
S: udev
Thu Jan
1 00:00:17 UTC 1970
S: sshd
Thu Jan
1 00:00:18 UTC 1970
S: dbus id
Thu Jan
1 00:00:19 UTC 1970
S: hald
Thu Jan
1 00:00:19 UTC 1970
S: Xorg
Thu Jan
1 00:00:19 UTC 1970
R: Xorg
Thu Jan
1 00:00:19 UTC 1970
S: dhcdbd
Found no /etc/resolv.conf you need one fore.g. browser to resolve URLs
Thu Jan
1 00:00:19 UTC 1970
S: ohmd
736
/proc/asound/cards file present
No ARM AC'97 Interface found
starting pid 741, tty '': '/sbin/getty -LttySA0 38400 vt100'
AEL login: root
login[742]: root login on 'ttyAMA0'
BusyBox v1.14.3(2009-11-12 11:03:55 GMT) built-in shell (ash)
Enter 'help' for a list of built-incommands.
作者:YF-YF
日期:2009-12-9
关键词:U-boot,VersatilePB, ARM, Linux, Qemu, PB926,RealView Platforms
本文介绍了一种不需要花钱购买真实的电路板,就可以学习基于ARM的嵌入式linux技术,基于U-boot的bootloader技术的方法。
构成运行嵌入式linux的三个基本构件是:启动管理器,linux内核,根文件系统。这三个部分预先会烧录到电路板上的flash里面。
具体方法是使用Qemu虚拟出ARM公司的Versatile Platform Baseboard。将编译制作好的bootloader, linux-kernel, root-filesystem三个文件制作成flash.img镜像文件。使用qemu-system-arm –Mversatilepb –pflash flash.img进行仿真。
本方法中使用的各种工具和代码均可以从ARM官方网站和其他网站下载到。
运行平台:RedhatLinux
第一步:下载需要的工具和软件包
1、
交叉编译环境 Sourcery G++ Lite 2009q3-67 for ARM GNU/Linux
参见网页http://www.codesourcery.com/sgpp/lite/arm/portal/release1039
CodeSourcery
>
Sourcery G++
>
Lite Edition
>
ARM
http://www.codesourcery.com/sgpp/lite/arm/portal/package5383/public/arm-none-linux-gnueabi/arm-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
2、
Qemu仿真器
使用的版本是0.10.6,我下载了qemu-0.11.1.tar.gz,发现在我系统上编译不过。
http://download.savannah.gnu.org/releases/qemu/qemu-0.10.6.tar.gz
3、
需要从 www.linux-arm.org下载的工具
参考http://www.arm.com/products/os/linux_download.html里面的说明
1)下载一个制作好的根文件系统armv5t_min.cramfs
http://www.linux-arm.org/git?p=ael.git;a=blob_plain;f=filesystem/bin/armv5t_min.cramfs;hb=2009q1
2)去http://www.linux-arm.org/git
下载修改好的linux-2.6的源码
git clonegit://linux-arm.org/linux-2.6-stable.git
如果系统里没有git工具,可以从 http://kernel.org/pub/software/scm/git/git-1.6.5.5.tar.bz2下载。
3)下载修改好的u-boot源码包
http://www.linux-arm.org/git?p=ael.git;a=blob_plain;f=u-boot/src/u-boot-armdev.git-49103cb62047a20ebd91ed200ae624a7c922e5be.tar;hb=2009q1
第二步:安装编译
Linux系统下,以源码包形式发布的工具,基本安装方法是三步:
a)配置安装目录
./configure --prefix=path_to_install_dir
b)编译代码 make
c)安装到prefix指定的目录中
安装完毕后需要在你的home目录里修改.bashrc或.tcshrc,将工具可执行文件的路径添加进去。
1)安装Sourcery G++ Lite 2009q3-67 for ARM GNU/Linux
2)安装Qemu 0.10.6
目前的Qemu并不支持直接从flash启动仿真,网络上有人做了修改,参见http://thomas.enix.org/Blog-20081002153859-TechnologieUsing U-Boot and Flash emulation in Qemu
从http://thomas.enix.org/pub/qemu-versatile-flash-emulation/versatilepb-add-flash-support
将versatilepb-add-flash-support下载下来。
解压qemu-0.10.6.tar.gz后,使用
%cat versatilepb-add-flash-support|patch –p1
修改hw/versatilepb.c,添加flash支持。
该网站说的其他修改hw/pflash_cfi01.c的patch可以忽略,因为相应代码已经修改过了。
3)编译linux内核
4)编译u-boot.bin
注意修改Makefile里的cross_compile变量为arm-none-linux-gnueabi-,和现在其他通用的前缀“arm-linux-”不一样。
第三步:制作flash.img并运行仿真
%dd if=/dev/zero of=./flash.img bs=256kcount=256
%dd if=u-boot.bin of=./flash.img bs=256kconv=notrunc
%dd if=uImage of=./flash.img bs=256k seek=2conv=notrunc
%dd if=armv5t_min.cramfs of=./flash.imgbs=256K seek=8 conv=notrunc
%qemu-system-arm -M versatilepb -m 200-nographic -pflash ./flash.img
?set bootargsroot=/dev/mtdblock0 mtdparts=armflash.0:11868k@0x00200000(cramfs) ip=dhcp mem=128M console=ttyAMA0 video=vc:1-2clcdfb:
?cp 0x340800000x7fc0 0x00200000
?bootm
运行成功输出的log文件:
U-Boot 2009.03-rc1 (Dec 02 2009 - 00:57:01)
Code cloned from branch 090204_armdev ofgit://linux-arm.org/u-boot-armdev.git
Release AEL-3.0
Remote commit cloned
UNKNOWN
Latest commit locally
UNKNOWN
git state UNKNOWN
DRAM:
0 kB
pflash_write: Unimplemented flash cmdsequence (offset 00000000, wcycle 0x0 cmd 0x0 value 0xf0)
pflash_write: Unimplemented flash cmdsequence (offset 00000000, wcycle 0x0 cmd 0x0 value 0x90)
Flash: 64 MB
*** Warning - bad CRC, using defaultenvironment
In:
serial
Out:
serial
Err:
serial
Hit any key to stop autoboot:
0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
VersatilePB # printenv
bootargs=root=/dev/mtdblock0mtdparts=armflash.0:7268k@0x02680000(cramfs) ip=dhcp mem=128M console=ttyAMA0 video =vc:1-2clcdfb:
bootcmd=cp 0x36000000 0x7fc0 0x00200000 ;bootm
bootdelay=2
baudrate=38400
bootfile="/tftpboot/uImage"
stdin=serial
stdout=serial
stderr=serial
verify=n
Environment size: 280/8188 bytes
VersatilePB # ?
?
- alias for 'help'
autoscr - run script from memory
base
- print or set address offset
bdinfo
- print Board Info structure
bootm
- boot application image from memory
bootp
- boot image via network using BOOTP/TFTP protocol
cmp
- memory compare
cp
- memory copy
crc32
- checksum calculation
dhcp
- boot image via network using DHCP/TFTP protocol
erase
- erase FLASH memory
flinfo
- print FLASH memory information
go
- start application at address 'addr'
help
- print online help
iminfo
- print header information for application image
loop
- infinite loop on address range
md
- memory display
mm
- memory modify (auto-incrementing)
mtest
- simple RAM test
mw
- memory write (fill)
nm
- memory modify (constant address)
ping
- send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH writeprotection
rarpboot- boot image via network usingRARP/TFTP protocol
reset
- Perform RESET of the CPU
saveenv - save environment variables topersistent storage
setenv
- set environment variables
tftpboot- boot image via network using TFTPprotocol
version - print monitor version
VersatilePB # set bootargsroot=/dev/mtdblock0 mtdparts=armflash.0:11868k@0x00200000(cramfs) ip=dhcp mem=128M console=ttyAMA0 video=vc:1-2clcdfb:
VersatilePB # printenv
bootcmd=cp 0x36000000 0x7fc0 0x00200000 ;bootm
bootdelay=2
baudrate=38400
bootfile="/tftpboot/uImage"
stdin=serial
stdout=serial
stderr=serial
verify=n
bootargs=root=/dev/mtdblock0mtdparts=armflash.0:11868k@0x00200000(cramfs) ip=dhcp mem=128M console=ttyAMA0 video=vc:1-2clcdfb:
Environment size: 281/8188 bytes
VersatilePB # cp 0x34080000 0x7fc00x00200000
VersatilePB # bootm
## Booting kernel from Legacy Image at00007fc0 ...
Image Name:
Linux-2.6.28-arm2
Image Type:
ARM Linux KernelImage (uncompressed)
Data Size:
1523620 Bytes =
1.5 MB
Load Address: 00008000
Entry Point:
00008000
Loading Kernel Image ... OK
OK
Starting kernel ...
UncompressingLinux...............................................................................................done, booting the kernel.
Linux version 2.6.28-arm2() (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #1 Mon Nov30 01:59:09 PST 2009
CPU: ARM926EJ-S [41069265] revision 5(ARMv5TEJ), cr=00093177
CPU: VIVT data cache, VIVT instructioncache
Machine: ARM-Versatile PB
Memory policy: ECC disabled, Data cachewriteback
Built 1 zonelists in Zone order, mobilitygrouping on.
Total pages: 32512
Kernel command line: root=/dev/mtdblock0mtdparts=armflash.0:11868k@0x00200000(cramfs) ip=dhcp mem=128M console=ttyAMA0 video=vc:1-2clcdfb:
PID hash table entries: 512 (order: 9, 2048bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384(order: 4, 65536 bytes)
Inode-cache hash table entries: 8192(order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126704KB available (2656K code,217K data, 100K init)
SLUB: Genslabs=12, HWalign=32, Order=0-3,MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 498.07 BogoMIPS(lpj=2490368)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 288 bytes
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024(order: 0, 4096 bytes)
TCP established hash table entries: 4096(order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order:2, 16384 bytes)
TCP: Hash tables configured (established4096 bind 4096)
TCP renoregistered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) © 2001-2006 RedHat, Inc.
msgmni has been set to 247
io scheduler noop registered
io scheduler anticipatory registered(default)
io scheduler deadline registered
io scheduler cfq registered
CLCD: unknown LCD panel ID 0x00001000,using VGA
CLCD: Versatile hardware, VGA display
Clock CLCDCLK: setting VCO reg params: S=1R=99 V=98
Console: switching to colour frame bufferdevice 80x30
Serial: AMBA PL011 UART driver
dev:f1: ttyAMA0 at MMIO 0x101f1000 (irq = 12) is a AMBA/PL011
console [ttyAMA0] enabled
dev:f2: ttyAMA1 at MMIO 0x101f2000 (irq = 13) is a AMBA/PL011
dev:f3: ttyAMA2 at MMIO 0x101f3000 (irq = 14) is a AMBA/PL011
fpga:09: ttyAMA3 at MMIO 0x10009000 (irq =38) is a AMBA/PL011
smc91x.c: v1.1, sep 22 2004 by NicolasPitre <nico@cam.org>
eth0: SMC91C11xFD (rev 1) at c88da000 IRQ 25 [nowait]
eth0: Ethernet addr: 52:54:00:12:34:56
pflash_write: Unimplemented flash cmdsequence (offset 00000000, wcycle 0x0 cmd 0x0 value 0xf000f0)
armflash.0: Found 1 x32 devices at 0x0 in 32-bit bank
Intel/Sharp Extended Query Table at 0x0031
pflash_write: Unimplemented flash cmdsequence (offset 00000000, wcycle 0x0 cmd 0x0 value 0xf0)
Using buffer write method
1 cmdlinepart partitions found on MTDdevice armflash.0
Creating 1 MTD partitions on"armflash.0":
0x00200000-0x00d97000 : "cramfs"
mtd: partition "cramfs" doesn'tend on an erase block -- force read-only
mice: PS/2 mouse device common for all mice
rtc-ds1307: probe of 0-0068 failed witherror -5
i2c/dev entries driver
input: AT Raw Set 2 keyboard as/devices/fpga:06/serio0/input/input0
mmc0: MMCI rev 0 cfg 00 at0x0000000010005000 irq 22,33
Advanced Linux Sound Architecture DriverVersion 1.0.18rc3.
ALSA device list:
Nosoundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
VFP support v0.3: implementor 41architecture 1 part 10 variant 9 rev 0
drivers/rtc/hctosys.c: unable to open rtcdevice (rtc0)
input: ImExPS/2 Generic Explorer Mouse as/devices/fpga:07/serio1/input/input1
eth0: link up
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 10.0.2.2,my address is 10.0.2.15
IP-Config: Complete:
device=eth0, addr=10.0.2.15,mask=255.255.255.0, gw=10.0.2.2,
host=10.0.2.15, domain=,nis-domain=(none),
bootserver=10.0.2.2,rootserver=10.0.2.2, rootpath=
VFS: Mounted root (cramfs filesystem)readonly.
Freeing init memory: 100K
init started: BusyBox v1.14.3(2009-11-12 11:03:55 GMT)
starting pid 324, tty '':'/etc/rc.d/rc.local'
/etc/rc.d/rc.local: line 14: can't create/var/testfile: Read-only file system
warning: can't open /etc/mtab: No such fileor directory
Thu Jan
1 00:00:14 UTC 1970
S: devpts
Thu Jan
1 00:00:14 UTC 1970
S: udev
Thu Jan
1 00:00:17 UTC 1970
S: sshd
Thu Jan
1 00:00:18 UTC 1970
S: dbus id
Thu Jan
1 00:00:19 UTC 1970
S: hald
Thu Jan
1 00:00:19 UTC 1970
S: Xorg
Thu Jan
1 00:00:19 UTC 1970
R: Xorg
Thu Jan
1 00:00:19 UTC 1970
S: dhcdbd
Found no /etc/resolv.conf you need one fore.g. browser to resolve URLs
Thu Jan
1 00:00:19 UTC 1970
S: ohmd
736
/proc/asound/cards file present
No ARM AC'97 Interface found
starting pid 741, tty '': '/sbin/getty -LttySA0 38400 vt100'
AEL login: root
login[742]: root login on 'ttyAMA0'
BusyBox v1.14.3(2009-11-12 11:03:55 GMT) built-in shell (ash)
Enter 'help' for a list of built-incommands.
# help
可能有用的附件: |
-
tunctl-1.5.tar.gz(4.87 KB)

-
bridge-utils-1.4.tar.gz(31.89 KB)
