OpenWrt Forum Archive

Topic: Siemens Gigaset SX763 - USB patch?

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Why there is still no Image for Gigagset SX76X (SX763) available in trunk?

Why the ugly-usb patch can't be added so it works out-of-the-box?
I've found one developer that made image for this device, but his kernel is too old for me to run FXS ports that are available in the device! And some packages are missing. :-(
I'd like to somehow download image from: http://downloads.openwrt.org/snapshots/trunk/lantiq/
THe one from 12.09-beta doesn't work properly. :-(
The fix is for dwc_otg_ifx.c - I've found info on: http://svn.dd-wrt.com/changeset/18256, but DD-wrt doesnt work for me.
Please, keep up the good work and help me run this thing.
I cant go back to original firmware to get SIP working also... all the fws on the net doesnt work anymore on my device...

Regards,
A.

The ticket was https://dev.openwrt.org/ticket/12769 closed:
"Resolution set to wontfix
Status changed from new to closed
the provided patch breaks all boards that are not sx763. please provide a patch that does runtime detection of the sx763 board."

Is there anyone here, that knows C better than me?
I mean - my knownledge stops @ some arduino fun few months ago...

I don't really believe that it's impossible to do some kind of check, like:
if $chipset = [sx763] then:
(patch code)
else:
(old code)

Will anyone please help with that?
I'd love to use OpenWRT on this machine and get to know the enviroment better.

Regards,
Andrew

I see that ticket was closed once again without reason.

I've provided a link to patch which is EXACTLY what's been asked for - the 'ifdef' switch which enables code only for Gigaset SX76X!

#ifdef CONFIG_LANTIQ_MACH_GIGASX76X 

What should be done to include this patch:
http://svn.dd-wrt.com/changeset/18256/s … _otg_ifx.c
in official code?

No, the maintainer asked for a _runtime_ detection, the ifdef switch is a compile time selection, thats what he was referring to when stating that it will break all non-SX763 boards.

In the future all Lantiq board will share one common kernel build, only differentiated through device trees, therfore you cannot rely on any conditional compilation.

I don't really get the difference, but I'm not a developer of the kernel tho - I thought that when I don't compile something in the code, it won't work. So if there's a switch which checks if something is Gigaset, then it will work.

THe other thing is - what's 'non-SX763' meaning? SX763 is the only that have OpenWRT working as far as I can see on OpenWRT website...
It's really confusing.

jow wrote:

In the future all Lantiq board will share one common kernel build, only differentiated through device trees, therfore you cannot rely on any conditional compilation.

What does it mean for me, as a OpenWRT-without-USB user? That the patch may be included/work?
And could you estimate the meaning of 'future'?

For devs: if there's someone willing to test patch of that 'runtime patch' on SX763 - I have serial access to it, can check and give back feedback, if needed.
I still don't really think it's impossible to code that 'if'-switch into kernel. I just don't know how...

Thanks and regards,
Andrew

(Last edited by andrut on 10 Jan 2013, 13:50)

The discussion might have continued from here.