[Voyage-linux] compile for voyage 0.4
Paul Hays
(spam-protected)
Fri Jan 11 03:48:24 HKT 2008
I've been running Voyage in a qemu virtual machine for this. The host
system is Ubuntu. See
http://wiki.voyage.hk/dokuwiki/doku.php?id=voyage_in_qemu&s=qemu
The first time I started my Voyage image in qemu, I set the timezone,
then configured Voyage so it will use qemu's built-in network support:
remountrw
tzconfig
cd /etc
sed -e s/^/#/ dnsmasq.more.conf >aaa
mv aaa dnsmasq.more.conf
shutdown -h now
This change let the Voyage system uses my LAN as if qemu were a NAT device.
Executing the following script on the host boots Voyage and enables ssh:
# boot big_voyage image as client OS inside qemu emulator
# -m dedicates 512M of RAM to the emulator
# -redir lets us connect from host to client
# with "ssh -p 2222 root at 127.0.0.1"
qemu -hda big_voyage.img -nographic -no-kqemu \
-m 512 -redir tcp:2222::22
(Ssh access is useful because qemu's emulated serial console drops many
characters when displaying any big block of text.)
The time-of-day clock in Voyage is very inaccurate, causing difficulty
with "make" and file timestamps. (The emulated CPU seems to drop many
clock interrupts). I tried to solve that using NTP, but it seldom
managed to synchronize the clock. As a partial fix, I added jobs to
/etc/crontab in Voyage to set its software clock from the hardware clock
twice a minute. On the host, I used "hwclock --systohc" to match the
real hardware clock to the host's software clock. (I'd love to hear
about a better solution that is actually in use!)
I edit my program source files on the host machine. They live in a
directory tree that the host exports for access by nfs-over-ssl. The
directory is mounted below /rw in Voyage, for convenient access by its
compiler. See http://www.samag.com/documents/s=4072/sam0203d/sam0203d.htm.
For tips on installing tools into Voyage, see
http://list.voyage.hk/pipermail/voyage-linux/2007-April/001474.html
Cheers
- Paul Hays
Kim-man 'Punky' Tse wrote:
> You may need debian etch as your development environment.
>
> Regards,
> Punky
>
>
> Giovanni Di Stasi wrote:
>> Hi,
>> I need to compile some programs and copy them on a soekris board with
>> voyage linux 0.4.
>> My work pc is an ubuntu box. If I compile a program on my work pc and
>> copy it on the board, I get a library error (version mismatch).
>> Substantially, I think I need the voyage toolchain for my ubuntu box.
>> Where can I get it, or how can the work be done otherwise?
>>
>> Thanks.
>>
>> _______________________________________________
>> Voyage-linux mailing list
>> Voyage-linux at list.voyage.hk
>> http://list.voyage.hk/mailman/listinfo/voyage-linux
>>
>
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
>
>
More information about the Voyage-linux
mailing list