This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to enable network on FVP

Former Member
Former Member

Hi,
I want to use network on FVP, I added "--network=nat" when starting the FVP
but there was not an ip addr when I booted into the kernel, ifconfig shows as below:

FVP host is ubuntu-16.04 inside VirtualBox

I am not familiar with network. is there anyone can help me ? thanks a lot!

Parents
  • Hello,

    I have just done the test with the latest Foundation model (1)  and latest images from Linaro (2) and I do get the expected output from ifconfig (3).

    (1): the model is from https://developer.arm.com/products/system-design/fixed-virtual-platforms and started with this command line:

    Foundation_Platform --cores=1  --no-secure-memory --visualization --use-real-time  --gicv3 --data=bl1.bin@0x0 --data=fip.bin@0x8000000 --data=Image@0x80080000 --data=foundation-v8-gicv3.dtb@0x82000000 --data=ramdisk.img@0x84000000  --block-device=/media/simini01/Data2/linaro/17.10/lt-vexpress64-openembedded_lamp-armv8-gcc-4.9_20150912-729.img --network=nat

    (2): https://community.arm.com/dev-platforms/b/documents/posts/using-linaros-deliverables-on-an-fvp and I have done the test with the pre-built image "latest-armlt + OpenEmbedded LAMP 15.09"

    (3): This is the output I am getting:

    ...
    Configuring network interfaces... [   75.230401] smc91x 1a000000.ethernet eth0: link up, 10Mbps, half-duplex, lpa 0x0000
    udhcpc (v1.23.2) started
    Sending discover...
    Sending select for 172.20.51.1...
    Lease of 172.20.51.1 obtained, lease time 86400
    /etc/udhcpc.d/50default: Adding DNS 172.20.51.254
    /etc/udhcpc.d/50default: Adding DNS 172.20.51.25
    ...
    root@genericarmv8:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:02:F7:EF:DE:7A  
              inet addr:172.20.51.1  Bcast:172.20.51.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2 errors:0 dropped:0 overruns:0 frame:0
              TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:654 (654.0 B)  TX bytes:4505 (4.3 KiB)
              Interrupt:11 Base address:0xb000 DMA chan:ff

    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:10 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)

    Could you confirm which version of the Foundation model, what command line and which SW stack you are using?

    From a quick look, the version displayed for udhcp is more recent than mine, so it could be a SW issue.

    Also note that to be able to communicate with the outside world using the "nat" network, you will also need to map ports from the host to the target with this option:

      --network-nat-ports=M  optional comma separated list of NAT port mappings
                             in the form: host_port=model_port e.g. 8022=22

    Regards,

    Simon

Reply
  • Hello,

    I have just done the test with the latest Foundation model (1)  and latest images from Linaro (2) and I do get the expected output from ifconfig (3).

    (1): the model is from https://developer.arm.com/products/system-design/fixed-virtual-platforms and started with this command line:

    Foundation_Platform --cores=1  --no-secure-memory --visualization --use-real-time  --gicv3 --data=bl1.bin@0x0 --data=fip.bin@0x8000000 --data=Image@0x80080000 --data=foundation-v8-gicv3.dtb@0x82000000 --data=ramdisk.img@0x84000000  --block-device=/media/simini01/Data2/linaro/17.10/lt-vexpress64-openembedded_lamp-armv8-gcc-4.9_20150912-729.img --network=nat

    (2): https://community.arm.com/dev-platforms/b/documents/posts/using-linaros-deliverables-on-an-fvp and I have done the test with the pre-built image "latest-armlt + OpenEmbedded LAMP 15.09"

    (3): This is the output I am getting:

    ...
    Configuring network interfaces... [   75.230401] smc91x 1a000000.ethernet eth0: link up, 10Mbps, half-duplex, lpa 0x0000
    udhcpc (v1.23.2) started
    Sending discover...
    Sending select for 172.20.51.1...
    Lease of 172.20.51.1 obtained, lease time 86400
    /etc/udhcpc.d/50default: Adding DNS 172.20.51.254
    /etc/udhcpc.d/50default: Adding DNS 172.20.51.25
    ...
    root@genericarmv8:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:02:F7:EF:DE:7A  
              inet addr:172.20.51.1  Bcast:172.20.51.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:2 errors:0 dropped:0 overruns:0 frame:0
              TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:654 (654.0 B)  TX bytes:4505 (4.3 KiB)
              Interrupt:11 Base address:0xb000 DMA chan:ff

    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:10 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:700 (700.0 B)  TX bytes:700 (700.0 B)

    Could you confirm which version of the Foundation model, what command line and which SW stack you are using?

    From a quick look, the version displayed for udhcp is more recent than mine, so it could be a SW issue.

    Also note that to be able to communicate with the outside world using the "nat" network, you will also need to map ports from the host to the target with this option:

      --network-nat-ports=M  optional comma separated list of NAT port mappings
                             in the form: host_port=model_port e.g. 8022=22

    Regards,

    Simon

Children