How to enable the uart log in user version
2015-02-09 18:28
369 查看
firstly:
To find the string DEBUG_KERNEL_CMDLINE
grep DEBUG_KERNEL_CMDLINE in yourproject root directory.
maybe in yourprojector/device/mtk/BoardConfig.mk file. There is the DEBUG_KERNEL_CMDLINE string.
secondly:
do as the eng version to modify the DEBUG_KERNEL_CMDLINE 's string
such as
DEBUG_KERNEL_CMDLINE:= loglevel=0
modify to
DEBUG_KERNEL_CMDLINE:= console=ttyS0,115200, loglevel=8
thirdly:
make bootimage
finnally:
flash the the new boot.img
fastboot flash boot boot.img
By the way:
if you have the only boot.img
try to use the binary editor to add the ' console=ttyS0,115200,loglevel=8 ' string.
payattention: you must manually type the above string, should not copyand paste
then save and fastboot flash bootboot_modify.img
after do that, you can get the kernel log as the eng version in uart port.
To find the string DEBUG_KERNEL_CMDLINE
grep DEBUG_KERNEL_CMDLINE in yourproject root directory.
maybe in yourprojector/device/mtk/BoardConfig.mk file. There is the DEBUG_KERNEL_CMDLINE string.
secondly:
do as the eng version to modify the DEBUG_KERNEL_CMDLINE 's string
such as
DEBUG_KERNEL_CMDLINE:= loglevel=0
modify to
DEBUG_KERNEL_CMDLINE:= console=ttyS0,115200, loglevel=8
thirdly:
make bootimage
finnally:
flash the the new boot.img
fastboot flash boot boot.img
By the way:
if you have the only boot.img
try to use the binary editor to add the ' console=ttyS0,115200,loglevel=8 ' string.
payattention: you must manually type the above string, should not copyand paste
then save and fastboot flash bootboot_modify.img
after do that, you can get the kernel log as the eng version in uart port.
相关文章推荐
- use noscript html tag when user disable the javascript in browser, guide user how to enable the js in different browser and retu
- How to enable the root user in Mac OS X Lion
- 如何Eclipse改变模板中${user}变量,How to change the variable ${user} used in the eclipse templates.
- How to rollback to the previous version in svn
- How to spawn a process that runs under the context of the impersonated user in Microsoft ASP.NET pages
- How to enable sa user account in SQL Server 2005
- how to enable the Accessibility in the app
- How to enable the Xdebug debugger in Zend Studio for Eclips
- HowTO: Create an Event Log Source in code, without the Permission errors
- 【转】Enable ARC in a Cocos2D Project: The Step-by-Step-How-To-Guide Woof-Woof!
- How-to: Enable User Authentication and Authorization in Apache HBase
- XAF How to enable LayoutView mode in the GridControl in List Views
- How to enable USB selective suspend and system wake in the UMDF driver for a USB device
- How to allow a user to click on TextBlocks which return an integer ID in the click handler
- How-to: Enable User Authentication and Authorization in Apache HBase
- FW: How to spawn a process that runs under the context of the impersonated user in Microsoft ASP.NET pages
- In RadGrid, How to get the control inside usercontrol
- How to grant access to SQL logins on a standby database when the guest user is disabled in SQL Serve
- How to Refine the Log Retention Settings in XenServer
- How to set the current user on the model instance in the admin: