This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
resources:eval:user-guides:pzsdr:testing:sd-cards [06 Jan 2016 21:53] Tim Harder update initramfs location that is written to flash |
resources:eval:user-guides:pzsdr:testing:sd-cards [29 Jan 2021 21:18] Robin Getz update title |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Creating PicoZed SDR production testing SD cards ====== | + | ====== Creating ADRV9361 RF SOM production testing SD cards ====== |
- | ===== SOM ===== | + | ===== SOM2 ===== |
The code for all the various pieces required to create testing SD cards can be found on Github. See the following list for links to the various parts: | The code for all the various pieces required to create testing SD cards can be found on Github. See the following list for links to the various parts: | ||
Line 147: | Line 147: | ||
TODO | TODO | ||
+ | ===== SOM1 ===== | ||
+ | TODO | ||
+ | |||
+ | ==== FPGA bitstream ==== | ||
+ | TODO | ||
+ | |||
+ | ==== Creating the main U-Boot test binary ==== | ||
+ | TODO | ||
+ | |||
+ | ==== Creating the QSPI U-Boot binary ==== | ||
+ | TODO | ||
+ | |||
+ | ==== Creating the no-OS test ELFs ==== | ||
+ | TODO | ||
+ | |||
+ | TODO: ad9361 | ||
+ | |||
+ | ==== Linux and the device tree ==== | ||
+ | TODO | ||
===== FMC Carrier ===== | ===== FMC Carrier ===== | ||
The code for all the various pieces required to create testing SD cards can be found on Github. See the following list for links to the various parts: | The code for all the various pieces required to create testing SD cards can be found on Github. See the following list for links to the various parts: | ||
Line 271: | Line 290: | ||
Now the SD card could be ready to automatically launch the test script in a terminal window on startup. | Now the SD card could be ready to automatically launch the test script in a terminal window on startup. | ||
+ | |||
+ | ===== Breakout Board ===== | ||
+ | ==== ADI image changes ==== | ||
+ | - Run ''mount /dev/mmcblk0p1 /media/boot/'' | ||
+ | - Run ''dtc -I dtb -O dts -o /media/boot/devicetree.dts /media/boot/devicetree.dtb'' to obtain the source file in text format (.dts) from binary blob (.dtb) | ||
+ | - Remove all gpio_keys mappings from the device tree (''vim /media/boot/devicetree.dts'')<code> | ||
+ | gpio_keys { | ||
+ | compatible = "gpio-keys"; | ||
+ | #address-cells = <0x1>; | ||
+ | #size-cells = <0x0>; | ||
+ | autorepeat; | ||
+ | |||
+ | pb0 { | ||
+ | label = "Left"; | ||
+ | linux,code = <0x69>; | ||
+ | gpios = <0x6 0x36 0x0>; | ||
+ | }; | ||
+ | |||
+ | pb1 { | ||
+ | label = "Right"; | ||
+ | linux,code = <0x6a>; | ||
+ | gpios = <0x6 0x37 0x0>; | ||
+ | }; | ||
+ | |||
+ | pb2 { | ||
+ | label = "Up"; | ||
+ | linux,code = <0x67>; | ||
+ | gpios = <0x6 0x38 0x0>; | ||
+ | }; | ||
+ | |||
+ | pb3 { | ||
+ | label = "Down"; | ||
+ | linux,code = <0x6c>; | ||
+ | gpios = <0x6 0x39 0x0>; | ||
+ | }; | ||
+ | |||
+ | sw0 { | ||
+ | label = "SW0"; | ||
+ | linux,input-type = <0x5>; | ||
+ | linux,code = <0x0>; | ||
+ | gpios = <0x6 0x3e 0x0>; | ||
+ | }; | ||
+ | |||
+ | sw1 { | ||
+ | label = "SW1"; | ||
+ | linux,input-type = <0x5>; | ||
+ | linux,code = <0x1>; | ||
+ | gpios = <0x6 0x3f 0x0>; | ||
+ | }; | ||
+ | |||
+ | sw2 { | ||
+ | label = "SW2"; | ||
+ | linux,input-type = <0x5>; | ||
+ | linux,code = <0x2>; | ||
+ | gpios = <0x6 0x40 0x0>; | ||
+ | }; | ||
+ | |||
+ | sw3 { | ||
+ | label = "SW3"; | ||
+ | linux,input-type = <0x5>; | ||
+ | linux,code = <0x3>; | ||
+ | gpios = <0x6 0x41 0x0>; | ||
+ | }; | ||
+ | }; | ||
+ | </code> | ||
+ | - Run ''dtc -I dts -O dtb -o /media/boot/devicetree.dtb /media/boot/devicetree.dts'' to convert back the source file (.dts) in binary blob (.dtb) | ||
+ | - Copy ''runtests.sh'' to ''/root'' | ||
+ | - Run ''chmod +x runtests.sh'' to make the script executable | ||
+ | - Add in ''/etc/rc.local'' a call to ''/root/runtests.sh'' | ||
+ | ==== Raspberry Pi image changes ==== | ||
+ | |||
+ | - Configure [[https://www.adafruit.com/product/2315|Adafruit PiTFT 2.2" HAT Mini Kit - 320x240 2.2" TFT - No Touch]] | ||
+ | - Add in ''/home/pi/'' the ''breakout_board_test.py'' and ''reboot_poweroff.py'' files. | ||
+ | - Add at the end of ''.bashrc'' file this line: | ||
+ | * ''python /home/pi/breakout_board_test.py & python /home/pi/reboot_poweroff.py &'' |