OpenWrt Forum Archive

Topic: Buffalo WBRG54

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

I have a Buffalo Wbrg54 which I do have the serial port or jtag (whatever it is, I have it...)

I can't seems to be able to load the openwrt-g-code.bin on it, look at the error :
Download of 0x176400 bytes completed
error: bad magic 0x47343557 (expected 0x30524448)
Boot os from the flash

Althought, the openwrt-linux.trx works but I can't ping 192.168.1.1 after the image is loaded.

Here where it stops :
Doing command call 80001000
CPU revision is: 00024000
Loading BCM4710 MMU routines.
Primary instruction cache 8kb, linesize 16 bytes (2 ways)
Primary data cache 4kb, linesize 16 bytes (2 ways)
Linux version 2.4.20 (root@localhost.localdomain) (gcc version 3.3.3) #1 Sat Jul
17 02:55:26 EDT 2004
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs init=/etc/preinit n
oinitrd console=ttyS0,115200
CPU: BCM4710 rev 0 at 125 MHz
Calibrating delay loop... 82.94 BogoMIPS
Memory: 14204k/16384k available (1395k kernel code, 2180k reserved, 100k data, 6
8k init, 0k highmem)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Fixing up bus 1
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
ttyS00 at 0xbf800000 (irq = 2) is a ST16650
ttyS01 at 0xbf800008 (irq = 0) is a ST16650
Software Watchdog Timer: 0.05, timer margin: 60 sec
loop: loaded (max 8 devices)
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
Amd/Fujitsu Extended Query Table v1.1 at 0x0040
Physically mapped flash: Swapping erase regions for broken CFI table.
number of CFI chips: 1
Flash device: 0x400000 at 0x1fc00000
Physically mapped flash: squashfs filesystem found at block 907
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "pmon"
0x00040000-0x003f0000 : "linux"
0x000e2cb4-0x001b5d9c : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-o
nly
0x003f0000-0x00400000 : "nvram"
0x001c0000-0x003f0000 : "OpenWrt"
sflash: chipcommon not found
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
ip_conntrack version 2.1 (128 buckets, 1024 max) - 352 bytes per conntrack
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
ip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 68k freed
Algorithmics/MIPS FPU Emulator v1.5
<Nothing after that, no shell, nothing...>

I'll search a bit more on the net to see if people encountered this problem...

Download of 0x176400 bytes completed
error: bad magic 0x47343557 (expected 0x30524448)
Boot os from the flash

The code.bin files are only for linksys devices, they're just trx files with an extra header.. FYI:

0x47343557 = "W54G" (first few bytes of the openwrt-g-code.bin)
0x30524448 = "HDR0" (trx header)

If openwrt booted, it would try to configure based on your previous nvram configuration:

lan_ifname, lan_ifnames, lan_proto, lan_ip .. etc (as documented in the wiki)

I've been able to figure that part out... thanks for the info...

The problem now is that the ethernet doesn't get configured using openwrt...  I've been able to load satori but wl failed to load... No such device.

I think I'll have to tweak some nvram configuration... The unit I have is a *special* unit smile  I'll try to make some good use of...

Could you post your "nvram show", My nvram configuration has wl0_* instead of wifi_*...

Could you post your "nvram show", My nvram configuration has wl0_* instead of wifi_*...

Read the wiki.

Although the wifi_* variables can be used to configure the network settings of the wireless interface, the default setting is to include the wireless interface in lan_ifnames and leave the wifi_* variables unset.

and

The wifi_* NVRAM variables are NONSTANDARD, intended to be used when lan_ifnames doesn't bridge lan and wireless. Most people should leave the wifi_* variables unset

Here is the variable list...

nvram show
wl_mac_deny=
filter_dport_grp3=
wl_radius_port=1812
filter_dport_grp4=
filter_dport_grp5=
filter=on
wan_unit=0
filter_dport_grp6=
os_ram_addr=80001000
wl_br1_enable=0
filter_dport_grp7=
filter_dport_grp8=
wl0_frameburst=off
filter_dport_grp9=
ddns_username_2=
log_ipaddr=
ppp_idletime=5
ppp_passwd=
httpsd_enable=1
wl_wds3_enable=0
ddns_enable=0
et0macaddr=00:07:40:35:82:2a
skip_intel_check=0
wl_wds9_enable=0
ddns_hostname_buf=
wan_get_dns=
d11b_rateset=default
d11a_channel=64
d11g_mode=0
syslogd_rem_ip=
boot_wait=on
watchdog=5000
tftpd_enable=1
nas_enable=1
filter_web_host1=
wl_phytypes=
filter_web_host2=
filter_web_host3=
wl0_country_code=JP
et0mdcport=0
fw_disable=0
router_name=SVEASOFT
filter_web_host4=
pppoe_keepalive=0
d11b_bcn=100
wshaper_enable=0
sh_masq=br0 wds0.2
filter_web_host5=
filter_web_host6=
Intel_firmware_version=v1.41.8
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.1
restore_defaults=0
dhcpd_statics=
wshaper_downlink=0
ppp_username=
sh_rules=
wan_lease=86400
d11b_frag=2346
ddns_enable_buf=
d11g_dtim=3
ddns_hostname=
filter_ip_grp1=
http_wanport=
wl_radius_ipaddr=
filter_ip_grp2=
wl0_ifname=eth2
filter_ip_grp3=
nfs_root=
dr_lan_rx=0
filter_ip_grp4=
lan_domain=
filter_ip_grp5=
timer_interval=3600
filter_ip_grp6=
telnetd_web=1
wshaper_uplink=0
filter_ip_grp7=
filter_rule1=
pppoe_ac=
forward_port0=
loopback_enable=1
hb_server_ip=
ipsec_pass=1
filter_ip_grp8=
filter_rule2=
pppoe_mtu=1500
filter_ip_grp9=
filter_rule3=
expert_mode=0
filter_rule4=
filter_rule5=
filter_ip_grp10=
filter_rule6=
filter_rule7=
wan_gateway=0.0.0.0
wl0_mode=ap
filter_rule8=
dhcp_start=192.168.1.100
filter_rule9=
pptpd_enable=0
dhcp_end=192.168.1.150
wshaper_nopriohostsrc=
os_flash_addr=bfc40000
dhcp_lease=wan
wl0_gmode=1
wl_wds4_enable=0
boardtype=bcm94710ap
dnsmasq_enable=1
wl_active_add_mac=0
ping_ip=
et1macaddr=00:07:40:36:82:2a
wl_gmode=1
nfs_gateway=
stats_server=
wl_br1_nat=0
static_route=
d11g_rate=0
lan_netmask=255.255.255.0
dmz_enable=0
http_username=
wl0_ssid=Broadcom
wl0_dtim=3
sh_routestopped=br0 -
eth0 -
eth2 -
wds0.2 -
port_trigger=
et1mdcport=1
filter_web_host10=
os_date=Aug  6 2003
cron_enable=1
http_lanport=80
filter_mac_grp1=
wl_plcphdr=long
ppp_service=
ppp_redialperiod=30
filter_mac_grp2=
wl_macmode=disabled
filter_mac_grp3=
wan_hwname=
wan_domain=
filter_mac_grp4=
lan_lease=86400
wan_netmask=0.0.0.0
d11a_dtim=3
wl_phytype=g
wl0_key1=
pppoe_static_ip=
filter_mac_grp5=
wl_lazywds=0
wl0_key2=
filter_mac_grp6=
wl0_key3=
filter_mac_grp7=
wl0_key4=
wshaper_nopriohostdst=
filter_mac_grp8=
filter_client0=
filter_mac_grp9=
filter_maclist=
wl_wds10_enable=0
pptp_pass=1
pptp_get_ip=
ppp_demand=0
wl_auth_mode=disabled
mtu_enable=0
ppp_keepalive=0
sh_interfaces=loc br0
loc eth0
loc eth2
net wds0.2
block_activex=0
d11g_rts=2347
remote_mgt_https=0
http_passwd=admin
d11b_channel=11
wl_wpa_psk=
block_wan=1
nfs_netmask=
lan_stp=1
skip_amd_check=0
wl_mode=ap
bird_ospf=Please read the BIRD setup instructions at http://bird.network.cz/bird
.html
wl0_closed=0
wl0_rate=0
wl0_plcphdr=long
wl_afterburner_override=-1
d11g_rateset=default
wl_wpa_gtk_rekey=0
wl0_macmode=disabled
wl0_radioids=BCM2050
wl0_phytype=g
dr_wan_rx=0
filter_tod_buf1=
wl0_lazywds=0
block_proxy=0
filter_tod_buf2=
filter_tod_buf3=
pptpd_rip=
filter_tod_buf4=
filter_tod_buf5=
wl_wds5_enable=0
dr_lan_tx=0
filter_tod_buf6=
d11a_rate=0
apwatchdog_interval=15
wl0_antdiv=3
filter_tod_buf7=
filter_tod10=
lan_hwaddr=00:07:40:35:82:2A
filter_tod_buf8=
wan_dns=
filter_tod_buf9=
action_service=
wl_ssid=Broadcom
wl_dtim=3
wl0_wpa_psk=
nfs_server=
d11g_bcn=100
flash_type=
wl_passphrase=
daylight_time=1
security_mode=disabled
dhcp_wins=wan
multicast_pass=1
filter_tod_buf10=
os_server=
bcm4712_firmware_version=v1.50.0
pppoe_static=0
hb_server_domain=
wan_proto=dhcp
wl_key1=
wl_key2=
wl_key3=
wl0_unit=0
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
filter_mac_grp10=
wl0_wds=
sh_policy=loc net ACCEPT
net all DROP info
all all REJECT info
ppp_static_ip=
wl_rate=0
telnetd_enable=0
block_java=0
log_level=0
dhcp_dns=wan
d11a_rts=2347
ct_modules=
ntp_server=192.5.41.40 192.5.41.41 133.100.9.2
wan_hwaddr=00:07:40:36:82:2A
lan_dns=
lan_ifnames=eth0 eth2 eth3 eth4
pppoe_ifname=
wl_macmode1=disabled
wl0_auth=0
wl0_radius_port=1812
nfs_proto=disabled
sshd_port=22
httpd_enable=1
wl0_radius_ipaddr=
wshaper_noprioportdst=
pppoe_service=
wl_country=Worldwide
wl_wds6_enable=0
pa0maxpwr=0x48
traceroute_ip=
ddns_change=
remote_management=0
wan_ifnames=vlan1
block_loopback=0
wl_rateset=default
wl_wep_bit=64
ppp_mru=1500
filter_port_grp1=
clkfreq=125
lan_ipaddr=192.168.1.1
os_name=linux
lan_proto=static
wl_radius_key=
filter_port_grp2=
ddns_passwd_2=
filter_port_grp10=
filter_port_grp3=
dr_wan_tx=0
filter_port_grp4=
filter_id=1
wl_unit=0
filter_port_grp5=
wl0_phytypes=g
firmware_version=Satori-4.0 v2.07.1.7sv
filter_port_grp6=
router_disable=0
d11a_bcn=100
d11g_channel=11
wl0_wep=off
wl0_frag=2346
syslogd_enable=0
ddns_username=
filter_port_grp7=
ddns_passwd=
filter_port_grp8=
pppoe_passwd=
filter_port_grp9=
ppp_ac=
log_enable=0
sdram_config=0x0000
filter_web_url10=
wl0_country=Worldwide
dmz_ipaddr=
sshd_passwd_auth=0
rc_startup=
security_mode_last=
wl_wds=
sshd_enable=0
ddns_hostname_2=
scratch=a0180000
d11a_frag=2346
wl0_rateset=default
pppoe_idletime=60
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< >
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=off
wl_wds7_enable=0
dhcp_num=50
filter_web_url1=
wan_ipaddr=0.0.0.0
filter_web_url2=
filter_web_url3=
filter_web_url4=
wl0_rts=2347
filter_web_url5=
filter_web_url6=
wan_wins=
wl_ifname=
ntp_mode=auto
filter_web_url7=
wl_wep=off
l2tp_pass=1
filter_web_url8=
d11b_dtim=3
d11b_plcphdr=long
filter_web_url9=
os_version=3.31.16.0 (BROADCOM INTERNAL)
pppoe_username=
nfs_ipaddr=
wl_gmode_protection=auto
sshd_rsa_host_key=
wl0_wpa_gtk_rekey=0
mac_clone_enable=0
ppp_get_srv=
wl_frag=2346
wan_mtu=1500
wl_wep_gen=
wl0_key=1
filter_macmode=deny
wl_maclist=
txant=3
et0phyaddr=30
console_loglevel=7
dnsmasq_options=
time_zone=PST8PDT
d11a_rateset=default
wan_ifname=eth1
sshd_authorized_keys=
d11a_hwaddr=
wl_radioids=
wan_hostname=
sh_zones=net Net Internet
loc Local Local Networks
dmz DMZ Dmz Zone
ppp_mtu=1500
wl_corerev=
wl0_radio=1
zebra_enable=1
ddns_interval=60
d11g_hwaddr=
wl_channel=11
wl0_bcn=100
pptpd_auth=
nfs_ifname=
ppp_static=0
filter_tod1=
wl_radio=1
wl0_hwaddr=00:90:4B:21:CA:18
filter_tod2=
filter_tod3=
filter_tod4=
d11b_rate=0
pa0b0=0x170c
ddns_passwd_buf=
wk_mode=gateway
filter_tod5=
wl0_gmode_protection=auto
rc_shutdown=
pa0b1=0xfa24
filter_tod6=
wl0_maclist=
pa0b2=0xfe70
filter_tod7=
wl_wds2_enable=0
filter_tod8=
sdram_init=0x0419
wl_rts=2347
filter_tod9=
aol_block_traffic=0
lan_wins=
dhcpd_options=
wl_mac_list=
dl_ram_addr=a0001000
lan_hwnames=
wl_wds8_enable=0
pppoe_demand=0
local_dns=0
filter_dport_grp10=
wl0_radius_key=
ddns_username_buf=
wl0_corerev=4
wl_key=1
pppoe_mru=1500
wl0_channel=11
dr_setting=0
upnp_enable=0
pptpd_lip=
ddns_status=
filter_rule10=
txpwr=28
wl_closed=0
wl0_auth_mode=disabled
et1phyaddr=5
autofw_port0=
boardnum=33322
def_hwaddr=00:00:00:00:00:00
wl_bcn=100
wl_wep_buf=
d11b_rts=2347
d11b_hwaddr=
filter_dport_grp1=
wl_antdiv=-1
filter_dport_grp2=
size: 8224 bytes (24544 left)

The discussion might have continued from here.