hello guys I am trying to emulate the mini2440 on the qemu emulator and to some extent I have succeeded in doing this as when I run the mini2440_start.sh script , I get this output: Output: ~$ ./mini2440/start.sh Starting in /home/piyush/mini2440 /usr/local/qemu/bin/qemu-system-arm -M mini2440 -drive file=/home/ piyush/mini2440/mini2440_snapshots.img,snapshot=on -serial stdio - mtdblock /home/piyush/mini2440/mini2440_nand.bin -kernel /home/piyush/ mini2440/kernel-uimage -show-cursor -usb -usbdevice keyboard - usbdevice mouse -net nic,vlan=0 -net tap,vlan=0,ifname=tap1,script=/ etc/qemu-ifup -monitor telnet::5555,server,nowait Executing /etc/qemu-ifup Bringing up tap1 for bridged mode... Adding tap1 to br0... device tap1 is already a member of a bridge; can't enslave it to bridge br0. S3C: CLK=240 HCLK=240 PCLK=240 UCLK=57 QEMU: ee24c08_init DM9000: INIT QEMU MAC : 52:54:00:12:34:56 QEMU mini2440_reset: loaded default u-boot from NAND QEMU mini2440_reset: loaded override u-boot (size 3aa00) QEMU mini2440_reset: loaded /home/piyush/mini2440/kernel-uimage (size 229800) S3C: CLK=240 HCLK=60 PCLK=30 UCLK=57 S3C: CLK=240 HCLK=60 PCLK=30 UCLK=48 S3C: CLK=405 HCLK=101 PCLK=50 UCLK=48 U-Boot 1.3.2-mini2440 (Jul 10 2011 - 13:06:03) I2C: ready DRAM: 64 MB NOR Flash not found. Use hardware switch and 'flinit' Flash: 0 kB NAND: 64 MiB Found Environment offset in OOB.. USB: S3C2410 USB Deviced In: serial Out: serial Err: serial MAC: 08:08:11:18:12:27 Hit any key to stop autoboot: 0 MINI2440 # MINI2440 # So I am now in the mini2440 uboot shell , but from here I want to run the linux kernel and want the terminal of the kernel to appear in it, and also the rootfs image. So I want to know that what changes I have to do in my mini2440 uboot environment variables in order to set the ip address , gateway and other networking parameters in the uboot environment variable. I am using the ubuntu 10.04 and I have the dhcp internet connection. The environment variable of my mini2440 uboot is as follows: MINI2440 # printenv bootargs=root=/dev/mtdblock3 rootfstype=jffs2 console=ttySAC0,115200 bootcmd= bootdelay=3 baudrate=115200 ethaddr=08:08:11:18:12:27 ipaddr=10.0.0.111 serverip=10.0.0.4 netmask=255.255.255.0 usbtty=cdc_acm mtdparts=mtdparts=mini2440-nand:256k@0(u-boot),128k(env),5m(kernel),- (root) mini2440=mini2440=0tb bootargs_base=console=ttySAC0,115200 noinitrd bootargs_init=init=/sbin/init root_nand=root=/dev/mtdblock3 rootfstype=jffs2 root_mmc=root=/dev/mmcblk0p2 rootdelay=2 root_nfs=/mnt/nfs set_root_nfs=setenv root_nfs root=/dev/nfs rw nfsroot=${serverip}:$ {root_nfs} ifconfig_static=run setenv ifconfig ip=${ipaddr}:${serverip}::$ {netmask}:mini2440:eth0 ifconfig_dhcp=run setenv ifconfig ip=dhcp ifconfig=ip=dhcp set_bootargs_mmc=setenv bootargs ${bootargs_base} ${bootargs_init} $ {mini2440} ${root_mmc} set_bootargs_nand=setenv bootargs ${bootargs_base} ${bootargs_init} $ {mini2440} ${root_nand} set_bootargs_nfs=run set_root_nfs; setenv bootargs ${bootargs_base} $ {bootargs_init} ${mini2440} ${root_nfs} ${ifconfig} mtdids=nand0=mini2440-nand partition=nand0,0 mtddevnum=0 mtddevname=u-boot Environment size: 1089/131068 bytes MINI2440 # the ifconfig configuration of my PC before setting the network for the Qemu and running it is as : :~$ ifconfig eth0 Link encap:Ethernet HWaddr 00:1b:fc:c5:1a:12 inet addr:116.74.41.85 Bcast:116.74.47.255 Mask: 255.255.248.0 inet6 addr: fe80::21b:fcff:fec5:1a12/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:108 errors:0 dropped:0 overruns:0 frame:0 TX packets:126 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11818 (11.8 KB) TX bytes:14067 (14.0 KB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:116 errors:0 dropped:0 overruns:0 frame:0 TX packets:116 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:9768 (9.7 KB) TX bytes:9768 (9.7 KB) virbr0 Link encap:Ethernet HWaddr 2a:29:e5:52:cf:19 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask: 255.255.255.0 inet6 addr: fe80::2829:e5ff:fe52:cf19/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:26 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:4752 (4.7 KB) piyush@piyush-desktop:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0 116.74.40.0 0.0.0.0 255.255.248.0 U 1 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 116.74.40.1 0.0.0.0 UG 0 0 0 eth0 piyush@piyush-desktop:~$ piyush@piyush-desktop:~$ piyush@piyush-desktop:~$ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 116.74.40.0 * 255.255.248.0 U 1 0 0 eth0 link-local * 255.255.0.0 U 1000 0 0 eth0 default 116.74.40.1 0.0.0.0 UG 0 0 0 eth0 piyush@piyush-desktop:~$ piyush@piyush-desktop:~$ and the ifconfig configuration after setting the network bridge between qemu and my host PC is : ~$ ifconfig br0 Link encap:Ethernet HWaddr 00:1b:fc:c5:1a:12 inet addr:116.74.41.85 Bcast:116.74.47.255 Mask: 255.255.248.0 inet6 addr: fe80::21b:fcff:fec5:1a12/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5536 errors:0 dropped:0 overruns:0 frame:0 TX packets:5016 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3972656 (3.9 MB) TX bytes:618490 (618.4 KB) eth0 Link encap:Ethernet HWaddr 00:1b:fc:c5:1a:12 inet6 addr: fe80::21b:fcff:fec5:1a12/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:5817 errors:0 dropped:0 overruns:0 frame:0 TX packets:5284 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4079921 (4.0 MB) TX bytes:645671 (645.6 KB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:116 errors:0 dropped:0 overruns:0 frame:0 TX packets:116 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:9768 (9.7 KB) TX bytes:9768 (9.7 KB) tap1 Link encap:Ethernet HWaddr ea:c9:37:37:34:53 inet6 addr: fe80::e8c9:37ff:fe37:3453/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:20 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:84 (84.0 B) TX bytes:5522 (5.5 KB) virbr0 Link encap:Ethernet HWaddr 2a:29:e5:52:cf:19 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask: 255.255.255.0 inet6 addr: fe80::2829:e5ff:fe52:cf19/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:29 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:5004 (5.0 KB) piyush@piyush-desktop:~$ piyush@piyush-desktop:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0 116.74.40.0 0.0.0.0 255.255.248.0 U 0 0 0 br0 116.74.40.0 0.0.0.0 255.255.248.0 U 1 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 116.74.40.1 0.0.0.0 UG 0 0 0 br0 0.0.0.0 116.74.40.1 0.0.0.0 UG 0 0 0 eth0 piyush@piyush-desktop:~$ piyush@piyush-desktop:~$ piyush@piyush-desktop:~$ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 116.74.40.0 * 255.255.248.0 U 0 0 0 br0 116.74.40.0 * 255.255.248.0 U 1 0 0 eth0 link-local * 255.255.0.0 U 1000 0 0 eth0 default 116.74.40.1 0.0.0.0 UG 0 0 0 br0 default 116.74.40.1 0.0.0.0 UG 0 0 0 eth0 piyush@piyush-desktop:~$ This output is when I am running the mini2440 uboot. So what network changes I have to do in my environment variable so that I get the rootfs running in the qemu. Thanks
network setting in the mini uboot environment variable
Dear All Trouble Shooters, I am impressed with the kind of path you have shown to Embsys. I have successfully installed PPP on mini2440 and connected to PPP server and thus internet. But when I run openvpn over ppp-network iam getting the following error, TLS negotiation failed to occure within 60 secs (check network connectivity) But, I am able to establish connection between openvpn server and client with normal TCP/IP connection. Can any one help me in this regard. With Best Regards, Nikhil N.D.