Start a new topic

Debian 9 Image For Cross Compilation On A TS-7970

Is there a Debian 9 image file available for the TS-7970? This image file is required in order to do cross compilation which uses the chroot/qemu technique as described in this blog post. When the image is mounted the mount path is used as the build root, eg:


# amqp_client.def

# ...

linkerOpts.linux_arm32_hfp = -L/mnt/sbc_image/home/ts_user/rabbitmq_c-0.10.0/lib/arm-linux-gnueabihf



// build.gradle.kts


// ...

kotlin {

    linuxArm32Hfp("linuxArm32") {

        // ...

        compilations.getByName("main") {

            cinterops.create("amqp_client") {

                val amqpClientDir = "/mnt/sbc_image/home/ts_user/rabbitmq_c-0.10.0"

                includeDirs("$amqpClientDir/include")

                // ...

            }

        }

    }

}

1 Comment

Since the question was answered privately in our ticket system, but the question was posted publicly on the forum, I felt this answer might help anyone else with a similar question:

Yes:

Since our images are not raw image files this is bit simpler:
sudo mkdir -p /opt/chroots/stretch/
sudo tar -xf debian-armhf-stretch-latest.tar.bz2 -C /opt/chroots/stretch/
sudo cp /usr/bin/qemu-arm-static /opt/chroots/stretch/usr/bin/
sudo chroot /opt/chroots/stretch/


Login or Signup to post a comment