-
Notifications
You must be signed in to change notification settings - Fork 4
/
README-bootloader.txt
28 lines (23 loc) · 1.31 KB
/
README-bootloader.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Short guide for generating U-Boot-SPL image which enables FPGA-SDRAM interface for VIP
# Create HPS settings first
${INTELFPGA_PATH}/20.1/embedded/embedded_command_shell.sh bsp-create-settings --type spl --bsp-dir software/bootloader --preloader-settings-dir hps_isw_handoff/sys_ddr3_0_hps --settings software/bootloader/settings.bsp
# Edit settings if needed
cd software/bootloader
${INTELFPGA_PATH}/20.1/embedded/embedded_command_shell.sh bsp-editor
# Copy sources for U-Boot
cd software/bootloader/u-boot-socfpga
./arch/arm/mach-socfpga/qts-filter.sh cyclone5 ../../../ ../ ./board/altera/cyclone5-socdk/qts/
# Configure and build U-Boot
cd software/bootloader/u-boot-socfpga
export CROSS_COMPILE=arm-linux-gnueabihf-
make socfpga_de10_nano_defconfig
echo "CONFIG_USE_BOOTCOMMAND=y" >> .config
echo "CONFIG_BOOTCOMMAND=\"run fatscript\"" >> .config
make -j 48
# Generate SD card image
cd software/bootloader/sd_image
mkdir -p sdfs
cp ../../../output_files/DE10-Nano-vd_isl.rbf sdfs/
../u-boot-socfpga/tools/mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "My script" -d u-boot.script sdfs/u-boot.scr
su-to-root -c "python3 ./make_sdimage_p3.py -f -P ../u-boot-socfpga/u-boot-with-spl.sfp,num=3,format=raw,size=2M,type=A2 -P sdfs/*,num=1,format=fat32,size=61M -s 64M -n sdcard_cv.img"
zip -r sdcard_cv.img.zip sdcard_cv.img