Modify

Opened 3 years ago

Last modified 2 years ago

#17885 new defect

sysupgrade not working because /tmp/sysinfo/board_name is set to unknown

Reported by: l.anzinger@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Barrier Breaker 14.07
Keywords: Cc:

Description

I wanted to upgrade my TP-Link TP-WA860RE from Barrier Breaker 14.07 rc3 to a custom built BB image using sysupgrade via SSH. However, /tmp/sysinfo/board_name is set to unknown and hence the upgrade failed.

If I set the content to tp-wa860re it works fine.

Attachments (1)

0001-AP121-fix-board-detection-in-ar71xx.sh.patch (713 bytes) - added by attila.lendvai 3 years ago.
this patch fixes my problem on my AP121

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 years ago by JoeBar

I think, there is something missing in /lib/ar71xx.sh like the following diff

diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 78d67fa..daa3928 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -586,6 +586,9 @@ ar71xx_board_detect() {
        *TL-WA850RE)
                name="tl-wa850re"
                ;;
+       *TL-WA860RE)
+               name="tl-wa860re"
+               ;;
        *"TL-WA830RE v2")
                name="tl-wa830re-v2"
                ;;

comment:2 Changed 3 years ago by attila.lendvai@…

i'm not sure whether it should be a separate issue... but i have a similar problem:

# cat /proc/cpuinfo 
system type             : Atheros AR9330 rev 1
machine                 : Atheros AP121 reference board
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 265.42
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

and the ar71xxx.sh file expects this:

	*AP113)
		name="ap113"
		;;
	*AP121)
		name="ap121"
		;;
	*AP121-MINI)
		name="ap121-mini"
		;;
	*"AP132 reference board")
		name="ap132"
		;;
	*"AP136-010 reference board")
		name="ap136-010"
		;;
	*"AP136-020 reference board")
		name="ap136-020"
		;;
	*"AP135-020 reference board")
		name="ap135-020"
		;;
	*AP81)
		name="ap81"
		;;
	*AP83)
		name="ap83"
		;;

i.e. some entries have the " reference board" suffix, and some don't. is it merely the result of an inconsistent patch, or is there something i'm missing?

Changed 3 years ago by attila.lendvai

this patch fixes my problem on my AP121

comment:3 Changed 2 years ago by attila.lendvai

FTR, the AP121 attachment has been submitted as: https://patchwork.ozlabs.org/patch/512430/

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.