Hi,

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:
http://shakthimaan.com/downloads/hurd/toolchain/Makefile

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
    make

3. To test the built target files, I used Debian GNU Hurd image with
qemu. Follow this tutorial to build the image:
http://eyeside.net/hurd/Hurd-on-QEMU.html
http://www.bddebian.com/~wiki/hurd/running/qemu/

The partition on the image looks likes this (output of "file
debian-hurd-qemu.img"):

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

Regards,

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com


_______________________________________________
Bug-hurd mailing list
Bug-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to