[U-Boot-Users] Boot the kernel from a JFFS2 filesystem

Joakim Tjernlund joakim.tjernlund at lumentis.se
Thu Mar 6 09:53:07 CET 2003


> > I guess, Jocke had his /tools compiled long time ago and only
> > tried PPC-specific stuff, that seems to work.
> 
> But I guess he did run a MAKEALL before submitting the patch?

I tried a few boards, but not all and it compiles with a a lot of ISO bla bla warnings.
Looking at now I see that is't wrong for the tools part:

make[1]: Entering directory `/usr/local/src/u-boot/tools'
gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0x40000000 -DUSE_HOSTCC -O -c crc32.c
In file included from crc32.c:14:
../include/asm/types.h:18: warning: ISO C89 does not support `long long'
../include/asm/types.h:19: warning: ISO C89 does not support `long long'
In file included from ../include/linux/byteorder/big_endian.h:11,
                 from ../include/asm/byteorder.h:82,
                 from crc32.c:15:
../include/linux/byteorder/swab.h: In function `__fswab64':
../include/linux/byteorder/swab.h:133: warning: ISO C89 forbids long long integer constants
[SNIP]
../include/linux/byteorder/swab.h: In function `__swab64p':
../include/linux/byteorder/swab.h:138: warning: ISO C89 forbids long long integer constants
[SNIP]
crc32.c: In function `crc32':
crc32.c:163: warning: ISO C forbids use of cast expressions as lvalues
crc32.c:187: warning: ISO C forbids use of cast expressions as lvalues

The ISO warning are harmless caused by the -pedatic option and I don't know how
to get rid of these without removing the option.

This part is wrong though:
In file included from ../include/linux/byteorder/big_endian.h:11,
                 from ../include/asm/byteorder.h:82,
                 from crc32.c:15:

This could be solved with some (ugly):
#ifdef __powerpc__
#include <asm-ppc/byteorder.h>
#elif ....

I still don't understand how this can compile. I use RH7.2 and gcc 2.96 RH.
My U-boot is not completly up to date(0.2.1) but I don't think that is a problem.

 Jocke 








More information about the U-Boot mailing list