Отключить консоль ttyS1 на DIR-620 (реш

Post new topic   Reply to topic    DD-WRT Forum Index -> Оборудование на основе Ralink
Author Message
DooMmen
DD-WRT Novice


Joined: 14 Apr 2012
Posts: 1

PostPosted: Sat Feb 02, 2013 20:59    Post subject: Отключить консоль ttyS1 на DIR-620 (реш Reply with quote
Помогите отключить консоль, которая висит на /dev/ttyS1 в DIR-620.
прошивка - Asus RT-N13U B1 DD-WRT v24-sp2 (03/19/12) std - build 18777

Команда
Code:
nvram set kernel_args="console=null root=/dev/mtdblock4 rootfstype=squashfs noinitrd"

возможно отключает bootconsole. Для доступа к порту использую picocom через telnet. Отправка данных в порт проходит отлично, но при приеме из вне происходит ошибка, так как мешает консоль.

Вывод # dmesg |grep tty
Code:
<5>Kernel command line:  console=ttyS1,57600n8 root=/dev/mtdblock4 rootfstype=squashfs noinitrd
<6>console [ttyS1] enabled, bootconsole disabled
<6>serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
<6>serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
<4>ttyS1: 1 input overrun(s)
<4>ttyS1: 5 input overrun(s)
<4>ttyS1: 9 input overrun(s)
<4>ttyS1: 8 input overrun(s)
<4>ttyS1: 5 input overrun(s)
<4>ttyS1: 3 input overrun(s)
<4>ttyS1: 1 input overrun(s)

Попытки использовать пропатченный busybox в который добавили stty и setconsole с командой
Code:
chmod +x /opt/bin/busybox
/opt/bin/busybox setconsole /dev/ttyS0

ни к чему не приводит. В интернетах пишут что необходимо отключить консоль и включить setconsole и stty в исходниках прошивки, но исходников в свободном доступе нет.

За ранее спасибо.


Метод получился извращенный, но вроде-бы действенный, а именно - нечто схожее на ремапинг портов:
Code:
mv /dev/ttyS1 /dev/ttyS2
mv /dev/ttyS0 /dev/ttyS1

Простое переименовывание портов и теперь консоль висит на вечно молчащем ttyS0, который переименован в ttyS1, а ttyS1 для наглядности переименован в ttyS2.
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Оборудование на основе Ralink All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum