亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 2832 | 回復(fù): 0
打印 上一主題 下一主題

Using Qemu to simulate ARM/IntegratorCP board [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2010-01-27 14:38 |只看該作者 |倒序?yàn)g覽
Using Qemu to simulate ARM/IntegratorCP
board
1. Qemu/u-boot setup.
Get a recent copy of u-boot sources, build for integrator board.
cd u-boot-2009.01
make integratorcp_config
make ARCH=arm
CROSS_COMPILE=arm-unknown-linux-gnueabi-
Now we could use qemu to run u-boot binary. ie:
qemu-system-arm -kernel u-boot -net nic -net tap -nographic -serial stdio
Note: we should have -net nic -net tap support, otherwise u-boot will not
able to do network traffic.
2. Compile a kernel for IntegratorCP board.
cd linux-2.6
make ARCH=arm integrator_defconfig
tune settings to
fit the IntergratorCP board, Qemu simulates this board with (from
/usr/share/doc/qemu-xxx):
Use the executable 'qemu-system-arm' to simulate a ARM machine. The ARM
Integrator/CP board is emulated with the following devices:
* - ARM926E, ARM1026E, ARM946E, ARM1136 or Cortex-A8 CPU
* - Two PL011
UARTs
* - SMC 91c111 Ethernet adapter
* - PL110 LCD controller
* -
PL050 KMI with PS/2 keyboard and mouse.
* - PL181 MultiMedia Card Interface
with SD card.
Note: ARM926E is an ARMv5te architecture.
make ARCH=arm menuconfig
make ARCH=arm
CROSS_COMPILE=arm-unknown-linux-gnueabi- -j3
make ARCH=arm
CROSS_COMPILE=arm-unknown-linux-gnueabi- uImage
3. Qemu, u-boot, and kernel together.
copy our uImage to tftp server, configure an tftp server first if you don't
have one.
cp arch/arm/boot/uImage /tftpboot/uImage
/etc/init.d/in.tftpd start
run qemu with u-boot
qemu-system-arm -kernel ~/build/u-boot/u-boot-2009.01/u-boot -net nic -net
tap -nographic -serial stdio
and then under u-boot prompt:
Integrator-CP # setenv ipaddr 10.0.0.21 # board ip address
Integrator-CP #
setenv server 10.0.0.207 # tftp server ipaddress
Integrator-CP # setenv
bootargs 'root=/dev/nfs rw nfsroot=10.0.0.207:/exports/nfs/diskless/gentoo-arm
ip=dhcp console=ttyAMA0'
Integrator-CP # tftp 400000 uImage
Integrator-CP
# bootm 400000
Note 1: I'm using nfs-root/diskless system, to use this, you have to
configure a nfs server first, the corresponding /etc/exports file should be
something like:
# /etc/exports: NFS file systems being exported. See exports(5).
/exports/nfs/diskless
10.0.0.0/255.255.255.0(rw,no_root_squash,no_subtree_check)
Note 2: /exports/nfs/diskless/gentoo-arm is a filesystem from gentoo/arm
stage3 tarball, since we're using IP kernel level autoconfigration, so we have
to tell the userspace program do not to configure ip anymore, under gentoo
system, this could be done by (/etc/conf.d/net):
config_eth0=( "null" );
Change /etc/inittab so that init could start from ttyAMA0 with proper
bitrate. you can also uncomment tty0-tty6 since we don't use them.
By default the init program is also trying to mount /etc/fstab entries, we
could also uncomment unneccessary entries to avoid mount errors/warnings.
Note 3: The cross-toolchain is built by gentoo's crossdev by:
crossdev -S --ex-gdb -t arm-unknown-linux-gnueabi
               
               
               

本文來自ChinaUnix博客,如果查看原文請點(diǎn):http://blog.chinaunix.net/u3/98727/showart_2162138.html
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP