Debian: MAC address keeps changing on every reboot - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88) +--- Thread: Debian: MAC address keeps changing on every reboot (/showthread.php?tid=4972) Pages:
1
2
|
RE: Debian: MAC address keeps changing on every reboot - MarkHaysHarris777 - 08-20-2017 (08-20-2017, 03:06 AM)dlu Wrote: Can someone explain the solution please? I've been playing with this most of the night. If you write to the SPI with anything ( I placed my name in the SPI at offset 4000 ) and boot, then something takes over on the next boot and starts to keep track of the mac addy ; but, with a twist; when there is all mostly 0xFF there, um, it gets very confused; I finally went back and wrote 0x00's to the SPI and rebooted; will update later ... it takes at least two boots and not sure in my case what will happen. I'm not really happy about the way that the image is using the SPI flash !! This is NOT what the SPI flash was intended for, and it prevents me from experimenting with the SPI flash booting. So ayufan and I need to have a talk about this. At this time, the mac addy appears to be written to the SPI flash at offset 400 with some other junk at the heading; example Code: rock64@Rock64-A:~/work/spi_flash$ hexdump spi_flash.003 Note: spoke with ayufan; /dev/mtd3 is a partition; SPI flash is a lot of data and partitions. See /proc/mtd RE: Debian: MAC address keeps changing on every reboot - MarkHaysHarris777 - 08-20-2017 Update: I have rebooted several times today testing various things; each time I go back in and check the /dev/mtd3 (vendor) partition which continues to be persistent ( see above post ) and the mac addy is also quite persistent now; RE: Debian: MAC address keeps changing on every reboot - ayufan - 08-22-2017 The 0.5.x generates mac address from serial in u-boot, and passes it to linux, so current vendoring on SPI will be removed sometime in the future. This method will be used for eth0 and eth1 as well. RE: Debian: MAC address keeps changing on every reboot - rhille - 08-27-2017 I do have the same issue with the stock debian image but there is no mtd3 device found linaro@therock:~$ cd /dev linaro@therock:/dev$ pwd /dev linaro@therock:/dev$ ls -l m* crw-rw-rw- 1 root video 10, 56 Aug 27 12:31 mali crw-r----- 1 root kmem 1, 1 Aug 27 12:31 mem crw------- 1 root root 10, 57 Aug 27 12:31 memory_bandwidth brw-rw---- 1 root disk 179, 0 Aug 27 12:31 mmcblk0 brw-rw---- 1 root disk 179, 1 Aug 27 12:31 mmcblk0p1 brw-rw---- 1 root disk 179, 2 Aug 27 12:31 mmcblk0p2 brw-rw---- 1 root disk 179, 3 Aug 27 12:31 mmcblk0p3 brw-rw---- 1 root disk 179, 4 Aug 27 12:31 mmcblk0p4 brw-rw---- 1 root disk 179, 5 Aug 27 12:31 mmcblk0p5 brw-rw---- 1 root disk 179, 6 Aug 27 12:31 mmcblk0p6 brw-rw---- 1 root disk 179, 7 Aug 27 12:31 mmcblk0p7 mapper: total 0 crw------- 1 root root 10, 236 Aug 27 12:31 control Could it be that it has been already removed as mentioned by ayufan? If so, it doesn't seem that new solution works as every boot creates a new mac. Thank you Reinhard RE: Debian: MAC address keeps changing on every reboot - joseccz - 11-22-2017 (08-19-2017, 07:45 PM)ayufan Wrote: Clear SPI flash. Run `dd if=/dev/zero of=/dev/mtd3` and restart. From now on address should be persisted. I also tried this command but I am getting: linaro@linaro-alip:~$ sudo dd if=/dev/zero of=/dev/mtd3 dd: writing to '/dev/mtd3': No space left on device 4018881+0 records in 4018880+0 records out 2057666560 bytes (2.1 GB, 1.9 GiB) copied, 14.8609 s, 138 MB/s I did reboot my Rock64 and the mac address is changing on booting. Id there any other solution? I am using: http://files.pine64.org/os/ROCK64/debian/debian-lxde-20170809-rock64.img.xz thx |