From 72fe40c9d07e03e8d73a4ce09f0b85079ac4e25e Mon Sep 17 00:00:00 2001 From: Stefan Reinauer <stefan.reinauer@coreboot.org> Date: Thu, 3 Sep 2020 10:37:18 -0700 Subject: [PATCH] README.md: Add build and installation info - rc.local really isn't the right place for loading modules - mention linux-headers package to avoid having to compile the whole kernel Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> --- README.md | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a7e5623..def9538 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,10 @@ More Info: https://mntre.com/zz9000 ## Build Adjust the path to your Linux kernel sources in the Makefile before -starting. Then you can build the drivers out of the tree with +starting. On Debian you can install linux-headers-m68k to get the kernel +headers and the necessary Module.symvers file. + +Then you can build the drivers out of the tree with ``` $ make @@ -28,20 +31,33 @@ make[1]: Entering directory '/usr/src/linux-source-5.4' make[1]: Leaving directory '/usr/src/linux-source-5.4' ``` +Now you can install the drivers with + +``` +make modules_install +``` + ## Loading the drivers -You can load your drivers e.g. in your rc.local or in your initramfs. -Make sure you actually load it (early on). Debian 10 does not have -rc.local by default. +You can load your drivers e.g. by creating a ZZ9000 specific file in +/etc/modules-load.d: ``` +sudo vi /etc/modules-load.d/zz9000.conf +``` + +``` +# /etc/modules-load.d/zz9000 # -# rc.local +# Load ZZ9000 modules automatically at boot # -modprobe zz9000 -modprobe zz9000_graphics -modprobe zz9000_network -modprobe zz9000_usb + +zz9000 +zz9000-usb +zz9000-network +zz9000-graphics + +options zz9000-graphics noaccel ``` On your next boot you should then see @@ -62,7 +78,7 @@ On your next boot you should then see ## Graphics -Boot the kernel with amifb=disable. The driver switches to +Boot the kernel with video=amifb:off. The driver switches to 1280x720-60@16 by default, but supports all resolutions that the card supports (non-16bit modes currently untested) -- GitLab