2112550_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2112550_en-US

2112550_en-US

Set Custom Hostname in LLDP SDK

I want to change the hostname of the LLDP SDK for NXP LX2160ARBD Board. I tried using "hostname" and "hostname_pn-base-files" in local.conf, but after building it shows the default hostname. I even tried creating a base-files recipe with a bbappend to modify hostname and hosts file in my custom layer, even that didn't work.. What else can be done?


Re: Set Custom Hostname in LLDP SDK

I have resolved this by using the parameter HOST_NAME = "CUSTOM_HOSTNAME" in the respective distro's bb file, in my case it is ls-image-main. 

I created a ls-image-main.bbappend in my custom layer and added this line in that file and after building the distro recipe, host name change was reflected in the image.

Re: Set Custom Hostname in LLDP SDK

If you want to add custom machine in the yocto, you could refer to

https://docs.nxp.com/bundle/UG10081_LLDP_L6.1.55_2.2.0/page/topics/how_to_add_a_custom_machine_in_fl...

Thanks

Tags (1)
No ratings
Version history
Last update:
Saturday
Updated by: