|
|
#Use of MZ_APO for CTU CAN FD testing
|
|
|
|
|
|
The [PiKRON](http://pikron.com/) [MZ_APO](https://cw.fel.cvut.cz/wiki/courses/b35apo/start) baseboard [documentation](https://cw.fel.cvut.cz/wiki/courses/b35apo/start).
|
|
|
|
|
|
Mechanical design [FreeCAD files etc.]().
|
|
|
|
|
|
Linux kernel and U-boot modified for MZ_APO board repository [https://github.com/ppisa/zynq-rt-utils-and-builds](https://github.com/ppisa/zynq-rt-utils-and-builds)
|
|
|
|
|
|
Reset and monitor console of target MZ_APO board connected to control computers.
|
|
|
|
|
|
```
|
|
|
ssh -e none login@147.32.86.stosedumnact
|
|
|
|
|
|
ttysendbreak /dev/ttyUSB0 5000 ; cu -s 115200 -l /dev/ttyUSB0
|
|
|
|
|
|
cu -s 115200 -l /dev/ttyUSB0
|
|
|
```
|
|
|
U-boot environment
|
|
|
|
|
|
```
|
|
|
baudrate=115200
|
|
|
bitstream_image=system.bit.bin
|
|
|
bitstream_size=0x3DBAFC
|
|
|
bootcmd=run $modeboot
|
|
|
bootdelay=3
|
|
|
devicetree_image=devicetree.dtb
|
|
|
devicetree_size=0x20000
|
|
|
ethact=Gem.e000b000
|
|
|
ethaddr=00:0a:35:00:01:22
|
|
|
fdt_high=0x20000000
|
|
|
initrd_high=0x20000000
|
|
|
ipaddr=192.168.1.10
|
|
|
jtagboot=echo TFTPing Linux to RAM... && tftp 0x3000000 ${kernel_image} && tftp 0x2A00000 ${devicetree_image} && tftp 0x2000000 ${ramdisk_image} && bootm 0x3000000 0x2000000 0x2A00000
|
|
|
kernel_image=uImage
|
|
|
kernel_size=0x500000
|
|
|
loadbit_addr=0x100000
|
|
|
mmc_loadbit_fat=echo Loading bitstream from SD/MMC/eMMC to RAM.. && mmcinfo && fatload mmc 0 ${loadbit_addr} ${bitstream_image} && fpga load 0 ${loadbit_addr} ${filesize}
|
|
|
modeboot=qspiboot
|
|
|
nandboot=echo Copying Linux from NAND flash to RAM... && nand read 0x3000000 0x100000 ${kernel_size} && nand read 0x2A00000 0x600000 ${devicetree_size} && echo Copying ramdisk... && nand read 0x2000000 0x620000 ${ramdisk_size} && bootm 0x3000000 0x2000000 0x2A00000
|
|
|
norboot=echo Copying Linux from NOR flash to RAM... && cp 0xE2100000 0x3000000 ${kernel_size} && cp 0xE2600000 0x2A00000 ${devicetree_size} && echo Copying ramdisk... && cp 0xE2620000 0x2000000 ${ramdisk_size} && bootm 0x3000000 0x2000000 0x2A00000
|
|
|
qspiboot=echo Copying Linux from QSPI flash to RAM... && sf probe 0 0 0 && sf read ${loadbit_addr} 0xC00000 ${bitstream_size} && mw 0xF8007080 0x30800100 0x4 && fpga load 0 ${loadbit_addr} ${bitstream_size} && sf read 0x3000000 0x100000 ${kernel_size} && sf read 0x2A00000 0x600000 ${devicetree_size} && echo Copying ramdisk... && sf read 0x2000000 0x620000 ${ramdisk_size} && bootm 0x3000000 0x2000000 0x2A00000
|
|
|
ramdisk_image=uramdisk.image.gz
|
|
|
ramdisk_size=0x5E0000
|
|
|
sdboot=echo Copying Linux from SD to RAM... && mmcinfo && run mmc_loadbit_fat && fatload mmc 0 0x3000000 ${kernel_image} && fatload mmc 0 0x2A00000 ${devicetree_image} && fatload mmc 0 0x2000000 ${ramdisk_image} && bootm 0x3000000 0x2000000 0x2A00000
|
|
|
serverip=192.168.1.100
|
|
|
stderr=serial
|
|
|
stdin=serial
|
|
|
stdout=serial
|
|
|
``` |