Opened 8 years ago

Closed 7 years ago

Last modified 4 years ago

#6922 closed defect (fixed)

Inability to use failsafe mode on TL-WR741ND

Reported by: fercerpav@… Owned by: juhosg
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc: juhosg@…


When i enter failsafe mode, it ups only eth0 that corresponds to the integrated switch and so i can't access the hardware without serial console (as the packets from my host are coming via lan[1-4] interfaces from device POV).

I'd expect failsafe to work on "wan" port, but for that the system should bring eth1 up.

Attachments (0)

Change History (6)

comment:1 Changed 8 years ago by juhosg

  • Owner changed from developers to juhosg
  • Status changed from new to accepted

comment:2 Changed 8 years ago by fercerpav@…

Probably #7015 is also related.

Here's the patch i used to make failsafe work on "wan" port (probably it should be made eth1 for all ar71xx devices, but you should know better ;) ):

diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
index 8611dce..fcc4fd5 100644
--- a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
+++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
@@ -7,7 +7,14 @@
 . /lib/
 set_preinit_iface() {
-	ifname=eth0
+	case $(ar71xx_board_name) in
+		tl-wr741nd)
+			ifname=eth1
+			;;
+		*)
+			ifname=eth0
+			;;
+	esac
 boot_hook_add preinit_main set_preinit_iface

comment:3 Changed 8 years ago by anonymous

In the lasted SVN not changed this commit, i need put manual

comment:4 Changed 7 years ago by fercerpav@…

Since introduction of proper swconfig support everything works just as
expected (one can connect to failsafe via any lan port), so this
should be considered fixed and closed.

comment:5 Changed 7 years ago by cshore

  • Resolution set to fixed
  • Status changed from accepted to closed

comment:6 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.