qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] Configuration of Qemu network to working with U-boot tftp


From: Jerzy Grzegorek
Subject: [Qemu-discuss] Configuration of Qemu network to working with U-boot tftp
Date: Thu, 16 Aug 2012 17:09:57 +0200

<!-- @page { size: 21cm 29.7cm; margin: 2cm } P { margin-bottom: 0.21cm } EM { font-style: italic } -->

Hi,

I built small linux system with Busybox tftp file transfer capability. I checked my host tftp

     address@hidden:~$ tftp 192.168.0.101

     tftp> v

     Verbose mode on.

     tftp> b

     mode set to octet

     tftp> get uImage.initramfs

     getting from 192.168.0.101:uImage.initramfs to uImage.initramfs [octet]

     Received 4762976 bytes in 5.5 seconds [6945835 bit/s]

     tftp> quit

It worked properly.

Next I ran qemu VM

     sudo qemu-system-arm -M versatilepb -m 128M -nographic \

      -kernel uImage.initramfs \

      -append "console=ttyAMA0 ip=10.0.2.15:10.0.2.2:10.0.2.2" \

      -net nic,vlan=0,model=smc91c111 -net user,vlan=0 -net tap,ifname=tap0,script=no

and after logged in like root I checked Busybox tftp file transfer

     # ls -l

     total 0

     # tftp -g -r uImage.initramfs 192.168.0.101

     # ls -l

     total 4652

     -rw-r--r-- 1 root root 4762976 Jan 1 00:01 uImage.initramfs

     #

and this time it worked properly too.

Next I wanted to start U-boot on qemu VM, tfrasfer uImage.initramfs file by U-boot tftp and run the kernel.

I built uboot.bin and ran qemu VM once more

    sudo qemu-system-arm -M versatilepb -m 128M -nographic \

      -kernel uboot.bin \

      -append "console=ttyAMA0 ip=10.0.2.15:10.0.2.2:10.0.2.2" \

      -net nic,vlan=0,model=smc91c111 -net user,vlan=0 -net tap,ifname=tap0,script=no

I stopped U-boot and set some network parameters

     VersatilePB # printenv

     baudrate=38400

     bootargs=console=ttyAMA0 mem=128M root=/dev/ram rw initrd=0x800000,8M

     bootdelay=3

     bootfile=uImage .initramfs

     ethact=SMC91111-0

     gatewayip=192.168.0.2

     ipaddr=192.168.0.101

     netmask=255.255.255.0

     serverip=192.168.0.1

     stderr=serial

     stdin=serial

     stdout=serial

     verify=n

then I launched command

     VersatilePB # tftpboot 0x8000 uImage.initramfs

     SMC91111: MAC 52:54:00:12:34:56

     Using SMC91111-0 device

     TFTP from server 192.168.0.1; our IP address is 192.168.0.101

     Filename 'uImage.initramfs'.

     Load address: 0x8000

     Loading: T T T T T T T T T T

     Retry count exceeded; starting again

     SMC91111: MAC 52:54:00:12:34:56

     Using SMC91111-0 device

     TFTP from server 192.168.0.1; our IP address is 192.168.0.101

     Filename 'uImage.initramfs'.

     Load address: 0x8000

     Loading: T T T T T T

     Abort

File transfer seems to be not working at all.

Did I set Qemu network parameters properly?

 

Jurek



reply via email to

[Prev in Thread] Current Thread [Next in Thread]