I have a RK3288 SOC platform and its all AOSP source code(Andorid SDK, NDK, Linux kernel, U-boot).
There is \external\mmc-util\mmc.c in AOSP.
That seems to use ioctl
function to test eMMC device by different eMMC command
I want to build and execute it in the SOC platform.
Refer Adding a new program to build, but enter mm will get following:
fatal error: #include asm-generic/int-ll64.h: No such file or directory
fatal error: #include <linux/mmc/ioctl.h>: No such file or directory
My purpose is designed a program, that can send some eMMC command to test eMMC device in SOC platform.
So I think some .c files in /external/mmc-util folder can help me.
These files use ioctl
function to send command to eMMC device, they are like sample code.
It should be executed through ADB or include in Android system image, isn't?
How can I build(make) it success for running in Android?
I don't know how to solve and do next step.