#21019: ar71xx serial cosnole broken on kernel 4.1/r47603
------------------------------------------+------------------------
 Reporter:  anonymous                     |      Owner:  developers
     Type:  defect                        |     Status:  new
 Priority:  normal                        |  Milestone:
Component:  kernel                        |    Version:  Trunk
 Keywords:  kernel ar71xx serial console  |
------------------------------------------+------------------------
 {{{
 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:~#
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/21019>
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