[Linux environment configuration] 6. Solve the problem that uboot cannot ping the Ubuntu virtual machine

development environment

The board used is the Alpha-Mini board of punctual atom, and the teaching material is the driver development guide v1.6 of punctual atom.

question

After starting uboot and learning network commands, the server host cannot be pinged.
insert image description here
Among them, serverip, ipaddr, ethaddr, gatewayip, netmaskhave all been set up and confirmed that the server ip and the board ip address are in the same network segment.

solution

By referring to the https://blog.csdn.net/west_cloth/article/details/118342654 article, it is found that it is a network configuration problem of the virtual machine.

insert image description here
Change the network connection from NAT mode to bridge, and then enter the virtual machine again to view the ip information after changing the network configuration.
insert image description here

Set the relevant network environment variables in uboot, and ping the host again to successfully communicate~

insert image description here

Guess you like

Origin blog.csdn.net/weixin_45636061/article/details/129010042