Enable DHCP on U-Boot from Yocto

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Enable DHCP on U-Boot from Yocto

2,690件の閲覧回数
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,671件の閲覧回数
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 件の賞賛
返信