Firefly Open Source Community

Title: Changing debug output from uart2 to uart1 in Android5.1 [Print This Page]

Author: kiwor    Time: 1/15/2018 16:04
Title: Changing debug output from uart2 to uart1 in Android5.1
Hi everyone,

I want to change the debug output of the Android5.1 image on my fireprime S from uart2 to uart1.
To do so, I have added
  1. &spi0 {
  2.   status = "disabled";
  3. };
  4. &uart1 {
  5.   status = "okay";
  6.   dma-names = "!tx", "!rx";
  7.   pinctrl-0 = <&uart1_xfer &uart1_cts>;
  8. };
Copy the code

in the rk3128-fireprime device-tree file and set the "Debug UART" option to 1 (menuconfig->System Type->Debug UART).
Then I have built the whole Android image following the instructions in the wiki (http://en.t-firefly.com/doc/product/info/id/301.html) and created the update.img after changing  "console=ttyFIQ0" to "console=ttyS1" in "parameter" file. After flashing the update.img I can see ttyS1 in /dev but the debug output is still on uart2...

Did someone try to change the debug output ? If so, how did you manage to make it work ?

Thank you in advance for your help
Author: leungÏÈÉ­    Time: 1/16/2018 10:35
Not suggest to do it changed,  gpio of the rk3128 is used by other modules .
Do that change maybe cause some function unuseful.
Author: kiwor    Time: 1/16/2018 16:06
Thank you for your reply !

Searching in the DTS files I have found so far : SPI0, I2C2, rt5036, act8931 nodes using the same GPIOs as UART1and I do not need them.

Can I manage to make it work just by disabling these nodes ?
Do you know if there are other modules concerned by these GPIOs ?
Author: kiwor    Time: 1/24/2018 16:56
So, my image is still not working...

I have also tried changing fiq-debbuger node in rk312x.dtsi but it is even worse : the kernel does not load anymore.

Someone ?
Author: kiwor    Time: 2/2/2018 18:31
If someone has the same issue, here is the solution I found :

After disabling every nodes using the same pins as uart1, simply change the value of rockchip,serial-id to 1 in the node "fiq-debugger", then set the "Debug UART" option to 1 in menuconfig. Finally, in the file Android/u-boot/include/configs/rk_default_config.h change the definition of CONFIG_UART_NUM in the rockchip Hardware drivers section to :
  1. #define CONFIG_UART_NUM                        UART_CH1
Copy the code


This works for me
Author: rayston555    Time: 1/9/2026 12:08
Clicking the like button now¡ªthis content is amazing. With 1Z0-1133-24 new exam cram materials, you¡¯ll find rich content, and it¡¯s offered free of charge to help you.
Author: jackgre204    Time: 1/10/2026 09:13
The article is so insightful and inspiring, thanks for sharing! The rich content of Latest test dumps C_S4CPR_2502 file is available for free, designed to assist you in your studies.
Author: fredhal232    Time: 2/7/2026 05:47
Fast2test의 도움으로 여러분은 많은 시간과 돈을 들이지 않으셔도 혹은 여러학원등을 다니시지 않으셔도 우리 덤프로 안전하게 시험을 통과하실 수 있습니다.Salesforce AP-211시험자료는 우리 Fast2test에서 실제시험에 의하여 만들어진 것입니다. 지금까지의 시험문제와 답과 시험문제분석 등입니다. Fast2test에서 제공하는Salesforce AP-211시험자료의 문제와 답은 실제시험의 문제와 답과 아주 비슷합니다.




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