How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board

How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board
Some serial port tools do not support a baud rate of 1500000. In this case, it is necessary to make modifications. This article takes the Rockchip RK3562 Development Board as an example to introduce how to modify the system serial port baud rate on Linux.
Note: The serial port baud rate of the Rockchip solution motherboard/development board only supports 115200 or 1500000.
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board
Modify Loader Print Baud Rate
  • Check the corresponding chip’s MINIALL.ini to determine which bin file needs to be modified.
# Check the corresponding chip's MINIALL.ini
cat rkbin/RKBOOT/RK3562MINIALL.ini
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board
  • Modify the uart baudrate parameter
Modify the following directory file, setting the uart baudrate parameter to the desired 115200 baud rate: rkbin/tools/ddrbin_param.txt
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development BoardRun ddrbin_tool in the rkbin/tools directory:
# rk3562_ddr_1332MHz_v1.04.bin Modify based on the bin found in step one
./ddrbin_tool ddrbin_param.txt ../bin/rk35/rk3562_ddr_1332MHz_v1.04.bin
  • Recompile Uboot to generate the MiniLoaderAll.bin file.
./build.sh uboot
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board
Modify Uboot and Kernel Print Baud Rate
  • Modify the corresponding xxx-linux.dtsi, such as rk3562-linux.dtsi:
# Modify rockchip,baudrate = <115200>;
vi kernel/arch/arm64/boot/dts/rockchip/rk3562-linux.dtsi
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board
  • Recompile Uboot and Kernel
./build.sh uboot
./build.sh kernel
Path of the compiled files: rk3562_linux\output\firmware
Loader partition filename: MiniLoaderAll.bin;
Uboot partition filename: uboot.img;
Kernel partition filename: boot.img;
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board
Flash Loader, Uboot, and Kernel Partitions
Open the Rockchip tool, check Loader, Uboot, and Kernel partitions, and select the compiled img to flash, as shown below:
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development BoardAfter flashing is complete, the system baud rate modification is done.
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development BoardHow to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board
RockchipRK3562 Development Board(Model EVB3562), based on Rockchip’s new generation SoC RK3562/RK3562J design, can be used for lightweight artificial intelligence applications. The EVB3562 development board is equipped with PCIe2.1/USB3.0 OTG/Gigabit Ethernet and various interfaces, supporting 4G/5G communication, multiple cameras, and various video interfaces, applicable in fields such as IoT gateways, tablets, smart homes, educational electronics, industrial displays, and industrial control.
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board
  • Equipped with Rockchip’s new generation RK3562/RK3562J chip;
  • 1TOPS computing power NPU, supporting INT8/INT16/FP16
    and other data types;
  • Supports 4K@30FPS and 1080P@60FPS video decoding;
  • 13M ISP, supports HDR and multi-channel camera video acquisition;
  • Single channel MIPI-DSI, up to 2048 x 1080@60fps;
  • Single channel LVDS, up to 1366 x 768@60fps;
  • Three independent Ethernet ports, two gigabit ports,
    and one hundred megabit port;
  • Supports 5G/4G/WiFi/Bluetooth wireless communication;
  • Supports Android and Linux operating systems;
Taobao Purchase Link:https://item.taobao.com/item.htm?ft=t&id=739666345147
END
How to Modify Serial Port Baud Rate on Linux for Rockchip RK3562 Development Board

Leave a Comment