OpenWrt Forum Archive

Topic: Problem with flashing back to Sveasoft

The content of this topic has been archived on 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

i'am a new subscripter of Sveasoft and have a major problem.
I had used with my WRT54G V1.0 Router the openwrt firmware.

Now i would use the Firmware_Alchemy-pre5_3.bin with my router.

I have enabled the boot_wait NVRAM variable. The router is connected to a linux workstation with atftp running.

When i reboot the router then i can reflash it only with the Satori-4.0 v2.07.1.7sv Firmware! And this works only when i rename the BIN File to openwrt-g-code.bin

I can after reflashing and reboot connect to the webinterface from Satori and the router works well (with PPPOE support...)

So, now when i try update to the Firmware_Alchemy-pre5_3.bin with the Upgrade Firmware option, then the firmware will flash and the router reboot.
But from now, i can't access the router. Only directly after the reboot i can ping the router (192.168.1.1) for few seconds (boot_wait) thats all.

Ok, then i reflash with tftp to Satori version and it works well again. I tryed then to upgrade to Alchemy version pre5_2_1 and pre5_2_2 with the web interface, but there i get a upgrade error after a few seconds.

I tryed then to upgrade via tftp but then i have the same problem as with pre5_3.

But what me makes a little confuse... i can always only flash files with tftp they are named openwrt-g-code.bin

What can i do to reset the router to factory default with all nvram variables also set to factory default and deleting all of not default variables they come from openwrt?

Why does the alchemy versions not work with my router?

Btw. i had to do change some nvram variables for openwrt. But i have the problem, that i can't remember to all changes. It was somthing with wan_ifname, pppoe_ifname, vlan1, br0 and so on...

Please help me!

Rhodan

Try running "mtd erase linux" in OpenWRT. This will erase your linux partition on your flash.

Then power-cycle your router while holding the reset-button for about 10-15 sec. This will reset your nvram settings.

Then upload the new firmware of your choice using code.bin as firmware image name...

I am curious to this as well, how does the 'boot loader' determine what file  name uploaded from tftp is 'valid' or it doesn't matter ?

this report seems to suggest that the name does matter. Could it be that the 'boot loader' has some mechanism like this :

1. if there is a nvram variable, I would only accept that.
2. otherwise, I would accept anything then write that name to nvram

This may explain this strange behaviour of why openwrt-g-code.bin is the only name accepted after the first tftp flash.

Try running "mtd erase linux" in OpenWRT. This will erase your linux partition on your flash.

Then power-cycle your router while holding the reset-button for about 10-15 sec. This will reset your nvram settings.

Then upload the new firmware of your choice using code.bin as firmware image name...

What's about the boot_wait status? Will this variable set to "no"?
If yes, how can i then flash a new firmware?

Btw. this are all my nvram variables (username, password, IP addresses have i changed...):

wl_radius_port=1812
wl_mac_deny=
filter_dport_grp3=
filter_dport_grp4=
filter_dport_grp5=
filter=on
wan_unit=0
wl0_net_mode=mixed
filter_dport_grp6=
os_ram_addr=80001000
wl_br1_enable=0
filter_dport_grp7=
wl0_frameburst=on
filter_dport_grp8=
filter_dport_grp9=
ddns_username_2=
log_ipaddr=0
ppp_idletime=5
ppp_passwd=mypppoepassword
httpsd_enable=1
wl_wds3_enable=0
ddns_enable=0
et0macaddr=00:06:25:EB:C3:6E
skip_intel_check=0
wl0_wep_buf=
wl_wds9_enable=0
ddns_hostname_buf=
d11g_mode=1
wan_get_dns=100.237.100.97 200.25.200.129
syslogd_rem_ip=
watchdog=1000
boot_wait=on
wl0_macmode1=disabled
tftpd_enable=1
nas_enable=1
wl_phytypes=
filter_web_host1=
action_service_arg1=
wl0_infra=1
filter_web_host2=
filter_web_host3=
fw_disable=0
wl0_country_code=JP
et0mdcport=0
router_name=Sveasoft
pppoe_keepalive=0
filter_web_host4=
wshaper_enable=0
sh_masq=br0 wds0.2
filter_web_host5=
wl0_wds6_enable=0
Intel_firmware_version=v1.41.8
filter_web_host6=
apwatchdog_enable=0
wl_infra=1
filter_web_host7=
filter_web_host8=
filter_web_host9=
pptp_server_ip=
ppp_get_ac=
pmon_ver=PMON 3.11.30.5
restore_defaults=0
dhcpd_statics=
wshaper_downlink=0
ppp_username=mypppoeusername
sh_rules=
wan_lease=0
filter_port=
ddns_enable_buf=
d11g_dtim=1
ddns_hostname=
wl_radius_ipaddr=
http_wanport=8080
filter_ip_grp1=
lan_gateway=0.0.0.0
filter_ip_grp2=
wl0_ifname=eth2
filter_ip_grp3=
dr_lan_rx=0
filter_ip_grp4=
lan_domain=
filter_ip_grp5=
timer_interval=3600
filter_ip_grp6=
telnetd_web=1
wshaper_uplink=0
pppoe_ac=
filter_ip_grp7=
filter_rule1=
loopback_enable=1
hb_server_ip=
ipsec_pass=1
filter_ip_grp8=
filter_rule2=
filter_ip_grp9=
filter_rule3=
expert_mode=0
filter_rule4=
filter_rule5=
filter_ip_grp10=
filter_rule6=
wl0_mode=ap
filter_rule7=
wan_gateway=100.237.99.91
dhcp_start=10
filter_rule8=
filter_rule9=
pptpd_enable=0
wshaper_nopriohostsrc=
os_flash_addr=bfc40000
wl0_gmode=1
dhcp_lease=0
wl_wds4_enable=0
boardtype=bcm94710dev
dnsmasq_enable=1
wl_active_add_mac=0
wl_gmode=1
ping_ip=
et1macaddr=00:06:25:EB:C7:6F
stats_server=
wl_br1_nat=0
static_route=
d11g_rate=0
wl0_wep_last=
lan_netmask=255.255.255.0
wl0_wds1_enable=0
dmz_enable=0
wl0_dtim=1
wl0_ssid=sveasoft
http_username=
sh_routestopped=br0 -
eth0 -
eth2 -
wds0.2 -
port_trigger=
et1mdcport=1
filter_web_host10=
os_date=Jun 30 2004
wl0_wds7_enable=0
cron_enable=1
http_lanport=80
wl_plcphdr=long
filter_mac_grp1=
wl_macmode=disabled
ppp_service=
ppp_redialperiod=30
filter_mac_grp2=
filter_mac_grp3=
wan_domain=
wan_hwname=
wl0_key1=
wl_phytype=g
filter_mac_grp4=
wan_netmask=255.255.255.255
lan_lease=86400
wl0_key2=
wl_lazywds=0
pppoe_static_ip=
filter_mac_grp5=
wl0_key3=
filter_mac_grp6=
wl0_key4=
filter_mac_grp7=
wshaper_nopriohostdst=
filter_mac_grp8=
filter_client0=
filter_mac_grp9=
filter_maclist=
wl_wds10_enable=0
pptp_pass=1
pptp_get_ip=
wl_auth_mode=disabled
ppp_demand=0
mtu_enable=1
ppp_keepalive=0
wl0_br1_nat=0
sh_interfaces=loc br0
loc eth0
loc eth2
net wds0.2
block_activex=0
d11g_rts=2347
wl0_br1_enable=0
remote_mgt_https=0
wl_wpa_psk=
http_passwd=mywebpass
block_wan=1
lan_stp=0
skip_amd_check=0
wl_mode=ap
bird_ospf=Please read the BIRD setup instructions at http://bird.network.cz/bird.html
wl0_plcphdr=long
wl0_rate=0
wl0_closed=0
wl_wpa_gtk_rekey=3600
wl_afterburner_override=-1
d11g_rateset=default
wl0_macmode=disabled
wl0_radioids=BCM2050
wl0_phytype=g
dr_wan_rx=0
wl0_lazywds=0
filter_tod_buf1=
block_proxy=0
filter_tod_buf2=
filter_tod_buf3=
pptpd_rip=
filter_tod_buf4=
filter_tod_buf5=
http_client_ip=192.168.1.101
wl_wds5_enable=0
dr_lan_tx=0
filter_tod_buf6=
apwatchdog_interval=15
wl0_antdiv=3
filter_tod_buf7=
filter_tod10=
lan_hwaddr=00:06:25:EB:C7:6E
filter_tod_buf8=
wan_dns=
http_client_mac=00:00:E3:90:E0:83
filter_tod_buf9=
action_service=
wl_dtim=1
wl_ssid=sveasoft
wl0_wpa_psk=
wl0_wds2_enable=0
d11g_bcn=100
wl0_mac_list=
wl_passphrase=
daylight_time=1
flash_type=AMD 29lv320DB 2Mx16 BotB
security_mode=disabled
dhcp_wins=wan
wl0_wds8_enable=0
bcm4712_firmware_version=v1.50.0
multicast_pass=1
filter_tod_buf10=
os_server=
pppoe_static=0
hb_server_domain=
wl_key1=
wan_proto=pppoe
wl_key2=
wl0_unit=0
wl_key3=
wshaper_noprioportsrc=
wl_key4=
ddns_cache=
wl_hwaddr=
aol_block_traffic1=0
static_route_name=
aol_block_traffic2=0
ntp_enable=1
wl_active_mac=
wl_net_mode=mixed
forward_port=
wshaper_dev=WAN
d11g_frag=2346
wl0_wds=
filter_mac_grp10=
sh_policy=loc net ACCEPT
net all DROP info
all all REJECT info
wl_rate=0
ppp_static_ip=
telnetd_enable=1
block_java=0
log_level=0
ntp_server=
ct_modules=
wan_hwaddr=00:06:25:EB:C7:6F
lan_ifnames=eth0 eth2 eth3 eth4
wl_macmode1=disabled
pppoe_ifname=ppp0
wl0_mac_deny=
wl0_radius_port=1812
wl0_auth=0
sshd_port=22
httpd_enable=1
wl0_radius_ipaddr=
wshaper_noprioportdst=
pppoe_service=
wl_country=Japan
wl_wds6_enable=0
pa0maxpwr=0x48
traceroute_ip=
ddns_change=
remote_management=0
wan_ifnames=eth1
block_loopback=0
wl_rateset=default
wl0_wds3_enable=0
wl_wep_bit=64
ppp_mru=1500
wl_radius_key=
filter_port_grp1=
lan_proto=dhcp
os_name=linux
lan_ipaddr=192.168.1.1
clkfreq=125
wl0_wds9_enable=0
filter_port_grp2=
ddns_passwd_2=
filter_port_grp10=
filter_port_grp3=
dr_wan_tx=0
wl_unit=0
filter_port_grp4=
filter_id=1
wl0_phytypes=g
firmware_version=Satori-4.0 v2.07.1.7sv
filter_port_grp5=
wl0_frag=2346
d11g_channel=6
wl0_wep=off
filter_port_grp6=
router_disable=0
syslogd_enable=0
ddns_username=
filter_port_grp7=
ddns_passwd=
pppoe_passwd=mypppoepassword
filter_port_grp8=
filter_port_grp9=
ppp_ac=
log_enable=0
sdram_config=0x0000
filter_web_url10=
wl0_country=Japan
dmz_ipaddr=0
sshd_passwd_auth=0
rc_startup=
security_mode_last=
wl_wds=
sshd_enable=0
ddns_hostname_2=
scratch=a0180000
wl0_rateset=default
wl0_wep_bit=64
pppoe_idletime=5
ping_times=
wan_primary=1
lan_ifname=br0
filter_services=$NAME:003:DNS$PROT:003:udp$PORT:005:53:53< >$NAME:004:Ping$
PROT:004:icmp$PORT:003:0:0< >$NAME:004:HTTP$PROT:003:tcp$PORT:005:80:80<&nb
sp;>$NAME:005:HTTPS$PROT:003:tcp$PORT:007:443:443< >$NAME:003:FTP$PROT:003:
tcp$PORT:005:21:21< >$NAME:004:POP3$PROT:003:tcp$PORT:007:110:110< >$N
AME:004:IMAP$PROT:003:tcp$PORT:007:143:143< >$NAME:004:SMTP$PROT:003:tcp$PO
RT:005:25:25< >$NAME:004:NNTP$PROT:003:tcp$PORT:007:119:119< >$NAME:00
6:Telnet$PROT:003:tcp$PORT:005:23:23< >$NAME:004:SNMP$PROT:003:udp$PORT:007
:161:161< >$NAME:004:TFTP$PROT:003:udp$PORT:005:69:69< >$NAME:003:IKE$
PROT:003:udp$PORT:007:500:500< >
wl0_afterburner_override=-1
sdram_refresh=0x8040
dhcp_domain=wan
wl_auth=0
wl_wep_last=
sdram_ncdl=0x00000000
wl_wds1_enable=0
resetbutton_enable=1
block_cookie=0
rc_firewall=
wl_frameburst=on
wl_wds7_enable=0
dhcp_num=10
filter_web_url1=
wan_ipaddr=100.237.99.120
wan_ipaddr_buf=100.237.108.130
wl0_passphrase=
filter_web_url2=
filter_web_url3=
wl0_rts=2347
filter_web_url4=
filter_web_url5=
wl_ifname=
filter_web_url6=
wan_wins=0.0.0.0
wl0_wds4_enable=0
ntp_mode=auto
wl_wep=off
filter_web_url7=
l2tp_pass=1
filter_web_url8=
pppoe_username=mypppoeusername
filter_web_url9=
os_version=3.50.21.10
wl_gmode_protection=off
sshd_rsa_host_key=
wl0_wpa_gtk_rekey=3600
mac_clone_enable=0
ppp_get_srv=
wl_frag=2346
wan_mtu=1492
wl_wep_gen=
wl0_key=1
wl0_active_mac=
wl_maclist=
filter_macmode=deny
txant=3
console_loglevel=1
et0phyaddr=30
dnsmasq_options=
time_zone=+01 2 2
wan_ifname=eth1
sshd_authorized_keys=
wl_radioids=
wan_hostname=Sveasoft
sh_zones=net Net Internet
loc Local Local Networks
dmz DMZ Dmz Zone
wl0_radio=1
wl_corerev=
ppp_mtu=1500
zebra_enable=1
ddns_interval=60
wl_channel=6
wl0_bcn=100
pptpd_auth=
wl_radio=1
ppp_static=0
filter_tod1=
wl0_hwaddr=00:06:25:EB:C7:70
filter_tod2=
filter_tod3=
wl0_wep_gen=
filter_tod4=
pa0b0=0x170c
ddns_passwd_buf=
wk_mode=gateway
wl0_gmode_protection=off
filter_tod5=
rc_shutdown=
pa0b1=0xfa24
wl0_maclist=
filter_tod6=
pa0b2=0xfe70
filter_tod7=
wl_wds2_enable=0
wl_rts=2347
filter_tod8=
sdram_init=0x0419
filter_tod9=
lan_wins=
aol_block_traffic=0
dhcpd_options=
wl_mac_list=
lan_hwnames=
dl_ram_addr=a0001000
wl_wds8_enable=0
pppoe_demand=0
local_dns=0
wl0_radius_key=
filter_dport_grp10=
ddns_username_buf=
wl0_corerev=4
wl_key=1
wl0_channel=6
wl0_wds5_enable=0
wl0_wds10_enable=0
dr_setting=0
upnp_enable=0
pptpd_lip=
ddns_status=
filter_rule10=
txpwr=56
wl0_auth_mode=disabled
wl_closed=0
boot_ver=v1.0
et1phyaddr=30
autofw_port0=
boardnum=42
def_hwaddr=00:00:00:00:00:00
wl_bcn=100
wl_wep_buf=
filter_dport_grp1=
wl_antdiv=-1
filter_dport_grp2=

Thank you for your help!

Rhodan

What's about the boot_wait status? Will this variable set to "no"?
If yes, how can i then flash a new firmware?

Yes, you are right. By accicent I reset all my NVRAM variables to a - small - set of defaults. It was good enough to boot OpenWRT in failsave mode.

Getting there, I could download via wget the original firmware from Linksys and wrote it with

mtd write <firmware name>.trx linux && reboot

Be aware, that the .trx-file is a copy of the .bin-file, but stripped of the first 32 bytes (see also "How do I reflash / How do I revert back to my previous firmware?" from the OpenWrt FAQ)

After booting the original firmware the router was in the the same state as it came first out of the box. From there I could start with the ping.asp exploid...

Greetings,
Stefan

The discussion might have continued from here.