mt6582修改调试串口为UART_4,直接进shell了
/emmc@usrdata: recovering journal
/emmc@usrdata: 1022/180224 files (5.5% non-contiguous), 42668/713472 blocks
tune2fs 1.41.14 (22-Dec-2010)
rm failed for /data/lost+found/*, No such file or directory
/emmc@cache: recovering journal
/emmc@cache: clean, 12/8064 files, 1543/32256 blocks
tune2fs 1.41.14 (22-Dec-2010)
rm failed for /cache/lost+found/*, No such file or directory
/emmc@protect_f: recovering journal
/emmc@protect_f: 14/576 files (0.0% non-contiguous), 1077/2304 blocks
tune2fs 1.41.14 (22-Dec-2010)
/emmc@protect_s: recovering journal
/emmc@protect_s: 13/576 files (0.0% non-contiguous), 1076/2304 blocks
tune2fs 1.4[ 7.582493]-(0)[0:swapper/0][power/PMIC] [MT6323_PMIC_eint_irq] receive interrupt
[ 7.584325]-(0)[0:swapper/0][Power/PMIC] [wake_up_pmic]
1.[ 7.585691] (1)[25:pmic_thread_kth][Power/PMIC] [pmic_thread_kthread] running
[ 7.587462] (1)[25:pmic_thread_kth][Power/PMIC]
[ 7.587561] (2)[1:init]init: command r=0 ' exec /sbin/tune2fs -O has_journal /emmc@protect_s'
[ 7.587872] (2)[1:init]init: Chip Vendor is Hynix.
[ 7.587894] (2)[1:init]init: Disable Discard Feature for Vendor : Hynix.
4 [ 7.593593] (1)[25:pmic_thread_kth][INT] int_status_val_0=0x400
[ 7.595059] (1)[25:pmic_thread_kth][Power/PMIC] [chrdet_int_handler]....
[ 7.596297] (3)[1:init]init: command r=0 ' mount ext4 /emmc@pr2tect_s /protect_s noatime nosuid nodev wait coMMIt=1,nodelalloc,noauto_da_allo'
[ 7.596441] (3)[1:init]BOOTPROF: 7596.435846:INIT:PROTECT:Mount_END
[ 7.596506] (3)[1:init]init: command r=0 ' write /proc/bootprof INIT:PROTECT:Mount_END'
[ 7.596550] (3)[1:init]init: processing action 0x43cb8 (fs)
2-Dec-2[ 7.605049] (1)[25:pmic_thread_kth][Power/Battery]
[ 7.606263] (1)[25:pmic_thread_kth][do_chrdet_int_task] charger exist!
010)
root@sanstar82_wet_jb5:/ # ls
acct
cache
config
d
data
default.prop
dev
emmc@android
emmc@cache
emmc@ebr1
emmc@protect_f
emmc@protect_s
emmc@sec_ro
emmc@usrdata
enableswap.sh
etc
factory_init.project.rc
factory_init.rc
fstab
init
init.aee.customer.rc
init.charging.rc
init.goldfish.rc
init.Modem.rc
init.project.rc
init.protect.rc
init.rc
init.ssd_nomuser.rc
init.trace.rc
init.usb.rc
init.xlog.rc
meta_init.modem.rc
meta_init.project.rc
meta_init.rc
mnt
proc
protect_f
protect_s
res
root
sbchk
sbin
sdcard
storage
sys
system
ueventd.goldfish.rc
ueventd.rc
vendor
如上,MT6582修改调试串口为UART_4,为什么会直接进shell呢?
这个问题有朋友遇到过么?
我只是想把调试串口从UART_1改为UART_4, 修改了如下两个地方:
1. cust_bldr.mak 修改: CFG_UART_LOG :=UART4 CFG_LOG_BAUDRATE :=460800 #921600
2. mediatek\config\mt6582\autoconfig\kconfig\platform
CONFIG_CMDLINE="console=tty0 console=ttyMT3,921600n1 root=/dev/ram vmalloc=496M slub_max_order=0 slub_debug=O " 改为:
CONFIG_CMDLINE=console=ttyMT3,460800n1 root=/dev/ram vmalloc=496M slub_max_order=0 slub_debug=O "
完全看不懂
我是小白,不知道这是什么
这个不需要改
2. mediatek\config\mt6582\autoconfig\kconfig\platform
CONFIG_CMDLINE="console=tty0 console=ttyMT3,921600n1 root=/dev/ram vmalloc=496M slub_max_order=0 slub_debug=O " 改为:
CONFIG_CMDLINE=console=ttyMT3,460800n1 root=/dev/ram vmalloc=496M slub_max_order=0 slub_debug=O "
我们在82平台用了两路UART
其中的一路就是原本的打LOG的那一路
,我们两路都是OK的
CONFIG_CMDLINE="console=tty0 console=ttyMT3,921600n1 root=/dev/ram vmalloc=500M slub_max_order=0 slub_debug=O "改成
CONFIG_CMDLINE="console=tty0 console=null,921600n1 root=/dev/ram vmalloc=500M slub_max_order=0 slub_debug=O "
CONFIG_MTK_SERIAL_CONSOLE=y改成
CONFIG_MTK_SERIAL_CONSOLE=n
还有就是不做log用的uart口,不一定是921600 ,比如MTK的非LOG口的波特率一般是9600
你要修改成你需要的波特率的,这个9600是MTK按照以前功能机沿用过来的,没有改而已。
还有可以试着把UART权限开的大点
我在init.rc里把四个UART口设置权限为0777,不过UART3被其他地方给修改为0660
这地方 console=tty0 console=null 怎么这样设置啊,这是串口几?
我这个设置是去掉uart默认到打印信息功能,就是console不指定端口
我如果打印到串口4,应该还是console=tty0 console=ttyMT3, 这样设置吧?
这个不需要改,只需要在cust_blrd.mak里更改就可以里
小白。……。……。……。……。……。…………
MARKING一个,说不准哪天用到。
Mark,下次用得到。
