08-20-2017, 03:27 AM
(This post was last modified: 08-20-2017, 05:30 AM by MarkHaysHarris777.)
(08-20-2017, 03:06 AM)dlu Wrote: Can someone explain the solution please?
- If the mac address resides in the "SPI flash", then 00:...:00 and FF:...:FF are both invalid addresses. Which software part corrected the zeroes, and why didn't it correct the FFs?
- Where does the new value for the stable mac address come from? Is it the same code path as seen in rontants loglines (random_ether_addr in rk_get_eth_addr)? Or somewhere else?
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
0000000 5644 524b 0002 0000 0001 0001 0040 fbb8
0000010 0003 0000 0006 0000 0000 0000 0000 0000
0000020 0000 0000 0000 0000 0000 0000 0000 0000
*
0000400 493e babb 3156 0000 0000 0000 0000 0000
0000410 0000 0000 0000 0000 0000 0000 0000 0000
*
000fff0 0000 0000 0000 0000 0000 0000 0002 0000
0010000 0000 0000 0000 0000 0000 0000 0000 0000
*
0040000
Note: spoke with ayufan; /dev/mtd3 is a partition; SPI flash is a lot of data and partitions. See /proc/mtd
marcushh777
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )