Skip to content

Commit

Permalink
Start using the device tree compiler. Addressing Issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
tim committed May 26, 2022
1 parent 516b0f4 commit b9b5222
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
port**
lichee_rv*/*
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ COPY config/bootscr.txt .
RUN ./u-boot/tools/mkimage -T script -C none -O linux -A riscv -d bootscr.txt boot.scr
# The boot script is here: boot.scr

#
# Try device tree FIT format
#
RUN apt-get install -y device-tree-compiler

COPY config/${BOARD}_boot.its .
RUN ./u-boot/tools/mkimage -f ${BOARD}_boot.its lichee_rv_boot.itb

############################################################################################
#
Expand Down
18 changes: 1 addition & 17 deletions config/lichee_rv_dock_boot.its
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

/ {
description = "Lichee RV FIT Image";
#address-cells = <1>;

images {
uboot {
description = "U-Boot";
data = /incbin/("u-boot-nodtb.bin");
data = /incbin/("u-boot/u-boot-nodtb.bin");
type = "standalone";
os = "U-Boot";
arch = "riscv";
Expand All @@ -32,28 +31,13 @@
compression = "none";
load = <0x44000000>;
entry = <0x44000000>;
hash {
algo = "sha1";
};
};
initrd {
description = "Initrd";
data = /incbin/("core-image-minimal-nitrogen8m.ext2.gz");
type = "ramdisk";
arch = "riscv64";
os = "linux";
compression = "none";
hash {
algo = "sha1";
};
};
};

configurations {
default = "standard";
standard {
description = "Standard Boot";
description = "U-Boot FIT";
firmware = "opensbi";
loadables = "uboot";
};
Expand Down

0 comments on commit b9b5222

Please sign in to comment.