Re: [U-Boot] help on a compiler error in include/asm/system.h

2009-11-19 Thread Stefan Roese
On Thursday 19 November 2009 you write:
> Now our arm board is based on u-boot v2009.08 and I need to use
> bifs.
>
> So I replace some files from u-boot's latest version.
>
> They are:
>
> fs/ubifs/ubifs.c
> fs/ubifs/ubifs.h
> include/asm-arm/bitops.h
> include/linux/bitops.h
>
> and define the following configs in config file:
>
> #define CONFIG_CMD_UBI
> #define CONFIG_CMD_UBIFS
> #define CONFIG_RBTREE
> #define CONFIG_LZO
>
> When compiling, I encountered an error:



> Is there any other files I need to merge to resolve this error?

Yes, there must be something missing. I just tried compiling UBIFS on ARM on 
the latest U-Boot version from the git repository. I used the "apollon" target 
and added the following defines:

#define CONFIG_CMD_UBIFS
#define CONFIG_LZO

Works like a charm. No problems. I suggest you use the latest version of U-
Boot version on your board as well.

Cheers,
Stefan

--
DENX Software Engineering GmbH,  MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: off...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] help on a compiler error in include/asm/system.h

2009-11-18 Thread Lv Terry-R65388
Hi u-boot experts,
 
Now our arm board is based on u-boot v2009.08 and I need to use
ubifs.
 
So I replace some files from u-boot's latest version.
 
They are:
 
fs/ubifs/ubifs.c
fs/ubifs/ubifs.h
include/asm-arm/bitops.h
include/linux/bitops.h
 
and define the following configs in config file:
 
#define CONFIG_CMD_UBI
#define CONFIG_CMD_UBIFS
#define CONFIG_RBTREE
#define CONFIG_LZO
 
When compiling, I encountered an error:
 
 
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnuea
bi/bin/arm-none-linux-gnueabi-gcc  -g  -O0  -fno-strict-aliasing
-fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x9780
-I/home/r65388/uboot-v2009.08/uboot-imx/include -fno-builtin
-ffreestanding -nostdinc -isystem
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnuea
bi/lib/gcc/arm-none-linux-gnueabi/4.1.2/include -pipe  -DCONFIG_ARM
-D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5
-Wall -Wstrict-prototypes -fno-stack-protector   -o cpu.o cpu.c -c
In file included from cpu.c:36:
/home/r65388/uboot-v2009.08/uboot-imx/include/asm/system.h:71: error:
expected identifier or '(' before 'asm'
make[1]: *** [cpu.o] Error 1
make[1]: Leaving directory
`/home/r65388/uboot-v2009.08/uboot-imx/cpu/arm_cortexa8'
make: *** [cpu/arm_cortexa8/libarm_cortexa8.a] Error 2
 
Is there any other files I need to merge to resolve this error?
 
Thanks~~
 
Yours
Terry
 
 General Business Information
 Freescale Internal Use Only
 Freescale Confidential Proprietary
 
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot