fadsrom.tgz

kd at flaga.is kd at flaga.is
Thu Dec 9 00:19:02 EST 1999



Maybe add -I../linux/include/linux to the compile line.

At least I have done that..
I have the include directories in the order

-I../linux/include -I../linux/include/linux -I../linux/arch/ppc/8xx_io

K.D.



                                                                                                                                 
                    Ruedi Hofer                                                                                                  
                    <ruedi.hofer@        To:     kd at flaga.is                                                                     
                    ascom.ch>            cc:     linuxppc-embedded at lists.linuxppc.org                                            
                                         Subject:     Re: Re: fadsrom.tgz                                                        
                    12/08/99                                                                                                     
                    01:01 PM                                                                                                     
                                                                                                                                 
                                                                                                                                 





Thanx for the reply!

Further troubles were while compiling:

powerpc-linux-gcc -D__KERNEL__ -I -O2 -mcpu=860 -I../linux/include
-I../linux/arch/ppc/8xx_io -D__powerpc__ -DMHZ_50 -DFADS_860
-D__KERNEL__ -DDATA_MEM_ADDR=0x00010000 -DCONFIG_8xx -fsigned-char
-msoft-float  -pipe -fno-builtin -ffixed-r2 -Wno-uninitialized
-mmultiple -mstring   -c super.c -o super.o
super.c: In function `read_sb':
super.c:136: structure has no member named `s_rename_lock'
super.c:137: structure has no member named `s_rename_wait'
make: *** [super.o] Error 1


I commented lines 136, 137 out. Compiling now works fine, but linking
????

powerpc-linux-ld -T ppcrom.lds -Ttext 0xfe000000 -Tdata 0x00010000
-Bstatic start.o main.o serial.o traps.o vsprintf.o ctype.o string.o
memstuff.o cflash.o partition.o super.o inode.o d
ir.o ppcstring.o extable.o -o fadsrom
super.o: In function `read_sb':
super.o(.text+0xb4): undefined reference to `__fswab16'
super.o(.text+0xd4): undefined reference to `__fswab16'
super.o(.text+0x124): undefined reference to `__fswab32'
super.o(.text+0x13c): undefined reference to `__fswab32'
super.o(.text+0x170): undefined reference to `__fswab32'
super.o(.text+0x1d4): undefined reference to `__fswab32'
super.o(.text+0x210): undefined reference to `__fswab16'
super.o(.text+0x228): undefined reference to `__fswab32'
super.o(.text+0x26c): undefined reference to `__fswab32'
super.o(.text+0x284): undefined reference to `__fswab32'
super.o(.text+0x29c): undefined reference to `__fswab32'
super.o(.text+0x2b4): undefined reference to `__fswab32'
super.o(.text+0x310): more undefined references to `__fswab32' follow
super.o: In function `read_sb':
super.o(.text+0x3ac): undefined reference to `__fswab16'
super.o(.text+0x3d0): undefined reference to `__fswab16'
super.o(.text+0x3f4): undefined reference to `__fswab16'
super.o(.text+0x41c): undefined reference to `ffz'
super.o(.text+0x43c): undefined reference to `ffz'
super.o(.text+0x570): undefined reference to `__fswab32'
super.o(.text+0x580): undefined reference to `__fswab32'
make: *** [fadsrom] Error 1


Do you have any idea? Am I using the wrong kernel code? (currently
2.2.13)

Thanx in advance.

--
Best regards

Ruedi Hofer


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list