[OpenAFS] Cross compile for ARM using Debian

Armin Burchardt armin@its-hb.de
Mon, 28 Jul 2008 20:19:47 +0200


Hi!

On Sun, Jul 27, 2008 at 10:27:07AM -0400, Jason Edgecombe wrote:
> options, run a native compile on the linkstation or install scratcnbox  

Ok, the native compile went quite well.
Since the bison/yacc seems to be broken in the native compiler
i executed the commands on my PC and copied the created files
to the linkstation:
$ src/comerr$ bison -y error_table.y -o error_table.c
$ src/afs$ gencat --new afszcm.cat afs_trace.msf
$ src/uss$ bison -y -d ./grammar.y
Did this break something?

But i am not able to create volumes on the linkstation:

| # vos create localhost a test18 -lo
|
| Could not change quota, continuing...
|   : No such file or directory
|   Failed to end the transaction on the volume test18 536871068
|   : No such file or directory
|   Error in vos create command.
|   : No such file or directory

VolserLog (another volume, but same problem):
| Mon Jul 28 21:04:22 2008 <LocalAuth> is executing CreateVolume 'test19'
| Mon Jul 28 21:04:22 2008 VCreateVolume:  Problem iopen inode
| 576460748008491876 (err=2)
| Mon Jul 28 21:04:22 2008 1 Volser: CreateVolume: Unable to create the
| volume; aborted, error code 103
| Mon Jul 28 21:04:22 2008 : Software caused connection abort

In /vicepa an 0-Byte-File V0536871071.vol was created. I think it should
be 76 bytes.

SalvageLog:
| 07/28/2008 21:03:16 SALVAGING VOLUME 536871068.
| Unable to open inode (Volume information) of volume header (error = 2)
| 07/28/2008 21:03:16 SALVAGING OF PARTITION /vicepa COMPLETED


Partinfo looks wrong (946GB is correct):
| # vos partinfo localhost -lo
| Free space on partition /vicepa: 945880796 K blocks out of total
| 3006856010202844

I built openafs-cvs with
./configure --enable-namei-fileserver --prefix=/usr/local/openafs \
            --with-afs-sysname=arm_linux26 --enable-demand-attach-fs \
             --enable-bos-restricted-mode --enable-debug \
             --disable-optimize
(added the last two for a second try)

Armin

PS: Got the native compiler from
http://buffalo.nas-central.org/download/ALL_ARM9/DevelopmentTools/NativeToolchains/