OpenWrt Forum Archive

Topic: AG108 can't load root (redboot partition problem)

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

I tried to boot the latest snapshot of kamikaze on the WHR-HP-AG108

The kernel and rootfs were taken from http://downloads.openwrt.org/snapshots/atheros-2.6/. It will boot the kernel but then it won't recognize the redboot partitions on the flash.
Redboot is the original version that came with the AG108.

Here's the flash layout:

RedBoot> fis list
Name              FLASH addr  Mem addr    Length      Entry point
RedBoot           0xBE000000  0xBE000000  0x00050000  0x00000000
RedBoot config    0xBE3DF000  0xBE3DF000  0x00001000  0x00000000
FIS directory     0xBE3D0000  0xBE3D0000  0x0000F000  0x00000000
vmlinux.bin.gz    0xBE050000  0x80041000  0x000F0000  0x80041000
rootfs            0xBE140000  0x80000400  0x00290000  0x80000400

And here's the "physmap" that does not find the redboot partitions:

physmap platform flash device: 00400000 at 1e000000
physmap-flash physmap-flash.0: map_probe failed

I would attach a full log for reference but it seems I can't do it (if needed I'll post it).

Do I need special redboot partition/loader?
How do I debug this issue?
I have a fully functional buildroot-ng and I can build images/use the serial console...

Mesher

PS: I tried a daily build from <another distro> and sure enough it finds the redboot partition. I'm including the log in case it's usefull

physmap platform flash device: 00400000 at 1e000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
physmap-flash.0: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
Searching for RedBoot partition table in physmap-flash.0 at offset 0x3d0000
6 RedBoot partitions found on MTD device physmap-flash.0
Creating 6 MTD partitions on "physmap-flash.0":
0x00000000-0x00050000 : "RedBoot"
0x00050000-0x003c0000 : "rootfs"
0x002f0000-0x003b0000 : "linux"
0x003b0000-0x003c0000 : "nvram"
0x003d0000-0x003df000 : "FIS directory"
mtd: partition "FIS directory" doesn't end on an erase block -- force read-only
0x003df000-0x003e0000 : "RedBoot config"
mtd: partition "RedBoot config" doesn't start on an erase block boundary -- force read-only
u32 classifier
    OLD policer on

(Last edited by mesher on 27 Mar 2007, 11:48)

Should be fixed in r6727. Please run svn update; make target/linux-clean world.

Nbd... you're the man. It works now.

Here's the physmap now:

physmap platform flash device: 00400000 at 1e000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
physmap-flash.0: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
Searching for RedBoot partition table in physmap-flash.0 at offset 0x3d0000
5 RedBoot partitions found on MTD device physmap-flash.0
Creating 5 MTD partitions on "physmap-flash.0":
0x00000000-0x00050000 : "RedBoot"
0x00050000-0x00140000 : "vmlinux.bin.gz"
0x00140000-0x003d0000 : "rootfs"
0x00240000-0x003d0000 : "rootfs_data"
0x003d0000-0x003df000 : "FIS directory"
0x003df000-0x003e0000 : "RedBoot config"

I'm also including a piece of serial output which you might be interested in:

ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.17.2 (AR5212, AR5312, RF2316, TX_DESC_SWAP)
ath_rate_sample: 1.2 (0.9.2.1)
wlan: mac acl policy registered
ath_ahb: 0.9.4.5 (0.9.2.1)
wifi%d: unable to attach hardware: 'Hardware revision not supported' (HAL status
 13)
wifi%d: unable to attach hardware: 'Hardware revision not supported' (HAL status
 13)
sysctl: error: 'net.ipv4.tcp_syncookies' is an unknown key
sysctl: error: 'net.ipv4.ip_conntrack_tcp_timeouts' is an unknown key
sysctl: error: 'net.ipv4.ip_conntrack_udp_timeouts' is an unknown key

Please tell me if you don't have an AG108 to work on, or if I can do anything to help out the project (I'm _not_ new to embedded programming).

In the mean time I'll give you some output: wifi0 is not present (madwifi problem?), but the modules load properly (?):

root@OpenWrt:/etc/config# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:16:01:XX:XX:XX
          inet addr:192.168.3.3  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:44 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6120 (5.9 KiB)  TX bytes:650 (650.0 B)
          Interrupt:3 Base address:0x1000

eth1      Link encap:Ethernet  HWaddr 00:16:01:xx:xx:xx
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4 Base address:0x1000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1416 (1.3 KiB)  TX bytes:1416 (1.3 KiB)

root@OpenWrt:/etc/config# lsmod
Module                  Size  Used by    Tainted: P
ath_ahb                69488  0
wlan_xauth               480  0
wlan_wep                4320  0
wlan_tkip              10144  0
wlan_ccmp               5856  0
wlan_acl                2208  0
ath_rate_sample         8032  1 ath_ahb
ath_hal               140448  2 ath_ahb,ath_rate_sample
wlan_scan_sta           8224  0
wlan_scan_ap            2720  0
wlan                  136288  9 ath_ahb,wlan_xauth,wlan_wep,wlan_tkip,wlan_ccmp,
wlan_acl,ath_rate_sample,wlan_scan_sta,wlan_scan_ap
ip_conntrack_tftp       1648  0
ip_nat_irc               896  0
ip_conntrack_irc        2800  1 ip_nat_irc
ip_nat_ftp              1632  0
ip_conntrack_ftp        3824  1 ip_nat_ftp
ppp_async               9504  0
ppp_generic            23904  1 ppp_async
slhc                    4608  1 ppp_generic
crc_ccitt               1024  1 ppp_async
root@OpenWrt:/etc/config#

Now that the kernel works, I'll try to figure it out in madwifi 0.9.2.1 or give 0.9.3 a chance.

Thank you
Mesher.

You currently have to change the HAL that it uses. Edit package/madwifi/Makefile and replace the 'ap51' hal with 'ap43', then rebuild...

nbd wrote:

You currently have to change the HAL that it uses. Edit package/madwifi/Makefile and replace the 'ap51' hal with 'ap43', then rebuild...

I tought it was ap30... but will try with ap43 smile
Mesher

go with ap30, that's the right one smile

AP30 is the right one wink I can scan the network and I can see other AP around.

In the next days I'll be testing the AG108 to some extent. Is there anything in particular that you want me to check?

Nbd: Thanks again for fixing the redboot... It would take me ages to find it myself.

Mesher.

Hi mesher,

I have the same problem with my 2100AP

ath_hal: module license 'Proprietar
y' taints kernel.
ath_hal: 0.9.17.2 (AR5212, AR5312, RF2316, TX_DESC_SWAP)
ath_rate_sample: 1.2 (0.9.2.1)
wlan: mac acl policy registered
ath_ahb: 0.9.4.5 (0.9.2.1)
wifi%d: unable to attach hardware: 'Hardware revision not supported' (HAL status
 13)

Can you tell me how you have solved?

Thenk you

how do I rebuild the thing? I'm installing ag108 and I can't load the driver?

can you point me to some fine build?

thanks

The discussion might have continued from here.