'via Blog this'
Hi,
1. NETWORK
sudo tunctl -u $USER -t tap1
ifconfig tap1 192.168.0.1
sudo /usr/sbin/dhcpd -d -cf ./dhcp.conf tap1
default-lease-time 6000;
max-lease-time 72000;
option domain-name-servers 192.168.0.1;
option routers 192.168.0.1;
server-name "192.168.0.1";
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.254;
}
2. UML
pkill -SIGUSR1 -o linux-2.6.24-rc7
./kernel32-3.1.5 ubda=./Debian-Squeeze-x86-root_fs
eth0=tuntap,tap1,fe:f0:00:00:00:01,192.168.1.254 con0=fd:0,fd:1
3. QEMU
u-boot-2010.09/
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- versatilepb_config
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
qemu-system-arm -M versatilepb -nographic -kernel u-boot
qemu-system-arm -M versatilepb -nographic -kernel u-boot -s -S
qemu-system-arm -kernel zImage.integrator -initrd arm_root.img -net nic -net tap,ifname=tap0,script=no
4. LINUX
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- versatile_defconfig -s
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage -s
qemu-system-arm -M versatilepb -nographic -kernel u-boot-2010.09/u-boot -net nic -net tap,ifname=tap1,script=no
5. U-BOOT
VersatilePB # sete ipaddr 192.168.0.2
VersatilePB # sete serverip 192.168.0.1
VersatilePB # sete bootfile linux-2.6.37.4.uImage
VersatilePB # tftpboot
$ dd if=/dev/zero of=flash.img bs=1M count=64
$ dd if=u-boot.bin of=flash.img conv=notrunc
$ qemu-system-arm -M versatilepb -nographic -pflash flash.img
VersatilePB # sete ipaddr 192.168.0.2
VersatilePB # sete serverip 192.168.0.1
VersatilePB # sete bootfile linux-2.6.37.4.uImage
VersatilePB # printenv
6. EVM
Linux T4000 2.6.37.4 #3 Fri Dec 23 13:54:46 EET 2011 armv5tejl GNU/Linux
T4000:~#
root=/dev/nfs rw nfsroot=135.243.22.64:/opt/rfs mem=256M earlycon=uart8250,mmio,0xfe090000,115200 console=ttyS0,115200n8 ip=135.243.22.59:::135.243.22.254:255.255.255.254::: hwaddress=eth1,00:02:F7:00:19:19 nol2x0 nopcie noswap
qemu-system-arm -M versatilepb -m 128M -kernel zImage -initrd rootfs -append "root=/dev/nfs rw nfsroot=135.243.22.63:/opt/rfs console=ttyAMA0 console=ttyS0 noswap ip=192.168.0.2::192.168.0.1:255.255.255.0:::" -nographic -net nic -net tap,ifname=tap1,script=no
7. HDA
qemu-system-arm -M versatilepb -cpu cortex-a8 -kernel ./vmlinuz -hda arm-rootfs.img -m 256 -append "root=/dev/sda mem=256M devtmpfs.mount=0 rw"
8. BB
qemu-system-arm -M versatilepb -m 128M -kernel zImage -initrd /udir/vkinzers/repos/openLRT/qemu/rootfs.bb.img -append "root=/dev/ram rdinit=/bin/sh console=ttyAMA0 console=ttyS0 ip=192.168.0.2::192.168.0.255:255.255.255.0:::" -nographic -net nic -net tap,ifname=tap1,script=no
tar xjvf busybox-1.19.3.tar.bz2
722 cd busybox-1.19.3/
723 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- defconfig
724 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig
725 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- install
726 ls -R _install/
727 cd _install find . | cpio -o --format=newc > ../rootfs.bb.img
No comments:
Post a Comment