About memtool in Android4.4.3 on MX6Q_SABRE-SDB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

About memtool in Android4.4.3 on MX6Q_SABRE-SDB

跳至解决方案
1,134 次查看
yuuki
Senior Contributor II

Dear all,

We run Android4.4.3 on SABRE-SDB board

We used a patch of memtool for Android4.4.2 to confirm a register value.

We referred to the following URLs.
https://community.freescale.com/message/433774?sr=search&searchId=8ce75354-b615-486c-afc9-c9398c6070...
https://github.com/rabeeh/android-imx6-kitkat/blob/master/platform/external/linux-test.git/0400-ENGR...

We were able to read the value of the Value of OTP Bank1 Word6 register using this memtool.
================================================
memtool -32 0x021bc4e0 1
Reading 0x1 count starting at address 0x021BC4E0
0x021BC4E0:  58F4F869
================================================

However, we do not seem to be able to read Tempsensor Control Register 0 correctly.
================================================
memtool -32 0x020c8180 1
Reading 0x1 count starting at address 0x020C8180
0x020C8180:  00000001
================================================
TEMPMON[19:8] = 0x000 = 0 ????

We seem that this memtool does not work on Android4 .4.3 correctly.

Does the memtool patch for Android4 .4.3 exist?

Would you tell me the procedure and contents when the correction of this patch is necessary?

Best Regards,
Yuuki

标签 (2)
标记 (2)
0 项奖励
1 解答
739 次查看
yuuki
Senior Contributor II

Dear Biyong-san,

Thank you for your support.

We want to read a register on Linux kernel

We were able to read a register by the following command.
$ cat /sys/devices/virtual/thermal/thermal_zone0/temp

Thanks

Best Regards,
Yuuki

在原帖中查看解决方案

0 项奖励
4 回复数
739 次查看
BiyongSUN
NXP Employee
NXP Employee

cross compile the memtool with static link. It can use anywhere, yocto and android.

Also you can use the uboot command otp or  common command  md to read the fuse.

0 项奖励
739 次查看
yuuki
Senior Contributor II

Dear Biyong-san,

Thank you for your support.

We want to use the memtool on Android.
Therefore we want to modify the memtool.

Would you tell me a modified point and the modified contents?

Best Regards,
Yuuki

0 项奖励
739 次查看
BiyongSUN
NXP Employee
NXP Employee

What is the reason need to modify code?

I have replied to you use "static link". Just use original code. use any other toolchain. Even from 3.0.35 do the cross compile with static link.

that way, you don't need to ask patch for every android update.

Attached "static link" memtool.

There is anything no clear for "static link".

Also you can use the uboot command otp or  common command md to read the fuse.

0 项奖励
740 次查看
yuuki
Senior Contributor II

Dear Biyong-san,

Thank you for your support.

We want to read a register on Linux kernel

We were able to read a register by the following command.
$ cat /sys/devices/virtual/thermal/thermal_zone0/temp

Thanks

Best Regards,
Yuuki

0 项奖励