Firefly开源社区

如何修改RK3288 调试串口UART2为普通串口

99

积分

0

威望

0

贡献

技术小白

积分
99
发表于 2018-1-24 21:01:45     
本帖最后由 发光的大白菜 于 2018-1-24 21:01 编辑

我们使用的是RK3288 android5.1系统

uart1和uart3都可以正常使用,但是uart2却只能用于调试,目前想要把uart1,uart2,和uart3都作为普通串口使用

论坛跟百度搜了好多方法修改都不成功

不知道有没有人成功把UART2修改为普通串口呢?望指点!
回复

使用道具 举报

99

积分

0

威望

0

贡献

技术小白

积分
99
发表于 2018-1-24 21:03:58     
参考过3399的修改
http://dev.t-firefly.com/forum.php?mod=viewthread&tid=12152&highlight=%B5%F7%CA%D4%B4%AE%BF%DA
但是在3288上面修改后,还是uart2为调试口
回复

使用道具 举报

99

积分

0

威望

0

贡献

技术小白

积分
99
发表于 2018-1-29 08:59:27     
别沉啊
回复

使用道具 举报

179

积分

0

威望

0

贡献

技术小白

积分
179
发表于 2018-2-24 09:41:10     
make menuconfig-->
    System Type  --->
         (2)   Debug UART
可以把2改为3后,调试串口变成uart3
但是还有一个问题,就是u-boot打印的调试信息还是从uart2出来,怎么样才能关闭或者修改Uboot打印呢
ps: 修改过parameter文件,没有效果
回复

使用道具 举报

3747

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3747
发表于 2018-2-26 09:08:37     
1.修改
--- a/device/rockchip/common/ueventd.rockchip.rc
+++ b/device/rockchip/common/ueventd.rockchip.rc
@@ -49,7 +49,7 @@
# for BT
/dev/vflash               0660   bluetooth  net_bt_stack
#/dev/ttyS0                0660   bluetooth  net_bt_stack
-/dev/ttyS2                0660   bluetooth  net_bt_stack
+/dev/ttyS2                0666   bluetooth  net_bt_stac
/dev/rtk_btusb            0660   bluetooth  net_bt_stack
# for radio
2.替换rk3288box-3.10-uboot.parameter.txt 文件 rk3288box-3.10-uboot.parameter.zip (660 Bytes, 下载次数: 58)
回复

使用道具 举报

99

积分

0

威望

0

贡献

技术小白

积分
99
发表于 2018-2-26 10:16:22     
jpchen 发表于 2018-2-26 09:08
1.修改
--- a/device/rockchip/common/ueventd.rockchip.rc
+++ b/device/rockchip/common/ueventd.rockc ...

替换了rk3288box-3.10-uboot.parameter.txt文件后,系统起不来,一直卡在starting kernel... 的位置
  1. DDR Version 1.00 20160530
  2. In
  3. Channel a: DDR3 200MHz
  4. Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
  5. Channel b: DDR3 200MHz
  6. Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
  7. Memory OK
  8. Memory OK
  9. OUT


  10. U-Boot 2014.10-RK3288-10 (Jan 14 2018 - 17:16:07)

  11. CPU: rk3288
  12. cpu version = 0
  13. CPU's clock information:
  14.     arm pll = 600000000HZ
  15.     periph pll = 297000000HZ
  16.     ddr pll = 200000000HZ
  17.     codec pll = 384000000HZ
  18. Board:  Rockchip platform Board
  19. DRAM:  Found dram banks: 1
  20. Adding bank:0000000000000000(0000000080000000)
  21. 128 MiB
  22. GIC CPU mask = 0x00000001
  23. SdmmcInit = 0 400
  24. SdmmcInit = 2 0
  25. storage init OK!
  26. Using default environment

  27. GetParam
  28. Load FDT from resource image.
  29. power key: bank-0 pin-5
  30. pmic:act8846
  31. can't find dts node for pwm1
  32. DCDC vdd_logic has been used, pwm regulator not init it.
  33. Can't find dts node for fuel guage cw201x
  34. SecureBootEn = 0, SecureBootLock = 0

  35. #Boot ver: 2018-01-14#2.30
  36. empty serial no.
  37. checkKey
  38. vbus = 1
  39. no fuel gauge found
  40. no fuel gauge found
  41. read logo on state from dts [0]
  42. no fuel gauge found
  43. got recovery cmd from misc.
  44. load fdt from resouce.
  45. Secure Boot state: 0
  46. kernel   @ 0x02000000 (0x006a70c0)
  47. ramdisk  @ 0x05bf0000 (0x002ad210)
  48. bootrk: do_bootm_linux...
  49.    Loading Device Tree to 05600000, end 0561c4a7 ... OK
  50. Add bank:0000000000000000, 0000000080000000

  51. Starting kernel ...


复制代码


回复

使用道具 举报

15

积分

0

威望

0

贡献

技术小白

积分
15
发表于 2018-12-24 19:44:18     
后面解决了吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表