

* Add a line of `ttyPS0` in `/mnt/etc/securetty` to allow login debian via `ttyPS0`. Sudo qemu-debootstrap -arch armhf stable /mnt Īpt-get install net-tools openssh-server vim build-essential minicom tmux libreadline-dev

Sudo qemu-debootstrap -arch arm64 stable /mnt * download the debian base system to `mmcblk0p2` with `qemu-debootstrap`. Refer to the step of () before executing `debootstrap`. * New an `ext4` partition `mmcblk0p2` in SD card. ultraZ only has 2GB memory for PS, change the setting above accordinglyīootargs = "root=/dev/mmcblk0p2 rootfstype=ext4 rootwait earlycon clk_ignore_unused" Path-to-labeled-RISC-V/fpga/boot/build/myproject-your-target-board/dts $ cat top.dtsīootargs = "root=/dev/mmcblk0p2 rootfstype=ext4 rootwait earlycon clk_ignore_unused cpuidle.off=1" * create a new file `top.dts` to set bootargs and reserved-memory for the RISC-V subsystem # Find `Image` under `linux-xlnx/arch/arm/boot/` > then choose `Support for console on Xilinx uartlite serial port` General setup -> Cross-compiler tool prefix: `arm-linux-gnueabihf-`ĭevices Drivers -> Character devices -> Serial drivers -> choose `Xilinx uartilite serial port support` Make ARCH=arm xilinx_zynq_defconfig # can be found under linux-xlnx/arch/arm/configs/ # Find `Image` under `linux-xlnx/arch/arm64/boot/` General setup -> unchoose `Initial RAM filesystem and RAM disk (initramfs/initrd) support` General setup -> Cross-compiler tool prefix: `aarch64-linux-gnu-`

Make ARCH=arm64 xilinx_zynqmp_defconfig # can be found under linux-xlnx/arch/arm64/configs/ Make bootgen PRJ=my-project BOARD=your-target-boardįind `BOOT.BIN` and `dts` under `path-to-labeled-RISC-V/fpga/boot/build/myproject-your-target-board/`. * generate BOOT.BIN and device tree source # modify the `device_tree_repo_path` variable in `mk.tcl` to the repo just cloned * set the correct path of device tree repo Vivado -> File -> Export -> Export Hardware * generate hardware description file in Vivado Path-to-labeled-RISC-V/fpga/boot $ cat bootgen-zynq.bif Path-to-labeled-RISC-V/fpga/boot $ ls build/zynq Path-to-labeled-RISC-V/fpga/boot $ cat bootgen-zynqmp.bif Path-to-labeled-RISC-V/fpga/boot $ ls build/zynqmp * (Optional) If you want to download the bitstream in fsbl,Īlso put the bitstream under `path-to-labeled-RISC-V/fpga/boot/build/.bif`. Mkdir -p path-to-labeled-RISC-V/fpga/boot/build/zynqĬp u-boot-xlnx/u-boot.elf path-to-labeled-RISC-V/fpga/boot/build/zynq/ Make zynq_zed_defconfig # can be found under u-boot-xlnx/configs/ Make xilinx_zynqmp_zcu102_rev1_0_defconfig # can be found under u-boot-xlnx/configs/Ĭp u-boot-xlnx/u-boot.elf path-to-labeled-RISC-V/fpga/boot/build/zynqmp/ Mkdir -p path-to-labeled-RISC-V/fpga/boot/build/zynqmpĬp build/zynqmp/release/bl31/bl31.elf path-to-labeled-RISC-V/fpga/boot/build/zynqmp/ Make PLAT=zynqmp RESET_TO_B元1=1 CROSS_COMPILE=aarch64-none-elf. If your target board is zynq, skip this step.
