-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
153,842 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
### Build U-boot for ZYBO Z7 | ||
|
||
There are two ways | ||
|
||
1. run scripts/build-u-boot-zynq-zybo-z7.sh (easy) | ||
2. run this chapter step-by-step (annoying) | ||
|
||
#### Download U-boot Source | ||
|
||
##### Clone from git.denx.de/u-boot.git | ||
|
||
``` | ||
shell$ git clone git://git.denx.de/u-boot.git u-boot-zynq-zybo-z7 | ||
```` | ||
|
||
##### Checkout v2016.03 | ||
|
||
``` | ||
shell$ cd u-boot-zynq-zybo-z7 | ||
shell$ git checkout -b u-boot-2016.03-zynq-zybo refs/tags/v2016.03 | ||
``` | ||
|
||
#### Patch for zynq-zybo | ||
|
||
``` | ||
shell$ patch -p0 < ../files/u-boot-2016.03-zynq-zybo-z7.diff | ||
shell$ git add --update | ||
shell$ git add arch/arm/dts/zynq-zybo-z7.dts | ||
shell$ git add board/xilinx/zynq/zybo_z7_hw_platform/* | ||
shell$ git add configs/zynq_zybo_z7_defconfig | ||
shell$ git add include/configs/zynq_zybo_z7.h | ||
shell$ git commit -m "patch for zynq-zybo-z7" | ||
``` | ||
|
||
#### Setup for Build | ||
|
||
``` | ||
shell$ cd u-boot-zynq-zybo-z7 | ||
shell$ export ARCH=arm | ||
shell$ export CROSS_COMPILE=arm-linux-gnueabihf- | ||
shell$ make zynq_zybo_z7_defconfig | ||
``` | ||
|
||
#### Build u-boot | ||
|
||
``` | ||
shell$ make | ||
``` | ||
|
||
#### Copy boot.bin and u-boot.img to target/zybo-zynq/boot/ | ||
|
||
``` | ||
shell$ cp spl/boot.bin ../target/zynq-zybo-z7/boot/ | ||
shell$ cp u-boot.img ../target/zynq-zybo-z7/boot/ | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
### ZYBO Z7 | ||
|
||
#### Downlowd from github | ||
|
||
``` | ||
shell$ git clone git://github.com/ikwzm/FPGA-SoC-Linux | ||
shell$ cd FPGA-SoC-Linux | ||
shell$ git checkout v0.5.1 | ||
shell$ git lfs pull | ||
``` | ||
|
||
#### File Description | ||
|
||
* tareget/zynq-zybo-z7/ | ||
+ boot/ | ||
- boot.bin : Stage 1 Boot Loader(U-boot-spl) | ||
- u-boot.img : Stage 2 Boot Loader(U-boot) | ||
- uEnv.txt : U-Boot environment variables for linux boot | ||
- zImage-4.12.13-armv7-fpga : Linux Kernel Image (use Git LFS) | ||
- devicetree-4.12.13-zynq-zybo-z7.dtb : Linux Device Tree Blob | ||
- devicetree-4.12.13-zynq-zybo-z7.dts : Linux Device Tree Source | ||
* debian9-rootfs-vanilla.tgz : Debian9 Root File System (use Git LFS) | ||
* linux-image-4.12.13-armv7-fpga_4.12.13-armv7-fpga-1_armhf.deb : Linux Image Package (use Git LFS) | ||
* linux-headers-4.12.13-armv7-fpga_4.12.13-armv7-fpga-1_armhf.deb : Linux Headers Package (use Git LFS) | ||
* fpga-soc-linux-drivers-4.12.13-armv7-fpga_0.0.7-1_armhf.deb : Device Drivers Package (use Git LFS) | ||
* fpga-soc-linux-services_0.0.7-1_armhf.deb : Device Services Package (use Git LFS) | ||
|
||
#### Format SD-Card | ||
|
||
```` | ||
shell# fdisk /dev/sdc | ||
: | ||
: | ||
: | ||
shell# mkfs-vfat /dev/sdc1 | ||
shell# mkfs.ext3 /dev/sdc2 | ||
```` | ||
|
||
#### Write to SD-Card | ||
|
||
```` | ||
shell# mount /dev/sdc1 /mnt/usb1 | ||
shell# mount /dev/sdc2 /mnt/usb2 | ||
shell# cp target/zynq-zybo-z7/boot/* /mnt/usb1 | ||
shell# tar xfz debian9-rootfs-vanilla.tgz -C /mnt/usb2 | ||
shell# cp linux-image-4.12.13-armv7-fpga_4.12.13-armv7-fpga-1_armhf.deb /mnt/usb2/home/fpga | ||
shell# cp linux-headers-4.12.13-armv7-fpga_4.12.13-armv7-fpga-1_armhf.deb /mnt/usb2/home/fpga | ||
shell# cp fpga-soc-linux-drivers-4.12.13-armv7-fpga_0.0.7-1_armhf.deb /mnt/usb2/home/fpga | ||
shell# cp fpga-soc-linux-services_0.0.7-1_armhf.deb /mnt/usb2/home/fpga | ||
shell# umount mnt/usb1 | ||
shell# umount mnt/usb2 | ||
```` | ||
|
Oops, something went wrong.