Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

default baud rate - linux/u-boot

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?

like image 415
dan6470 Avatar asked Nov 16 '11 05:11

dan6470


People also ask

What is the default baud rate?

The baud rate must be supported by the user's serial driver. The default value is 9600 bits per second (bps).

What is baud rate Linux?

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.

What is U-Boot in Linux?

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.)


1 Answers

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               
like image 54
New to Rails Avatar answered Sep 18 '22 17:09

New to Rails