Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Access to .dts file through adb shell

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240

Access to .dts file through adb shell

Posted at 1/18/2018 14:00:56      View:4486 | Replies:8        Print     [Copy Link] 1#
Hello,
Can anyone give steps or procedure to access this file(.dts)?
File:-
kernel/arch/arm64/boot/dts/rockchip/rk3399.dtsi
Because I am intended to work with UART and firefly says that you need to enable the UART from .dtsi file.But I don't know how we can access that particular file and how one can make changes inside that file?
I believe we have to navigate to that file from adb shell but don't know how.
Reply

Use props Report

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240
Posted at 1/19/2018 14:06:20      2#
Last edited by KrunalShah In 1/19/2018 14:08 Editor

1) I do understand what you are saying but to make changes in .dts file.
2) To do the changes in .dts file we need to access the same, but we are not able to access the dts file the way firefly has suggested from the path kernel/arch/arm64/boot/dts/rockchip/rk3399.dtsi
3)  we tried something as below and tried to change in file serial@ff370000. When we are accessing this file using cat status, we are getting as " Disabled", now how we can make it as okay in adb shell command line.

rk3399_firefly_box:/sys/firmware/devicetree/base # ls

Device Tree.JPG (209.74 KB, Down times: 0)

Device Tree.JPG
Reply

Use props Report

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240
Posted at 1/19/2018 14:07:27      3#
Last edited by KrunalShah In 1/19/2018 20:48 Editor

we are also trying the Linux way you suggested but in linux also we are not able to locate the path or even uart file.
kernel/arch/arm64/boot/dts/rockchip/rk3399.dtsi


Reply

Use props Report

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240
Posted at 1/22/2018 16:55:27      4#
Thank You for your inputs.But I don't know where to copy this code and how to compile and reflash the kernel.Could you please share the procedure for the same??
Reply

Use props Report

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240
Posted at 1/25/2018 16:40:22      5#
I tried to compile the nougat source code(Downloaded from: https://gitlab.com/TeeFirefly/FireNow-Nougat/tree/firefly-rk3399) after changing the status of UART4 port.I followed the exact steps (http://wiki.t-firefly.com/index. ... uild_android_7.1/en) that you have suggested.I got all the image files under 'rockdev' folder except recovery and boot.I am getting two errors that I think, might be the reason for not getting recovery and boot image files.
1)ninja_wrraper failed(while I was compiling android).In order to solve this, I fired this command "export USE_NINJA=false"(Is it advisable?)
2)'src' not found this directory.
And one important thing I don't understand is "Attention: You must first update the remote repository after decompression".What does it mean?
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list