Debugging yaffs2 in Android

45 views
Skip to first unread message

Sandeep

unread,
Nov 6, 2010, 8:06:39 PM11/6/10
to TaintDroid
Hi,

I have built Android source and after that emulator runs fine. After
changing yaffs2 debug messages to track how data is stored by yaffs2,
I built entire android source. But, the debug messages didn't appear
in dmesg. (I took care that all debug messages appear at runtime by
echo all > /proc/yaffs2). I want to know how did you build yaffs2
alone after making changes to it? In my case, it seems that my changes
are not at all getting built. Please help me with my queries.

Thanks a lot.

Regards,
Sandeep

William Enck

unread,
Nov 7, 2010, 1:00:36 PM11/7/10
to taint...@googlegroups.com
Sandeep,

The Android build process does not include the kernel. You need to build that separately. Once you build the kernel, you need to manually copy the files into the correct location. Our instructions at appanalysis.org describe how to do that for the Nexus One. For the emulator, you can just specify the kernel path with the -kernel command line argument. Note that you will want to use the "goldfish" branch (and config) for the kernel/common Android git repository.

-Will

--
William Enck
PhD Candidate
Department of Computer Science and Engineering
The Pennsylvania State University
en...@cse.psu.edu

Sandeep

unread,
Nov 7, 2010, 4:46:07 PM11/7/10
to TaintDroid
Hi William,

Thanks a lot for responding. That was very helpful.
Working emulator is good enough for me, I am not building for a real
device.
I have a few quick questions:
1. Do i need to give -kernel option to 'make'?
2. The kernel path at my machine is shown as mydroid/prebuilt/android-
arm/kernel/vmlinux-qemu. Is that what I need to use?
3. How do i build yaffs module next time without needing to build
entire kernel?
4. I have synced the latest repo. Where is kernel/common located
inside android source?

Any help is highly appreciated. Thanks a lot.

Regards,
Sandeep
> e...@cse.psu.edu

Sandeep

unread,
Nov 8, 2010, 2:31:23 PM11/8/10
to TaintDroid
Hi William,

I got it all working. No more issues.
Thanks a lot for all the useful pointers to get required info.

Regards,
Sandeep
Reply all
Reply to author
Forward
0 new messages