Date: Sat, 20 Jul 2013 23:22:15 -0700 From: Adrian Chadd <adrian@freebsd.org> To: sbruno@freebsd.org Cc: freebsd-embedded@freebsd.org Subject: Re: Dlink DIR-825 B1 status Message-ID: <CAJ-VmondZPFnKa-Ko=X1g4Dmd9nZLDhFm7Xis8wy__fwF2zQUg@mail.gmail.com> In-Reply-To: <1374340359.1421.3.camel@localhost> References: <1374340359.1421.3.camel@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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@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@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmondZPFnKa-Ko=X1g4Dmd9nZLDhFm7Xis8wy__fwF2zQUg>