About memtool in Android4.4.3 on MX6Q_SABRE-SDB

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

About memtool in Android4.4.3 on MX6Q_SABRE-SDB

ソリューションへジャンプ
1,238件の閲覧回数
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 解決策
843件の閲覧回数
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 返答(返信)
843件の閲覧回数
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 件の賞賛
843件の閲覧回数
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 件の賞賛
843件の閲覧回数
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 件の賞賛
844件の閲覧回数
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 件の賞賛