Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker way

On Arch Linux, install Docker and start it:

sudo pacman -S docker-buildx docker nbd
sudo systemctl enable --now docker

Create the Docker image:

docker build -t inkbox_imgtool .

Before launching imgtool, run this:

sudo rmmod nbd
sudo modprobe nbd max_part=16

Run it (yes, imgtool should be at /home/build/inkbox/imgtool/):

docker run -it --rm --privileged --cap-add=ALL -v /home/build/inkbox/:/home/build/inkbox/ -v /dev:/dev inkbox_imgtool

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

Then, run, for example:

./before_run.bash && ./clean.bash && KERNELDIR=/home/build/inkbox/kernel/ ./release.bash n306 /home/build/inkbox/imgtool/private.pem /home/build/inkbox/imgtool/public.pem root

Notes:

  • If /dev/nbd0p1 doesn't appear, it's bad

Links (that could help):

About

Reproducible image builder for InkBox OS

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages