LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This 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


Reply
  Search this Thread
Old 05-04-2018, 03:17 AM   #1
shafin.vahora
LQ Newbie
 
Registered: Sep 2017
Posts: 11

Rep: Reputation: Disabled
cyclone board on PCI bus with linux 4.4.43


Hi..

I am working on linux pc with kernel 4.4.43. and i want to configure cyclone development board as a device on pci bus.

For that i have prepared usb device driver for cyclone 5 board and loading successfully got prints in dmesg.as follow

Code:
udc_init()
[    3.635397] **************My Own PCI Driver Starting ****************
[    3.635398] 
[    3.635398] ******** PCIe to SDHC Bridge Driver initialization started ********
[    3.635400] sls_usb31_pcie: PCIe Device Vendor ID :: 0x1172.
[    3.635401] sls_usb31_pcie: PCIe Device Product ID :: 0xe001.
[    3.635403] sls_usb31_pcie: PCI Device Found Successfully.
[    3.635413] usbs_udc_probe()
[    3.635415] sls_usbs_udc31 0000:01:00.0: Entering in to usbs_udc_probe()
[    3.635416] sls_usbs_udc31 0000:01:00.0: usbs_udc_probe
[    3.635417] sls_usb31_pcie: AT Starting of sls_usb31_probe......
[    3.635418] sls_usb31_pcie : Device 0xe001 has been found at bus 1 pdev 0 func 0
[    3.635449] sls_usb31_pcie: pci_enable_device = 0
[    3.635450] sls_usb31_pcie: pci_enable_device called successfully...
[    3.635451] sls_usb31_pcie: Started to read debug information......
[    3.635451] 
[    3.635454] sls_usb31_pcie: Vendor id: 1172
[    3.635456] sls_usb31_pcie: Device id: e001
[    3.635459] sls_usb31_pcie: Device Status: 10
[    3.635462] sls_usb31_pcie: Command Register : : 100006
[    3.635462] sls_usb31_pcie: Resources Allocated :
[    3.635465] sls_usb31_pcie: BAR0 : fbff0000
[    3.635467] sls_usb31_pcie: BAR1 : 0
[    3.635470] sls_usb31_pcie: BAR2 : fbfff000
[    3.635472] sls_usb31_pcie: BAR3 : f4000000
[    3.635475] sls_usb31_pcie: BAR4 : 0
[    3.635477] sls_usb31_pcie: BAR5 : 0
[    3.635480] sls_usb31_pcie: PCI_INTERRUPT_LINE : 5
[    3.635482] sls_usb31_pcie: PCI_INTERRUPT_PIN  : 1
[    3.635485] sls_usb31_pcie: PCI_MIN_GNT  : 0
[    3.635487] sls_usb31_pcie: PCI_MAX_LAT  : 0
[    3.635490] sls_usb31_pcie: PCI_CACHE_LINE_SIZE  : 10
[    3.635492] sls_usb31_pcie: PCI_LATENCY_TIMER  : 0
[    3.635495] sls_usb31_pcie: PCI_HEADER_TYPE  : 0
[    3.635497] sls_usb31_pcie: PCI_BIST  : 0
[    3.635498] sls_usb31_pcie: End of reading debug information......
[    3.635498] 
[    3.635500] sls_usb31_pcie: BAR 0 pci_resource_start iomem (0xfbff0000).
[    3.635500] sls_usb31_pcie: BAR 0 pci_resource_end iomem (0xfbff7fff).
[    3.635501] sls_usb31_pcie: BAR 0 pci_resource_flags iomem (0x40200).
[    3.635502] sls_usb31_pcie: BAR 0 pci_resource_len iomem (0x8000).
[    3.635503] sls_usb31_pcie: BAR 0 is IO Memory....
[    3.635504] sls_usb31_pcie: BAR 1  pci_resource_start iomem (0x0).
[    3.635505] sls_usb31_pcie: BAR 1  pci_resource_end iomem (0x0).
[    3.635506] sls_usb31_pcie: BAR 1  pci_resource_flags iomem (0x0).
[    3.635507] sls_usb31_pcie: BAR 1  pci_resource_len iomem (0x0).
[    3.635508] sls_usb31_pcie: BAR 1 is not IO Resource & Memory....
[    3.635509] sls_usb31_pcie: BAR 2  pci_resource_start iomem (0xfbfff000).
[    3.635509] sls_usb31_pcie: BAR 2  pci_resource_end iomem (0xfbffffff).
[    3.635510] sls_usb31_pcie: BAR 2  pci_resource_flags iomem (0x40200).
[    3.635511] sls_usb31_pcie: BAR 2  pci_resource_len iomem (0x1000).
[    3.635512] sls_usb31_pcie: BAR 2 is IO Memory....
[    3.635513] sls_usb31_pcie: BAR 3  pci_resource_start iomem (0xf4000000).
[    3.635514] sls_usb31_pcie: BAR 3  pci_resource_end iomem (0xf7ffffff).
[    3.635515] sls_usb31_pcie: BAR 3  pci_resource_flags iomem (0x40200).
[    3.635516] sls_usb31_pcie: BAR 3  pci_resource_len iomem (0x4000000).
[    3.635517] sls_usb31_pcie: BAR 3 is IO Memory....
[    3.635517] sls_usb31_pcie: BAR 4  pci_resource_start iomem (0x0).
[    3.635518] sls_usb31_pcie: BAR 4  pci_resource_end iomem (0x0).
[    3.635519] sls_usb31_pcie: BAR 4  pci_resource_flags iomem (0x0).
[    3.635520] sls_usb31_pcie: BAR 4  pci_resource_len iomem (0x0).
[    3.635521] sls_usb31_pcie: BAR 4 is not IO Resource & Memory....
[    3.635522] sls_usb31_pcie: BAR 5  pci_resource_start iomem (0x0).
[    3.635523] sls_usb31_pcie: BAR 5  pci_resource_end iomem (0x0).
[    3.635523] sls_usb31_pcie: BAR 5  pci_resource_flags iomem (0x0).
[    3.635524] sls_usb31_pcie: BAR 5  pci_resource_len iomem (0x0).
[    3.635525] sls_usb31_pcie: BAR 5 is not IO Resource & Memory....
[    3.635532] udc->regs: 774000
[    3.635535] CRA: f0000000
[    3.635537] CRA: f0000000
[    3.635540] CRA: f0000000
[    3.635542] CRA: f0000000
[    3.635544] CRA: f0000000
[    3.635547] CRA: f0000000
[    3.635550] CRA: f0000000
[    3.635552] CRA: f0000000
[    3.635600] sls_usb31_pcie: MSI-X Interrupt enabled successfully.
[    3.635601] sls_usb31_pcie: PCIe MSI-X Interrupt No :: 35.
[    3.635609] usbs_ep[0].ep_regs: 774200
[    3.635610] usbs_ep[0].ep.name: ep0-control
[    3.635611] Default usbs_ep[0].ep.maxpacket: 200
[    3.635612] ep0-fifo-ss: 200
[    3.635612] ep0-fifo-hs: 40
[    3.635613] ep0-fifo-fs: 40
[    3.635614] ep[1]-dir: 31
[    3.635615] EP_Base: 7742c0
[    3.635616] EP Name: ep1
[    3.635617] Default Ep Maxpacket: 400
[    3.635617] ep-fifo-ss: 400
[    3.635625] ep-fifo-ss: 200
[    3.635625] ep-fifo-ss: 40
[    3.635626] -------------------------
[    3.635660] Scratch Reg:	5
[    3.635663] Dev_int_en:	1e0377
[    3.635666] Dev_ctrl:	f
[    3.635668] usbs_udc_probe() success
[    3.635679] sls_usb31_pcie: pci_register_driver successfully.
[    3.635680] sls_usbs_udc31: SLS USB UDC driver
[    3.635687] usbs_ep_alloc_request()
[    3.635689] usbs_udc_set_selfpowered()
[    3.635694] usbs_match_ep()
[    3.635695] usbs_match_ep1_in400
[    3.635618] ep-fifo-ss: 200
[    3.635619] ep-fifo-ss: 40
[    3.635620] -------------------------
[    3.635621] ep[2]-dir: 30
[    3.635621] EP_Base: 774340
[    3.635622] EP Name: ep2
[    3.635623] Default Ep Maxpacket: 400
[    3.635624] ep-fifo-ss: 400
[    3.635625] ep-fifo-ss: 200
[    3.635625] ep-fifo-ss: 40
[    3.635626] -------------------------
[    3.635660] Scratch Reg:	5
[    3.635663] Dev_int_en:	1e0377
[    3.635666] Dev_ctrl:	f
[    3.635668] usbs_udc_probe() success
[    3.635679] sls_usb31_pcie: pci_register_driver successfully.
[    3.635680] sls_usbs_udc31: SLS USB UDC driver
[    3.635687] usbs_ep_alloc_request()
[    3.635689] usbs_udc_set_selfpowered()
[    3.635694] usbs_match_ep()
[    3.635695] usbs_match_ep1_in
But the problem is whenever i try to load g_zero using command
: $modprobe g_zero
it will some time load successfully and some times gives an error that "NO such device found"

any help would be appreciated.

Last edited by onebuck; 05-15-2018 at 05:43 PM. Reason: clean up post, please use [code] tags not [quote]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Myricom 10Gb PCI Card Detected on PCI Bus but not mapped jeriryan Linux - Hardware 1 01-23-2011 03:09 AM
Is AGP on the PCI bus on Linux? wufo Linux - Hardware 2 10-02-2010 03:32 PM
PCI:Probing PCI Hardware (bus 00) on LINUX install akansha Linux - Newbie 3 03-03-2010 01:30 AM
driver compatibility (3c905B TX PCI [Cyclone]) Omni Linux - Networking 3 12-30-2004 09:06 PM
3Com PCI 3c905B Cyclone & 3c905 Boomerang on 2.6 kernel = not working! snakey66 Linux - Networking 2 07-24-2004 05:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration