Firefly Open Source Community

Title: Access to .dts file through adb shell [Print This Page]

Author: KrunalShah    Time: 1/18/2018 14:00
Title: Access to .dts file through adb shell
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.
Author: leung先森    Time: 1/18/2018 16:53
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"
Author: KrunalShah    Time: 1/19/2018 14:06
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

Author: KrunalShah    Time: 1/19/2018 14:07
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



Author: leung先森    Time: 1/20/2018 11:34
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.

Author: leung先森    Time: 1/20/2018 11:36
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
Author: KrunalShah    Time: 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 the kernel.Could you please share the procedure for the same??
Author: leung先森    Time: 1/23/2018 09: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.
Author: KrunalShah    Time: 1/25/2018 16:40
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?




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1