From 605c7d9258c129b66b76f1b55a8a6f3cea68c13e Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 18 Sep 2021 22:32:15 +0300 Subject: Added fdt debug capability + For future reference, apos now requires initrd to be found in fdt. --- arch/riscv/conf/apos.its | 17 +++++++++++++++++ arch/riscv/conf/boot.cmd | 2 +- arch/riscv/conf/initrd.txt | 1 + 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 arch/riscv/conf/initrd.txt (limited to 'arch/riscv/conf') diff --git a/arch/riscv/conf/apos.its b/arch/riscv/conf/apos.its index c3611dd..7c05044 100644 --- a/arch/riscv/conf/apos.its +++ b/arch/riscv/conf/apos.its @@ -18,6 +18,19 @@ algo = "sha1"; }; }; + + initrd { + description = "Gargabbio initrd"; + data = /incbin/("initrd.txt"); + type = "ramdisk"; + arch = "riscv"; + os = "apos"; + compression = "none"; + load = <0x88300000>; + hash-1 { + algo = "sha1"; + }; + }; }; configurations { @@ -26,6 +39,10 @@ config { description = "Default configuration"; kernel = "kernel"; + ramdisk = "initrd"; + hash-1 { + algo = "sha1"; + }; }; }; }; diff --git a/arch/riscv/conf/boot.cmd b/arch/riscv/conf/boot.cmd index 782c1e8..a7517fd 100644 --- a/arch/riscv/conf/boot.cmd +++ b/arch/riscv/conf/boot.cmd @@ -1,4 +1,4 @@ fdt move ${fdt_addr} ${fdt_addr_r} fdt addr ${fdt_addr_r} load ${devtype} ${devnum} ${kernel_addr_r} apos.itb -bootm ${kernel_addr_r} - ${fdt_addr_r} +bootm ${kernel_addr_r} ${kernel_addr_r} ${fdt_addr_r} diff --git a/arch/riscv/conf/initrd.txt b/arch/riscv/conf/initrd.txt new file mode 100644 index 0000000..e965047 --- /dev/null +++ b/arch/riscv/conf/initrd.txt @@ -0,0 +1 @@ +Hello -- cgit v1.3