During debugging, it is needed to communicate with the technical support staff. The correct Log and record issues, can effectively improve the efficiency of the problem solving. Mainly, we have some requirements:
In case of problems, you need to get the log from kernel's lib. How to get kernel log?:dmesg > /tmp/time.dmesg. method to get the lib log:logcat -c time > /tmp/time.log,run the command approximately for 3 seconds, then ctrl+c in order to stop it(logcat command is located under sdk tools directory)。
About Nor Flash,You can save Flash's content. Method:
dd if=/dev/mtd0 of=/tmp/mtd0
dd if=/dev/mtd1 of=/tmp/mtd1
dd if=/dev/mtd2 of=/tmp/mtd2
dd if=/dev/mtd3 of=/tmp/mtd3
cd tmp
cat mtd0 mtd1 mtd2 mtd3 > flash.bin
rm mtd0 mtd1 mtd2 mtd3
take the flash.bin out
In case of restoration, erase completely the Nor Flash from u-boot, then flash (flash.bin) again and write it to the Nor Flash.
Developers can dynamically link application to libimp.so, send file systems and dynamic applications to ISVP support team. So we can conduct in-depth Debug, and have a better angle to solve problems.