From 0ca65e821cac55a9d666c530bfa5fcc3b1b17470 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Tue, 25 Jan 2022 20:28:20 +0100 Subject: [PATCH] WIP docs how to build the kernel --- HDL_workflow/microwatt.mdwn | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/HDL_workflow/microwatt.mdwn b/HDL_workflow/microwatt.mdwn index 8de9495b2..70e27e989 100644 --- a/HDL_workflow/microwatt.mdwn +++ b/HDL_workflow/microwatt.mdwn @@ -16,4 +16,17 @@ with the message Microwatt, it works. On my ASUS KGPE D16 this takes real 1m4.986s user 1m4.373s - sys 0m0.013s \ No newline at end of file + sys 0m0.013s + +## Building the kernel +On a POWER9 there is no need to install a cross compiler, +you can omit CROSS_COMPILE and ARCH in this case + + apt install gcc-powerpc64le-linux-gnu + apt install flex bison + git clone -b microwatt-5.7 https://git.kernel.org/pub/scm/linux/kernel/git/joel/microwatt.git + cd microwatt + wget https://ozlabs.org/~paulus/rootfs.cpio.xz FIXME 404 + unxz rootfs.cpio.xz + 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 -- 2.30.2