Skip to content

Instantly share code, notes, and snippets.

@thedward
Last active March 11, 2024 01:09
Show Gist options
  • Save thedward/062621d93237c1b92ecff2a85576f8f9 to your computer and use it in GitHub Desktop.
Save thedward/062621d93237c1b92ecff2a85576f8f9 to your computer and use it in GitHub Desktop.
Setting up Kobo Development Tools on Debian Jessie

Setting up Kobo Development Tools on Debian Jessie

So far, most of this is from https://wiki.debian.org/CrossToolchains.

Create the file /etc/apt/sources.list.d/crosstools.list with the following contents:

deb http://emdebian.org/tools/debian/ jessie main
deb-src http://emdebian.org/tools/debian/ jessie main

Add the Repo Key

curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | sudo apt-key add -

Enable armhf Architecture

sudo dpkg --add-architecture armhf
sudo apt-get update
apt-get install build-essential crossbuild-essential-armhf cross-gcc-dev \
  g++-arm-linux-gnueabihf gcc-arm-linux-gnueabihf nasm

Unable to find expected entry 'main/binary-armhf/Packages'

If you get an error like:

Unable to find expected entry 'main/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

Then modify the relevant file(s) in /etc/apt/sources.list.d/ by adding [arch=amd64] between deb and the repo URI — changing arm64 to your actual architecture if necessary.

For example, given:

deb https://software.fancy/debian jessie main

Change it to read:

deb [arch=amd64] https://software.fancy/debian jessie main

Using the Tools

I'm working on it.

Other Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment