Modify

Opened 2 years ago

Last modified 2 years ago

#20627 new defect

console problems with netboot ar71xx mikrotik

Reported by: leonardogyn Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: ar71xx mikrotik console Cc:

Description

Hi ... i have built a pretty recent version of OpenWRT trunk (r47028) but i'm having problems doing the netinstall i've always done. The netboot image even starts booting, but my console access halts completly. The displayed message seems to indicate the problem, the serial is being initialized on a different baud_rate i'm using to access the RouterBoot console and, thus, my access drops.

On some boots, i can even see the 'console disabled' message, other just a strange character appears on the first position on the last line displayed:

io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
þserial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 10625000) is a 16550A
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
console [ttyS0] disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 10625000) is a 16550A

A single change on the target config file, however, was enough to make the initialization of the serial goes right and everything works just fine

[solutti@cobaia mikrotik]$ pwd
/home/solutti/openwrt12-201509/trunk/target/linux/ar71xx/mikrotik
[solutti@cobaia mikrotik]$ diff -Naur config-default~ config-default
--- config-default~     2015-09-28 09:28:00.000000000 -0300
+++ config-default      2015-09-28 14:52:34.403611017 -0300
@@ -126,7 +126,7 @@
 # CONFIG_ATH79_MACH_ZCN_1523H is not set
 # CONFIG_ATH79_NVRAM is not set
 CONFIG_ATH79_ROUTERBOOT=y
-CONFIG_CMDLINE="rootfstype=yaffs noinitrd"
+CONFIG_CMDLINE="rootfstype=yaffs noinitrd console=ttyS0,115200"
 CONFIG_GPIO_74X164=y
 CONFIG_GPIO_LATCH=y
 # CONFIG_JFFS2_FS is not set
[solutti@cobaia mikrotik]$

and serial being initialized during the boot, despite still showing a weird baud_rate, works just fine:

setting up elf image... OK
jumping to kernel code
Linux version 4.1.6 (solutti@cobaia.solutti.com.br) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47026) ) #6 Mon Sep 28 14:55:03 BRT 2015
bootconsole [early0] enabled
[ ... ]
Kernel command line: parts=1 boot_part_size=4194304 gpio=1983 HZ=340000000 mem=256M kmac=00:0C:42:B2:06:D1 board=450G ver=3.18 boot=1 mlc=6 root
fstype=yaffs noinitrd console=ttyS0,115200
[ ... ]
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
console [ttyS0] disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 10625000) is a 16550A
console [ttyS0] enabled
console [ttyS0] enabled
bootconsole [early0] disabled
bootconsole [early0] disabled
[ ... ]

as without changing the config-default file seems to make the netboot image completly useless (and eveything else that depends on it, like nand install), i really think we're dealing with a bug.

by the way, i've tested this on RB450 and RB450G boards. The target used is ar71xx/mikrotik devices with nand flash/no wifi

Attachments (0)

Change History (3)

comment:1 Changed 2 years ago by leonardogyn

my bad, this seems to be a duplicate of bug #20447 with a little more information only :/

comment:2 Changed 2 years ago by ikubisme@…

hi guess, i had tried copy paste command on the top, but still not work and show message :
+++ : command not found.

if there someone any help me ?

thanks

comment:3 Changed 2 years ago by ikubisme@…

can we configure via menuconfig for set ttyUSB and baut rate before compile ??

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.