Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building Instructions #63

Open
jleightcap opened this issue Dec 20, 2023 · 4 comments
Open

Building Instructions #63

jleightcap opened this issue Dec 20, 2023 · 4 comments

Comments

@jleightcap
Copy link

Hello!

I was looking to independently re-build the binaries available at http://23.163.0.39/bundles/inkbox/native/. Are there any available instructions for producing these images?

Thanks!

@tux-linux
Copy link
Contributor

Hi, I don't have time right now, but maybe you can have a look at this : https://github.com/Kobo-InkBox/imgtool

@Szybet
Copy link
Collaborator

Szybet commented Dec 20, 2023

if you encounter init building problems, add:

INIT_GCC="/home/build/inkbox/kernel/toolchain/armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc" INIT_STRIP="/home/build/inkbox/kernel/toolchain/armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-strip"

@hrdl-github
Copy link

Some additional notes on building the image for the n249 / Clara HD:

  • libkobo.so.2 should be replaced by libkobo.so built from https://github.com/Quill-OS/qt5-kobo-platform-plugin/tree/master using https://github.com/Quill-OS/scripts. After setting up the latter said library can be built by running qos_qmake . && make -j1 and replacing the libkobo.so.2 in the rootfs.
  • The podman/docker approach works well to accommodate for hard-coded paths
  • Consider replacing the waveform file initrd/busybox-1.32.1/_install-n249/opt/firmware.sqsh
  • The kernel repository should be checked out to /home/build/kernel due to a hard-coded path. Also checkout its submodules.
  • kernel: remove the "input device hackery" in the checked-out inkbox-os-init repository
  • In imgtool: sleep 1 after qemu-nbd --connect
  • Before building kernel / image: install flex bison libssl-dev
  • Make sure that all toolchain paths are correct. I ended up unifying all occurrences in imgtool: release.bash and kernel: scripts/build_kernel.sh (see previous comment)
  • rootfs: restore release.sh deleted in Quill-OS/rootfs@f1003bc

@Szybet
Copy link
Collaborator

Szybet commented Jul 6, 2024

Thanks a lot for this overview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants