Skip to content

Instantly share code, notes, and snippets.

@coralmw
Last active September 2, 2015 10:04
Show Gist options
  • Save coralmw/79612a551fa71a804c5e to your computer and use it in GitHub Desktop.
Save coralmw/79612a551fa71a804c5e to your computer and use it in GitHub Desktop.
Combining the red-pitaya-notes and the stock red pitaya FPGA bit file to create a suitable package to put on the red pitaya.
pretty much red-pitaya-notes (for the ubuntu os) + the FPGA from the stock os.
Trying using the uart. pavel - change the config in the scripts/bare_meal file to ps7_uart_1 [get_os] for both ...
Did not work. Printf was still not in the libary when rebuilt.
moving the IPC further downwards may help?
Need to find out how the mem is allocated.
https://github.com/pavel-demin/red-pitaya-notes/tree/master/projects/bare_metal_test
http://www.wiki.xilinx.com/ -> has info on the boot process as well.
Linux + BM:
http://www.xilinx.com/support/documentation/application_notes/xapp1078-amp-linux-bare-metal.pdf
http://www.wiki.xilinx.com/XAPP1078+Latest+Information -> the FSBL (http://www.wiki.xilinx.com/Build+FSBL)
SDK setup:
http://forum.redpitaya.com/viewtopic.php?f=14&t=364
RemoteProc:
https://www.kernel.org/doc/Documentation/remoteproc.txt
RP build:
http://forum.redpitaya.com/viewtopic.php?t=49
The uboot config patch is in RedPitaya/FPGA/release1/sw/uboot/uboot_patch.txt <- you don't need to manually use it to build the RP os
https://github.com/clade/RedPitaya/tree/master/python
or just use a proper distro:
http://pavel-demin.github.io/red-pitaya-notes/debian-ecosystem/
xpseudo_asm_gcc.h - from the XAPP1078 - has memory barrier instructions in the header for
boot.bin -> packed using bootgen, contains
  • FSBL
  • u-boot
  • uImage
  • uRamDisk.image.gz
  • devicetree.dtb

devicetree.dts made by libgen -> what creates it? u-boot.elf -> compiled from u-boot, stock FSBL -> loads the rest - what configures this? not the devicetree

bootgen controled by b.bif in the RP root. bootgen -image b.bif -o i build/boot.bin

kernel build process

Config: OS/linux/config/rp_defconfig PROBABLY Has the remoteproc and xlnx-remoteproc modules as drivers, but 'modprobe remoteproc' complains of no dir /lib/modules/

Do the steps in red-pitaya-notes. That works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment