Hi,
I am trying to compile mtd utils for android for ARM processor.
For test purpose i compiled only a "flash_eraseall" file and trying
to run from the target. While running on the target i am not getting
any error even if i have not pass any argument. Atleast this utility
expects the MTD partition name as a argument.

eg: # ./flash_eraseall (no error message is coming)
        # ./flash_eraseall --help (its displaying the usage prints on
console)
                -----
                -----
        # ./flash_eraseall /dev/mtd1 (its not displaying anything!!!)
                its supposed to print erase status message, if it erases the
partition!!

Please see the compiler options which i have used.

INCLUDE= -I$(DROID)/bionic/libc/arch-arm/include -I$(DROID)/bionic/
libc/include \
         -I$(DROID)/bionic/libc/kernel/common -I$(DROID)/bionic/libc/
kernel/arch-arm \
                 -I$(DROID)/bionic/libm/include

LDFLAGS= -Wl,-rpath-link=$(ALIB),-dynamic-linker=/system/bin/linker -L$
(ALIB) \
                 -nostdlib $(ALIB)/crtend_android.o $(ALIB)/crtbegin_dynamic.o 
-lc

CFLAGS ?= -O2 -g $(INCLUDE)
WFLAGS := -Wall \
$(call cc-option,-Wextra) \
$(call cc-option,-Wwrite-strings) \
$(call cc-option,-Wno-sign-compare)

CFLAGS += $(WFLAGS)

gcc version: arm-eabi-4.4.0 (prebuilt android toolchain)

Can anyone let me know what might be the wrong here?

Thanks for your help

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to