[U-Boot] [PPC] Internet connection on qemu-ppce500

vnktux vnktux at protonmail.com
Mon Oct 8 13:22:57 UTC 2018


Hello guys,

I am running an image of U-boot 2018.09 in qemu 3.0, the goal would be to load an OS-9 rom file from tftp.
The problem is that I can't manage to have an Internet connection in U-boot. No matter how I run the image I always have Net: "No Ethernet found".

I run qemu 3.0 with the following command:

> qemu-system-ppc -cpu e500v2 -M ppce500 -nographic -kernel ~/u-boot -net nic -net tap,ifname=tap0,script=no

I tried to use different -net options in qemu but the problem is always the same.

And from the u-boot source code I have edited the board file qemu-ppce500.c in order to have a few ENV variables (since I can't save any env variables from the running U-boot in qemu).

> ethact=eTSEC1
> ethprime=eTSEC1
> ethaddr=192.168.10.40
> netmask=255.255.254.0
> serverip=192.168.10.2
> gatewayip=192.168.10.254

The image is compiled using of course: qemu-ppce500_defconfig.

What am I doing wrong? Is it even possible to initialize the Ethernet port?

Thanks in advance,
Vincenzo

Sent with [ProtonMail](https://protonmail.com) Secure Email.


More information about the U-Boot mailing list