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
  • Former Member
    0 Former Member in reply to Simon Inizan

    Hi Simon,

    my FVP version is Linux64_GCC-4.7, "ARM V8 Foundation Platformr0p0 (platform build 10.3.26)".

    command line :

    run-only:
    @cd $(FOUNDATION_PATH); \
    $(FOUNDATION_PATH)/models/Linux64_GCC-4.9/Foundation_Platform \
    --arm-v8.0 \
    --cores=4 \
    --secure-memory \
    --visualization \
    --gicv3 \
    --data="$(ARM_TF_BIN_PATH)/bl1.bin"@0x0 \
    --data="$(ARM_TF_BIN_PATH)/fip.bin"@0x8000000 \
    --block-device=$(BOOT_IMG) \
    --network=nat \
    --network-nat-subnet=10.0.2.0/2300 \
    --network-nat-ports=8022=22

    As I am not familiar with linux and net development, I just use a All in one script for building and running the 

    software stack based on optee, linux, fvp, uefi, etc.

    OP-TEE/build

    As you can see, the default FVP version required by the script is "Linux64_GCC-4.9". I work around this by just adding a

    directory named "Linux64_GCC-4.9" and copying the actual executable file under directory  "Linux64_GCC-4.7"

    Also, my FVP host is standard ubuntu 16.04 with a IP 10.0.2.15,

    I have tried several combinations of the following parameters, and nothing changed.

    --network=nat \
    --network-nat-subnet=10.0.2.0/2300 \  
    --network-nat-ports=8022=22

    according to your analysis, maybe I should try another FVP

    I am very appreciative if you can give some more advice based on the info above.

    thanks

    ***. 

Reply
  • Former Member
    0 Former Member in reply to Simon Inizan

    Hi Simon,

    my FVP version is Linux64_GCC-4.7, "ARM V8 Foundation Platformr0p0 (platform build 10.3.26)".

    command line :

    run-only:
    @cd $(FOUNDATION_PATH); \
    $(FOUNDATION_PATH)/models/Linux64_GCC-4.9/Foundation_Platform \
    --arm-v8.0 \
    --cores=4 \
    --secure-memory \
    --visualization \
    --gicv3 \
    --data="$(ARM_TF_BIN_PATH)/bl1.bin"@0x0 \
    --data="$(ARM_TF_BIN_PATH)/fip.bin"@0x8000000 \
    --block-device=$(BOOT_IMG) \
    --network=nat \
    --network-nat-subnet=10.0.2.0/2300 \
    --network-nat-ports=8022=22

    As I am not familiar with linux and net development, I just use a All in one script for building and running the 

    software stack based on optee, linux, fvp, uefi, etc.

    OP-TEE/build

    As you can see, the default FVP version required by the script is "Linux64_GCC-4.9". I work around this by just adding a

    directory named "Linux64_GCC-4.9" and copying the actual executable file under directory  "Linux64_GCC-4.7"

    Also, my FVP host is standard ubuntu 16.04 with a IP 10.0.2.15,

    I have tried several combinations of the following parameters, and nothing changed.

    --network=nat \
    --network-nat-subnet=10.0.2.0/2300 \  
    --network-nat-ports=8022=22

    according to your analysis, maybe I should try another FVP

    I am very appreciative if you can give some more advice based on the info above.

    thanks

    ***. 

Children