|
【技术讨论】
AIO-3568J 修改波特率115200后,Uboot乱码,Kernel打印正常
发表于 2023-1-12 11:30:31
浏览:5597
|
回复:3
打印
只看该作者
[复制链接]
楼主
AIO-3568J 修改波特率115200
Ubuntu18.04系统
修改Uboot:
~\u-boot\configs\firefly-rk3568_defconfig
-CONFIG_BAUDRATE=1500000
+CONFIG_BAUDRATE=115200
保存修改后,重新编译
./build.sh uboot
修改Kernel:
~\kernel\arch\arm64\boot\dts\rockchip\rk3568_linux.dtsi
fiq-debugger {
compatible = "rockchip,fiq-debugger";
rockchip,serial-id = <2>;
rockchip,wake-irq = <0>;
/* If enable uart uses irq instead of fiq */
rockchip,irq-mode-enable = <1>;
rockchip,baudrate = <115200>;//<1500000>; /* Only 115200 and 1500000 */
interrupts = <GIC_SPI 252 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&uart2m0_xfer>;
status = "okay";
};
修改完成后,重新编译
sudo ./build.sh extboot
更新链接
sudo ./mkfirmware.sh
打包固件
sudo ./build.sh updateimg
------------------------------------------------------
重新烧录后,SecureCRT调试软件中,波特率按照115200打开串口: Uboot显示乱码,Kernel打印正常
鼢哌鼢鼢鼢骺鼢鼢圻亏鼢鼢鼢鼢鼢亏鼢鼢鼢哌哌哌哌哌哌哌圻哌哌骺鼢鼢鼢鼢哌哌哌哌亏哌哌鼢鬟哌鼢亏哌哌骺鼢哌哌鼢骰鼢鼢骺鼢鼢圻鼢鼢哌哌哌哌鼢鼢圻哌哌哌哌哌哌哌哌圻鼢鼢鼢镞鼢哌哌哌哌哌哌鼢鼢圻哌哌鼢鼢圻哌哌哌哌哌鼢鼢鼢哌鼢鼢哌鼢鼢哌亏鼢哌哌鼢哌哌鼢哌哌鼢鼢亏鼢鼢>唼e缁珑飛~燐铫餆|骺|oo~黯堰縸飛伉繑C肯q黠_窟傹z谗消锎坑挚亲浻:瑶訚帄抻瑶跟淄肟鼢繌钧鲲键珩脔鼢棘蛲萧顼偤鳜~x莛唿帢䦟笨瘙橚荥婵巷_掶?征飚楒縒快_?屈佧/茳髑牺傀泅嗃z洒忐齸唪~矜_蕊轫鼽峻桷忂o呖棹析啉~[[ 0.165301] console [ttyFIQ0] enabled
0.165301] console [ttyFIQ0] enabled
[ 0.173011] bootconsole [uart8250] disabled
[ 0.173011] bootconsole [uart8250] disabled
[ 0.177898] Registered fiq debugger ttyFIQ0
[ 0.179013] vcc3v3_sys: supplied by dc_12v
[ 0.179526] vcc5v0_sys: supplied by dc_12v
|
|