Skip to content

Commit fd5624d

Browse files
Merge pull request #40 from OSCPU/refine-doc
Refine doc
2 parents 25c9339 + dbcbd76 commit fd5624d

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

fpga/boot/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
# Preparing BOOT.BIN
2+
# Prepare SD Card
33

4-
Refer to www.wiki.xilinx.com/Fetch+Sources for more information.
4+
This doc is used to prepare SD card for PS (Processing System) on FPGA. Refer to www.wiki.xilinx.com/Fetch+Sources for more information.
55

6-
To prepare BOOT.BIN in stand-alone mode (like on PYNQ), plase refer to [this doc](standalone.md).
6+
To prepare SD card for PL (Programmable Logic) in stand-alone mode (like on PYNQ), plase refer to [this doc](standalone.md).
77

88
## Build bl31.elf - Arm Trusted Firmware
99

fpga/boot/pynq/BOOT.BIN

4.04 MB
Binary file not shown.

fpga/boot/standalone.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# Stand-Alone Mode
22

3-
In stand-alone mode, control is directly transferred to PL through fsbl (first stage bootloader) after the board is powered on, so that PL has access to on-board peripherals such as SD card, Ethernet, etc., which is necessary to boot Debian.
3+
In stand-alone mode, control is directly transferred to PL (Program Logic) through FSBL (First Stage BootLoader) after the board is powered on, so that PL has access to on-board peripherals such as SD card, Ethernet, etc., which is necessary to boot Debian and other OS.
44

5-
We use PYNQ-Z2 board as example to demonstrate how to prepare boot files in stand-alone mode.
5+
We use PYNQ-Z2 board as example to demonstrate how to prepare SD card in stand-alone mode.
66

77
## Build BOOT.BIN
88

9+
BOOT.bin is the default filename of packaged hardware-related binary files. [Here](pynq/BOOT.BIN) is a pre-built and currently-used BOOT.BIN.
10+
11+
You can also build it yourself. Please refer to the following process.
12+
913
* create a project in Vivado and generate bitstream
1014

1115
```
@@ -56,10 +60,10 @@ RV_BOOT.bin is the default filename of linux-kernel image. [Here](pynq/RV_BOOT.b
5660

5761
* New an `ext4` partition `mmcblk0p2` in SD card. Refer to the step of [here](https://wiki.debian.org/InstallingDebianOn/Xilinx/ZC702/wheezy#SD_Card_root) before executing `debootstrap`.
5862

59-
* download the debian base system to `mmcblk0p2` with `qemu-debootstrap`.
63+
* Download the debian base system to `mmcblk0p2` with `qemu-debootstrap`.
6064

6165
```
62-
sudo qemu-debootstrap --arch riscv64 stable /mnt http://ftp.debian.org/debian
66+
sudo qemu-debootstrap --arch riscv64 unstable /mnt http://deb.debian.org/debian-ports
6367
sudo chroot /mnt /bin/bash
6468
passwd
6569
apt-get update

0 commit comments

Comments
 (0)