skripach 0 Posted May 11, 2021 · Report post К LAN9514-JZX eeprom с MACом не подключена. Откуда малина берет макадрес? Quote Ответить с цитированием Share this post Link to post Share on other sites
megajohn 0 Posted May 12, 2021 · Report post If a properly configured EEPROM is not detected, it is the responsibility of the Host LAN Driver to set the IEEE addresses. Quote Ответить с цитированием Share this post Link to post Share on other sites
VladimirG 0 Posted May 12, 2021 · Report post в bootenv может быть прописан. ethaddr=02:81:d2:72:67:e1 Quote Ответить с цитированием Share this post Link to post Share on other sites
skripach 0 Posted May 12, 2021 · Report post 4 hours ago, megajohn said: If a properly configured EEPROM is not detected, it is the responsibility of the Host LAN Driver to set the IEEE addresses. Так и где Host LAN Driver берёт MAC адреса? Quote Ответить с цитированием Share this post Link to post Share on other sites
aaarrr 0 Posted May 12, 2021 · Report post Вариантов много - это может быть случайный адрес, он может извлекаться из efuse на разных этапах и т.п. Начните с dmesg | grep lan95 (название драйвера не помню, можно grep -i mac) Quote Ответить с цитированием Share this post Link to post Share on other sites
skripach 0 Posted May 12, 2021 · Report post 3 hours ago, aaarrr said: Вариантов много - это может быть случайный адрес, он может извлекаться из efuse на разных этапах и т.п. Начните с dmesg | grep lan95 (название драйвера не помню, можно grep -i mac) Сорри, я ниразу не малиновый программист, dmesg | grep мне ниочём не говорит. Просто хочу понять(спросить неукого). У одной и той же малины один и тот же MAC при подключении в разные сети. При том у разных малин с идентичными "прошивками" разные MACи. Вопрос будет ли МАС всегда один и тот же или может меняться при опдейте или ещё каких-то ситуациях? Quote Ответить с цитированием Share this post Link to post Share on other sites
aaarrr 0 Posted May 12, 2021 · Report post Если адрес при перезагрузке остаётся один и тот же, то вряд ли изменится и при апдейте. Можете загуглить "oui lookup" и пробить первые три байта адреса - это код производителя. Возможно, наведет на мысли об источнике. Quote Ответить с цитированием Share this post Link to post Share on other sites
skripach 0 Posted May 12, 2021 · Report post Спасибо! Нверно останется тайной откуда он берется MAC Address/OUI Vendor {Company} B827EB81666E Raspberry Pi Foundation Quote Ответить с цитированием Share this post Link to post Share on other sites
HardEgor 0 Posted May 13, 2021 · Report post 9 часов назад, skripach сказал: Спасибо! Нверно останется тайной откуда он берется Зная mac можно просто поискать его или часть в текстах установленного линукса. Quote Ответить с цитированием Share this post Link to post Share on other sites
Jury093 0 Posted May 13, 2021 · Report post 16 часов назад, skripach сказал: Спасибо! Нверно останется тайной откуда он берется что-то типа: "Currently the MAC address generated on the Pi simply concatenates the OUI with the last 24 bits of the randomly-generated serial number embedded in the SoC OTP. This is passed through the command line to Linux which has a driver-specific hack to set the MAC address on the attached LAN9512 (there are problems with this approach, but it suffices for now)." https://www.raspberrypi.org/forums/viewtopic.php?t=264095 и там по треду есть упоминания о OTP для custom MAC https://www.raspberrypi.org/forums/viewtopic.php?t=231700 серийник процессора (у меня rPi3) можно посмотреть командой cat /proc/cpuinfo у меня в системе совпадает Quote Ответить с цитированием Share this post Link to post Share on other sites
aaarrr 0 Posted May 13, 2021 · Report post Кошмар, крохоборство. А продали уже заметно поболее 16,7 млн. Quote Ответить с цитированием Share this post Link to post Share on other sites
skripach 0 Posted May 13, 2021 · Report post 3 hours ago, Jury093 said: Currently the MAC address generated on the Pi Спасибо! Что-то такое я и предпологал. Quote Ответить с цитированием Share this post Link to post Share on other sites