I have since got myself a new UART - USB cable and connected to the serial port inside the WNR1000v2 and heres the output from the bootup. If someone could direct me to a guide where i can try producing a rom for this router i would be very gratefull. I do understand quite technical things but this would be my first venture into a custom rom for something.
I should also add that nothing is connected to the router apart from power and the serial cable, no lan cables etc.
Heres the UBoot log from the serial port.
U-Boot 1.1.4 (Sep 3 2009 - 20:04:48)
WNR1000v2 (ar7240) U-boot dni7 V0.8
DRAM:
sri
#### TAP VALUE 1 = e, 2 = e
32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 269k for U-Boot at: 81fbc000
Reserving 192k for malloc() at: 81f8c000
Reserving 44 Bytes for Board Info at: 81f8bfd4
Reserving 36 Bytes for Global Data at: 81f8bfb0
Reserving 128k for boot params() at: 81f6bfb0
Stack Pointer at: 81f6bf98
Now running in RAM - U-Boot at: 81fbc000
id read 0x100000ff
flash size 4194304, sector count = 64
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7014
eth0: 00:03:7f:09:0b:ad
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Trying eth1
eth1 link down
FAIL
Trying eth0
eth0 link down
FAIL
Client starts...[Listening] for ADVERTISE...TTT
Retry count exceeded; boot the image as usual
nmrp server is stopped or failed !
Hit any key to stop autoboot: 0
Verifying Checksum ... OK
### SQUASHFS loading 'image/uImage' to 0x80800000
### SQUASHFS load complete: 708303 bytes loaded to 0x80800000
## Booting image at 80800000 ...
Image Name: Linux Kernel Image
Created: 2012-05-07 16:23:21 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 708239 Bytes = 691.6 kB
Load Address: 80002000
Entry Point: 8020d000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 8020d000) ...
## Giving linux memsize in bytes, 33554432
Starting kernel ...
Booting AR7240(Python)...
Linux version 2.6.15 (chao.zhang@dni-l-sw01) (gcc version 3.4.4 (OpenWrt-2.0)) #199 Mon May 7 12:22:02 EDT 2012
flash_size passed from bootloader = 4
CPU revision is: 00019374
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Built 1 zonelists
Kernel command line: console=ttyS0,115200 root=31:08 rootfstype=squashfs init=/etc/preinit mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),3392k(rootfs),64k(config),128k(language_table),64k(pot),64k(traffic_meter),64k(ART),3473344@327744(mount_fs)
Primary instruction cache 64kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
PID hash table entries: 256 (order: 8, 4096 bytes)
Using 170.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 30108k/32768k available (1739k kernel code, 2644k reserved, 348k data, 108k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction... available.
NET: Registered protocol family 16
Returning IRQ 48
AR7240 GPIOC major 0
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Initializing Cryptographic API
io scheduler noop registered
io scheduler deadline registered
Serial: 8250/16550 driver $Revision: #1 $ 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x0 (irq = 19) is a 16550A
9 cmdlinepart partitions found on MTD device ar7240-nor0
Creating 9 MTD partitions on "ar7240-nor0":
0x00000000-0x00040000 : "u-boot"
0x00040000-0x00050000 : "u-boot-env"
0x00050000-0x003a0000 : "rootfs"
0x003a0000-0x003b0000 : "config"
0x003b0000-0x003d0000 : "language_table"
0x003d0000-0x003e0000 : "pot"
0x003e0000-0x003f0000 : "traffic_meter"
0x003f0000-0x00400000 : "ART"
0x00050040-0x003a0000 : "mount_fs"
mtd: partition "mount_fs" doesn't start on an erase block boundary -- force read-only
u32 classifier
Perfomance counters on
nf_conntrack version 0.4.1 (256 buckets, 2048 max)
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
ip_conntrack version 2.4 (256 buckets, 2048 max) - 260 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
IPP2P v0.8.2 loading
DNIFILTER loading
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
ip6_tables: (C) 2000-2002 Netfilter core team
NET: Registered protocol family 17
Ebtables v2.0 registered
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 108k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
init started: BusyBox v1.4.2 (2012-05-07 12:19:11 EDT) multi-call binary
Loading data from /dev/mtd/3 ...
The data configuration is Valid
The data center is Running ...
/etc/net6conf/6proc: /etc/net6conf/6proc: 31: cannot create /proc/sys/net/ipv6/conf/eth0/accept_dad: Directory nonexistent
/etc/net6conf/6proc: /etc/net6conf/6proc: 31: cannot create /proc/sys/net/ipv6/neigh/eth0/not_send_neighbor_solicitation: Directory nonexistent
ipt_CONENAT: module license 'unspecified' taints kernel.
ip_conntrack_rtsp v0.6.21 loading
ip_nat_rtsp v0.6.21 loading
ip_conntrack_proto_esp loaded
ip_nat_proto_esp loaded
ip_conntrack_pptp version 3.1 loaded
ip_nat_pptp version 3.0 loaded
Generating Rules...
Done!
rmmod: ip_nat_dnisip.ko: Success
rmmod: ip_conntrack_dnisip.ko: Success
POT is Running...
POT is Finished!!!
The POT-(Get/Set) Demo is Running ...
SN: 2N3114590021E
WAN MAC: a0:21:B7:aD:E0:C9
AG7240: Length per segment 1536
AG7240: Max segments per packet 1
AG7240: Max tx descriptor count 40
AG7240: Max rx descriptor count 252
AG7240: fifo cfg 3 01f00140
AG7240CHH: Mac address for unit 0
AG7240CHH: a0:21:b7:ad:e0:c9
AG7240CHH: Mac address for unit 1
AG7240CHH: a0:21:b7:ad:e0:c8
INIT-SWITCH: Default WAN MAC is : a0:21:b7:ad:e0:c9
ag7240_ring_alloc Allocated 640 at 0x81c4ac00
ag7240_ring_alloc Allocated 4032 at 0x81368000
Setting PHY...
ADDRCONF(NETDEV_UP): eth0: link is not ready
/etc/rc.common: eval: 13: cannot create /proc/sys/net/ipv6/conf/eth0/accept_dad: Directory nonexistent
/etc/rc.common: eval: 13: cannot create /proc/sys/net/ipv6/neigh/eth0/not_send_neighbor_solicitation: Directory nonexistent
device eth1 entered promiscuous mode
ag7240_ring_alloc Allocated 640 at 0x81c4a800
ag7240_ring_alloc Allocated 4032 at 0x81cf1000
ATHRS26: resetting s26
ATHRS26: s26 reset done
Setting PHY...
ADDRCONF(NETDEV_UP): eth1: link is not ready
/etc/rc.common: eval: 13: cannot create /proc/sys/net/ipv6/neigh/eth1/not_send_neighbor_solicitation: Directory nonexistent
/etc/rc.common: eval: 13: cannot create /proc/sys/net/ipv6/neigh/eth1/not_send_neighbor_solicitation: Directory nonexistent
udhcp server (v0.9.8) started
The attached devices demo is Running ...
killall: utelnetd: no process killed
killall: telnetenable: no process killed
The telnetenable is running ...
Deleting static route ... Done!
Adding static route ... Done!
/etc/rc.common: eval: 13: /usr/sbin/hnapd: not found
Terminated
User defined signal 1
ag7240_ring_free Freeing at 0x81c4ac00
ag7240_ring_free Freeing at 0x81368000
ag7240_ring_alloc Allocated 640 at 0x81c4ac00
ag7240_ring_alloc Allocated 4032 at 0x81368000
Setting PHY...
ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcp client (v0.9.8) started
killall: pppd: no process killed
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background.
killall: ntpclient: no process killed
time zone index is : 0
Run NTP Client with setting: pri:time-g.netgear.com sec:time-h.netgear.com
killall: miniupnpd: no process killed
Jan 1 00:00:50 miniupnpd[444]: listening on 192.168.1.1:5555
cp: cannot stat '/usr/www/*': No such file or directory
The region number is: 0xFFFF
REGION is NULL
The abbreviation of English is Eng!
Didn't find the language table we need!
gui_region = English
region = English, download_region =
Update string table successfully, memory usage: 312KB.
The httpd server is running ...
/etc/rc.common: eval: 13: detplc: not found
grep: /proc/pci: No such file or directory
/etc/rc.d/rc.wlan: /etc/rc.d/rc.wlan: 56: uname: not found
Args: 1
ath_hal: 0.9.17.1 (AR5416, REGOPS_FUNC, WRITE_EEPROM, 11D)
wlan: 0.8.4.2 (Atheros/multi-bss)
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ath_pci: 0.9.4.5 (Atheros/multi-bss)
wifi0: Atheros 9285: mem=0x10000000, irq=48 hw_base=0xb0000000
wlan: mac acl policy registered
wlan_me: Version 0.1
Copyright (c) 2008 Atheros Communications, Inc. All Rights Reserved
wifi1 no private ioctls.
Creating ap for NETGEAR on
Added ath0 mode master
Interface doesn't accept private ioctl...
HALDbg (8BE0): Operation not permitted
Invalid command : ampdumin
Created ath0 mode ap for NETGEAR
/etc/ath/activateVAP: /etc/ath/activateVAP: 62: uname: not found
lo no wireless extensions.
sit0 no wireless extensions.
br0 no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
wifi0 no wireless extensions.
device ath0 entered promiscuous mode
br0: port 2(ath0) entering learning state
br0: topology change detected, propagating
br0: port 2(ath0) entering forwarding state
/etc/ath/activateVAP: /etc/ath/activateVAP: 1: arping: not found
>>>>> WPS MODE, 1
>>>>> WPS ENABLED, PSK
cat: /etc/wpa2/WSC_ath0.conf: No such file or directory
>>>>> WPS Translate, Index:0
Making Topology File . . .
Reading topology file /var/run/topology.conf ...
Reading bss configuration file /etc/wpa2/WSC_ath0.conf ...
Too much delay 230865244 -3116016
br0: port 2(ath0) entering disabled state
Could not connect to kernel driver.
Using interface ath0 with hwaddr a0:21:b7:ad:e0:c8 and ssid 'NETGEAR'
Country ie is DE
br0: port 2(ath0) entering learning state
br0: topology change detected, propagating
br0: port 2(ath0) entering forwarding state
upnp_wps_device_init called
l2_packet_receive - recvfrom: Network is down
Starting Firewall...
Done!
/etc/rc.common: eval: 13: /bin: Permission denied
dnsmasq: failed to create listening socket: Address already in use
Start utelnetd by telnetenable
killall: lld2d: no process killed
traffic_meter start : .
killall: igmpproxy: no process killed
System startup completed!
/etc/init.d/rcS: /etc/init.d/rcS: 21: cannot create /proc/sys/net/ipv4/ip_conntBoot up procedure is Finished!!!
Please press Enter to activate this console.
BusyBox v1.4.2 (2012-05-07 12:19:11 EDT) 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 (7.09) -----------------------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@WNR1000v2:/#
Bit more info from the Uboot after i interupted it.
ar7240> imls
Image at 9F050000:
Image Name: WNR1000v2-V1.1.2.54
Created: 2012-05-07 16:23:25 UTC
Image Type: MIPS Linux Unknown Image (uncompressed)
Data Size: 3444740 Bytes = 3.3 MB
Load Address: 9f050000
Entry Point: 9f050000
Verifying Checksum ... OK
ar7240> printenv
bootdelay=4
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
serverip=192.168.1.101
ipaddr=192.168.1.1
bootcmd=fsload 80800000 image/uImage;bootm 80800000
bootargs=console=ttyS0,115200 root=31:08 rootfstype=squashfs init=/etc/preinit mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),3392k(rootfs),64k(config),128k(language_table),64k(pot),64k(traffic_meter),64k(ART),3473344@327744(mount_fs)
stdin=serial
stdout=serial
stderr=serial
ethact=eth1
Environment size: 451/65532 bytes
ar7240> bdinfo
boot_params = 0x81F6BFB0
memstart = 0x80000000
memsize = 0x02000000
flashstart = 0x9F000000
flashsize = 0x00400000
flashoffset = 0x00039A28
ethaddr = 00:AA:BB:CC:DD:EE
ip_addr = 192.168.1.1
baudrate = 115200 bps
ar7240>
(Last edited by Ballz on 8 Jul 2014, 16:54)