All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] help on a compiler error in include/asm/system.h
@ 2009-11-19  5:44 Lv Terry-R65388
  0 siblings, 0 replies; 2+ messages in thread
From: Lv Terry-R65388 @ 2009-11-19  5:44 UTC (permalink / raw
  To: u-boot

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=0x97800000
-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
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] help on a compiler error in include/asm/system.h
@ 2009-11-19  8:14 Stefan Roese
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2009-11-19  8:14 UTC (permalink / raw
  To: u-boot

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:

<snip>

>     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: office at denx.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-19  8:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19  8:14 [U-Boot] help on a compiler error in include/asm/system.h Stefan Roese
  -- strict thread matches above, loose matches on Subject: below --
2009-11-19  5:44 Lv Terry-R65388

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.