Commit 72fe40c9 authored by Stefan Reinauer's avatar Stefan Reinauer 🤠
Browse files

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's avatarStefan Reinauer <stefan.reinauer@coreboot.org>
parent df2ec156
...@@ -5,7 +5,10 @@ More Info: https://mntre.com/zz9000 ...@@ -5,7 +5,10 @@ More Info: https://mntre.com/zz9000
## Build ## Build
Adjust the path to your Linux kernel sources in the Makefile before 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 $ make
...@@ -28,20 +31,33 @@ make[1]: Entering directory '/usr/src/linux-source-5.4' ...@@ -28,20 +31,33 @@ make[1]: Entering directory '/usr/src/linux-source-5.4'
make[1]: Leaving 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 ## Loading the drivers
You can load your drivers e.g. in your rc.local or in your initramfs. You can load your drivers e.g. by creating a ZZ9000 specific file in
Make sure you actually load it (early on). Debian 10 does not have /etc/modules-load.d:
rc.local by default.
``` ```
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 zz9000
modprobe zz9000_network zz9000-usb
modprobe zz9000_usb zz9000-network
zz9000-graphics
options zz9000-graphics noaccel
``` ```
On your next boot you should then see On your next boot you should then see
...@@ -62,7 +78,7 @@ On your next boot you should then see ...@@ -62,7 +78,7 @@ On your next boot you should then see
## Graphics ## 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 1280x720-60@16 by default, but supports all resolutions that the card
supports (non-16bit modes currently untested) supports (non-16bit modes currently untested)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment