Archive for February, 2010|Monthly archive page

OpenCore PV logging

After searching a lot over the Internet to capture the logs for Packet Video Multimedia framework, the following things are concluded, though I am still not able to capture the log in pvlogger.txt file.

Most of the people mentioned to compile with ENABLE_PV_LOGGING=1 option compilation for Android platform with /sdcard/pvlogger.txt. It was also mentioned to write [Log Level] [Node to log] in the pvlogger.txt. Under the heaven, I was still clueless to see a single log.

The most important part of source exists in external\opencore\android\thread_init.cpp, where it checks PVLOGGER_INST_LEVEL and then includes android_logger_config.h which has the logger class. Therefore, add “#define PVLOGGER_INST_LEVEL 5″ in this file and create pvlogger.txt file with 8 in it. You can see the log. Enjoy!!

Android’s system, data and cache images

When the Android platform is compiled, it generally creates .img files for system, data and cache.

It happens that in the phone these images are not directly downloaded directly, but the phone flash memories are formatted in different kind of file system i.e YAFFFS, RFS, XSR. It seems RFS, XSR are proprietary file systems, but there is TinyBML which is open source and present in Boot loader as well in the Kernel.

So these .img images must be converted to the compatible file system format and then it should be downloaded.

Get more info on
RFS
TFS4
XSR

Android src compiling process

It’s first of Android kind though not a basic step for Android.

Android build system is quite clean and easy to understand, but there is an obvious dependency to compile platform source and Kernel source.

The OEM usually keeps their code including init.rc in the vendor directory. So when we compile the platform source, the product specific directory is created with root and system directory.

The root directory has init.rc which must be used in the ramdisk image in order to execute it when the root file system is mounted.

Because of this obvious dependency, we usually compile platform, kernel and boot in that order.

Follow

Get every new post delivered to your Inbox.