#20627: console problems with netboot ar71xx mikrotik
-------------------------------------+----------------------------------
 Reporter:  leonardogyn              |      Owner:  developers
     Type:  defect                   |     Status:  new
 Priority:  normal                   |  Milestone:  Chaos Calmer (trunk)
Component:  base system              |    Version:  Trunk
 Keywords:  ar71xx mikrotik console  |
-------------------------------------+----------------------------------
 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 ([email protected]) (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

--
Ticket URL: <https://dev.openwrt.org/ticket/20627>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to