Modify

Opened 5 years ago

Closed 5 years ago

#13319 closed defect (fixed)

diag: unknown board found, try legacy detect

Reported by: anonymous Owned by: hauke
Priority: normal Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: Cc:

Description

I added a serial console to debrick after compiling and installing from trunk on a WRTSL54GS. Only menuconfig settings where Target System (Broadcom BCM947xx/953xx) and Target Profile (Linksys WRTSL54GS). Then sysupgrade -v openwrt-brcm47xx-squashfs.trx.

The system does not respond to eth0, but I am able to configure eth1 through serial and then ssh/scp through eth1.

Dmesg showed the following messages, so I am opening a new ticket as requested.

[ 4.444000] diag: unknown board found, try legacy detect
[ 4.452000] diag: please open a ticket at https://dev.openwrt.org and attach the complete nvram
[ 4.460000] diag: Detected 'Linksys WRTSL54GS'

root@OpenWrt:/# nvram show
boardnum=42
boot_ver=v3.5
filter_rule10=
wl0_wds_timeout=1
ddns_username_buf=
MS_scan_max_num=10
wl0_channel=6
wl_wme_no_ack=off
filter_dport_grp10=
aol_block_traffic=0
lan_hwnames=
audio_PCM=1
pa0b0=0x170c
pa0b1=0xfa24
pa0b2=0xfe70
port_priority_1=0
port_priority_2=0
wl_radio=1
ppp_static=0
port_priority_3=0
port_priority_4=0
logon_drive=Z:
nas_login=admin:admin:admin guest:guest:guest
qos_appname6=
qos_appname7=
qos_appname8=
qos_appname2=
wl0_wpa_gtk_rekey=3600
qos_appname3=
mac_clone_enable=0
qos_appname4=
qos_appname5=
wan_mtu=1500
wl0_key=1
ntp_mode=auto
wl_wep=disabled
qos_appname1=
photo_JPG=1
wl0_rts=2347
qos_enable=no
wl_auth=0
sdram_ncdl=0x20104
audio_AC3=1
port_flow_control_1=1
port_flow_control_2=1
ping_times=
port_flow_control_3=1
lan_ifname=br0
port_flow_control_4=1
photo_GIF=1
wl_wds=
ppp_ac=
wl0_country=ALL
firmware_version=v2.00.1
wl0_phytypes=g
pppoe_passwd=
wl_radius_key=
wl0_maxassoc=128
wl_wep_bit=64
wl_crypto=tkip
pppoe_service=
MS_scan_folder_value=
pa0maxpwr=0x48
all_partitions_share=1
sel_qosport5=0
ntp_server=
sel_qosport6=0
sel_qosport7=0
sel_qosport8=0
sel_qosport1=0
sel_qosport2=0
filter_mac_grp10=
sel_qosport3=0
wl_rate=0
sel_qosport4=0
ubsa_enable=disabled
gid_range=42000-43000
audio_AAC=1
pa0itssit=62
enable_game=0
ddns_cache=
static_route_name=
wl_key1=
nas_messag=
wl_key2=
wl_key3=
wl_key4=
shared_info=All_Partitions:1:admin:rw
wl_passphrase=
dhcp_wins=wan
os_server=
pppoe_static=0
port_rate_limit_1=0
port_rate_limit_2=0
port_rate_limit_3=0
port_rate_limit_4=0
wl0gpio2=0
wl0gpio3=0
wl0_plcphdr=long
error_pop_up_machine_names=
wl_wpa_gtk_rekey=3600
d11g_rateset=default
wl0_macmode=allow
lan_dhcp=0
block_activex=0
ag0=255
root_passwd=admin
MS_scan_folder3=
MS_scan_folder4=
MS_scan_folder5=
wl_lazywds=1
MS_scan_folder1=
workgroup=Linksys
MS_scan_folder2=
os_date=Nov 7 2005
http_lanport=80
dmz_enable=0
guest_uid=35000
et1mdcport=1
wl_gmode=6
ping_ip=
get_mac_index=1
ident_pass=0
audio_WMA=1
l2tp_server_ip=
wl0_wme_no_ack=off
MServer=0
wan_gateway=0.0.0.0
filter_ip_grp8=
ses_enable=1
filter_ip_grp9=
vlan0ports=0 1 2 3 5u
lan_route=
filter_ip_grp4=
filter_ip_grp5=
filter_ip_grp6=
wl_net_reauth=36000
pppoe_ac=
filter_ip_grp7=
pdc_enable=disabled
d11g_dtim=1
ddns_hostname=
filter_ip_grp1=
filter_ip_grp2=
filter_ip_grp3=
wan_lease=86400
ses_event=2
ppp_get_ac=
uid_range=35000-40000
wan_run_mtu=1500
restore_defaults=0
action_service_arg1=
wl_maxassoc=128
wl0_akm=psk2
d11g_mode=6
ppp_idletime=5
group_users=admin:1:admin guest:1:guest
filter_dport_grp8=
filter_dport_grp9=
il0macaddr=00:14:bf:e5:35:7f
filter_dport_grp4=
filter_dport_grp5=
filter_dport_grp6=
filter_dport_grp7=
filter_dport_grp3=
filter_dport_grp1=
filter_dport_grp2=
ses_sw_btn_status=DEFAULTS
wl0_wme_ap_bk=15 1023 7 0 0 off
upnp_enable=1
wl0_corerev=9
wl_key=1
pppoe_demand=0
wl0_radius_key=
wl0_wme_ap_be=15 63 3 0 0 off
wl_ap_isolate=0
lan_wins=
ddns_passwd_buf=
wl0_maclist=##:##:##:##:##:##
wl_rts=2347
wl0_hwaddr=##:##:##:##:##:##
ezc_version=2
wl0_wep_gen=
wl_channel=6
wl_wme_sta_bk=15 1023 7 0 0 off
wl_wme_sta_be=15 1023 3 0 0 off
wan_hostname=
wl0_radio=0
ppp_mtu=1500
wan_ifname=eth1
private_shares=All_Partitions:*:comment:/foreign_shares
audio_M4A=1
os_version=3.91.38.0
audio_M3U=1
wl_ifname=
wan_wins=
wl0_passphrase=
wl_frameburst=on
wl_wme_ap_vo=3 7 1 3264 1504 off
wl_wme_ap_vi=7 15 1 6016 3008 off
smb_admin_user=admin
ddns_hostname_2=
sdram_config=0x0062
dmz_ipaddr=0
security_mode_last=
old_lan_netmask=255.255.255.0
filter_port_grp6=
filter_port_grp7=
filter_port_grp8=
filter_port_grp9=
filter_port_grp2=
aa0=3
vlan1hwname=et0
foreign_disk_info=
filter_port_grp10=
filter_port_grp3=
wl_unit=0
filter_port_grp4=
filter_id=1
filter_port_grp5=
ppp_mru=1500
backup_job10=:::::::::::
filter_port_grp1=
wl_country=ALL
wl0_auth=0
wl0_mac_deny=
blank_disk_info=
ppp_static_ip=
d11g_frag=2346
wl_active_mac=
forward_port=
qos_level2_file_extensions=
wl0_net_reauth=36000
cifs_msdfs_enable=enabled
ses_client_join=0
filter_tod_buf10=
hb_server_domain=
d11g_bcn=100
storage_shares_limit=15
wl_dtim=1
nobody_gid=42001
wl_wds_timeout=1
lan_hwaddr=##:##:##:##:##:##
wl0_antdiv=-1
security_mode2=disabled
wl0_rate=0
wl0_closed=1
wl0_phytype=g
skip_amd_check=0
wl_mode=ap
primary_pool_name=
remote_mgt_https=0
http_passwd=admin
domain_WRTSL54GS_sid=S-1-4-0-0-0-0-0-5-15-23d4fbf0-78b124f7-327f4ac3-0-0-0-0-0-0-0-0-0-0-0
block_wan=1
pptp_pass=1
wl_auth_mode=none
ppp_keepalive=0
wl0_key3=
filter_mac_grp6=
wl0_key4=
filter_mac_grp7=
filter_mac_grp8=
filter_client0=
filter_mac_grp9=
wl_macmode=disabled
filter_mac_grp2=
filter_mac_grp3=
wan_hwname=
wl0_key1=deadbeef01234deadbeef56789
filter_mac_grp4=
wan_netmask=0.0.0.0
wl0id=0x4320
wl0_key2=
pppoe_static_ip=
filter_mac_grp5=
qos_devname2=
wl_plcphdr=long
filter_mac_grp1=
http_username=
port_trigger=
domain_memberships=
qos_devname1=
lan_netmask=255.255.255.0
wl0_wep_last=
storage_groups_limit=15
wl_active_add_mac=0
video_VOB=1
wl_akm=
wl0_gmode=6
sromrev=2
filter_rule7=
filter_rule8=
filter_rule9=
wl0_ap_isolate=0
filter_rule3=
audio_MPA=1
filter_rule4=
filter_rule5=
filter_ip_grp10=
filter_rule6=
wl0_wme_sta_bk=15 1023 7 0 0 off
filter_rule1=
filter_rule2=
ppp_username=
wl0_wme_sta_be=15 1023 3 0 0 off
machine_comment=WRTSL54GS
audio_MP2=1
audio_MP3=1
qos_appport8=0
Intel_firmware_version=v1.41.8
wl_infra=1
reset_gpio=7
qos_appport4=0
error_pop_up_on_all=enabled
qos_appport5=0
qos_appport6=0
fw_disable=0
wl0_country_code=ALL
qos_appport7=0
pppoe_keepalive=0
qos_appport1=0
qos_appport2=0
wl0_wep_buf=
qos_appport3=0
et0macaddr=00:14:BF:E5:35:7D
wan_device=vlan1
filter=on
domadmins_gid=42002
os_ram_addr=80001000
wl0_net_mode=mixed
wl0_frameburst=on
wl_mac_deny=
get_sn_index=1
et1phyaddr=5
qos_level1_file_extensions=
ddns_status=
photo_PNG=1
dl_ram_addr=a0001000
filter_tod6=
filter_tod7=
filter_tod8=
sdram_init=0x000b
filter_tod9=
filter_tod2=
filter_tod3=
filter_tod4=
filter_tod5=
wl0_bcn=100
filter_tod1=
wl_corerev=
audio_WAV=1
ddns_interval=60
wan_get_domain=
et0phyaddr=30
time_zone=-08 1 1
video_WMV=1
wl_frag=2346
wl_wep_gen=
wl0_active_mac=
wl_maclist=
filter_macmode=deny
wan_speed=4
filter_web_url9=
ppp_get_srv=
filter_web_url5=
filter_web_url6=
http_enable=1
filter_web_url7=
filter_web_url8=
dhcp_num=50
filter_web_url1=
filter_web_url2=
filter_web_url3=
filter_web_url4=
ezc_enable=1
upnp_wan_proto=
wl_wep_last=
filter_services=$NAME:003:DNS$PROT:003:udp$PORT:005:53:53<&nbsp;>$NAME:004:Ping$PROT:004:icmp$PORT:003:0:0<&nbsp;>$NAME:004:HTTP$PROT:003:tcp$PORT:005:80:80<&nbsp;>$NAME:005:HTTPS$PROT:003:tcp$PORT:007:443:443<&nbsp;>$NAME:003:FTP$PROT:003:tcp$PORT:005:21:21<&nbsp;>$NAME:004:POP3$PROT:003:tcp$PORT:007:110:110<&nbsp;>$NAME:004:IMAP$PROT:003:tcp$PORT:007:143:143<&nbsp;>$NAME:004:SMTP$PROT:003:tcp$PORT:005:25:25<&nbsp;>$NAME:004:NNTP$PROT:003:tcp$PORT:007:119:119<&nbsp;>$NAME:006:Telnet$PROT:003:tcp$PORT:005:23:23<&nbsp;>$NAME:004:SNMP$PROT:003:udp$PORT:007:161:161<&nbsp;>$NAME:004:TFTP$PROT:003:udp$PORT:005:69:69<&nbsp;>$NAME:003:IKE$PROT:003:udp$PORT:007:500:500<&nbsp;>
boardflags=0x0018
pppoe_idletime=5
wl0_rateset=default
filter_web_url10=
user_share_permission_default=no
ddns_username=
ses_led_assertlvl=0
d11g_channel=6
http_method=post
pdc_pool=
lan_proto=static
os_name=linux
clkfreq=264
lan_ipaddr=192.168.1.1
remote_management=0
wan_ifnames=eth1
block_loopback=0
traceroute_ip=
wl0_radius_ipaddr=
backup_job8=:::::::::::
backup_job9=:::::::::::
lan_ifnames=eth0 eth2 eth3 eth4
wl0_wme=off
backup_job4=:::::::::::
backup_job5=:::::::::::
log_level=0
backup_job6=:::::::::::
backup_job7=:::::::::::
wan_hwaddr=
photo_BMP=1
backup_job1=:::::::::::
backup_job2=:::::::::::
backup_job3=:::::::::::
aol_block_traffic2=0
wl_net_mode=mixed
wl0_unit=0
wl_hwaddr=
aol_block_traffic1=0
multicast_pass=0
daylight_time=1
wl0_mac_list=
action_service=
wl_ssid=keep_out
http_client_ip=0.0.0.0
wl0_afterburner=auto
filter_tod_buf6=
filter_tod_buf7=
filter_tod10=
filter_tod_buf8=
wan_dns=
filter_tod_buf9=
block_proxy=0
filter_tod_buf2=
filter_tod_buf3=
filter_tod_buf4=
upnp_ssdp_interval=60
filter_tod_buf5=
wl0_wme_ap_vo=3 7 1 3264 1504 off
wl0_radioids=BCM2050
video_M4V=1
filter_tod_buf1=
wl0_wme_ap_vi=7 15 1 6016 3008 off
mtu_enable=0
cifs_master_enable=enabled
filter_maclist=
pptp_get_ip=
wl_phytype=g
wl_wme_sta_vo=3 7 2 3264 1504 off
video_DAT=1
ppp_redialperiod=30
wl_wme_sta_vi=7 15 2 6016 3008 off
wl0_dtim=1
manual_rate=0
static_route=
boardtype=0x042f
et1macaddr=00:90:4c:60:00:3A
users_gid=42000
stats_server=
dhcp_start=100
wl_mrate=0
wl0_mode=ap
hb_server_ip=
ipsec_pass=1
lan_domain=
timer_interval=3600
wl_radius_ipaddr=
machine_name=WRTSL54GS
pptp_server_ip=
pmon_ver=CFE 3.91.38.0
filter_web_host6=
filter_web_host7=
filter_web_host8=
filter_web_host9=
filter_web_host2=
wl0_infra=1
filter_web_host3=
filter_web_host4=
filter_web_host5=
ddns_hostname_buf=
wan_get_dns=
boot_wait=on
filter_web_host1=
wl0_macmode1=disabled
bootnv_ver=1
boardrev=0x10
wan_unit=0
wl_antdiv=-1
opo=0x0
wl_wep_buf=
autofw_port0=
wl0_crypto=tkip
def_hwaddr=00:00:00:00:00:00
wl_bcn=100
wl0_auth_mode=open
wl_closed=1
workgroup_or_domain=workgroup
dr_setting=0
wl_mac_list=
primary_share_name=
vlan0hwname=et0
wk_mode=gateway
wl0_gmode_protection=off
wl_afterburner=auto
upnp_max_age=180
wl_radioids=
console_loglevel=1
audio_LPCM=1
local_user_management=disabled
nfs_master_enable=disabled
rate_mode=1
wl_gmode_protection=off
error_mail_smtp_port_num=
l2tp_pass=1
pppoe_username=
is_modified=0
wan_ipaddr=0.0.0.0
wan_gateway_buf=0.0.0.0
block_cookie=0
wan_iface=eth1
video_MPG=1
sdram_refresh=0x0000
dhcp_domain=wan
error_mail_smtp_server=
wl0_wep_bit=64
wl_wme=off
get_mac=00:14:BF:E5:35:7D
wan_primary=1
ccode=0
storage_users_limit=15
vlan1ports=4 5
printer_pool_name=
scratch=a0180000
ddns_passwd=
log_enable=0
dr_wan_tx=0
video_MP4=1
wl0_frag=2346
wl0_wep=enabled
router_disable=0
QoS=0
ddns_passwd_2=
wl0_wme_sta_vo=3 7 2 3264 1504 off
wl_rateset=default
ses_count=0
ddns_change=
video_AVI=1
wl0_wme_sta_vi=7 15 2 6016 3008 off
wl_macmode1=disabled
pppoe_ifname=
wl0_radius_port=1812
block_java=0
cctl=0
ct_modules=
wl0_wds=
audio_AIF=1
wl_country_code=ALL
wan_proto=dhcp
flash_type=Intel 28F640J3 4Mx16
security_mode=disabled
bcm4712_firmware_version=v1.50.0
wl0_wpa_psk=
web_wl_filter=0
domain_active_pools=
http_client_mac=
dr_lan_tx=0
logon_script=
prev_uid=
dr_wan_rx=0
wl0_lazywds=1
lan_stp=0
d11g_rts=2347
wl_wpa_psk=
ppp_demand=0
photo_TIF=1
lan_lease=86400
ppp_service=
wl_wme_ap_bk=15 1023 7 0 0 off
wan_domain=
wl_wme_ap_be=15 63 3 0 0 off
filter_web_host10=
d11g_rate=0
wl0_ssid=keep_out
is_default=1
dhcp_lease=0
qos_devpri1=0
qos_devpri2=0
os_flash_addr=bfc40000
gpio7=ses_led2
wl0_mrate=0
qos_devmac1=00:00:00:00:00:00
gpio4=ses_button
MS_scan_folder_num=0
qos_devmac2=00:00:00:00:00:00
gpio5=ses_led
wl0_ifname=eth2
dr_lan_rx=0
filter_port=
ddns_enable_buf=
http_wanport=8080
get_sn=CJK00EC01503
l2tp_get_ip=
et0mdcport=0
router_name=WRTSL54GS
https_enable=0
watchdog=5000
wl_phytypes=
ddns_enable=0
skip_intel_check=0
ppp_passwd=
ddns_username_2=
log_ipaddr=0
wl_radius_port=1812
prev_gid=
root@OpenWrt:/#

Attachments (1)

diag.c.patch (1.0 KB) - added by anonymous 5 years ago.
Patch file

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by anonymous

Patch file

comment:1 Changed 5 years ago by anonymous

My router was being detected successfully and after looking at the code, it was obvious that the message "unknown board found, try legacy detect" was ambiguous. I have attached a tiny patch for diag.c to this ticket.

comment:2 Changed 5 years ago by jow

  • Owner changed from developers to hauke
  • Status changed from new to assigned

comment:3 Changed 5 years ago by Zajec

This change makes sense, but we should also focus on detection in arch/mips/bcm47xx/board.c (see 260-MIPS-BCM47XX-add-board-detection.patch, it's not upstreamed yet).

Currently we don't handle WRTSL54GS.

From your nvram it seems it can be detected with one of the following values:

domain_WRTSL54GS_sid=S-1-4-0-0-0-0-0-5-15-23d4fbf0-78b124f7-327f4ac3-0-0-0-0-0-0-0-0-0-0-0
machine_comment=WRTSL54GS
machine_name=WRTSL54GS
router_name=WRTSL54GS

Using domain_WRTSL54GS_sid doesn't make much sense, so the question is which of the other 3 values is the best choice. It would be nice to check nvram from other (similar) routers if they also have entries for all 3 above names.

comment:4 Changed 5 years ago by hauke

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

Thank you for reporting.

This should be fixed in r37647.

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.