Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Configure uboot to leave serial console ttyS0 to Linux (1 reply)

$
0
0
Hi,

I have been a regular reader on this forum for many years and might even have posted something here some years ago. But I don't remeber clearly. Anyway: Big thanks to Bodhi and other active members of this board to keep up the good work and provide constant updates for uboot, kernel and rootfs! Very much appreciated!

Back around 2010/2011 I was able to get a couple of different kirkwood devices and as far as I know I haven't bricked a single one of them yet... Fingers crossed and they will live another couple of years.

My question of this thread is: Can Linux take over the serial console that is built into the PCB of a Dockstar?

Normally, uboot grabs the serial console and does not release it. This is the result when trying to access the serial console from the Debian on the Dockstar:

#cu -l /dev/ttyS0 -s 115200
cu: open (/dev/ttyS0): Permission denied
cu: /dev/ttyS0: Line in use


Of course people can say: Why don't you grab an USB-FTDI-Adapter and plug it into the Dockstar if you want to create a serial connection? Of course I could, but I would prefer to use the built-in.

To avoid total brickage of my Dockstar I still could have netconsole enabled when I disable the classic serial console for uboot - that's what I assume at the moment.

I googled a bit and only found this: https://stackoverflow.com/questions/34356844/how-to-disable-serial-consolenon-kernel-in-u-boot

I tried to set bootdelay to value -2 and this was only possible for me using this trick:
fw_setenv --script myFile.txt
But I realized that the bootdelay parameter is also used within the netconsole scripts.

Then I played with some values on a Dockstar where I have the netconsole enabled but wasn't really successful. So I would like to ask you for help. Was my question maybe discussed at some point in the past and I just didn't find it here on the forum?

I don't need the serial console untouched by uboot - I only need uboot to release it at some point so that it is available later when Linux is booted. Anyone? Thanks in advance!

Viewing all articles
Browse latest Browse all 3247

Trending Articles