I'm working on the development of an embedded linux system using u-boot. U-boot sets the baud rate of the ttyS0 serial port with the console= bootarg, but I would also like to set the default baud rate of ttyS[1-3] (to something other than 9600).
In this system U-boot passes a device-tree (dts/dtb) to the kernel, but setting the baud rate there doesn't seem to be working.
To note, this system is similar to the canyonlands board (ppc460ex).
Is there anyway in u-boot, the kernel, or device-tree to change the default baud rate of the serial ports?
The baud rate must be supported by the user's serial driver. The default value is 9600 bits per second (bps).
Description. You configure BaudRate as bits per second. The transferred bits include the start bit, the data bits, the parity bit (if used), and the stop bits. However, only the data bits are stored. The baud rate is the rate at which information is transferred in a communication channel.
U-Boot runs a command-line interface on a console or a serial port. Using the CLI, users can load and boot a kernel, possibly changing parameters from the default. There are also commands to read device information, read and write flash memory, download files (kernels, boot images, etc.)
Sometimes the values in the below file overrides the information given in the DTS file. Check the below file in the u-boot source code
boot/include/configs/[board name].h -- used for specifying environment and CPU peripheral default value
boot/common/[board name]_cmd_common.h
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With