Skip to content

Commit

Permalink
Expand dynamic region; automatically make SD BOOT.BIN with bitstream
Browse files Browse the repository at this point in the history
  • Loading branch information
matth2k committed Jul 5, 2021
1 parent 5bc7015 commit 44cef88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,14 @@ set_property HD.RECONFIGURABLE true [get_cells pfm_top_i/dynamic_region]
# Dynamic region pblock
create_pblock pblock_dynamic_region
add_cells_to_pblock [get_pblocks pblock_dynamic_region] [get_cells -quiet [list pfm_top_i/dynamic_region]]
#resize_pblock [get_pblocks pblock_dynamic_region] -add {SLICE_X29Y0:SLICE_X48Y59}
#resize_pblock [get_pblocks pblock_dynamic_region] -add {CFGIO_SITE_X0Y0:CFGIO_SITE_X0Y0}
#resize_pblock [get_pblocks pblock_dynamic_region] -add {DSP48E2_X3Y0:DSP48E2_X4Y11}
#resize_pblock [get_pblocks pblock_dynamic_region] -add {IOB_X2Y0:IOB_X2Y25}
#resize_pblock [get_pblocks pblock_dynamic_region] -add {RAMB18_X3Y23:RAMB18_X5Y23}
#resize_pblock [get_pblocks pblock_dynamic_region] -add {RAMB36_X3Y0:RAMB36_X5Y11}
#resize_pblock [get_pblocks pblock_dynamic_region] -add {CLOCKREGION_X1Y0}


resize_pblock [get_pblocks pblock_dynamic_region] -add {SLICE_X29Y0:SLICE_X47Y59 SLICE_X38Y60:SLICE_X47Y119 SLICE_X29Y120:SLICE_X47Y179 SLICE_X16Y120:SLICE_X28Y179 SLICE_X0Y120:SLICE_X15Y179}
resize_pblock [get_pblocks pblock_dynamic_region] -add {SLICE_X0Y0:SLICE_X28Y59 SLICE_X38Y60:SLICE_X48Y119}
resize_pblock [get_pblocks pblock_dynamic_region] -add {CFGIO_SITE_X0Y0:CFGIO_SITE_X0Y0}
resize_pblock [get_pblocks pblock_dynamic_region] -add {DSP48E2_X3Y0:DSP48E2_X4Y23 DSP48E2_X3Y48:DSP48E2_X4Y71 DSP48E2_X1Y48:DSP48E2_X2Y71 DSP48E2_X0Y48:DSP48E2_X0Y71}
resize_pblock [get_pblocks pblock_dynamic_region] -add {DSP48E2_X0Y0:DSP48E2_X2Y23 DSP48E2_X3Y24:DSP48E2_X4Y47}
resize_pblock [get_pblocks pblock_dynamic_region] -add {IOB_X2Y0:IOB_X2Y25}
resize_pblock [get_pblocks pblock_dynamic_region] -add {RAMB18_X3Y0:RAMB18_X5Y23 RAMB18_X5Y24:RAMB18_X5Y47 RAMB18_X3Y48:RAMB18_X5Y71 RAMB18_X2Y48:RAMB18_X2Y71 RAMB18_X0Y48:RAMB18_X1Y71}
resize_pblock [get_pblocks pblock_dynamic_region] -add {RAMB36_X3Y0:RAMB36_X5Y11 RAMB36_X5Y12:RAMB36_X5Y23 RAMB36_X3Y24:RAMB36_X5Y35 RAMB36_X2Y24:RAMB36_X2Y35 RAMB36_X0Y24:RAMB36_X1Y35}
resize_pblock [get_pblocks pblock_dynamic_region] -add {RAMB18_X0Y0:RAMB18_X2Y23 RAMB18_X5Y24:RAMB18_X5Y47}
resize_pblock [get_pblocks pblock_dynamic_region] -add {RAMB36_X0Y0:RAMB36_X2Y11 RAMB36_X5Y12:RAMB36_X5Y23}
resize_pblock [get_pblocks pblock_dynamic_region] -add {CLOCKREGION_X0Y1:CLOCKREGION_X0Y2 CLOCKREGION_X1Y0:CLOCKREGION_X1Y0 CLOCKREGION_X1Y2:CLOCKREGION_X1Y2}
set_property SNAPPING_MODE ON [get_pblocks pblock_dynamic_region]

Expand Down
3 changes: 3 additions & 0 deletions avnet_ultra96_base_dfx/sw/petalinux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ rootfs_config:

linux:
petalinux-build
echo -en "/* linux */\nthe_ROM_image:\n{\n[bootloader] zynqmp_fsbl.elf\n[pmufw_image] pmufw.elf\n[destination_device=pl] system.bit\n[destination_cpu=a53-0, exception_level=el-3, trustzone] bl31.elf\n[destination_cpu=a53-0, exception_level=el-2] u-boot.elf\n}" > images/linux/linux.bif
cd images/linux; petalinux-package --boot --bif linux.bif

xrt:
petalinux-config -c xrt --silentconfig
Expand All @@ -25,6 +27,7 @@ sw_comp:
mkdir -p $(SW_COMP_DIR)
cp -rf $(PLATFORM_SW_SRC) ${SW_COMP_DIR}
cp -f images/linux/boot.scr ${SW_COMP_DIR}/platform/image/boot.scr
cp -f images/linux/BOOT.BIN ${SW_COMP_DIR}/platform/image/BOOT.BIN
cp -f images/linux/bl31.elf ${SW_COMP_DIR}/platform/boot/bl31.elf
cp -f images/linux/u-boot.elf ${SW_COMP_DIR}/platform/boot/u-boot.elf
cp -f images/linux/pmufw.elf ${SW_COMP_DIR}/platform/boot/pmufw.elf
Expand Down

0 comments on commit 44cef88

Please sign in to comment.