Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ For Linux workloads, the image assumes that execution begins at `0x80000000`, an

Multiple device trees are built for each workload, each corresponds to a specific NEMU configuration. The device tree files are placed under the `dt` directory in the build output directory of that workload. The "default" device tree built into the image is `dt/xiangshan.dtb`. To replace the device tree, the following command can be used:

For DTS files used with gcpt, the beginning of RAM must be reserved with a `reserved-memory` node so Linux does not allocate or map the gcpt checkpoint buffer. The XiangShan FPGA DTS templates reserve 1 MiB at `0x80000000` for this purpose.

```shell
dd conv=notrunc bs=1024 seek=1536 if=dt/some_device.dtb of=fw_payload.bin
```
Expand Down
11 changes: 11 additions & 0 deletions dts/xiangshan-fpga-noAIA-mem24g-novec.dts.in
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@
reg = <0x0 0x80000000 0x6 0x00000000>;
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

reserved0: buffer@0 {
no-map;
reg = <0x0 0x80000000 0x0 0x100000>;
};
};

soc {
#address-cells = <2>;
#size-cells = <2>;
Expand Down
11 changes: 11 additions & 0 deletions dts/xiangshan-fpga-noAIA-mem24g.dts.in
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@
reg = <0x0 0x80000000 0x6 0x00000000>;
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

reserved0: buffer@0 {
no-map;
reg = <0x0 0x80000000 0x0 0x100000>;
};
};

soc {
#address-cells = <2>;
#size-cells = <2>;
Expand Down
11 changes: 11 additions & 0 deletions dts/xiangshan-fpga-noAIA-mem64g-novec.dts.in
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@
reg = <0x0 0x80000000 0x10 0x00000000>;
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

reserved0: buffer@0 {
no-map;
reg = <0x0 0x80000000 0x0 0x100000>;
};
};

soc {
#address-cells = <2>;
#size-cells = <2>;
Expand Down
11 changes: 11 additions & 0 deletions dts/xiangshan-fpga-noAIA-mem64g.dts.in
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@
reg = <0x0 0x80000000 0x10 0x00000000>;
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

reserved0: buffer@0 {
no-map;
reg = <0x0 0x80000000 0x0 0x100000>;
};
};

soc {
#address-cells = <2>;
#size-cells = <2>;
Expand Down
11 changes: 11 additions & 0 deletions dts/xiangshan-fpga-noAIA-mem8g-novec.dts.in
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@
reg = <0x0 0x80000000 0x2 0x00000000>;
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

reserved0: buffer@0 {
no-map;
reg = <0x0 0x80000000 0x0 0x100000>;
};
};

soc {
#address-cells = <2>;
#size-cells = <2>;
Expand Down
11 changes: 11 additions & 0 deletions dts/xiangshan-fpga-noAIA-mem8g.dts.in
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@
reg = <0x0 0x80000000 0x2 0x00000000>;
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

reserved0: buffer@0 {
no-map;
reg = <0x0 0x80000000 0x0 0x100000>;
};
};

soc {
#address-cells = <2>;
#size-cells = <2>;
Expand Down
11 changes: 11 additions & 0 deletions dts/xiangshan-fpga-noAIA-novec.dts.in
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@
reg = <0x0 0x80000000 0x0 0x80000000>;
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

reserved0: buffer@0 {
no-map;
reg = <0x0 0x80000000 0x0 0x100000>;
};
};

soc {
#address-cells = <2>;
#size-cells = <2>;
Expand Down
11 changes: 11 additions & 0 deletions dts/xiangshan-fpga-noAIA.dts.in
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@
reg = <0x0 0x80000000 0x0 0x80000000>;
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

reserved0: buffer@0 {
no-map;
reg = <0x0 0x80000000 0x0 0x100000>;
};
};

soc {
#address-cells = <2>;
#size-cells = <2>;
Expand Down
Loading