1/4/2024 0 Comments Linux get default mac address![]() ![]() ![]() In case you wipe the U-Boot environment, for any reason, make sure to rewrite the MAC address to it. ![]() You should use a real MAC address of your own. The 01:23:45:67:89:ab & 01:23:45:67:89:ac MAC addresses are actually illegal addresses, used here just for illustration.Or, you can do it from Linux, with u-boot-fw-utils (the set MAC address will be used starting from the following boot): To set the MAC addresses for the kernel, add the first MAC to the kernel command line in a form of fec.macaddr=0x01,0x23,0x45,0圆7,0x89,0xab (the second Ethernet port will get the consecutive address).įor example, boot from the SOM's internal storage and:Įither set the U-Boot environment variables from the U-Boot command line (boot the board, and hit any key to stop autoboot to get to it): variable to your desired address, 01:23:45:67:89:ab (there is only one active Ethernet port during U-Boot runtime). To set the MAC address for U-Boot itself, set the ethaddr env. In case you want to ignore the default MAC addresses, and use your own (e.g. U-Boot and the kernel automatically reads them from the OCOTP. By default, Variscite provides its SOMs with unique MAC addresses (starting with its F8:DC:7A OUI) already written to the SOC's appropriate On-Chip One Time Programmable eFuses (OCOTP). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |