Changes

Jump to: navigation, search

BELK-TN-010: MAC address programming on OTP

478 bytes removed, 08:28, 30 July 2021
u-boot devel
!Notes
|-
|1.0.01|Sep 2020Jul 2021|[[BELK/BXELK software components#BELK 4.1.24|4.1.24]]|First public releaseBELK update 4.1.4
|}
The u-boot ''devel'' version can be used for the application purposes: in this application note we used the new u-boot release with the following files:
belk-4.1.2_borax_mmc_devel_boot4_borax_mmc_devel_boot.bin belk-4.1.2_borax_mmc_devel_u4_borax_mmc_devel_u-boot.img
The ''devel'' u-boot version provides a new command (hidden into standard relase) used for the MAC management:
<pre>
U-Boot SPL 2017.01-belk-4.1.2 4 (Jun 25 2020 Jul 30 2021 - 1710:4913:4719)qspi mmc bootTrying to boot from SPIMMC1reading fpga.bitreading fpga.bit design filename = "bora_wrapper;UserID=0XFFFFFFFF;Version=2017.1" part number = "7z020clg400" date = "2020/01/08" time = "15:46:46" bytes in bitstream = 4045564zynq_align_dma_buffer: Align buffer at 400006c to 3ffff80(swap 1)reading u-boot.imgreading u-boot.img
U-Boot 2017.01-belk-4.1.2 4 (Jun 25 2020 Jul 30 2021 - 1710:4913:47 19 +0200), Build: belk-4.1.2
Model: Bora
MMC: sdhci@e0100000: 0 (SD)
reading bora.env
 
** Unable to read "bora.env" from mmc0:1 **
Using default environment
 
SF: Detected s25fl128s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiB
In: serial@e0001000
Out: serial@e0001000
Model: Bora
Board: Xilinx Zynq
SF: Detected s25fl128s_64k s25fl256s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiBWARNING: ConfigID on block 0 is UNLOCKEDSF: Detected s25fl128s_64k s25fl256s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiBSOM ConfigID#: 0000000600000001SOM UniqueID#: 3a12db0801234567:32291263ds2431_readmem89abcdefds2431_readmem(): error in chip reset
ds2431_readmem(): error in reading buffer
ds2431_readmem(): error in chip reset
CB ConfigID#: ffffffff
CB UniqueID#: 00000000:00000000
SF: Detected s25fl128s_64k s25fl256s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiBWarning: ethaddr not found in SPI NOR at block 8
Net: ZYNQ GEM: e000b000, phyaddr 7, interface rgmii-id
 
Warning: ethernet@e000b000 (eth0) using random MAC address - 12:32:a0:c2:77:e8
eth0: ethernet@e000b000
Hit ENTER within 3 seconds to stop autoboot
Bora> macprog
macprog - MAC address in SPI NOR OTP management
 
Usage:
macprog <cmd>
ethaddr - program ethaddr environment variable in OTP
eth1addr - program eth1addr environment variable in OTP
lock_ethaddr - lock OTP block where ethaddr is stored
lock_eth1addr - lock OTP block where eth1addr is stored
 
Bora>
</pre>
<pre>
belk-4.1.2_bora_qspi_boot4_bora_qspi_boot.binbelk-4.1.2_bora_qspi_u4_bora_qspi_u-boot.img
</pre>
<pre>
U-Boot SPL 2017.01-belk-4.1.2 4 (Jun 25 2020 Jul 30 2021 - 1710:4324:0726)
qspi boot
Trying to boot from SPI
U-Boot 2017.01-belk-4.1.2 4 (Jun 25 2020 Jul 30 2021 - 1710:4324:07 26 +0200), Build: belk-4.1.2
Model: Bora
Card did not respond to voltage select!
SF: Detected s25fl128s_64k s25fl256s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiB
In: serial@e0001000
Out: serial@e0001000
Model: Bora
Board: Xilinx Zynq
SF: Detected s25fl128s_64k s25fl256s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiBWARNING: ConfigID on block 0 is UNLOCKEDSF: Detected s25fl128s_64k s25fl256s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiBSOM ConfigID#: 0000000600000001SOM UniqueID#: 3a12db0801234567:3229126389abcdef
ds2431_readmem(): error in chip reset
ds2431_readmem(): error in reading buffer
CB ConfigID#: ffffffff
CB UniqueID#: 00000000:00000000
SF: Detected s25fl128s_64k s25fl256s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiB
Net: ZYNQ GEM: e000b000, phyaddr 7, interface rgmii-id
eth0: ethernet@e000b000
Hit ENTER within 3 0 seconds to stop autobootBora> pri ethaddrethaddr=00:50:c2:1e:af:ec
Bora>
</pre>
The Bora [https://wiki.dave.eu/index.php/Building_U-Boot_(BELK/BXELK) Building_U-Boot] wiki page describes how to keep updated with DAVE's git repository and build the required u-boot version.
The binaries used in this AN can be found into our [https[mirror://mirror.dave.eu/bora/belk-4.1.24/ |mirror server]]
8,154
edits

Navigation menu