Re: Wrt160nl?

http://forum.openwrt.org/viewtopic.php?id=18354
Reading through this topic while waiting on some sweet tea at 1am, seems like it may relate to this thread hardware-wise. They're bridging pads to get the serial working. It may be a longshot, but it may be worth reading if all else fails.

I want more sweet tea X_X

Re: Wrt160nl?

Hi,

I have committed preliminary support for the WRT160NL based on vincentfox's bootlog. I have no such board, but this may help you to test OpenWrt on this device.

Regards,
Gabor

Re: Wrt160nl?

lol. better fix your mmc-over-gpio driver.....

29 (edited by vincentfox 2009-05-25 20:31:52)

Re: Wrt160nl?

Aha!  Success on serial console!  No bridging of pads needed!

Hit enter to continue...

BusyBox v1.9.1 (2009-04-06 13:50:27 HKT) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ #

Used a CA-42 clone cable (not Nokia) I had gotten off EBay.
When I opened the PCB end by the way it had DKU-5-B on it
so evidently just what I needed.  I clipped the cable short and
used Nokia pins 6-7-8 in this way:

DKU-5-B pin#       WRT160NL pin#
2-white(RX/D+?)          2 (TX)
4-blue (TX/D-?)          3 (RX)
6-black (GND)            5 (GND)

I think I have that correct now.  Anyhow it works!
Guess the long FTDI cable induces some loss that this
router is particularly sensitive to.  Many thanks to
THALIENCE for pointing out this possibility this really
was quite frustrating.

What data is wanted?  Here's a couple of things:

/proc # df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    5184      5184         0 100% /
/dev/root                 5184      5184         0 100% /
/proc # more cpuinfo
system type                : Atheros AR9100
processor                : 0
cpu model                : MIPS 24K V7.4
BogoMIPS                : 265.21
wait instruction        : yes
microsecond timers        : yes
tlb_entries                : 16
extra interrupt vector        : yes
hardware watchpoint        : yes
ASEs implemented        : mips16
VCED exceptions                : not available
VCEI exceptions                : not available
/proc #
/proc # more meminfo
MemTotal:        30312 kB
MemFree:         23248 kB
Buffers:          1008 kB
Cached:           3124 kB
SwapCached:          0 kB
Active:           1284 kB
Inactive:         3124 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        30312 kB
LowFree:         23248 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
Mapped:            964 kB
Slab:             1620 kB
CommitLimit:     15156 kB
Committed_AS:      736 kB
PageTables:         76 kB
VmallocTotal:  1048560 kB
VmallocUsed:       944 kB
VmallocChunk:  1047328 kB
/proc # lsmod
Module                  Size  Used by
usb_storage            35024  0
ehci_hcd               27088  0
usbcore                93264  3 usb_storage,ehci_hcd
ufsd                  204176  0
vfat                    9024  0
fat                    42160  1 vfat
nls_cp437               4352  0
nls_utf8                 832  0
nls_iso8859_1           2816  0
nls_cp950              98464  0
nls_cp936             119968  0
nls_cp1251              3584  0
nls_cp1250              3840  0
nls_ascii               2816  0
nls_base                4352  11 ufsd,vfat,fat,nls_cp437,nls_utf8,nls_iso8859_1,
nls_cp950,nls_cp936,nls_cp1251,nls_cp1250,nls_ascii
fuse                   28128  0
ctmisc                  8800  0
ag7100_mod            109680  0

Have to go back to other duties now, will investigate more tonight.

Re: Wrt160nl?

Just got this router. It's in the mail. I was looking at the internal pics from the FCC site.

1. It looks like they aren't using the connection for antenna 2? Can you just solder on another one, making it into a 3 antenna router? If it doesn't come alive automatically, is this something you can enable by mucking around?

2. Can you tear apart an older linksys with RP-TNC connectors and switch out the RP-SMA connectors? Based on the FCC pics, it looks like this would take all of 5 minutes, taking less time than ordering adapters.

Probably throw OpenWrt on it as soon as I get it! Thanks!

M

Re: Wrt160nl?

The FCC photo are terrible.  I will do some photo tomorrow of the board.  I have no idea about #1 but #2 seems quite easy except the case is thin so RP-TNC might look a little oversized if that matters to you.  I don't think you'd be able to anchor the RP-TNC bulkheads so they'd be floating.  This might not matter in a WISP application where the PCB is stripped and put in an enclosure but would in end-user household.

Re: Wrt160nl?

Darnet vincentfox, you are one step ahead of me. I just got done compiling the source, and got the same slew of files. I have been roaming the forums and have found nothing...yet.

33 (edited by vincentfox 2009-05-26 07:04:35)

Re: Wrt160nl?

I am an AP81 n00b, all my experience is in Broadcom.

I tried the obvious thing of build latest Kamikaze trunk & attempt to upload firmware using Linksys web UI and that failed with all 3 squashfs *.bin that were  created. In web UI it just tells you firmware upgrade failed.  Error appearing on serial console was:

Upgrading
upgrade_ver[v114.55.49] upgrade_ver[1145549] intel_ver[0] 4712_ver[0]
code pattern error!
................................................................................
................................................................................
................................................................................
................................................................................
/tmp/uploadtaZdxX: File is too small (0 bytes)

I suppose I need to TFTP from the uboot command-line or something?

Re: Wrt160nl?

vincentfox wrote:

I am an AP81 n00b, all my experience is in Broadcom.

I tried the obvious thing of build latest Kamikaze trunk & attempt to upload firmware using Linksys web UI and that failed with all the *.bin created. In web UI it just tells you firmware upgrade failed.

There are no suitable firmware images yet, I would need a full flash dump for analisys.

I suppose I need to TFTP from the uboot command-line or something?

You can try an initramfs image without flashing. In menuconfig select the 'ramdisk' image under 'Target Images'. Then try the 'openwrt-ar71xx-uImage-gzip.bin' from U-Boot with the followig commands:

setenv serverip 192.168.1.254; setenv ipaddr 192.168.1.1
setenv bootargs 'board=WRT160NL'; tftpboot 0x81000000 openwrt-ar71xx-uImage-gzip.bin; bootm

35 (edited by vincentfox 2009-05-26 07:12:01)

Re: Wrt160nl?

Something I forgot to post earlier, an nvram dump:

/ # nvram show
wl0_phytype=n
wl_country=US
wl_country_code=US
wl_nbw_cap=0
log_type=ilog
wl_40m_disable=0
filter_id=1
wl_active_add_mac=0
ddns_interval=60
ping_times=5
ping_size=32
is_disconn_button=0
wl_lazywds=1
wsc_akm=disabled
wsc_result=0
wsc_led=off
hnap_run_status=idle
hnap_device_wait=0
first_get_ntp=0
parent_id=1
os_version=4.151.10.16
os_date=Apr  6 2009
boardtype=ar9132dev
nvram_version=1
timer_interval=1800
ntp_enable=1
time_zone=-08 1 1
daylight_time=1
log_level=0
upnp_enable=1
upnp_config=1
upnp_internet_dis=0
upnp_ssdp_interval=60
upnp_max_age=180
ezc_enable=1
ezc_version=2
is_default=1
console_loglevel=15
router_disable=0
fw_disable=0
log_enable=0
log_ipaddr=0
lan_ifname=br0
lan_ifnames=eth0 ath0
lan_dhcp=0
lan_proto=dhcp
lan_ipaddr=192.168.1.1
lan_netmask=255.255.255.0
lan_lease=86400
lan_stp=0
wan_ifname=eth1
wan_ifnames=eth1
wan_proto=dhcp
wan_ipaddr=10.70.1.115
wan_netmask=255.255.255.0
wan_gateway=10.70.1.1
wan_lease=43200
wan_primary=1
wan_unit=0
filter_macmode=deny
filter=on
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< >
dmz_enable=0
dmz_src_any=1
dmz_src_ip=0.0.0.0 0
dmz_dst_ip=1
dmz_ipaddr=0
dmz_mac=00:00:00:00:00:00
dhcp_start=100
dhcp_num=50
dhcp_lease=0
dhcp_domain=wan
dhcp_wins=wan
http_passwd=admin
http_wanport=8080
http_lanport=80
http_enable=1
https_enable=0
hnap_enable=1
http_method=post
web_wl_filter=0
ppp_idletime=5
ppp_keepalive=0
ppp_demand=0
ppp_redialperiod=30
ppp_mru=1500
ppp_mtu=1500
ppp_static=0
wl_phytype=n
wl_ssid=linksys
wl_radio=1
wl_closed=0
wl_ap_isolate=0
wl_mode=ap
wl_wds_timeout=1
wl_wep=disabled
wl_auth=0
wl_key=1
wl_macmode=disabled
wl_mac_filter=0
wl_channel=0
wl_rate=0
wl_mrate=0
wl_rateset=default
wl_frag=2346
wl_rts=2347
wl_dtim=1
wl_bcn=100
wl_plcphdr=long
wl_net_mode=mixed
wl_gmode=1
wl_gmode_protection=auto
wl_afterburner=off
wl_frameburst=on
wl_wme=on
wl_antdiv=-1
wl_infra=1
wl_nbw=20
wl_nctrlsb=none
wl_nmcsidx=-1
wl_wep_bit=64
security_mode2=disabled
security_mode=disabled
wl_auth_mode=none
wl_wpa_gtk_rekey=3600
wl_radius_port=1812
wl_crypto=tkip
wl_net_reauth=36000
ses_enable=1
ses_event=2
gpio2=ses_led
gpio3=ses_led2
gpio4=ses_button
ses_led_assertlvl=0
ses_client_join=0
ses_sw_btn_status=DEFAULTS
ses_count=0
wl_wsc_mode=enabled
wsc_enable=1
wsc_count=0
wsc_ap_role=proxy
wsc_config=0
wsc_security_auto=1
MS_scan_max_num=10
MS_scan_folder_num=0
MServer=0
audio_AAC=1
audio_AC3=1
audio_AIF=1
audio_LPCM=1
audio_MPA=1
audio_MP2=1
audio_MP3=1
audio_M3U=1
audio_M4A=1
audio_PCM=1
audio_WAV=1
audio_WMA=1
video_AVI=1
video_DAT=1
video_MPG=1
video_MP4=1
video_M4V=1
video_WMV=1
video_VOB=1
photo_BMP=1
photo_GIF=1
photo_JPG=1
photo_PNG=1
photo_TIF=1
all_partitions_share=1
remote_samba=0
nas_login=admin:admin:admin:off guest:guest:guest:off
users_content=admin:admin:admin:admin:off guest:guest:guest:guest:off
machine_name=WRT160NL
machine_comment=WRT160NL
workgroup_or_domain=workgroup
workgroup=workgroup
nfs_master_enable=disabled
cifs_master_enable=enabled
cifs_msdfs_enable=enabled
group_users=admin:1:admin guest:0:
storage_users_limit=20
storage_groups_limit=20
storage_shares_limit=10
remove_disk=0
dir_list=/foreign_shares
storage_group_name0=admin
storage_group_name1=guest
storage_group_access0=0
storage_group_access1=1
storage_group_desc0=admin
storage_group_desc1=guest
charset=utf-8
wl_wme_sta_bk=15 1023 7 0 0 off
wl_wme_sta_be=15 1023 3 0 0 off
wl_wme_sta_vi=7 15 2 6016 3008 off
wl_wme_sta_vo=3 7 2 3264 1504 off
wl_wme_ap_bk=15 1023 7 0 0 off
wl_wme_ap_be=15 63 3 0 0 off
wl_wme_ap_vi=7 15 1 6016 3008 off
wl_wme_ap_vo=3 7 1 3264 1504 off
wl_wme_no_ack=off
wl_maxassoc=128
wl_unit=0
restore_defaults=0
router_name=WRT160NL
ntp_mode=auto
pptp_dhcp=0
wan_pptp_dhcp_dns=0
wan_pptp_dns0=0
wan_pptp_dns1=0
wan_pptp_dns2=0
block_loopback=0
block_wan=1
ident_pass=0
block_proxy=0
block_java=0
block_activex=0
block_cookie=0
multicast_pass=1
ipsec_pass=1
ipsec_debug=1
pptp_pass=1
l2tp_pass=1
pppoe_pass=1
remote_management=0
remote_upgrade=0
remote_ip_any=1
remote_ip=0.0.0.0 0
remote_mgt_https=0
mtu_enable=0
wan_mtu=1500
wk_mode=gateway
dr_setting=0
dr_lan_tx=0
dr_lan_rx=0
dr_wan_tx=0
dr_wan_rx=0
mac_clone_enable=0
def_hwaddr=00:00:00:00:00:00
ddns_enable=0
ddns_service=dyndns
ddns_wildcard=OFF
ddns_backmx=NO
aol_block_traffic=0
aol_block_traffic1=0
aol_block_traffic2=0
skip_amd_check=0
skip_intel_check=0
wan_gateway_buf=0.0.0.0
wan_speed=4
qos_enable_ever=0
QoS_wan_speed=71680
QoS_lan_speed=102400
QoS_lan_ctl=0
QoS_wan_ctl=1
QoS=0
rate_mode=1
manual_rate=0
sel_qosport1=0
sel_qosport2=0
sel_qosport3=0
sel_qosport4=0
sel_qosport5=0
sel_qosport6=0
sel_qosport7=0
sel_qosport8=0
qos_appport1=0
qos_appport2=0
qos_appport3=0
qos_appport4=0
qos_appport5=0
qos_appport6=0
qos_appport7=0
qos_appport8=0
qos_devpri1=0
qos_devpri2=0
qos_devmac1=00:00:00:00:00:00
qos_devmac2=00:00:00:00:00:00
port_priority_1=0
port_flow_control_1=1
port_rate_limit_1=0
port_priority_2=0
port_flow_control_2=1
port_rate_limit_2=0
port_priority_3=0
port_flow_control_3=1
port_rate_limit_3=0
port_priority_4=0
port_flow_control_4=1
port_rate_limit_4=0
enable_game=0
eou_configured=0
eou_expired_hour=72
manual_boot_nv=0
ip_conntrack_max=8192
multicast_max=25
lltd_enable=1
et0macaddr=00:23:69:98:2E:DB
boot_hw_model=WRT160NL
mfgtst_enable=0
mfg_wait=on
is_modified=0
model_name=WRT160NL
get_language_index=0
ui_language=en
hnap_devicename=WRT160NL
sys_country=US
wl0_country_code=US
wl0_max_channel=11
sys_hwver=1.0
boot_ver=1.1.5
wsc_reg_pin=66691686
upnp_igd_url=http://192.168.1.1:2869/gatedesc.xml
wsc_uuid=002369982edb002369982edb022ac107542ab32fb000
upnp_igd_udn=uuid:00236998-2edb-0223-699
wsc_count2=0
wsc_enrolleeSM_status=0
wsc_regSM_status=0
wan_run_mtu=1500
wan_iface=eth1
get_mac_index=1
get_sn_index=1
get_country_index=1
get_2g_country_code_index=1
get_wsc_pin_index=1
fw_md5sum=adc16b71617371ff22fcf7c9bdb6ab30
http_client_ip=192.168.1.100
http_client_mac=00:13:77:3D:83:E3
http_from=lan
get_wsc_pin=66691686
sda1_volume=MANU_TEST
wan_dhcp_server=10.70.1.1
serial_num=CUR01J400510
get_country=US
get_2g_country_code=US
Volume=MANU_TEST
first_disk=sda1
shared_info=All_Partitions:1:admin:rw
wsc_barwidth=0
wl_ssid_wsc=linksys_WPS_9404
security_mode_wsc=psk psk2
security_mode2_wsc=wpa2_personal
wl_akm_wsc=psk psk2
wl_crypto_wsc=tkip+aes
wl_wpa_psk_wsc=4rMeJnBE36QP
wsc_nwkey_wsc=4rMeJnBE36QP
wl_wep_wsc=disabled
wl_auth_mode_wsc=none
wsc_enr_pin=00000000
blink_online=1
os_name=linux
ppp_demand_pppoe=0
ppp_demand_pptp=1
ppp_demand_l2tp=1
ppp_demand_hb=0
lan_hwaddr=00:23:69:98:2E:DB
wan_hwaddr=00:23:69:98:2E:DC
filter_summary=0
upnp_content_num=2
wl0_hwaddr=00:23:69:98:2E:DD
wan_get_dns=10.70.1.1
wan_get_domain=lan
upnp_content0=1:2:23562:23562:100:0:Skype UDP at 192.168.1.100:23562 (876)
upnp_content1=1:1:23562:23562:100:0:Skype TCP at 192.168.1.100:23562 (876)
size: 7416 bytes (25352 left)
/ #

Enough for today, will try to understand AP81 more tomorrow.

36 (edited by vincentfox 2009-05-26 18:49:04)

Re: Wrt160nl?

Yes the tftpboot of ramdisk image boots.  Didn't bring up network. Here's the dmesg output:

BusyBox v1.13.4 (2009-05-26 09:43:58 PDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r16093) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:/# dmesg
Linux version 2.6.28.10 (vf5@baird) (gcc version 4.1.2) #3 Tue May 26 10:16:07 P
DT 2009
prom: fw_arg0=00000004, fw_arg1=a1f67fb0, fw_arg2=a1f683e0, fw_arg3=00000008
MyLoader: sysp=aaaa5554, boardp=aaaa5554, parts=aaaa5554
console [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9130 rev 2 (id:0xb8), CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MH
z
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 80273a10, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
  Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,1152
00
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 27472k/32768k available (1807k kernel code, 5296k reserved, 327k data, 2
384k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
net_namespace: 480 bytes
NET: Registered protocol family 16
MIPS: machine is Generic AR71xx board
NET: Registered protocol family 2
Switched to high resolution mode on CPU 0
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs May 26 2009 10:10:38 Installing.
msgmni has been set to 53
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console handover: boot [early0] -> real [ttyS0]
Atheros AR71xx SPI Controller driver version 0.2.2
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=21)
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
Freeing unused kernel memory: 2384k freed
Algorithmics/MIPS FPU Emulator v1.5
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
        (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
        (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
        (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (512 buckets, 2048 max)
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2009-05-08 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5
413, RF2133, RF2425, REGOPS_FUNC, XR)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_pci: trunk
gpio-buttons driver version 0.1.1
ar71xx-wdt: enabling watchdog timer
root@OpenWrt:/#

Re: Wrt160nl?

vincentfox wrote:

Yes the tftpboot of ramdisk image boots.  Didn't bring up network. Here's the dmesg output:

...
Mount-cache hash table entries: 512
net_namespace: 480 bytes
NET: Registered protocol family 16
MIPS: machine is Generic AR71xx board

The kernel did not detect the board. Seems like that the U-Boot does not pass the bootargs variable to the kernel, or you forgot the setenv bootargs 'board=WRT160NL' command.

Re: Wrt160nl?

Thanks juhosg.  I will try again.  Do you have suggestion anything I should make sure I have in menuconfig to support the switch?

39 (edited by vincentfox 2009-05-28 07:06:44)

Re: Wrt160nl?

Here's exactly what I ran again to test:

setenv serverip 10.70.1.14; setenv ipaddr 10.70.1.99
setenv bootargs 'board=WRT160NL'; tftpboot 0x81000000 openwrt-ar71xx-uImage-gzip.bin; bootm

And the result was still:

MIPS: machine is Generic AR71xx board

By the way, here's the defaults:

ar7100> printenv
bootargs=console=ttyS0,115200 root=31:04 rootfstype=squashfs init=/sbin/init mtd
parts=ar7100-nor0:256k(u-boot),7808k(linux),64k(nvram),64k(ART),64k(filesystem)
bootver=1.1.5
mfgboot=tftp 0x81800000 mfg.bin
bootcmd=bootm 0xbf04003c
bootdelay=1
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.1
serverip=192.168.1.254
stdin=serial
stdout=serial
stderr=serial
ethact=eth0

Environment size: 392/65532 bytes
ar7100>

Re: Wrt160nl?

vincentfox wrote:

Thanks juhosg.  I will try again.  Do you have suggestion anything I should make sure I have in menuconfig to support the switch?

The RTL8306SD switch is not supported yet. Additionally, i don't know how it is connected to the two ethernet MACs.

Re: Wrt160nl?

vincentfox wrote:

Here's exactly what I ran again to test:

setenv serverip 10.70.1.14; setenv ipaddr 10.70.1.99
setenv bootargs 'board=WRT160NL'; tftpboot 0x81000000 openwrt-ar71xx-uImage-gzip.bin; bootm

And the result was still:

MIPS: machine is Generic AR71xx board

Strange. Did you try a fresh checkout? Or at least did you run 'make target/linux/clean'?

Re: Wrt160nl?

Here it is fully compiled from a fresh checkout, to save time remaking it, if you weren't already using a fresh one.

http://control.hyperionservers.com/bin.zip

Try it and let me know. I'm currently on the same boat you were on with the serial. My Max232 adapter isn't allowing input to the router. I dug through my junk bin and found nothing useful... I think i'll just order one tonight.

43 (edited by vincentfox 2009-05-28 19:08:21)

Re: Wrt160nl?

I did use a fresh-ish checkout, see my quoted output above showed r16903.
I did not do "make target/linux/clean" just did a make.  I'll put both awesomo
and a new image of my own on TFTP server tonight and try again.

In menuconfig I am selecting:

Target System (Atheros AR71xx/AR913x [2.6])
Target Profile (Ather WiFi (madwifi)
Target Images (ramdisk)
Wireless Drivers (kmod-ath9k)

Didn't add anything else that seems important.
I did select gpioctl so maybe tonight I can try
to map out the GPIO information.

Thanks!

Re: Wrt160nl?

vincentfox wrote:

I did use a fresh-ish checkout, see my quoted output above showed r16903.
I did not do "make target/linux/clean" just did a make.

In this case, the kernel in your build_dir does not contain the required changes probably.

I'll put both awesomo and a new image of my own on TFTP server tonight and try again.  Thanks!

Ok.

45 (edited by vincentfox 2009-05-28 22:01:50)

Re: Wrt160nl?

awesomo wrote:

I don't know enough about this stuff to find what part of the compile process throws in what I call "the signature" I guess it's a header file in the bin that tells the router it is ok. The cross compiler, from how I understand it, It creates a build environment based on the processor type (mips?) so you can build you apps for that instead of being native for your system. My expert noob analysis.

Way way WAY back there in days hanging on Linksysinfo forums, hacking on my then-new WRTSL54GS I picked apart a BIN file.  I learned how to break it apart to get to the squashfs segment so I could mount that on my Linux desktop and poke through since at the time I had no knowledge how to do serial console.  Anyhow yes the header has a simple signature used to be first 4 bytes something like W54U.  Look at hexdump -C filename.bin.   Here's where I started to read from at the time:

http://www.seattlewireless.net/index.cgi/LinksysWrt54g#HackingontheWRT54Gathacknight.

The Linksys WRT160NL firmware has "NL16" at the front so you'd need to have it generate that at minimum I guess.

Prior to replicating I had much more time to devote to this hobby, so this work will go slowly for me hope you can run with it.

Re: Wrt160nl?

I have that post bookmarked. I didn't spend time reading all of it yet, but because you also recommend it, I think i'll give it all a go.

Re: Wrt160nl?

That was an interesting read. It's a bit over my head, but I'm always open to expanding my knowledge. I'll continue to pursue it. I ordered that DKU-5 Cable, it'll be here next Thursday if I'm lucky. Let me know if you get a chance to try those images.

Re: Wrt160nl?

I finally got my baby and opened her up. I soldered on another antenna, but that didn't work. I'll keep it on in the hopes that after I get the console running on this thing, I might fiddle it into life. By the way, the soldering job on the original antennas is absolute garbage. My older linksys units had far better workmanship.

Re: Wrt160nl?

Don't pull to hard on those connectors then. I know linksys loves to cut corners. As I'm reading more into this stuff, i'm loving the products from Ubiquity (on paper, I will probably buy a few different models soon for "testing"). Still need a router to hand out on residential installs though, so far the only ones with my trust are the wrt54gl and buffalo whr-hp-g54. I need an affordable draft N model to trust darnet. As long as this doesn't crash, and runs nicely, i'm golden.

50 (edited by vincentfox 2009-05-29 07:29:25)

Re: Wrt160nl?

I get apparent WRT160NL recognition now, but no root prompt.
It just stops at the end think it doesn't like GPIO code.

Starting kernel ...

Linux version 2.6.28.10 (vf5@baird) (gcc version 4.1.2) #1 Thu May 28 11:46:40 P
DT 2009
console [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9130 rev 2 (id:0xb8), CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MH
z
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,1152
00
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 27664k/32768k available (1807k kernel code, 5104k reserved, 327k data, 2
192k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
net_namespace: 480 bytes
NET: Registered protocol family 16
MIPS: machine is Linksys WRT160NL
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs May 28 2009 11:41:32 Installing.
msgmni has been set to 54
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console handover: boot [early0] -> real [ttyS0]
Atheros AR71xx SPI Controller driver version 0.2.2
m25p80 spi0.0: unrecognized JEDEC id 1c2017
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
Freeing unused kernel memory: 2192k freed
Algorithmics/MIPS FPU Emulator v1.5
Missing worker name.
/init: /etc/preinit: line 49: can't open /dev/null
- preinit -
Press CTRL-C for failsafe
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
cfg80211: Regulatory domain: US
        (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
        (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
phy0: Atheros AR9100 MAC/BB Rev:0, AR2122 RF Rev:a2, mem=0xb80c0000, irq=2
cfg80211: Calling CRDA for country: US
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (512 buckets, 2048 max)
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2009-05-08 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5
413, RF2133, RF2425, REGOPS_FUNC, XR)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_pci: trunk
gpio-buttons driver version 0.1.1

The awesomo firmware just panics:

Starting kernel ...

Linux version 2.6.28.10 (awesomo@control.hyperionservers.com) (gcc version 4.1.2
) #1 Tue May 26 00:30:48 EDT 2009
console [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9130 rev 2 (id:0xb8), CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MH
z
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,1152
00
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29724k/32768k available (1807k kernel code, 3044k reserved, 327k data, 1
32k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
net_namespace: 480 bytes
NET: Registered protocol family 16
MIPS: machine is Linksys WRT160NL
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs May 26 2009 00:28:04 Installing.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console handover: boot [early0] -> real [ttyS0]
Atheros AR71xx SPI Controller driver version 0.2.2
m25p80 spi0.0: unrecognized JEDEC id 1c2017
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Unfortunately very limited on debugging time now, maybe I can pursue some over the weekend.