From 541c71c9f9ac9664d8a9f4006c02dd0144a34e33 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Sat, 29 Jan 2022 14:41:30 +0100 Subject: [PATCH] begin integrate from chatlogs --- HDL_workflow/microwatt.mdwn | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/HDL_workflow/microwatt.mdwn b/HDL_workflow/microwatt.mdwn index d63d768bb..b437e4608 100644 --- a/HDL_workflow/microwatt.mdwn +++ b/HDL_workflow/microwatt.mdwn @@ -1,6 +1,6 @@ # Build instructions for Microwatt -TODO integrate from +WIP integrate from * install verilator: * install yosys @@ -33,9 +33,17 @@ you can omit CROSS_COMPILE and ARCH in this case apt install flex bison lz4 git clone -b microwatt-5.7 https://git.kernel.org/pub/scm/linux/kernel/git/joel/microwatt.git cd microwatt + wget https://ftp.libre-soc.org/microwatt-linux-5.7.patch + patch -p1 < microwatt-linux-5.7.patch wget http://ftp.libre-soc.org/rootfs.cpio CROSS_COMPILE="ccache powerpc64le-linux-gnu-" ARCH=powerpc make -j8 O=microwatt microwatt_defconfig CROSS_COMPILE="ccache powerpc64le-linux-gnu-" ARCH=powerpc make -j8 O=microwatt This will produce a file microwatt/arch/powerpc/boot/dtbImage.microwatt + +## Building sdram_init.bin +This needs gcc-powerpc64le-linux-gnu if cross compilation is used. + cd microwatt + cd litedram/gen-src/sdram_init/ + make -- 2.30.2