QUOTE(Meanie @ Apr 7 2005, 02:10 AM)
Nice info. Thanks. I am about to get started to compile stuff too so this info is useful.
For your problem, you could just remount the root filesystem as rw, copy gawk to /bin and remount it back to ro
Well that doesn't work since the root filesystem can't be unmounted. It will
say that it is busy. However, perhaps one could restart in single user mode
and do it that way. I have found a software method of solving the problem
by going into the Makefile and setting AWK=/usr/local/bin/gawk and it seems
to work. I had to change several of the makefiles down the directory tree
All said, I am really starting to love this little zaurus. It really is just like a
full sized laptop. I have a couple more questions that someone may be
able to help with though:
1) How do I create an ipk package file when I have successfully compiled
something so that I can let other people use that rather than spend the
hours it has taken me to modify the source code and makefiles.
2) What is the equivalent of x11 on this machine so that I can tell the
software to use the gui.
One more hint: If you are connecting your zaurus to your other linux
box via a usb cable you will need the following info:
First you connect the usb cable. The zaurus will give you two messages
it will first say `AlertUSBStorage'. Just click `Yes' here. Then it will say
`AlertUSBStorageConnection', here you have to unplug the usb from the
zaurus, then click `ok' and then plug the usb back into the zaurus. Then
you will get a screen indicating that it is communicating with your pc.
It is crazy that it needs this kludge, it is like the old TV that
you had to bang your fist on the side to get a clear picture - but whatever
works I guess.
On the pc you will need to type `dmesg' to find out what device has been
assigned to the zaurus. It will be a usb mass storage device. If you have
ever used flash cards or usb digital cameras on your pc then you will
have all of the necessary kernel modules already running on your pc
and should have no problem (otherwise you will need to `modprobe usbstorage').
So once you have the correct device assignment you can mount the
zaurus by (for example with /dev/sda):
mount -t vfat /dev/sda /mnt/zaurus
if you wanted to mount it on /mnt/zaurus (which you should create first).
Then, and this is IMPORTANT, you should always transfer files to the
zaurus by copying them to the Documents directory. In other words
if I wanted to copy a file `foo' to the zaurus I would type
cp foo /mnt/zaurus/Documents/
The reason is that if you copy it straight to /mnt/zaurus you may run
into a problem that I ran into when I first naively tried it. Also make
sure that you unmount BEFORE disconnecting the usb cable and
wait until the umount completes (which may take some time if it has
to finish copying the files). The reason for these things is that hdd3 on
the zaurus is a vfat system (which you may want to reformat to an ext2
by mkfs.ext2, but then you won't be able to mount on a windows pc).
So I didn't do the above and ended up corrupting the FAT table on hdd3.
So I had to reboot into single user mode (the manual tells how to do this
by taking out the battery and performing some acrobatic gymnastics with
the keyboard and the battery) then I formatted /dev/hda3 by
followed by a reboot and reinstalling all my stuff. argh. So the moral is,
be carefull when transferring files and don't rush things.
There are many other things I could say, but it is hard to remember exactly
what kludges you used over the course of about 20 hours. If I have to use them
more than once I will mention them. (for example the coreutils preinstalled
doesn't contain many of the programs that compiling with make sometimes
requires, like cmp and comm and ed. So I had to find them or else change the
source code to use something else, like sed).