Enable DHCP on U-Boot from Yocto

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Enable DHCP on U-Boot from Yocto

2,285 次查看
felipe-gm
Contributor II

Hi,

I am using yocto to generate my custom Linux image to load them through U-boot. I have to reload the images very often, and that is why I have opted to use TFTP boot for this. The issue I am having is that my network is blocking the static IP attribution necessary for U-boot (my U-boot version does not have DHCP enabled).

So, how can I create a new U-boot image through Yocto enabling DHCP so I can update the one I use on the board? 

I am using SDK 1.9.

Thanks in advance, 

标签 (1)
0 项奖励
1 回复

2,266 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please get u-boot source code with the following command.

$ bitbake u-boot -c patch -f

Go to u-boot source code folder build_<board>/tmp/work/<board>-fsl-linux/u-boot-qoriq/<version>+fslgit-r0/git/, please eidt configs/<board>_defconfig file add the following configuration.

CONFIG_CMD_DHCP=y

Go back to folder build_<board>, rebuild u-boot with the following command.

$ bitbake u-boot

 

0 项奖励