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