Imaging solutions with Free Software & Open Hardware

Who's online

There are currently 0 users online.

04/14/16 [meta-elphel393][framepars] by Oleg Dzhimiev: minor change

Elphel GIT logs - Thu, 04/14/2016 - 01:44
Oleg Dzhimiev committed changes to the Elphel git project :
minor change

04/14/16 [meta-elphel393][master-next] by Oleg Dzhimiev: device tree split

Elphel GIT logs - Thu, 04/14/2016 - 01:12
Oleg Dzhimiev committed changes to the Elphel git project :
device tree split

04/13/16 [linux-elphel][framepars] by Mikhail Karpenko: Fix wrong buffer size reporting

Elphel GIT logs - Wed, 04/13/2016 - 21:24
Mikhail Karpenko committed changes to the Elphel git project :
Fix wrong buffer size reporting

04/13/16 [linux-elphel][master] by Mikhail Karpenko: receive corrupted image

Elphel GIT logs - Wed, 04/13/2016 - 20:40
Mikhail Karpenko committed changes to the Elphel git project :
receive corrupted image

04/13/16 [linux-elphel][master-next] by Oleg Dzhimiev: writel/readl work now

Elphel GIT logs - Wed, 04/13/2016 - 18:57
Oleg Dzhimiev committed changes to the Elphel git project :
writel/readl work now

04/13/16 [linux-elphel][master] by Oleg Dzhimiev: function to reset USB

Elphel GIT logs - Wed, 04/13/2016 - 16:51
Oleg Dzhimiev committed changes to the Elphel git project :
function to reset USB

04/13/16 [linux-elphel][master-next] by Oleg Dzhimiev: reset usb on pin 49

Elphel GIT logs - Wed, 04/13/2016 - 15:36
Oleg Dzhimiev committed changes to the Elphel git project :
reset usb on pin 49

Zynq development issues

Wiki Recent Changes - Tue, 04/12/2016 - 23:03

ISSUE 2: VSC330X:

New page

==ISSUE 1: USB==
===Description===
* Stopped working after switching from 3.10 to 4.0 kernel
===Config===
* kernel: <b>4.0 (linux-xlnx 468329e7fac2b22e76897fbd40532cc0884ded2a)</b>
* new device tree record:
<font size='2'>
...
ps7_usb_0: ps7-usb@e0002000 {
clocks = <&clkc 28>;
compatible = "xlnx,zynq-usb-2.20a", "chipidea,usb2";
reg = <0xe0002000 0x1000>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = <0 21 4>;
dr_mode = "host";
phy_type = "ulpi";
usb-phy = <&usb_phy0>;
} ;
...
} ;
...
usb_phy0: phy0{
compatible = "ulpi-phy";
#phy-cells = <0>;
reg = <0xe0002000 0x1000>;
viewport = <0x170>;
} ;
</font>
* .config
<font size='2'>
CONFIG_USB_ULPI=y
CONFIG_USB_ULPI_VIEWPORT=y
CONFIG_USB_CHIPIDEA_DEBUG=y
CONFIG_USB_GPIO_VBUS=n
CONFIG_USB_OTG=n /*do not care if <b>dr_mode = "host";</b>*/
CONFIG_USB_GADGET=n
</font>

===Log===
* dmesg:
<font size='2'>
[ 1.035759] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.042319] usbcore: registered new interface driver usb-storage
<span style='color:red;'>[ 1.073619] e0002000.ps7-usb supply vbus not found, using dummy regulator</span>
[ 1.103560] Registering platform device 'ci_hdrc.0'. Parent at e0002000.ps7-usb
<span style='color:red;'>[ 1.114806] ci_hdrc ci_hdrc.0: ChipIdea HDRC found, revision: 22, lpm: 0; cap: f00d4100 op: f00d4140</span>
<span style='color:red;'>[ 1.136023] ci_hdrc ci_hdrc.0: unable to init phy: -110</span>
<span style='color:red;'>[ 1.141232] ci_hdrc: probe of ci_hdrc.0 failed with error -110</span>
</font>

===a: vbus not found===
* the problem is not critical

===b: unable to init phy: -110===
* [http://www.wiki.xilinx.com/Zynq+Linux+USB+Device+Driver Zynq Linux USB Device Driver] - typo in docs but it's correct in the [http://www.wiki.xilinx.com/Zynq+Releases released image]
* note: order in the device tree does not matter
* corrected the device tree record (s/viewport/view-port/):
<font size='2'>
usb_phy0: phy0{
compatible = "ulpi-phy";
#phy-cells = <0>;
reg = <0xe0002000 0x1000>;
<b>view-port</b> = <0x170>;
} ;
</font>

===Links===
* [http://www.wiki.xilinx.com/Zynq+Linux+USB+Device+Driver Zynq Linux USB Device Driver] - typo came from here.
* [https://forums.xilinx.com/t5/Embedded-Linux/USB-boot-with-Linux-2015-2-build/td-p/643868 A discussion].
* [https://forums.xilinx.com/t5/Embedded-Linux/USB-works-in-device-mode-but-not-in-host-mode/td-p/679097 Forgot the contents, probably unrelated]



==ISSUE 2: VSC330X==
* Config and the kernel are the same as in ISSUE 1
===Log===
<font size='2'>
* dmesg:
[ 1.069904] <span style='color:red'>vsc330x 0-0001: vsc330x_i2c_probe:841 error writing</span>
[ 1.075745] <span style='color:red'>vsc330x: probe of 0-0001 failed with error -5</span>
</font>

===Reason===
* 10398 board, that has it, is not connected, that's it. Oleg

04/12/16 [linux-elphel][ahciwrite] by Mikhail Karpenko: WIP: imgsrv stops at reading frame params

Elphel GIT logs - Tue, 04/12/2016 - 22:53
Mikhail Karpenko committed changes to the Elphel git project :
WIP: imgsrv stops at reading frame params

04/12/16 [x393][framepars] by Andrey Filippov: removed stray line

Elphel GIT logs - Tue, 04/12/2016 - 22:25
Andrey Filippov committed changes to the Elphel git project :
removed stray line

04/12/16 [x393][master] by Andrey Filippov: made Result:OK, added py393/generated to .gitignore

Elphel GIT logs - Tue, 04/12/2016 - 22:18
Andrey Filippov committed changes to the Elphel git project :
made Result:OK, added py393/generated to .gitignore

04/12/16 [meta-elphel393][master-next] by Oleg Dzhimiev: fixed variable

Elphel GIT logs - Tue, 04/12/2016 - 22:15
Oleg Dzhimiev committed changes to the Elphel git project :
fixed variable

04/12/16 [x393][master] by Andrey Filippov: merged with parallel-sensors

Elphel GIT logs - Tue, 04/12/2016 - 22:09
Andrey Filippov committed changes to the Elphel git project :
merged with parallel-sensors

04/12/16 [meta-elphel393][master] by Oleg Dzhimiev: added copying of generated files into linux-elphel project

Elphel GIT logs - Tue, 04/12/2016 - 22:07
Oleg Dzhimiev committed changes to the Elphel git project :
added copying of generated files into linux-elphel project

04/12/16 [x393][framepars] by Andrey Filippov: removed 'generated' folder, should be re-generated by bitbake

Elphel GIT logs - Tue, 04/12/2016 - 22:00
Andrey Filippov committed changes to the Elphel git project :
removed 'generated' folder, should be re-generated by bitbake

04/12/16 [x393][parallel-sensors] by Andrey Filippov: working on i2c driver

Elphel GIT logs - Tue, 04/12/2016 - 21:58
Andrey Filippov committed changes to the Elphel git project :
working on i2c driver

04/12/16 [linux-elphel][ahciwrite] by Oleg Dzhimiev: turned off DEBUG

Elphel GIT logs - Tue, 04/12/2016 - 21:40
Oleg Dzhimiev committed changes to the Elphel git project :
turned off DEBUG

04/12/16 [linux-elphel][jtag] by Oleg Dzhimiev: Merge remote-tracking branch 'origin/jtag'

Elphel GIT logs - Tue, 04/12/2016 - 21:38
Oleg Dzhimiev committed changes to the Elphel git project :
Merge remote-tracking branch 'origin/jtag'

04/12/16 [meta-elphel393][master] by Oleg Dzhimiev: dts records for usb

Elphel GIT logs - Tue, 04/12/2016 - 21:28
Oleg Dzhimiev committed changes to the Elphel git project :
dts records for usb

Zynq development issues

Wiki Recent Changes - Tue, 04/12/2016 - 21:26

problem 1: vbus not found:

New page

==Config==
===kernel===
4.0 (linux-xlnx 468329e7fac2b22e76897fbd40532cc0884ded2a)
===device-tree===
...
ps7_usb_0: ps7-usb@e0002000 {
clocks = <&clkc 28>;
compatible = "xlnx,zynq-usb-2.20a", "chipidea,usb2";
reg = <0xe0002000 0x1000>;
interrupt-parent = <&ps7_scugic_0>;
interrupts = <0 21 4>;
dr_mode = "host";
phy_type = "ulpi";
usb-phy = <&usb_phy0>;
} ;
...
} ;
...
usb_phy0: phy0{
compatible = "ulpi-phy";
#phy-cells = <0>;
reg = <0xe0002000 0x1000>;
viewport = <0x170>;
} ;

===.config===
CONFIG_USB_ULPI=y
CONFIG_USB_ULPI_VIEWPORT=y
CONFIG_USB_CHIPIDEA_DEBUG=y
CONFIG_USB_GPIO_VBUS=n
CONFIG_USB_OTG=n
CONFIG_USB_GADGET=n

==from dmesg==
<font size='2'>
[ 1.035759] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.042319] usbcore: registered new interface driver usb-storage
<span style='color:red;'>[ 1.073619] e0002000.ps7-usb supply vbus not found, using dummy regulator</span>
[ 1.103560] Registering platform device 'ci_hdrc.0'. Parent at e0002000.ps7-usb
<span style='color:red;'>[ 1.114806] ci_hdrc ci_hdrc.0: ChipIdea HDRC found, revision: 22, lpm: 0; cap: f00d4100 op: f00d4140</span>
<span style='color:red;'>[ 1.136023] ci_hdrc ci_hdrc.0: unable to init phy: -110</span>
<span style='color:red;'>[ 1.141232] ci_hdrc: probe of ci_hdrc.0 failed with error -110</span>
</font>

==problem 1: vbus not found==
===reason?===
the problem is not critical

==problem 2: unable to init phy: -110==
===reason?===
* corrected the device tree record (s/viewport/view-port/):
usb_phy0: phy0{
compatible = "ulpi-phy";
#phy-cells = <0>;
reg = <0xe0002000 0x1000>;
<b>view-port</b> = <0x170>;
} ;
* order in device tree does not matter

==Links==
* [https://forums.xilinx.com/t5/Embedded-Linux/USB-boot-with-Linux-2015-2-build/td-p/643868 Discussion w/o solution]
* [http://www.wiki.xilinx.com/Zynq+Linux+USB+Device+Driver Zynq Linux USB Device Driver]
* [https://forums.xilinx.com/t5/Embedded-Linux/USB-works-in-device-mode-but-not-in-host-mode/td-p/679097 ?!] Oleg

Pages

Subscribe to www3.elphel.com aggregator