Modify

Opened 2 years ago

Last modified 2 years ago

#21019 new defect

ar71xx serial cosnole broken on kernel 4.1/r47603

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Trunk
Keywords: kernel ar71xx serial console Cc:

Description

RouterBOOT booter 3.18

RouterBoard 433

CPU frequency: 300 MHz
  Memory size:  64 MiB
    NAND size:  64 MiB

Press any key within 2 seconds to enter setup..
trying dhcp protocol... OK
resolved mac address 90:E6:BA:D6:3A:3C
Gateway: 192.168.10.1
transfer started ........................... transfer ok, time=1.76s
setting up elf image... OK
jumping to kernel code
Linux version 4.1.13 (acinonyx@erimos) (gcc version 5.2.0 (OpenWrt GCC 5.2.0 r47512) ) #8 Sun Nov 29 09:19:12 EET 2015
bootconsole [early0] enabled
CPU0 revision is: 00019374 (MIPS 24Kc)
SoC: Atheros AR7130 rev 2
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
User-defined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone ranges:
  Normal   [mem 0x0000000000000000-0x0000000003ffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000000000000-0x0000000003ffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: parts=1 boot_part_size=4194304 gpio=4031 HZ=150000000 mem=64M kmac=00:0C:42:2E:34:CE board=433 ver=3.18 boot=1 mlc=6
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 60780K/65536K available (2225K kernel code, 134K rwdata, 296K rodata, 916K init, 178K bss, 4756K reserved, 0K cma-reserved)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:83
Clocks: CPU:300.000MHz, DDR:300.000MHz, AHB:150.000MHz, Ref:40.000MHz
clocksource MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 12741736309 ns
sched_clock: 32 bits at 150MHz, resolution 6ns, wraps every 14316557820ns
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
NET: Registered protocol family 16
MIPS: machine is MikroTik RouterBOARD 433/AH
registering PCI controller with io_map_base unset
rb4xx-spi rb4xx-spi: master is unqueued, this is deprecated
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
pci_bus 0000:00: root bus resource [io  0x0000]
pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
pci 0000:00:12.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
pci 0000:00:13.0: BAR 0: assigned [mem 0x10010000-0x1001ffff]
pci 0000:00:14.0: BAR 0: assigned [mem 0x10020000-0x1002ffff]
pci 0000:00:12.0: using irq 40 for pin 1
pci 0000:00:13.0: using irq 41 for pin 1
pci 0000:00:14.0: using irq 42 for pin 1
Switched to clocksource MIPS
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
futex hash table entries: 256 (order: -1, 3072 bytes)
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 = 9375000) is a 16550A

ssh to the device works

Warning: Permanently added '192.168.1.1' (RSA) to the list of known hosts.


BusyBox v1.24.1 (2015-11-19 10:39:08 EET) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 DESIGNATED DRIVER (Bleeding Edge, r47603)
 -----------------------------------------------------
  * 2 oz. Orange Juice         Combine all juices in a
  * 2 oz. Pineapple Juice      tall glass filled with
  * 2 oz. Grapefruit Juice     ice, stir well.
  * 2 oz. Cranberry Juice
 -----------------------------------------------------
root@OpenWrt:~# dmesg 
Linux version 4.1.13 (acinonyx@erimos) (gcc version 5.2.0 (OpenWrt GCC 5.2.0 r47512) ) #8 Sun Nov 29 09:19:12 EET 2015
bootconsole [early0] enabled
CPU0 revision is: 00019374 (MIPS 24Kc)
SoC: Atheros AR7130 rev 2
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
User-defined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone ranges:
  Normal   [mem 0x0000000000000000-0x0000000003ffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000000000000-0x0000000003ffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
On node 0 totalpages: 16384
free_area_init_node: node 0, pgdat 802deb00, node_mem_map 81000000
  Normal zone: 128 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 16384 pages, LIFO batch:3
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: parts=1 boot_part_size=4194304 gpio=4031 HZ=150000000 mem=64M kmac=00:0C:42:2E:34:CE board=433 ver=3.18 boot=1 mlc=6
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 60780K/65536K available (2225K kernel code, 134K rwdata, 296K rodata, 916K init, 178K bss, 4756K reserved, 0K cma-reserved)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:83
Clocks: CPU:300.000MHz, DDR:300.000MHz, AHB:150.000MHz, Ref:40.000MHz
clocksource MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 12741736309 ns
sched_clock: 32 bits at 150MHz, resolution 6ns, wraps every 14316557820ns
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
NET: Registered protocol family 16
MIPS: machine is MikroTik RouterBOARD 433/AH
registering PCI controller with io_map_base unset
rb4xx-spi rb4xx-spi: master is unqueued, this is deprecated
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
pci_bus 0000:00: root bus resource [io  0x0000]
pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
pci 0000:00:12.0: [168c:001b] type 00 class 0x020000
pci 0000:00:12.0: reg 0x10: [mem 0x00000000-0x0000ffff]
pci 0000:00:13.0: [168c:001b] type 00 class 0x020000
pci 0000:00:13.0: reg 0x10: [mem 0x00000000-0x0000ffff]
pci 0000:00:14.0: [168c:0013] type 00 class 0x020000
pci 0000:00:14.0: reg 0x10: [mem 0x00000000-0x0000ffff]
pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
pci 0000:00:12.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
pci 0000:00:13.0: BAR 0: assigned [mem 0x10010000-0x1001ffff]
pci 0000:00:14.0: BAR 0: assigned [mem 0x10020000-0x1002ffff]
pci 0000:00:12.0: using irq 40 for pin 1
pci 0000:00:13.0: using irq 41 for pin 1
pci 0000:00:14.0: using irq 42 for pin 1
Switched to clocksource MIPS
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
PCI: CLS 0 bytes, default 32
futex hash table entries: 256 (order: -1, 3072 bytes)
yaffs: yaffs Installing.
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 = 9375000) is a 16550A
console [ttyS0] enabled
bootconsole [early0] disabled
m25p80 spi0.0: pm25lv512 (64 Kbytes)
Creating 4 MTD partitions on "spi0.0":
0x000000000000-0x00000000b000 : "routerboot"
0x00000000b000-0x00000000c000 : "hard_config"
0x00000000d000-0x00000000f000 : "bios"
0x00000000f000-0x000000010000 : "soft_config"
NAND flash driver for RouterBoard 4xx series version 0.2.0
nand: device found, Manufacturer ID: 0xad, Chip ID: 0x76
nand: Hynix NAND 64MiB 3,3V 8-bit
nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
Scanning device for bad blocks
Bad eraseblock 4081 at 0x000003fc4000
Bad eraseblock 4083 at 0x000003fcc000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "booter"
0x000000040000-0x000000400000 : "kernel"
0x000000400000-0x000004000000 : "rootfs"
mtd: device 6 (rootfs) set to be root filesystem
mtdsplit: no squashfs found in "rootfs"
IP17xx: Found IP175C at ag71xx-mdio.0:00
libphy: ag71xx_mdio: probed
ag71xx ag71xx.1: connected to PHY at ag71xx-mdio.0:04 [uid=02430d80, driver=Generic PHY]
eth0: Atheros AG71xx at 0xba000000, irq 5, mode:RMII
ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=02430d80, driver=IC+ IP17xx]
eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
NET: Registered protocol family 17
rb: no calibration data found
Freeing unused kernel memory: 916K (802fb000 - 803e0000)
init: Console is alive
init: - watchdog -
init: - preinit -
ar71xx: pll_reg 0xb8050010: 0x1099
eth1: link up (100Mbps/Full duplex)
eth1: link down
procd: - early -
procd: - watchdog -
procd: - ubus -
random: ubusd urandom read with 16 bits of entropy available
procd: - init -
ar71xx: pll_reg 0xb8050014: 0x1099
eth0: link up (100Mbps/Full duplex)
random: nonblocking pool is initialized
root@OpenWrt:~# 

Attachments (0)

Change History (2)

comment:1 Changed 2 years ago by anonymous

root@OpenWrt:~# zcat /proc/config.gz  | grep SERIAL | grep -v \#
CONFIG_SERIAL_EARLYCON=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=1
CONFIG_SERIAL_8250_RUNTIME_UARTS=1
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
root@OpenWrt:~# cat /proc/interrupts 
           CPU0       
  4:          0      MIPS   4  eth1
  5:        915      MIPS   5  eth0
  7:      60493      MIPS   7  timer
 10:          0      MISC  ath79-gpio
 11:         16      MISC  serial
ERR:          0
root@OpenWrt:~# cat /etc/inittab 
::sysinit:/etc/init.d/rcS S boot
::shutdown:/etc/init.d/rcS K shutdown
::askconsole:/bin/ash --login
root@OpenWrt:~# 

comment:2 Changed 2 years ago by anonymous

issue exists on latest official snapshot too

RouterBOOT booter 3.18

RouterBoard 411

CPU frequency: 300 MHz
  Memory size:  32 MiB
    NAND size:  64 MiB

Press any key within 2 seconds to enter setup..
trying bootp protocol... OK
Got IP address: 192.168.10.150
resolved mac address 90:E6:BA:D6:3A:3C
Gateway: 192.168.10.1
transfer started ........................................... transfer ok, time=2.97s
setting up elf image... OK
jumping to kernel code
[    0.000000] Linux version 4.1.11 (openwrt@gb-10) (gcc version 5.2.0 (OpenWrt GCC 5.2.0 r47665) ) #2 Fri Nov 27 22:05:31 UTC 2015
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7130 rev 2
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: parts=1 boot_part_size=4194304 gpio=4031 HZ=150000000 mem=32M kmac=00:0C:42:35:50:8B board=411 ver=3.18 boot=1 mlc=6 rootfstype=yaffs noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 26208K/32768K available (2931K kernel code, 164K rwdata, 584K rodata, 1944K init, 196K bss, 6560K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:83
[    0.000000] Clocks: CPU:300.000MHz, DDR:300.000MHz, AHB:150.000MHz, Ref:40.000MHz
[    0.000000] clocksource MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 12741736309 ns
[    0.000017] sched_clock: 32 bits at 150MHz, resolution 6ns, wraps every 14316557820ns
[    0.007821] Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
[    0.090374] pid_max: default: 32768 minimum: 301
[    0.095167] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.101698] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.113415] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.125151] NET: Registered protocol family 16
[    0.131986] MIPS: machine is MikroTik RouterBOARD 411/A/AH
[    0.657046] registering PCI controller with io_map_base unset
[    0.677347] rb4xx-spi rb4xx-spi: master is unqueued, this is deprecated
[    0.685460] PCI host bridge to bus 0000:00
[    0.689495] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
[    0.696355] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.701840] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.708590] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.717094] pci 0000:00:12.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
[    0.723837] pci 0000:00:12.0: using irq 40 for pin 1
[    0.730138] Switched to clocksource MIPS
[    0.736201] NET: Registered protocol family 2
[    0.742384] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.749291] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.755660] TCP: Hash tables configured (established 1024 bind 1024)
[    0.762124] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.767888] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.774532] NET: Registered protocol family 1
[    5.309013] futex hash table entries: 256 (order: -1, 3072 bytes)
[    5.340646] io scheduler noop registered
[    5.344506] io scheduler deadline registered (default)
[    5.350291] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
�[    5.385243] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 9375000) is a 16550A

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.