Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|2022/11/22
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|DESK-XZ7-L-1.0.0-rc1 release
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|2024/01/22
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|DESK-XZ7-L-1.0.1 release
|-
|}
===Instructions===
First of all, create a bootable microSD card as described [[DESK-XZ7-L/DeploymentDevelopment/Standalone_bootCreating_and_building_the_Petalinux_project#Program_boot_images_into_SD_cardPetalinux_build |here]].
Then, boot the board with the microSD card and stop the automatic boot process of U-Boot in order to access the console.
<pre class="workstation-terminal">
U-Boot 2021.01-desk-xz7-l-1.0.01 (Oct Jan 12 2021 2024 - 0910:2844:42 15 +0000)
CPU: Zynq 7z0207z030
Silicon: v3.1
Model: Bora
DRAM: ECC disabled 1 GiB
Flash: 0 Bytes
Out: serial@e0001000
Err: serial@e0001000
SF: Detected s25fl128s with page size 256 Bytes, erase size 64 KiB, total 16 MiB
SF: Detected s25fl128s with page size 256 Bytes, erase size 64 KiB, total 16 MiB
SOM ConfigID#: 00000004
SOM UniqueID#: 2a0e92c4:03193a4b
CB ConfigID#: ffffffff
CB UniqueID#: ffffffff:ffffffff
SF: Detected s25fl128s with page size 256 Bytes, erase size 64 KiB, total 16 MiB
Warning: MAC addr not found in SPI NOR at block 8
Net:
ZYNQ GEM: e000b000, mdio bus e000b000, phyaddr -17, interface rgmii-id Warning: ethernet@e000b000 (eth0) using random MAC address - 72:2c:e1:44:08:28
eth0: ethernet@e000b000
Hit any key ENTER within 2 seconds to stop autoboot: 0
Zynq>
</pre>
 
====Programming U-Boot from uSD====
* Initialize and format QSPINOR memory
 
<pre class="workstation-terminal">
Zynq> sf probe
SF: Detected s25fl128s with page size 256 Bytes, erase size 64 KiB, total 16 MiB
Zynq> sf erase 0 0x1000000
SF: 16777216 bytes @ 0x0 Erased: OK
</pre>
 
* Install <code>BOOT.BIN</code> on QSPINOR memory
 
<pre class="workstation-terminal">
Zynq> fatload mmc 0:1 $kernel_addr_r BOOT.BIN
7033004 bytes read in 406 ms (16.5 MiB/s)
Zynq> sf write $kernel_addr_r 0x0 $filesize
device 0 offset 0x0, size 0x6b50ac
SF: 7033004 bytes @ 0x0 Written: OK
</pre>
 
* Install <code>image.ub</code> on QSPINOR memory
 
<pre class="workstation-terminal">
Zynq> mw $kernel_addr_r 0x0 $filesize
Zynq> fatload mmc 0:1 $kernel_addr_r image.ub
4868556 bytes read in 287 ms (16.2 MiB/s)
Zynq> sf write $kernel_addr_r 0x700000 $filesize
device 0 offset 0x700000, size 0x4a49cc
SF: 4868556 bytes @ 0x700000 Written: OK
</pre>
 
* Install <code>boot.scr</code> on QSPINOR memory
 
<pre class="workstation-terminal">
Zynq> mw $kernel_addr_r 0x0 $filesize
Zynq> fatload mmc 0:1 $kernel_addr_r boot.scr
2709 bytes read in 14 ms (188.5 KiB/s)
Zynq> sf write $kernel_addr_r 0xFC0000 $filesize
device 0 offset 0xfc0000, size 0xa95
SF: 2709 bytes @ 0xfc0000 Written: OK
</pre>
dave_user
417
edits