Firefly Open Source Community

   Login   |   Register   |
New_Topic

Access to .dts file through adb shell

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240
Posted at 1/18/2018 14:00:56     
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

692

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
692
Posted at 1/18/2018 16:53:16     
Open the dts file with text.
Using Linux system will be better.
Find out the uart you need to change, and match the key word, "uart"  and set"status=okay"
Reply

Use props Report

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240
Posted at 1/19/2018 14:06:20     
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
Reply

Use props Report

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240
Posted at 1/19/2018 14:07:27     
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

692

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
692
Posted at 1/20/2018 11:34:40     
KrunalShah Posted at 1/19/2018 14:07
we are also trying the Linux way you suggested but in linux also we are not able to locate the path  ...

u should set "okay" uart in the source code. No access in adb shell command line. Usually, adb shell devicetree just provide interface for check there status. only few allow to change or access .

just modify the source code and recomplie them , reflash kernel and resource.
Reply

Use props Report

692

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
692
Posted at 1/20/2018 11:36:39     
KrunalShah Posted at 1/19/2018 14:07
we are also trying the Linux way you suggested but in linux also we are not able to locate the path  ...
  1. &uart0 {
  2.         pinctrl-names = "default";
  3.         pinctrl-0 = <&uart0_xfer &uart0_cts>;                                                                                                  
  4.         status = "okay";
  5. };
Copy the code


like this. add it in rk3399-firefly.dts
complie and reflash
Reply

Use props Report

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240
Posted at 1/22/2018 16:55:27     
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

692

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
692
Posted at 1/23/2018 09:23:23     
KrunalShah Posted at 1/22/2018 16:55
Thank You for your inputs.But I don't know where to copy this code and how to compile and reflash th ...

http://en.t-firefly.com/doc/product/index/id/3.html

all step you can find out in this website.
Reply

Use props Report

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240
Posted at 1/25/2018 16:40:22     
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