Dlink DIR-825 B1 status
Adrian Chadd
adrian at freebsd.org
Sun Jul 21 06:22:17 UTC 2013
so there's some fixup code that has to be run. Look at ar71xx_pci.c,
AR71XX_ATH_EEPROM, and ar71xx_pci_fixup().
In DIR-825.hints:
# ath0 - slot 17
hint.pcib.0.bus.0.17.0.ath_fixup_addr=0x1fff1000
hint.pcib.0.bus.0.17.0.ath_fixup_size=4096
# ath1 - slot 18
hint.pcib.0.bus.0.18.0.ath_fixup_addr=0x1fff5000
hint.pcib.0.bus.0.18.0.ath_fixup_size=4096
So ignoring the driver attach bit, we need to figure out why the
eeprom isn't correctly loading in these values.
Now, what I think is going on - I think my values above are incorrect.
The default image puts it ~ 6mb into the image, NOT the last 64k in
the 8mb flash:
# The DIR-825 has an 8MB flash part - HOWEVER, the 64k caldata isn't
# at the end of the flash. It's ~ 6MB into the flash image.
# mtdparts=ar7100-nor0:256k(uboot),64k(Config),1024k(vmlinux),5184k(rootfs),64k(caldata)
..
hint.map.4.at="flash/spi0"
hint.map.4.start=0x00660000
hint.map.4.end=0x00670000
hint.map.4.name="art"
hint.map.4.readonly=1
.. and so I think the address needs to be 0x1f661000 and 0x1f665000 ..
not 0x1fff1000/0x1fff5000.
So try modifying the fixup_addr to be 0x1f661000 and 0x1f665000 and
see if the fixup stuff .. actually fixes things up.
-adrian
On 20 July 2013 10:12, Sean Bruno <sean_bruno at yahoo.com> wrote:
> Using adrian's build sys, I've been able to get this router up with
> FreeBSD. There's no indication that it has wireless interfaces on it,
> which is odd.
>
> dmesg --> http://people.freebsd.org/~sbruno/dir_825_dmesg.txt
>
> There appears to be unattached devices, I suspect maybe I should just
> add them to the appropriate driver and recompile?
>
> # pciconf -lvb
> none0 at pci0:0:17:0: class=0x020000 card=0xee1c168c chip=0xff1d168c
> rev=0x01 hdr=0x00
> vendor = 'Atheros Communications Inc.'
> device = 'AR5008 Wireless Network Adapter'
> class = network
> subclass = ethernet
> bar [10] = type Memory, range 32, base 0, size 65536, disabled
> none1 at pci0:0:18:0: class=0x020000 card=0xee1c168c chip=0xff1d168c
> rev=0x01 hdr=0x00
> vendor = 'Atheros Communications Inc.'
> device = 'AR5008 Wireless Network Adapter'
> class = network
> subclass = ethernet
> bar [10] = type Memory, range 32, base 0, size 65536, disabled
>
>
> Sean
>
> p.s. I was totally shocked that there's a pci bus on this thing. That
> blew my mind.
More information about the freebsd-embedded
mailing list