New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
You are absolutely correct in that one should use the gpio-led functionality. The reason for me not using it in the first place was to accommodate the use of this one wire pvm.
Unfortunately our userspace code isn't that abstracted. Fortunately we are talking about some shell scripts and a few perl dito. So migrating these really shouldn't be a big problem.
Regarding the blinking from the dns323 I say ignore it. I assume this code uses the built in blink functionality in the CPU. The frequency is derived from one of the clock sources and we wrote that of for some reason, which i don't remember any more, during development.
And if you want more info/help don't hesitate to contact me personally. I would really like seeing these sources upstream but our resources internally is limited to say the least
I did see the Debian post before. It seems like a good itch to scratch, get it in mainline. I've had a few minor patches included in the past, but never support for a new target.
It looks like the basic target code itself is not too controversial. The four defconfig i guess are a no go, given the recent removal of lots of defconfig files from the ARM arch. I will at some point look at how well the kirkwood_defconfig fits. Inverting the PHY LED i guess is also doable. The Atheros regulatory domains could be a bigger issue. Some how i think that patch will get rejected, unless it is possible to argue that other chipsets allow it. Maybe a better solution is to provide a tool for writing to the eeprom? I've no idea if that is actually possible.
Regarding defconfigs, I think you really would like to have our default default one if possible. The other three is only for our maintenance and could safely be removed.
The phy-led patch does not add any necessary functionality. WIthout it the leds will, as implied, be inverted i.e on it is normally of and vice versa. But that said it would be nice to have included.
The regulatory patch will never be accepted upstream, we picked that one up from openwrt, since it loosens the regulatory. Allowing us to set a domain depending on what country/timezone you are in.
/Tor
Last edited by tor on 11 Feb 2011, 02:23, edited 1 time in total.
Reason:Completning sentence :)
Looking at the sources it seems that only one defconfig per architecture is now allowed. It contains enough to compile the kernel, but it is very minimalistic. When building a distribution you use another .config file, eg the debian .config, or the ubuntu .config.
My current plan is to just add the bubba3 to the kirkwood defconfig and not submit any other defconfig files. Anybody building 3.6.39 would just copy the 2.6.37 .config from /boot and use that as a basis.
You can safely ignore these functions for now. The first revisions of B3 had a one wire "pvm" interface to enable blinking with the leds. This never worked out due to crappy documentation on that circuit (Resulting in really crappy code on that part as well). Thus we ripped out all functionality except the code to set the circuit in "Pass through" mode leaving simple GPIO for the leds.
Upcoming production batches will thus not even have this circuit. So do ignore
/Tor
What state does the PWM come up in? Do i need to initialize it into pass through mode, or will a power on reset will it on its own go into pass through mode? Is the data sheet available without an NDA?
I don't want to break however many thousand devices that are already out there with the PWM, but i also don't want to add code if its not needed.
However, this is only currently available in my kernel. I ran into problems getting this into mainline linux kernel. They have stopped accepting new ARM boards unless you do it with device tree. I'm waiting for device tree support for ARM to stabilize a bit, maybe Linux 3.1, then i want to work on making B3 boot with device tree.