Page 1 of 1

FON 2100 help

Posted: Wed Jul 10, 2013 11:16 am
by slack
I have recently tried out Gargoyle on a TL-WR703N and it worked so well that I purchased a TL-WR1043ND to install Gargoyle on too. So I decided I would dig out some FON 2100 routers I had laying around and install Gargoyle.

I have 2 of these, but most of the work has been only done on one. Both of these have likely had their firmware used and abused. I have attempted to install Gargoyle 1.5.10 and 1.4.7. I have used FonFlash and I have used the serial console.

I have had a few problems along the way, but where I ended up is that I can get the kernel and file system installed, but when it boots the process just hangs. I can see the kernel is getting loaded and getting through the boot process, but at some point it just hangs.

Hopefully there is someone that might have an idea what is going on. Here are the details from my last attempt. I was monitoring the serial console, but the upgrade was done with Fon Flash using Gargoyle 1.4.7. I didn't log the part where Fon Flash sized the Kernel and file system. I can always redo this if needed.

Fon Flash Install

Code: Select all

Initializing partitions ...
fis init

loading file:
load -r -b 0x80100000 -m tftp file_1

creating flash partition (this may take some time)
fis create -f 0xa8030000 -l 0x006d0000 -e 0x00000000 rootfs

loading file:
load -r -b 0x80100000 -m tftp file_2

creating flash partition (this may take some time)
fis create -f 0xa8700000 -l 0x000d0000 -e 0x80041000 -r 0x80041000 vmlinux.bin.l7

Setting boot_script_data...
fis load -l vmlinux.bin.l7
exec

Done. Restarting device...
Boot Log

Code: Select all

+PHY ID is 0022:5521
Ethernet eth0: MAC address 00:18:84:21:6f:40
IP: 192.168.1.254/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.2

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version v1.3.0 - built 16:57:58, Aug 7 2006

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: ap51
RAM: 0x80000000-0x81000000, [0x80040450-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 10.000 seconds - enter ^C to abort
RedBoot> fis load -l vmlinux.bin.l7
Image loaded from 0x80041000-0x802a8200
RedBoot> exec
Now booting linux kernel:
 Base address 0x80030000 Entry 0x80041000
 Cmdline :
Linux version 2.6.30.10 (eric@Osiris) (gcc version 4.3.3 (GCC) ) #1 Wed Feb 29 18:56:31 EST 2012
console [early0] enabled
CPU revision is: 00019064 (MIPS 4KEc)
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
 Normal 0x00000000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
 0: 0x00000000 -> 0x00001000
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064
Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
NR_IRQS:128
PID hash table entries: 64 (order: 6, 256 bytes)
console handover: boot [early0] -> real [ttyS0]
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13412k/16384k available (1999k kernel code, 2972k reserved, 334k data, 128k init, 0k highmem)
Calibrating delay loop... 183.50 BogoMIPS (lpj=917504)
Mount-cache hash table entries: 512
net_namespace: 528 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
pci 0000:00:00.0: BAR 1: can't allocate mem resource [0x84000000-0x857f7fff]
pci 0000:00:03.0: BAR 1: can't allocate mem resource [0x84000000-0x857f7fff]
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
Radio config found at offset 0xf8(0x1f8)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
msgmni has been set to 26
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A
eth0: Atheros AR231x: 00:18:84:21:6f:40, irq 4
ar231x_eth_mii: probed
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:00)
cmdlinepart partition parsing not available
Searching for RedBoot partition table in spiflash at offset 0x7d0000
Searching for RedBoot partition table in spiflash at offset 0x7e0000
6 RedBoot partitions found on MTD device spiflash
Creating 6 MTD partitions on "spiflash":
0x000000000000-0x000000030000 : "RedBoot"
0x000000030000-0x000000700000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=2B0000, len=450000
0x0000002b0000-0x000000700000 : "rootfs_data"
0x000000700000-0x0000007d0000 : "vmlinux.bin.l7"
0x0000007e0000-0x0000007ef000 : "FIS directory"
0x0000007ef000-0x0000007f0000 : "RedBoot config"
0x0000007f0000-0x000000800000 : "boardconfig"
TCP westwood registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller 
Flash List from Redboot

Code: Select all

RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0xA8000000 0xA8000000 0x00030000 0x00000000
rootfs 0xA8030000 0xA8030000 0x006D0000 0x00000000
vmlinux.bin.l7 0xA8700000 0x80041000 0x000D0000 0x80041000
FIS directory 0xA87E0000 0xA87E0000 0x0000F000 0x00000000
RedBoot config 0xA87EF000 0xA87EF000 0x00001000 0x00000000

Re: FON 2100 help

Posted: Fri Jul 12, 2013 9:26 pm
by slack
If you have successfully loaded Gargoyle to a FON2100 I would glad to hear it. Bonus points if you can post the boot and "fis list" from redboot, but even a copy of "dmesg" output for a running router would be great. Please let me know what version of Gargoyle you have installed.

Thanks,

Slack