[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using the cross built toolchain

From: Shakthi Kannan
Subject: Using the cross built toolchain
Date: Mon, 26 Nov 2007 23:15:24 +0530


1. I have copied the built toolchain to /usr/local/hurd (without the
src/ directory), and have been able to build simple hello world file
with the toolchain using a standalone Makefile.

The Makefile is available here:

Kindly upload the Makefile to the wiki. Can the toolchain be made
available at the wiki site for others to try it?

2. The same toolchain has been used to build an autotools source code
package (gnumach), using the following steps from the sources
top-level directory:

    export CC=/usr/local/hurd/bin/i586-pc-gnu-gc
    export LDFLAGS=-L/usr/local/hurd/sys_root/lib
    ./configure --host=i586-pc-gnu

3. To test the built target files, I used Debian GNU Hurd image with
qemu. Follow this tutorial to build the image:

The partition on the image looks likes this (output of "file

debian-hurd-for-qemu.img: x86 boot sector, GRand Unified Bootloader;
partition 1: ID=0x83, active, starthead 1, startsector 63, 29169
sectors; partition 2: ID=0x83, starthead 0, startsector 29232, 1406160
sectors; partition 3: ID=0x82, starthead 15, startsector 1435392,
127008 sectors, code offset 0x48

You can transfer the files to the image by mounting it locally:

    mount debian-hurd-qemu.img /mnt -o loop,offset=14966784

To mount the boot partition (to replace gnumach.gz), use:

    mount debian-hurd-qemu.img /test -o loop,offset=14966784

After transfering the files, just unmount the partition and test with qemu:

  qemu debian-hurd-qemu.img



Shakthi Kannan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]