Modify

Opened 2 years ago

Last modified 23 months ago

#21773 new defect

Kernel stops loading

Reported by: hotspotsystem Owned by: developers
Priority: response-needed Milestone: Bugs Paradise
Component: base system Version: Trunk
Keywords: Cc:

Description

This issue covers at least 3 router models:

TP-Link TL-WR 841 v9.3 and TL-WR842 v2.3 and Xiaomi miwifi router (dual band version).
If you emulate a glitch in the AC power source by pulling out the power supply for a fraction of a second, the boot process often hangs and the router never boots up. Xiaomi apparently boots up, even gives IP addresses wireless (but stops there functionally) but is not available on LAN to administer via GUI or SSH. Occurence reaches 20-30% of all bootups. (Seen 50-60% also for TLWR842 with latest trunk)
These issues can be seen from 15.05 final to recent snapshots also.

Attachments (0)

Change History (7)

comment:1 Changed 2 years ago by jow

  • Milestone changed from Designated Driver (Trunk) to Bugs Paradise
  • Priority changed from normal to response-needed

Does not sounds like something we can fix in software. Is the OEM firmware behaving differently?

comment:2 Changed 2 years ago by hotspotsystem

Update:

Xiaomi is excluded now, it works normally, it was a configuration error probably.

The TL-WR842 v2.3 works flawlessly with the factory firmware. We were unable to reproduce results like with the openWRT builds.

comment:3 follow-up: Changed 2 years ago by dexen@…

Hello!

I faced the same problem with TP-LINK TL-WR842ND v2

It happens only with OpenWRT 15.05 and I never seen it on 14.07

I bougth USB-UART chip and I saw that booting process just stops without any error.
Below you can find the output:

U-Boot 1.1.4 (Sep 22 2014 - 18:45:16)

U-boot AP123


DRAM:  32 MB
id read 0x100000ff
Flash:  8 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
wasp reset mask:c03300
WASP ----> S27 PHY
file: ag934x.c,line: 180==: set LAN&WAN SWAP. --debug by HouXB
GMAC: cfg1 0x5 cfg2 0x7114
eth0: ba:be:fa:ce:08:41
s27 reg init
athrs27_phy_setup ATHR_PHY_CONTROL 4: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4: 0x10
eth0 up
WASP ----> S27 PHY
file: ag934x.c,line: 180==: set LAN&WAN SWAP. --debug by HouXB
GMAC: cfg1 0xf cfg2 0x7214
eth1: ba:be:fa:ce:08:41
s27 reg init lan
ATHRS27: resetting s27
ATHRS27: s27 reset done
athrs27_phy_setup ATHR_PHY_CONTROL 0: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0: 0x10
athrs27_phy_setup ATHR_PHY_CONTROL 1: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1: 0x10
athrs27_phy_setup ATHR_PHY_CONTROL 2: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2: 0x10
athrs27_phy_setup ATHR_PHY_CONTROL 3: 0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3: 0x10
eth1 up
eth0, eth1
is_auto_upload_firmware=0
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.18.20 (buildbot@builder1) (gcc version
4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r46450) ) #1 Fri Sep 4 21:55:57 CEST
2015
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9341 rev 3
[    0.000000] Determined 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 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x01ffffff]
[    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:  board=TL-WR842N-v2
console=ttyS0,115200 rootfstype=squashfs,jffs2 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: 28516K/32768K available (2621K kernel code, 129K
rwdata, 344K rodata, 224K init, 194K bss, 4252K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:535.000MHz, DDR:400.000MHz, AHB:200.000MHz,
Ref:25.000MHz
[    0.000000] Calibrating delay loop... 266.64 BogoMIPS (lpj=1333248)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096
bytes)
[    0.100000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is TP-LINK TL-WR842N/ND v2
[    0.560000] Switched to clocksource MIPS
[    0.560000] NET: Registered protocol family 2
[    0.570000] TCP established hash table entries: 1024 (order: 0, 4096
bytes)
[    0.570000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.580000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.580000] TCP: reno registered
[    0.590000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.600000] NET: Registered protocol family 1
[    0.600000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.630000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.630000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.640000] msgmni has been set to 55
[    0.650000] io scheduler noop registered
[    0.650000] io scheduler deadline registered (default)
[    0.650000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.660000] console [ttyS0] disabled

I waited more than 20 mins and nothing happened.

So, it seems some kernel problem.

comment:4 Changed 2 years ago by MorHop@…

After checking out the latest source code,I meet same problem in my porting of Ruijie AP120.

comment:5 Changed 23 months ago by sailor_ca

I have a similar problem with 841v8's and v9's. This ticket may be related to /ticket/21857.html

comment:6 in reply to: ↑ 3 Changed 23 months ago by hauke

Replying to dexen@…:

I do not think this has anything to do with the initial post. Have you tried OpenWrt trunk on this device and checked if that works? It looks like OpenWrt is unable to set up the normal tty.

comment:7 Changed 23 months ago by anonymous

Hi,

I faced this problem on 15.05 release and I installed trunk version to compare the behaviour. It's the same. Trunk version also cannot load the kernel sometimes.
Then I rolled back on 14.07 release and it works fine - no problem at all.

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.