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?
Author: kevinwr982    Time: 1/16/2026 00:56
もし君はSAPのC-SIGVT-2506認定試験に合格するのを通じて、競争が激しいIT業種での地位を高めて、IT技能を増強するなら、Jpshikenの SAPのC-SIGVT-2506試験トレーニング資料を選んだほうがいいです。長年の努力を通じて、JpshikenのSAPのC-SIGVT-2506認定試験の合格率が100パーセントになっていました。Jpshikenを選ぶのは成功を選ぶのに等しいです。
Author: ericmar130    Time: 1/18/2026 18:37
That article was incredibly enriching and thoughtful. Thanks to the C_BCSBN_2502 latest practice questions book exam, I achieved a promotion and salary raise. Now, I’m offering them to you at no cost!
Author: steveta141    Time: 1/26/2026 12:11
What a remarkable piece of writing, thank you for sharing this with us! The BAPv5 valid exam questions explanations exam is almost here – wish me the best!
Author: hughsco482    Time: 1/28/2026 22:14
空想可以使人想出很多絕妙的主意,但卻辦不了任何事情。所以當你苦思暮想的如何通過Salesforce的AP-205認證考試時,還不如打開你的電腦,點擊Testpdf,你就會看到你最想要的東西,價格非常優惠,品質可以保證,而且保證你100%通過考試。
Author: fredros617    Time: 1/30/2026 10:58
This article is exceptional, thank you so much for sharing. The Online 304 bootcamps questions were the stepping stones to my career success, and today I’m giving them away for free!




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