Koolu ported mtd-utils when they were working on Freerunner. Their
work is currently hosted as part of the Android on Freerunner project
at:
http://gitorious.org/android-on-freerunner/platform_external_mtd-utils.git

Feel free to use it, and to contribute patches for any problems you
find.

Jim

On May 5, 8:15 am, danny <nalajala.mur...@gmail.com> wrote:
> 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: android-porting+unsubscr...@googlegroups.com
> website:http://groups.google.com/group/android-porting

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to