Modify

Opened 3 years ago

Last modified 3 years ago

#19667 new defect

TP-Link TL-WR710N V1 kernel panic due to wrong board name

Reported by: Stefan Hellermann <stefan@…> Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: Cc: Cezary, Jackiewicz, <cezary.jackiewicz@…>

Description

Hello,

today I updated my TP-Link TL-WR710N V1.2 to current trunk and bricked it. After soldering a serial console I got the following error (full log attached)

Kernel command line:  board=TL-WR710NV1  console=ttyATH0,115200 rootfstype=squad..
MIPS: no machine found for id 'TL-WR710NV1', supported machines:
id                       name
...
TL-WR2543N               TP-LINK TL-WR2543N/ND
TL-WR710N                TP-LINK TL-WR710N v1
TL-WR703N                TP-LINK TL-WR703N v1

looks like #45538 got the cmdline wrong, as the kernel supports "TL-WR710N" and openwrt sets the cmdline to "TL-WR710NV1"

While digging through commits related TL-WR710N I spotted another bug:
commit #45643 moved the build of the TL-WR710N V1 and V2 to new build code. It looks like there's a typo:

#45538

$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR710NV1,tl-wr710n-v1,TL-WR710N,ttyATH0,115200,0x07100001,1,8Mlzma)) 
$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLWR710NV2,tl-wr710n-v2,TL-WR710N,ttyATH0,115200,0x07100002,1,4Mlzma)) 

#45643

define Device/tl-wr710n-v1
    $(Device/tplink-8mlzma)
    BOARDNAME := TL-WR710N
    DEVICE_PROFILE := TLWR710
    TPLINK_HWID := 0x07100001
    CONSOLE := ttyATH0,115200
endef

define Device/tl-wr710n-v2
    $(Device/tplink-4mlzma)
    BOARDNAME := TL-WR710N
    DEVICE_PROFILE := TLWR710
    TPLINK_HWID := 0x07100001             <=========
    CONSOLE := ttyATH0,115200
endef

The TPLINK_HWID is identical for TL-WR710N-V1 and V2, but in #45538 it's different. I think #45538 is correct, so I corrected it in my patch.

Attachments (2)

full bootlog.txt (21.0 KB) - added by Stefan Hellermann <stefan@… 3 years ago.
fix.patch (708 bytes) - added by Stefan Hellermann <stefan@…> 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by Stefan Hellermann <stefan@…

Changed 3 years ago by Stefan Hellermann <stefan@…>

comment:1 Changed 3 years ago by anonymous

TL-WR710N V1 is fixed in r45756

Someone should test TL-WR710N V2, maybe the following patch is needed:

--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -422,7 +422,7 @@ define Device/tl-wr710n-v2
     $(Device/tplink-4mlzma)
     BOARDNAME := TL-WR710N
     DEVICE_PROFILE := TLWR710
-    TPLINK_HWID := 0x07100001
+    TPLINK_HWID := 0x07100002
     CONSOLE := ttyATH0,115200
 endef


comment:2 Changed 3 years ago by Stefan Hellermann <stefan@…>

Please close, fixed in r46032, r46033

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.