Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am working with linux usbgadget driver for Arria 10 soc device. I have developed it for uClinux distribution successfully, and now working with angstrom distribution with kernel 4.1.33.
I am facing issue of not registering gadget i.e. after successfully probed udc_start callback function is not calling by udc class driver. Another issue is not read/write any register on device address.
Please help if anyone has worked for SOC device.
Regards,
Shafin Vahora
Jr. Software Engineer,
System Level Solutions(India) Pvt. Ltd
Hi,
I am working with linux usbgadget driver for Arria 10 soc device. I have developed it for uClinux distribution successfully, and now working with angstrom distribution with kernel 4.1.33.
I am facing issue of not registering gadget i.e. after successfully probed udc_start callback function is not calling by udc class driver. Another issue is not read/write any register on device address. Please help if anyone has worked for SOC device.
We can try to help, but without seeing your code, what do you think we'll be able to tell you, based on what you posted? And it seems very odd that you developed this kernel module, programmed it, and got it working...but now cannot debug/modify that same code.
Read the LQ Rules and "Question Guidelines"...post your code in CODE tags to make it easy to read. There are barely any comments in any of this to let anyone know what it's doing...can you elaborate? Post the message(s)/error(s) you're getting from the command line when you try to run it?
And again...if YOU are the one who wrote this code for the original device/hardware, it seems VERY ODD that you are totally unable to debug it or make changes to it.
Read the LQ Rules and "Question Guidelines"...post your code in CODE tags to make it easy to read. There are barely any comments in any of this to let anyone know what it's doing...can you elaborate? Post the message(s)/error(s) you're getting from the command line when you try to run it?
And again...if YOU are the one who wrote this code for the original device/hardware, it seems VERY ODD that you are totally unable to debug it or make changes to it.
Hi,
Above code is just a simple driver probe function. Output of above code for my usb device controller driver is as below.
Now my question is after successful probing of a driver udc class driver invokes udc_start callback function to register gadget to udc. Here, scratch register value shows zero means i am not able to write for a given base address (regs->start: ff200000). This device start address information is getting from socfpga_arria10.dtsi file.
Please help, if any one has developed for Arria 10 soc device.
Now my question is after successful probing of a driver udc class driver invokes udc_start callback function to register gadget to udc. Here, scratch register value shows zero means i am not able to write for a given base address (regs->start: ff200000). This device start address information is getting from socfpga_arria10.dtsi file.
AGAIN, you need to post code in CODE tags. And unless you answer questions, there is not much point in posting. You were told that your code had no comments, so (aside from someone here debugging it for you, which probably isn't ever going to happen), we have no idea on how it works. You now mention it's getting info from some other file (which you didn't mention before now), and also do not post details of IT either.
And AGAIN...you said that YOU wrote this code, so AGAIN...WHY CAN YOU NOT DEBUG YOUR OWN CODE????
AGAIN, you need to post code in CODE tags. And unless you answer questions, there is not much point in posting. You were told that your code had no comments, so (aside from someone here debugging it for you, which probably isn't ever going to happen), we have no idea on how it works. You now mention it's getting info from some other file (which you didn't mention before now), and also do not post details of IT either.
And AGAIN...you said that YOU wrote this code, so AGAIN...WHY CAN YOU NOT DEBUG YOUR OWN CODE????
Quote:
Here is my probe function code. After successful probe completion, no udc_start callback function is invoking.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.