ROC-RK3328-PC android10修改波特率为115200一直没有打印
编译命令:./FFTools/make.sh -d roc-rk3328-pc -j8 -l roc_rk3328_pc_32-userdebug./FFTools/mkupdate/mkupdate.sh -l roc_rk3328_pc_32-userdebug
分别修改了U-boot下的defconfig以及kernel下的dts文件,修改如下,没有发现wiki上提到的kernel/arch/arm64/boot/dts/rk3328-roc-pc-port.dtsi这个文件。
烧写img后,串口没有任何输出,img更新成功了,接上HDMI一直提示蓝牙有问题。交换串口线TX和RX也没有效果。
请问下是哪里修改的有问题吗?
chris@LAPTOP-TBE0OMGS:~/firefly/firefly_rk3328_android10.0$ git diff kernel/arch/arm64/boot/dts/rockchip/rk3328-android.dtsi
diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3328-android.dtsi b/kernel/arch/arm64/boot/dts/rockchip/rk3328-android.dtsi
index 46549a60cf..2fd8b9c025 100644
--- a/kernel/arch/arm64/boot/dts/rockchip/rk3328-android.dtsi
+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3328-android.dtsi
@@ -16,7 +16,7 @@
rockchip,wake-irq = <0>;
/* If enable uart uses irq instead of fiq */
rockchip,irq-mode-enable = <0>;
- rockchip,baudrate = <1500000>;/* Only 115200 and 1500000 */
+ rockchip,baudrate = <115200>;/* Only 115200 and 1500000 */
interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_LOW>;
status = "okay";
};
chris@LAPTOP-TBE0OMGS:~/firefly/firefly_rk3328_android10.0$ git diff kernel/arch/arm64/boot/dts/rockchip/roc-rk3328-pc.dtsi
diff --git a/kernel/arch/arm64/boot/dts/rockchip/roc-rk3328-pc.dtsi b/kernel/arch/arm64/boot/dts/rockchip/roc-rk3328-pc.dtsi
index af2960757f..17f2404179 100644
--- a/kernel/arch/arm64/boot/dts/rockchip/roc-rk3328-pc.dtsi
+++ b/kernel/arch/arm64/boot/dts/rockchip/roc-rk3328-pc.dtsi
@@ -180,7 +180,7 @@
#if (UART2_FUNCTION == UART2_BLUETOOTH)
&fiq_debugger {
- status = "disabled";
+ status = "okay";
};
&chosen {
@@ -188,7 +188,7 @@
};
&uart2 {
- status = "okay";
+ status = "disabled";
dma-names = "!tx","!rx";
};
#else
chris@LAPTOP-TBE0OMGS:~/firefly/firefly_rk3328_android10.0$ git diff u-boot/configs/rk3328_defconfig
diff --git a/u-boot/configs/rk3328_defconfig b/u-boot/configs/rk3328_defconfig
index 9e9b7544c1..b1c7db04b1 100644
--- a/u-boot/configs/rk3328_defconfig
+++ b/u-boot/configs/rk3328_defconfig
@@ -102,7 +102,7 @@ CONFIG_SPL_RAM=y
CONFIG_TPL_RAM=y
CONFIG_ROCKCHIP_SDRAM_COMMON=y
CONFIG_DM_RESET=y
-CONFIG_BAUDRATE=1500000
+CONFIG_BAUDRATE=115200
CONFIG_DEBUG_UART_BASE=0xFF130000
CONFIG_DEBUG_UART_CLOCK=24000000
CONFIG_DEBUG_UART_SHIFT=2
问题解决,默认uboot代码里关闭console的,wiki上的描述不准确,具体的修改在源代码包的readme.md中。
## UART2 作为调试串口
由于ROC-RK3328-PC机型bluetooth和调试串口的uart2复用,所以两个功能只能单独使用,
机器默认是把uart2给蓝牙使用,如果需要把uart2作为调试串口需要做如下的修改。
```
diff --git a/u-boot/configs/rk3328_defconfig b/u-boot/configs/rk3328_defconfig
index 9e9b7544c1..ae66c2b36d 100644
--- a/u-boot/configs/rk3328_defconfig
+++ b/u-boot/configs/rk3328_defconfig
@@ -19,7 +19,6 @@ CONFIG_FIT=y
CONFIG_FIT_VERBOSE=y
CONFIG_SPL_LOAD_FIT=y
CONFIG_BOOTDELAY=0
-CONFIG_DISABLE_CONSOLE=y
CONFIG_SYS_CONSOLE_INFO_QUIET=y
# CONFIG_DISPLAY_CPUINFO is not set
CONFIG_ANDROID_BOOTLOADER=y
```
```
cd rkbin
cp rkbin/bin/rk33/rk3328_ddr_333MHz_v1.16_uart2_debug.bin rkbin/bin/rk33/rk3328_ddr_333MHz_v1.16.bin
cd u-boot
./make.sh rk3328
cd kernel
vim kernel/arch/arm64/boot/dts/rockchip/roc-rk3328-pc.dtsi
#define UART2_FUNCTION UART2_DEBUG//修改UART2_FUNCTION 为UART2_DEBUG
make ARCH=arm64 BOOT_IMG=../rockdev/Image-roc_rk3328_pc_32/boot.img roc-rk3328-pc.img -j24
```
然后在相应的目录烧录rk3328_loader_v1.16.250.bin uboot.img trust.img boot.img,如果调试的时候
觉得android 蓝牙打印太多可以直接关闭蓝牙功能,然后编译android
```
--- a/device/rockchip/common/BoardConfig.mk
+++ b/device/rockchip/common/BoardConfig.mk
@@ -402,8 +402,8 @@ BOARD_TEMPERATURE_SENSOR_SUPPORT ?= false
BOARD_USB_HOST_SUPPORT ?= false
BOARD_USB_ACCESSORY_SUPPORT ?= true
BOARD_CAMERA_SUPPORT ?= false
-BOARD_BLUETOOTH_SUPPORT ?= true
-BOARD_BLUETOOTH_LE_SUPPORT ?= true
+BOARD_BLUETOOTH_SUPPORT ?= false
+BOARD_BLUETOOTH_LE_SUPPORT ?= false
页:
[1]