6577 关闭 fuel_gauge功能,开机直接掉电?
kal_int32 gFG_booting_counter_I_FLAG = 2;
谁遇到过呀!
开到什么地方掉电?
有没有LOG?
kernel 差不多跑完啦!
<7>[ 17.939839] (0)[319:workqueue_trust][319:workqueue_trust] exit
<4>[ 18.810770] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 10, -255!
<4>[ 18.930776] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -8, 10, -256!
<4>[ 19.230808] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -8, 10, -256!
<4>[ 19.291905] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 9, -256!
<4>[ 19.350730] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 9, -256!
<4>[ 19.410700] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 10, -255!
<4>[ 19.890758] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 9, -256!
<4>[ 20.010389] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -8, 10, -257!
<4>[ 20.190651] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 9, -256!
<4>[ 20.311222] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 10, -255!
<4>[ 20.370765] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -8, 10, -256!
<4>[ 20.430417] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 10, -256!
<6>[ 20.637012] (0)[47:bat_thread_kthr][Power/Battery] [fg_get_data_ready_status] Reg[0x6a]=0x6
<6>[ 20.637446] (0)[47:bat_thread_kthr][Power/Battery] [FGADC] fgauge_read_current : FG_CURRENT = d04
<6>[ 20.638002] (0)[47:bat_thread_kthr][Power/Battery] [fg_get_data_ready_status] Reg[0x6a]=0x8
<6>[ 20.638395] (0)[47:bat_thread_kthr][Power/Battery] [FGADC] fgauge_read_current : current(charging) = 5268 mA
<6>[ 20.638465] (0)[47:bat_thread_kthr][Power/Battery] ori current=5268
<5>[ 20.638521] (0)[47:bat_thread_kthr][Power/Battery] [use_chip_trim_value] 4951 -> 4951
<6>[ 20.638589] (0)[47:bat_thread_kthr][Power/Battery] final current=4951 (ratio=94)
最后log
kernel差不多快跑完啦
最后log如下
<7>[ 17.939839] (0)[319:workqueue_trust][319:workqueue_trust] exit
<4>[ 18.810770] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 10, -255!
<4>[ 18.930776] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -8, 10, -256!
<4>[ 19.230808] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -8, 10, -256!
<4>[ 19.291905] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 9, -256!
<4>[ 19.350730] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 9, -256!
<4>[ 19.410700] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 10, -255!
<4>[ 19.890758] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 9, -256!
<4>[ 20.010389] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -8, 10, -257!
<4>[ 20.190651] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 9, -256!
<4>[ 20.311222] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 10, -255!
<4>[ 20.370765] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -8, 10, -256!
<4>[ 20.430417] (0)[44:kworker/0:1][Gsensor] Mapped gsensor data: -9, 10, -256!
<6>[ 20.637012] (0)[47:bat_thread_kthr][Power/Battery] [fg_get_data_ready_status] Reg[0x6a]=0x6
<6>[ 20.637446] (0)[47:bat_thread_kthr][Power/Battery] [FGADC] fgauge_read_current : FG_CURRENT = d04
<6>[ 20.638002] (0)[47:bat_thread_kthr][Power/Battery] [fg_get_data_ready_status] Reg[0x6a]=0x8
<6>[ 20.638395] (0)[47:bat_thread_kthr][Power/Battery] [FGADC] fgauge_read_current : current(charging) = 5268 mA
<6>[ 20.638465] (0)[47:bat_thread_kthr][Power/Battery] ori current=5268
<5>[ 20.638521] (0)[47:bat_thread_kthr][Power/Battery] [use_chip_trim_value] 4951 -> 4951
<6>[ 20.638589] (0)[47:bat_thread_kthr][Power/Battery] final current=4951 (ratio=94)
你将上报电量的地方写死,因为硬件开机条件应当是满足的,可能 是软件上计算出来出了问题。