yes, character device file name paths are correct. Even if device is
not present at-least i should get the error message on the console!!!
but now i am not seeing any error messages too.Am i missing any
specific flags in CFLAGS and LDFLAGS ? do i need to set
LD_LIBRARY_PATH? now it is pointing to /system/lib.

On Wed, May 5, 2010 at 8:44 PM,  <[email protected]> wrote:
> Are you using the correct device files? On my android system the mtd 
> character devices are under /dev/mtd/ and the block devices are under 
> /dev/block/.
>
> ---- danny <[email protected]> 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: [email protected]
>> website: http://groups.google.com/group/android-porting
>
>



-- 
Regards,
Murali N

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

Reply via email to