Mac address changes every reboot
Hello all,
I installed the ubuntu firefly image and upgraded all of the packages. I noticed that the mac address for the wired port (eth0) changes with every reboot. I don't know why.
Also, lscpi returns nothing, which is strange. Is there a reason for that?
Thanks!
Comments
Hello, can you discribe step for step how to install Ubuntu please. Do you use a serial console after inserting flashed sdcard, and how? I am no developer, i bought this board as mini-pc.
ces I can describe how I flash not sure if you have same tools, get the image from libre
http://share.loverpi.com/board/libre-computer-project/libre-computer-board-roc-rk3328-cc/image/ubuntu/, I use a windows PC with micro SD card reader, I use Etcher
to flash the img to card, sometimes on start is blank screen and need to restart 1 or2 times but usaly goes 1st time, a lot of the tools from firefly are not in English so hard for me to use
Thank you jeepthing. I had always this http://en.t-firefly.com/doc/product/info/471.html in mind. So only flashing sdcard is needed. Yousing etcher too. Changed now sdcard whitout results. Do i need a emmc card plugged in when using sdcard?
Edit: Is it essential to have a emmc to use the board?
Start the System: Insert the SD card into the ROC-RK3328-CC board and power on. The first thing you need to start in the serial console is to press Enter key to enter the configuration mode, run the following commands to make gpt partition table for SD card, the system will restart again and automatically load the rootfs file system.
gpt write mmc 1 $partitions
boot
you don't need a eMMC card to use SD card, I just flashed the img onto SD card with Etcher on windows
pc took card put it back in ROC board powered it up didn't have to do any commands
Hi Jeepthing,
I found that I could modify /etc/network/interfaces.d/eth0 to something like:
auto eth0
iface eth0 inet dhcp
hwaddress ether <>
What I don't really understand is why there isn't a fixed mac address for the ethernet. I assumed that there exists a mac address burned into the ethernet chip somewhere that the kernel should read. Is this not the case?
Thanks!
@bholland We did not flash the MAC address into the e-fuse for the first batch that came out of the factory. We will provide an script later to flash a proper MAC address. We may integrate it into the image so that it will flash a MAC for unflashed boards.
Oh cool! I didn't realize you could do that. The fix would then be to set the hwaddress in the eth0 config file. I have just never seen a situation where network adaptors didn't have a fixed mac. That technically is supposed to be a worldwide GUID but it doesn't seem to matter much. I can just set it up in software. Thanks for the reply! I had never heard of an e-fuse before. Fascinating!
Is it possible for me, as a user, to flash data onto the e-fuse or is that only something that the board manufacturer can do?
@bholland You can flash the efuse but it is OTP (one time program) so you cannot change it. Basically if you purchased your own IEEE MAC address block, you can program the MAC so that when the MAC is looked up, it will resolve to your company name.
Ah! So the far easier fix is software and that explains why I have never had to do it. I never knew how that worked.
@bholland You can override always override MAC addresses by setting them in u-boot or Linux. Programming the OTP e-fuses is for ensuring that the default MAC address is pre-configured and unique (usually done by manufacturer). The first batch of boards did not have the e-fuse programmed.