Hi,
Is it possible to configure a VLAN for the eth0 interface in u-boot?
Currently we are using SDK 7.0.
Kind regards,
Adam
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Is it possible to configure a VLAN for the eth0 interface in u-boot?
Currently we are using SDK 7.0.
Kind regards,
Adam
Hi Adam,
Can you try by setting the vlan environment variable to the value you want. Anything less than 4096 should enable VLAN.
Eg:
setenv vlan 4012
saveenv
Regards
Vineet
Hi Vineet,
I should have been more specific.
Can it be configured in the device tree?
Kind regards,
Adam
Hi Sekhar,
Thank you for the information.
Since setting VLAN in device tree is not supported will the setenv vlan command work in u-boot?
If yes will it work without any issues with the flashing of Linux via Ethernet?
Kind regards,
Adam
Hi Adam,
This U-Boot feature has not been tried. VLAN is only tested in Linux. Based on doc/README.VLAN in U-Boot sources, it should work without driver changes. I did check that the receive buffer size in driver is set to 1536 which should accommodate VLAN tags.
Did you try it out and face any issues?
Thanks,
Sekhar
Hi Sekhar,
We have not tested it yet.
We will do so and if we encounter any problems we will make a separate thread.
Thank you for the support.
Kind regards,
Adam