Skip to content

Commit

Permalink
Merge branch 'build-v0.5.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
ikwzm committed Nov 8, 2017
2 parents 16b1af7 + 64a520c commit e403786
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 27 deletions.
8 changes: 4 additions & 4 deletions doc/build/linux-kernel-4.12.14.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ shell$ make socfpga_cyclone5_de0_sockit.dtb
#### Copy zImage and devicetree to target/zybo-zynq/boot/
```
shell$ cp arch/arm/boot/zImage ../target/zynq-zybo/boot/zImage-4.12.14-armv7-fpga
shell$ cp arch/arm/boot/zImage ../target/zynq-zybo/boot/vmlinuz-4.12.14-armv7-fpga
shell$ cp arch/arm/boot/dts/zynq-zybo.dtb ../target/zynq-zybo/boot/devicetree-4.12.14-zynq-zybo.dtb
shell$ dtc -I dtb -O dts -o ../target/zynq-zybo/boot/devicetree-4.12.14-zynq-zybo.dts arch/arm/boot/dts/zynq-zybo.dtb
```
#### Copy zImage and devicetree to tareget/zybo-zynq-z7/boot/
```
shell$ cp arch/arm/boot/zImage ../target/zynq-zybo-z7/boot/zImage-4.12.14-armv7-fpga
shell$ cp arch/arm/boot/zImage ../target/zynq-zybo-z7/boot/vmlinuz-4.12.14-armv7-fpga
shell$ cp arch/arm/boot/dts/zynq-zybo-z7.dtb ../target/zynq-zybo-z7/boot/devicetree-4.12.14-zynq-zybo-z7.dtb
shell$ dtc -I dtb -O dts --symbols -o ../target/zynq-zybo-z7/boot/devicetree-4.12.14-zynq-zybo-z7.dts arch/arm/boot/dts/zynq-zybo-z7.dtb
```
Expand All @@ -95,15 +95,15 @@ shell$ dtc -I dtb -O dts --symbols -o ../target/zynq-zybo-z7/boot/devicetree-4.1
#### Copy zImage and devicetree to target/zybo-pynqz1/boot/
```
shell$ cp arch/arm/boot/zImage ../target/zynq-pynqz1/boot/zImage-4.12.14-armv7-fpga
shell$ cp arch/arm/boot/zImage ../target/zynq-pynqz1/boot/vmlinuz-4.12.14-armv7-fpga
shell$ cp arch/arm/boot/dts/zynq-pynqz1.dtb ../target/zynq-pynqz1/boot/devicetree-4.12.14-zynq-pynqz1.dtb
shell$ dtc -I dtb -O dts -o ../target/zynq-pynqz1/boot/devicetree-4.12.14-zynq-pynqz1.dts arch/arm/boot/dts/zynq-pynqz1.dtb
```
#### Copy zImage and devicetree to target/de0-nano-soc/boot/
```
shell$ cp arch/arm/boot/zImage ../target/de0-nano-soc/boot/zImage-4.12.14-armv7-fpga
shell$ cp arch/arm/boot/zImage ../target/de0-nano-soc/boot/vmlinuz-4.12.14-armv7-fpga
shell$ cp arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dtb ../target/de0-nano-soc/boot/devicetree-4.12.14-socfpga.dtb
shell$ dtc -I dtb -O dts -o ../target/de0-nano-soc/boot/devicetree-4.12.14-socfpga.dts arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dtb
```
Expand Down
4 changes: 2 additions & 2 deletions doc/install/de0-nano-soc.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```
shell$ git clone git://github.com/ikwzm/FPGA-SoC-Linux
shell$ cd FPGA-SoC-Linux
shell$ git checkout v0.5.1
shell$ git checkout v0.5.2
shell$ git lfs pull
```

Expand All @@ -15,7 +15,7 @@ shell$ git lfs pull
+ boot/
- DE0_NANO_SOC.rbf : FPGA configuration file (Raw Binary Format)
- uEnv.txt : U-Boot environment variables for linux boot
- zImage-4.12.14-armv7-fpga : Linux Kernel Image (use Git LFS)
- vmlinuz-4.12.14-armv7-fpga : Linux Kernel Image (use Git LFS)
- devicetree-4.12.14-socfpga.dtb : Linux Device Tree Blob
- devicetree-4.12.14-socfpga.dts : Linux Device Tree Source
+ u-boot/
Expand Down
4 changes: 2 additions & 2 deletions doc/install/zynq-pynqz1.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```
shell$ git clone git://github.com/ikwzm/FPGA-SoC-Linux
shell$ cd FPGA-SoC-Linux
shell$ git checkout v0.5.1
shell$ git checkout v0.5.2
shell$ git lfs pull
```

Expand All @@ -16,7 +16,7 @@ shell$ git lfs pull
- 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.14-armv7-fpga : Linux Kernel Image (use Git LFS)
- vmlinuz-4.12.14-armv7-fpga : Linux Kernel Image (use Git LFS)
- devicetree-4.12.14-zynq-pynqz1.dtb : Linux Device Tree Blob
- devicetree-4.12.14-zynq-pynqz1.dts : Linux Device Tree Source
+ examples/ : Example Programs
Expand Down
6 changes: 3 additions & 3 deletions doc/install/zynq-zybo-de0-nano-soc.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ It corresponds to boot of both ZYBO and DE0-Nano-SoC in one SD-Card.
```
shell$ git clone git://github.com/ikwzm/FPGA-SoC-Linux
shell$ cd FPGA-SoC-Linux
shell$ git checkout v0.5.1
shell$ git checkout v0.5.2
shell$ git lfs pull
```
#### Build boot files
Expand All @@ -24,7 +24,7 @@ Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 1316 Bytes = 1.29 kB = 0.00 MB
cp ../zynq-zybo/boot/zImage-4.12.14-armv7-fpga boot/zImage-4.12.14-armv7-fpga
cp ../zynq-zybo/boot/vmlinuz-4.12.14-armv7-fpga boot/vmlinuz-4.12.14-armv7-fpga
cp ../zynq-zybo/boot/boot.bin boot/boot.bin
cp ../zynq-zybo/boot/design_1_wrapper.bit boot/design_1_wrapper.bit
cp ../zynq-zybo/boot/devicetree-4.12.14-zynq-zybo.dtb boot/devicetree-4.12.14-zynq-zybo.dtb
Expand All @@ -48,7 +48,7 @@ cp ../de0-nano-soc//u-boot/u-boot.img u-boot/u-boot.img
- boot.scr : U-Boot boot script (binary)
- design_1_wrapper.bit : FPGA configuration file (for ZYBO)
- DE0_NANO_SOC.rbf : FPGA configuration file (for DE0-Nano-SoC)
- zImage-4.12.14-armv7-fpga : Linux Kernel Image
- vmlinuz-4.12.14-armv7-fpga : Linux Kernel Image
- devicetree-4.12.14-zynq-zybo.dtb : Linux Device Tree Blob (for ZYBO)
- devicetree-4.12.14-zynq-zybo.dts : Linux Device Tree Source (for ZYBO)
- devicetree-4.12.14-socfpga.dtb : Linux Device Tree Blob (for DE0-Nano-SoC)
Expand Down
4 changes: 2 additions & 2 deletions doc/install/zynq-zybo-z7.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```
shell$ git clone git://github.com/ikwzm/FPGA-SoC-Linux
shell$ cd FPGA-SoC-Linux
shell$ git checkout v0.5.1
shell$ git checkout v0.5.2
shell$ git lfs pull
```

Expand All @@ -16,7 +16,7 @@ shell$ git lfs pull
- 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)
- vmlinuz-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)
Expand Down
4 changes: 2 additions & 2 deletions doc/install/zynq-zybo.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```
shell$ git clone git://github.com/ikwzm/FPGA-SoC-Linux
shell$ cd FPGA-SoC-Linux
shell$ git checkout v0.5.1
shell$ git checkout v0.5.2
shell$ git lfs pull
```

Expand All @@ -17,7 +17,7 @@ shell$ git lfs pull
- design_1_wrapper.bit : FPGA configuration file (Xilinx Bitstream Format)
- u-boot.img : Stage 2 Boot Loader(U-boot)
- uEnv.txt : U-Boot environment variables for linux boot
- zImage-4.12.14-armv7-fpga : Linux Kernel Image (use Git LFS)
- vmlinuz-4.12.14-armv7-fpga : Linux Kernel Image (use Git LFS)
- devicetree-4.12.14-zynq-zybo.dtb : Linux Device Tree Blob
- devicetree-4.12.14-zynq-zybo.dts : Linux Device Tree Source
+ examples/ : Example Programs
Expand Down
8 changes: 4 additions & 4 deletions scripts/build-linux-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,22 @@ make zynq-pynqz1.dtb
make socfpga_cyclone5_de0_sockit.dtb

### Copy zImage and devicetree to tareget/zybo-zynq/boot/
cp arch/arm/boot/zImage ../target/zynq-zybo/boot/zImage-4.12.14-armv7-fpga
cp arch/arm/boot/zImage ../target/zynq-zybo/boot/vmlinuz-4.12.14-armv7-fpga
cp arch/arm/boot/dts/zynq-zybo.dtb ../target/zynq-zybo/boot/devicetree-4.12.14-zynq-zybo.dtb
./scripts/dtc/dtc -I dtb -O dts --symbols -o ../target/zynq-zybo/boot/devicetree-4.12.14-zynq-zybo.dts arch/arm/boot/dts/zynq-zybo.dtb

### Copy zImage and devicetree to tareget/zybo-zynq-z7/boot/
cp arch/arm/boot/zImage ../target/zynq-zybo-z7/boot/zImage-4.12.14-armv7-fpga
cp arch/arm/boot/zImage ../target/zynq-zybo-z7/boot/vmlinuz-4.12.14-armv7-fpga
cp arch/arm/boot/dts/zynq-zybo-z7.dtb ../target/zynq-zybo-z7/boot/devicetree-4.12.14-zynq-zybo-z7.dtb
./scripts/dtc/dtc -I dtb -O dts --symbols -o ../target/zynq-zybo-z7/boot/devicetree-4.12.14-zynq-zybo-z7.dts arch/arm/boot/dts/zynq-zybo-z7.dtb

### Copy zImage and devicetree to tareget/zybo-pynqz1/boot/
cp arch/arm/boot/zImage ../target/zynq-pynqz1/boot/zImage-4.12.14-armv7-fpga
cp arch/arm/boot/zImage ../target/zynq-pynqz1/boot/vmlinuz-4.12.14-armv7-fpga
cp arch/arm/boot/dts/zynq-pynqz1.dtb ../target/zynq-pynqz1/boot/devicetree-4.12.14-zynq-pynqz1.dtb
./scripts/dtc/dtc -I dtb -O dts --symbols -o ../target/zynq-pynqz1/boot/devicetree-4.12.14-zynq-pynqz1.dts arch/arm/boot/dts/zynq-pynqz1.dtb

### Copy zImage and devicetree to tareget/de0-nano-soc/boot/
cp arch/arm/boot/zImage ../target/de0-nano-soc/boot/zImage-4.12.14-armv7-fpga
cp arch/arm/boot/zImage ../target/de0-nano-soc/boot/vmlinuz-4.12.14-armv7-fpga
cp arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dtb ../target/de0-nano-soc/boot/devicetree-4.12.14-socfpga.dtb
./scripts/dtc/dtc -I dtb -O dts --symbols -o ../target/de0-nano-soc/boot/devicetree-4.12.14-socfpga.dts arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dtb

Expand Down
2 changes: 1 addition & 1 deletion target/de0-nano-soc/boot/uEnv.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fpga_load_cmd=fatload mmc 0 $fpgadata DE0_NANO_SOC.rbf && fpga load 0 $fpgadata $filesize
fpga_set_cmd=bridge enable
boot_image=zImage-4.12.14-armv7-fpga
boot_image=vmlinuz-4.12.14-armv7-fpga
fdt_image=devicetree-4.12.14-socfpga.dtb
linux_load_cmd=fatload mmc 0 $loadaddr $boot_image && fatload mmc 0 $fdt_addr $fdt_image
linux_boot_cmd=setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait && bootz $loadaddr - $fdt_addr
Expand Down
2 changes: 1 addition & 1 deletion target/zynq-pynqz1/boot/uEnv.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fpga_load_cmd=fatload mmc 0 0x03000000 design_1_wrapper.bit && fpga loadb 0 0x03
slcr_unlock_cmd=mw.l 0xF8000008 0xDF0D
slcr_lock_cmd=mw.l 0xF8000004 0x767B
fpga_set_cmd=run slcr_unlock_cmd && mw.l 0xF8000170 0x00100A00 && run slcr_lock_cmd
boot_image=zImage-4.12.14-armv7-fpga
boot_image=vmlinuz-4.12.14-armv7-fpga
fdt_image=devicetree-4.12.14-zynq-pynqz1.dtb
linux_load_cmd=fatload mmc 0 0x03000000 $boot_image && fatload mmc 0 0x02A00000 $fdt_image
linux_boot_cmd=setenv bootargs console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait uio_pdrv_genirq.of_id=generic-uio && bootz 0x03000000 - 0x02A00000
Expand Down
4 changes: 2 additions & 2 deletions target/zynq-zybo-de0-nano-soc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ XILINX_TARGET_PATH=../zynq-zybo
ALTERA_TARGET_PATH=../de0-nano-soc

TARGET = boot/boot.scr \
boot/zImage-$(VERSION)-armv7-fpga \
boot/vmlinuz-$(VERSION)-armv7-fpga \
boot/boot.bin \
boot/design_1_wrapper.bit \
boot/devicetree-$(VERSION)-zynq-zybo.dtb \
Expand All @@ -28,7 +28,7 @@ clean :
boot/boot.scr : boot/boot.script
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "linux boot script" -d boot/boot.script boot/boot.scr

boot/zImage-$(VERSION)-armv7-fpga : $(XILINX_TARGET_PATH)/boot/zImage-$(VERSION)-armv7-fpga
boot/vmlinuz-$(VERSION)-armv7-fpga : $(XILINX_TARGET_PATH)/boot/vmlinuz-$(VERSION)-armv7-fpga
$(COPY) $< $@

boot/boot.bin : $(XILINX_TARGET_PATH)/boot/boot.bin
Expand Down
4 changes: 2 additions & 2 deletions target/zynq-zybo-de0-nano-soc/boot/boot.script
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if test $config = "zynq-zybo"; then
echo "Configuration for " $config
boot_image=zImage-$kernel_version-armv7-fpga
boot_image=vmlinuz-$kernel_version-armv7-fpga
fdt_image=devicetree-$kernel_version-zynq-zybo.dtb
fpga_image=design_1_wrapper.bit
if fatload mmc 0 0x03000000 $fpga_image; then
Expand All @@ -16,7 +16,7 @@ if test $config = "zynq-zybo"; then
fi
if test $config = "socfpga_cyclone5_de0_nano_soc"; then
echo "Configuration for " $config
boot_image=zImage-$kernel_version-armv7-fpga
boot_image=vmlinuz-$kernel_version-armv7-fpga
fdt_image=devicetree-$kernel_version-socfpga.dtb
fpga_image=DE0_NANO_SOC.rbf
if fatload mmc 0 $fpgadata $fpga_image; then
Expand Down
2 changes: 1 addition & 1 deletion target/zynq-zybo-z7/boot/uEnv.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fpga_load_cmd=fatload mmc 0 0x03000000 design_1_wrapper.bit && fpga loadb 0 0x03
slcr_unlock_cmd=mw.l 0xF8000008 0xDF0D
slcr_lock_cmd=mw.l 0xF8000004 0x767B
fpga_set_cmd=run slcr_unlock_cmd && mw.l 0xF8000170 0x00100A00 && run slcr_lock_cmd
boot_image=zImage-4.12.14-armv7-fpga
boot_image=vmlinuz-4.12.14-armv7-fpga
fdt_image=devicetree-4.12.14-zynq-zybo-z7.dtb
linux_load_cmd=fatload mmc 0 0x03000000 $boot_image && fatload mmc 0 0x02A00000 $fdt_image
linux_boot_cmd=setenv bootargs console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait uio_pdrv_genirq.of_id=generic-uio && bootz 0x03000000 - 0x02A00000
Expand Down
2 changes: 1 addition & 1 deletion target/zynq-zybo/boot/uEnv.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fpga_load_cmd=fatload mmc 0 0x03000000 design_1_wrapper.bit && fpga loadb 0 0x03
slcr_unlock_cmd=mw.l 0xF8000008 0xDF0D
slcr_lock_cmd=mw.l 0xF8000004 0x767B
fpga_set_cmd=run slcr_unlock_cmd && mw.l 0xF8000170 0x00100A00 && run slcr_lock_cmd
boot_image=zImage-4.12.14-armv7-fpga
boot_image=vmlinuz-4.12.14-armv7-fpga
fdt_image=devicetree-4.12.14-zynq-zybo.dtb
linux_load_cmd=fatload mmc 0 0x03000000 $boot_image && fatload mmc 0 0x02A00000 $fdt_image
linux_boot_cmd=setenv bootargs console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait uio_pdrv_genirq.of_id=generic-uio && bootz 0x03000000 - 0x02A00000
Expand Down

0 comments on commit e403786

Please sign in to comment.