Setting up new Ubuntu for compile-all

Just about everything about Red Pitaya
Post Reply
gustep
Posts: 3
Joined: Tue May 16, 2023 4:06 pm

Setting up new Ubuntu for compile-all

Post by gustep » Tue May 16, 2023 7:16 pm

What are the necessary steps to set up a new computer to compile all of RedPitaya?

Steps taken so far:

1.) install Ubuntu 20.04 (20.04.6 LTS)
1b.) install various additional libraries mentioned in docs and other websites. More is better?

2.) install Vivado 2020.1 to /tools/Xilinx/Vivado/2020.1
3.) Install Xilinx SDK 2019.1 /tools/Xilinx/SDK/2019.1

4.) in home directory, git clone https://github.com/RedPitaya/RedPitaya
5.) in home directory, git clone https://github.com/RedPitaya/RedPitaya-FPGA

Code: Select all

cd ~/RedPitaya
source ./settings.sh   //Fails because it looks in /opt/Xilinx. Correct & run.

make -f Makefile.x86 fpga MODEL=Z10
Now I get a ton of build options, is this normal ?? See below:

Code: Select all

Automatically append version information to the version string (LOCALVERSION_AUTO) [Y/n/?] y
Build ID Salt (BUILD_SALT) []
Kernel compression mode
> 1. Gzip (KERNEL_GZIP)
  2. Bzip2 (KERNEL_BZIP2) (NEW)
  3. LZMA (KERNEL_LZMA)
  4. XZ (KERNEL_XZ)
  5. LZO (KERNEL_LZO)
  6. LZ4 (KERNEL_LZ4)
  7. ZSTD (KERNEL_ZSTD) (NEW)
choice[1-7?]:
Image

Code: Select all

labuser@labuser-ThinkPad-X250:~/RedPitaya$ sudo make -f Makefile.x86 fpga MODEL=Z10
[sudo] password for labuser:
mkdir -p tmp/linux-xlnx-branch-redpitaya-v2022.3
tar -zxf dl/linux-xlnx-branch-redpitaya-v2022.3.tar.gz --strip-components=1 --directory=tmp/linux-xlnx-branch-redpitaya-v2022.3
make -C tmp/linux-xlnx-branch-redpitaya-v2022.3 clean
make[1]: Entering directory '/home/labuser/RedPitaya/tmp/linux-xlnx-branch-redpitaya-v2022.3'
make[1]: Leaving directory '/home/labuser/RedPitaya/tmp/linux-xlnx-branch-redpitaya-v2022.3'
make -C tmp/linux-xlnx-branch-redpitaya-v2022.3 mrproper
make[1]: Entering directory '/home/labuser/RedPitaya/tmp/linux-xlnx-branch-redpitaya-v2022.3'
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   include/config include/generated .config
make[1]: Leaving directory '/home/labuser/RedPitaya/tmp/linux-xlnx-branch-redpitaya-v2022.3'
make -C tmp/linux-xlnx-branch-redpitaya-v2022.3 ARCH=arm redpitaya_zynq_defconfig -j 4
make[1]: Entering directory '/home/labuser/RedPitaya/tmp/linux-xlnx-branch-redpitaya-v2022.3'
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/menu.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTLD  scripts/kconfig/conf
arch/arm/configs/redpitaya_zynq_defconfig:359:warning: override: reassigning to symbol XILINX_INTC
#
# configuration written to .config
#
make[1]: Leaving directory '/home/labuser/RedPitaya/tmp/linux-xlnx-branch-redpitaya-v2022.3'
make -C tmp/linux-xlnx-branch-redpitaya-v2022.3 scripts
make[1]: Entering directory '/home/labuser/RedPitaya/tmp/linux-xlnx-branch-redpitaya-v2022.3'
  SYNC    include/config/auto.conf.cmd
*
* Restart config...
*
*
* General setup
*
Compile also drivers which will not load (COMPILE_TEST) [N/y/?] n
Compile the kernel with warnings as errors (WERROR) [N/y/?] n
Local version - append to kernel release (LOCALVERSION) [-xilinx] -xilinx
Automatically append version information to the version string (LOCALVERSION_AUTO) [Y/n/?] y
Build ID Salt (BUILD_SALT) []
Kernel compression mode
> 1. Gzip (KERNEL_GZIP)
  2. Bzip2 (KERNEL_BZIP2) (NEW)
  3. LZMA (KERNEL_LZMA)
  4. XZ (KERNEL_XZ)
  5. LZO (KERNEL_LZO)
  6. LZ4 (KERNEL_LZ4)
  7. ZSTD (KERNEL_ZSTD) (NEW)
choice[1-7?]:

User avatar
redpitaya
Site Admin
Posts: 883
Joined: Wed Mar 26, 2014 7:04 pm

Re: Setting up new Ubuntu for compile-all

Post by redpitaya » Fri May 19, 2023 9:22 am

Here are the most detailed instructions on this matter (building the FPGA image):
https://redpitaya.readthedocs.io/en/lat ... fpga-image

Building the ecosystem:
https://redpitaya.readthedocs.io/en/lat ... -ecosystem

Also, make sure your computer uses "." (dot) as a decimal separator.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 24 guests