Browse Source

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>
master
Stefan Reinauer 8 months ago
parent
commit
72fe40c9d0
1 changed files with 26 additions and 10 deletions
  1. +26
    -10
      README.md

+ 26
- 10
README.md View File

@@ -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)



Loading…
Cancel
Save