Skip to content
README.md 890 B
Newer Older
Szybet's avatar
Szybet committed
On Arch, install docker and start it:
```
sudo pacman -S docker-buildx docker
sudo systemctl enable --now docker
```

Create the docker image:
```
docker build -t inkbox_imgtool .
```

Szybet's avatar
Szybet committed
Before running, run this:
```
sudo rmmod nbd && sudo modprobe nbd max_part=16
```
Szybet's avatar
Szybet committed

Szybet's avatar
Szybet committed
Run it ( yes, imgtool should be at `/home/build/inkbox/imgtool/` ):
Szybet's avatar
Szybet committed
```
Szybet's avatar
Szybet committed
docker run -it --rm --privileged --cap-add=ALL -v /home/build/inkbox/:/home/build/inkbox/ inkbox_imgtool
Szybet's avatar
Szybet committed
```

You propably want your own keys, run this:
```
openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -out public.pem -outform PEM -pubout
```

and run, for example:
```
Szybet's avatar
Szybet committed
./before_run.bash && ./clean.bash && KERNELDIR=/home/build/inkbox/ ./release.bash n306 public.pem root
Szybet's avatar
Szybet committed
```

Szybet's avatar
Szybet committed
notes:
- if `/dev/nbd0p1` doesn't appear, try a fev times more...

Szybet's avatar
Szybet committed
links:
- https://www.tumblr.com/dummdida/117157045170/modprobe-in-a-docker-container