From: Tobias Platen Date: Sat, 29 Jan 2022 13:41:30 +0000 (+0100) Subject: begin integrate from chatlogs X-Git-Tag: opf_rfc_ls005_v1~3233 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=541c71c9f9ac9664d8a9f4006c02dd0144a34e33;p=libreriscv.git begin integrate from chatlogs --- 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