Hi,
> Why is needed in so early stages? to load the eeprom. the dgn3500 has no eep attached to the wifi chip and requires the eeprom to be loaded from falsh > Why not in a kernel module? its a platform specific issue and should be handled in the arch code raqther than inside the wifi driver > This seems the solution on atheros driver in netgear's firmware, or not? no idea how netgear did it anyhow, as i pointed out, we are very very close to moving to OF support. As part of the move i am planning to add OF support to point ath9k at a flash located eep. While we are at it, we will also resolve the reg domain issue, simply to make luca happy :-) thanks, John > > On 08/05/2012 12:07, John Crispin wrote: >> On 07/05/12 21:39, Pieter Voorthuijsen wrote: >>> Hi all, >>> >>> I've been working on the dgn3500 implementation and I have a patch that >>> fully supports this platform. I need advice on an init script to load >>> the eeprom from user-space: >>> >>> +#!/bin/sh /etc/rc.common >>> +# Copyright (C) 2012 Pieter Voorthuijsen >>> + >>> +START=04 >>> +start() { >>> + echo "Loading eeprom into platform data" >>> + dd if=/dev/mtd2 of=/sys/firmware/ath_eeprom bs=1k skip=60 count=4 >>> + echo 0> /sys/bus/pci/slots/0000\:00\:0e.0/power >>> + sleep 1 >>> + echo 1> /sys/bus/pci/rescan >>> +} >>> + >>> >>> I want to place this in rc.d (S04athfixup), is that the right spot? >>> Right now the code runs for all lantiq boards, can I detect the board in >>> this stage? >>> >>> Kind regards, >>> Pieter >> >> Hi, >> >> we will move the lantiq target to OF support soon and will need to find >> a more generic solution for this problem anyhow. >> >> i am currently considering to load pci after nand/spi to be able to get >> the pci fixup code to load the eeprom directly. >> >> anyhow, i have no problem merging the porposed patch as long as it works. >> >> John >> _______________________________________________ >> openwrt-devel mailing list >> openwrt-devel@lists.openwrt.org >> https://lists.openwrt.org/mailman/listinfo/openwrt-devel > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel > _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel