Skip to content

Commit

Permalink
[update] document and script files for build linux-xlnx-v2021.1-zynqm…
Browse files Browse the repository at this point in the history
…p-fpga to not use GitHub LFS
  • Loading branch information
ikwzm committed Jul 27, 2022
1 parent ae5c784 commit 0c4a97a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
18 changes: 10 additions & 8 deletions doc/build/linux-xlnx-v2021.1-zynqmp-fpga.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,34 +120,36 @@ shell$ export DTC_FLAGS=--symbols
shell$ make deb-pkg
```

### Build kernel image and devicetree to target/UltraZed-EG-IOCC/boot/
### Copy Image to image-5.10.0-xlnx-v2021.1-zynqmp-fpga

```console
shell$ cp arch/arm64/boot/Image ../image-5.10.0-xlnx-v2021.1-zynqmp-fpga
```

### Copy devicetree to target/UltraZed-EG-IOCC/boot/

```console
shell$ cp arch/arm64/boot/Image ../target/UltraZed-EG-IOCC/boot/image-5.10.0-xlnx-v2021.1-zynqmp-fpga
shell$ cp arch/arm64/boot/dts/xilinx/zynqmp-uz3eg-iocc.dtb ../target/UltraZed-EG-IOCC/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-uz3eg-iocc.dtb
shell$ ./scripts/dtc/dtc -I dtb -O dts --symbols -o ../target/UltraZed-EG-IOCC/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-uz3eg-iocc.dts ../target/UltraZed-EG-IOCC/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-uz3eg-iocc.dtb
```

### Build kernel image and devicetree to target/Ultra96/boot/
### Copy devicetree to target/Ultra96/boot/

```console
shell$ cp arch/arm64/boot/Image ../target/Ultra96/boot/image-5.10.0-xlnx-v2021.1-zynqmp-fpga
shell$ cp arch/arm64/boot/dts/xilinx/avnet-ultra96-rev1.dtb ../target/Ultra96/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-ultra96.dtb
shell$ ./scripts/dtc/dtc -I dtb -O dts --symbols -o ../target/Ultra96/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-ultra96.dts ../target/Ultra96/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-ultra96.dtb
```

### Build kernel image and devicetree to target/Ultra96-V2/boot/
### Copy devicetree to target/Ultra96-V2/boot/

```console
shell$ cp arch/arm64/boot/Image ../target/Ultra96-V2/boot/image-5.10.0-xlnx-v2021.1-zynqmp-fpga
shell$ cp arch/arm64/boot/dts/xilinx/avnet-ultra96v2-rev1.dtb ../target/Ultra96-V2/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-ultra96v2.dtb
shell$ ./scripts/dtc/dtc -I dtb -O dts --symbols -o ../target/Ultra96-V2/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-ultra96v2.dts ../target/Ultra96-V2/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-ultra96v2.dtb
```

### Build kernel image and devicetree to target/Kv260/boot/
### Copy devicetree to target/Kv260/boot/

```console
shell$ cp arch/arm64/boot/Image ../target/Kv260/boot/image-5.10.0-xlnx-v2021.1-zynqmp-fpga
shell$ cp arch/arm64/boot/dts/xilinx/zynqmp-kv260-revB.dtb ../target/Kv260/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-kv260-revB.dtb
shell$ ./scripts/dtc/dtc -I dtb -O dts --symbols -o ../target/Kv260/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-kv260-revB.dts ../target/Kv260/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-kv260-revB.dtb
```
Expand Down
22 changes: 14 additions & 8 deletions scripts/build-linux-xlnx-v2021.1-zynqmp-fpga.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,36 +66,42 @@ git add --update
git commit -m "[add] Xilinx APF driver."

## Create tag and .version

git tag -a xilinx-v2021.1-zynqmp-fpga-4 -m "release xilinx-v2021.1-zynqmp-fpga-4"
echo 4 > .version

## Setup for Build

export ARCH=arm64
export export CROSS_COMPILE=aarch64-linux-gnu-
make xilinx_zynqmp_defconfig

## Build Linux Kernel and device tree

export DTC_FLAGS=--symbols
make deb-pkg

## Build kernel image and devicetree to target/UltraZed-EG-IOCC/boot/
cp arch/arm64/boot/Image ../target/UltraZed-EG-IOCC/boot/image-5.10.0-xlnx-v2021.1-zynqmp-fpga
## Copy Image to image-5.10.0-xlnx-v2021.1-zynqmp-fpga

cp arch/arm64/boot/Image ../image-5.10.0-xlnx-v2021.1-zynqmp-fpga

## Copy devicetree to target/UltraZed-EG-IOCC/boot/

cp arch/arm64/boot/dts/xilinx/zynqmp-uz3eg-iocc.dtb ../target/UltraZed-EG-IOCC/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-uz3eg-iocc.dtb
./scripts/dtc/dtc -I dtb -O dts --symbols -o ../target/UltraZed-EG-IOCC/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-uz3eg-iocc.dts ../target/UltraZed-EG-IOCC/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-uz3eg-iocc.dtb

## Build kernel image and devicetree to target/Ultra96/boot/
cp arch/arm64/boot/Image ../target/Ultra96/boot/image-5.10.0-xlnx-v2021.1-zynqmp-fpga
## Copy devicetree to target/Ultra96/boot/

cp arch/arm64/boot/dts/xilinx/avnet-ultra96-rev1.dtb ../target/Ultra96/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-ultra96.dtb
./scripts/dtc/dtc -I dtb -O dts --symbols -o ../target/Ultra96/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-ultra96.dts ../target/Ultra96/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-ultra96.dtb

## Build kernel image and devicetree to target/Ultra96-V2/boot/
cp arch/arm64/boot/Image ../target/Ultra96-V2/boot/image-5.10.0-xlnx-v2021.1-zynqmp-fpga
## Copy devicetree to target/Ultra96-V2/boot/

cp arch/arm64/boot/dts/xilinx/avnet-ultra96v2-rev1.dtb ../target/Ultra96-V2/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-ultra96v2.dtb
./scripts/dtc/dtc -I dtb -O dts --symbols -o ../target/Ultra96-V2/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-ultra96v2.dts ../target/Ultra96-V2/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-ultra96v2.dtb

## Build kernel image and devicetree to target/Kv260/boot/
## Copy devicetree to target/Kv260/boot/

cp arch/arm64/boot/Image ../target/Kv260/boot/image-5.10.0-xlnx-v2021.1-zynqmp-fpga
cp arch/arm64/boot/dts/xilinx/zynqmp-kv260-revB.dtb ../target/Kv260/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-kv260-revB.dtb
./scripts/dtc/dtc -I dtb -O dts --symbols -o ../target/Kv260/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-kv260-revB.dts ../target/Kv260/boot/devicetree-5.10.0-xlnx-v2021.1-zynqmp-fpga-kv260-revB.dtb

Expand Down

0 comments on commit 0c4a97a

Please sign in to comment.