Imaging solutions with Free Software & Open Hardware

Who's online

There are currently 0 users online.

Subscribe to Wiki Recent Changes feed
Track the most recent changes to the wiki in this feed. MediaWiki 1.28.0
Updated: 2 min 35 sec ago

Tmp manual

Thu, 05/05/2016 - 13:58

New page

==Defaults==
IP addr: 192.168.0.8
user / pwd: root / <empty>

* The address is set by the ''init_elphel393.sh'' script on the card's FAT32 partition.

==Boot==
* on power-on boots from NAND flash: u-boot, device tree and kernel.
devicetree has "chosen = ...root=/dev/mmcblk0p2..." - rootfs is on the micro SD card second partition.

==Command line access==
ssh root@192.168.0.8

==Serial console access==
* Use microUSB-USB cable to connect to PC - the cable's end should be thin enough otherwise interferes with the micro SD card.

* Terminal: '''minicom -c on'''
(setup the device and speed - default settings might just work)

==Get images==
channel 1: http://192.168.0.8:2323/noexif/img

channel 2: http://192.168.0.8:2324/noexif/img

channel 3: http://192.168.0.8:2325/noexif/img

channel 4: http://192.168.0.8:2326/noexif/img

==Change parameters==
* http://192.168.0.8/controls.html - previews and basic parameters:
** Exposure - the values are in the sensor lines.
** WB - r,g,b gains
** Quality - compression quality - individual for compressor but common for the buffer driver - it's better to have the same value for all channels.

* The defaults settings are define on the micro SD card, FAT32 partition - ''local/verilog/startup'':
...
-c write_sensor_i2c all 1 0 0x9009001e (exposure)
-c write_sensor_i2c all 1 0 0x9035000a (set all gains to 0xa)
-c write_sensor_i2c all 1 0 0x902c000e (blue gain to 0xe)
-c write_sensor_i2c all 1 0 0x9009001d (red gain to 0xd)
...


==Known problems==
* Vertical artifacts in jpegs. Images are ok at 100% quality. Fixed, testing.
* http://192.168.0.8:232x/noexif/mimg - multipart jpeg displays corrupted frames from time to time. Network bandwidth.
* Sometimes on power-on (NAND flash boot) cannot mount the card's rootfs partition. Kernel Panics. Power off/on. Soft "reboot -f" works ok.
* Changing exposure/quality/gains - can corrupt images - needs testing. Oleg

Adding systemwide library to BitBake layer

Thu, 05/05/2016 - 13:17

Created page with "=== Adding system-wide library to BitBake layer === System-wide library can be added to BitBake layer through several simple steps. ''libogg'' will be used here as an example. T..."

New page

=== Adding system-wide library to BitBake layer ===

System-wide library can be added to BitBake layer through several simple steps. ''libogg'' will be used here as an example. This library will be added to ''meta-elphel393'' layer and we will apply a couple of patches to it.

The recipe for ''libogg'' is already included into ''poky/meta/recipes-multimedia'', but we need to apply some patches. There is no need to copy original recipe for this library as we can add special recipe into custom layer which will append Metadata to original recipe. Such recipes are called append files and they use ''.bbappend'' file type suffix. Append file must have the same name as its corresponding recipe. All we need to do is create ''libogg_1.3.2.bbappend'' file in ''meta/meta-elphel393/recipes-multimedia/libogg'' directory and add the following lines to the file:

<pre>
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI_append += "file://framing.c.patch \
file://ogg.h.patch"
</pre>

This file extends the locations so that BitBake could find patches and adds these patches to original recipe. ''1.3.2'' in the name is the library version and it should match in append file. If corresponding recipe is renamed to update to a newer library version, this ''.bbappend'' must be renamed as well.

Next step is appending ''libogg'' package to the list of packages in ''core-image-elphel393'' recipe which resides in ''meta-elphel393/recipes-core/images'' directory. Append library package to ''IMAGE_INSTALL_append'' variable.

<pre>
IMAGE_INSTALL_append += " python-core \
libogg \
...
</pre>

Now we can compile the library
<pre>
bitabke libogg -c compile
</pre>

and add it to roofs
<pre>
bitbake libogg -c populate_sysroot
</pre>

Or just launch ''bitbake libogg'' and BitBake will compile, package and copy this library to ''sysroots''. The library now can be used in cross-compiled user space application. Mikhail

Elphel camera parts 0393-13

Mon, 05/02/2016 - 14:50

0393-13-01 - Back panel for NC393, connector openings for 10393A and 10389B connectors:

← Older revision Revision as of 20:50, 2 May 2016 Line 5: Line 5: {{Cad4a|0393-13-01}} {{Cad4a|0393-13-01}} ---- ----  +==== 0393-13-01A - Back panel for NC393, Rev. "A", connector openings for 10393A and 10389B connectors ====  +{{Cad4a|0393-13-01a}}  +----  + ==== 0393-13-02 - Back panel for NC393, connector openings for 10393 board only ==== ==== 0393-13-02 - Back panel for NC393, connector openings for 10393 board only ==== {{Cad4a|0393-13-02}} {{Cad4a|0393-13-02}} ---- ---- Mikhail

Elphel camera parts 0393-12

Mon, 05/02/2016 - 14:45

0393-12-30A - Sensor adjustment plate, Rev. A:

← Older revision Revision as of 20:45, 2 May 2016 (3 intermediate revisions not shown)Line 11: Line 11: === 0393-12-30 - Sensor adjustment plate === === 0393-12-30 - Sensor adjustment plate === {{Cad4a|0393-12-30}} {{Cad4a|0393-12-30}}  +----  +=== 0393-12-30A - Sensor adjustment plate, Rev. "A" ===  +Note: X3D model will be updated later  +{{Cad4a|0393-12-30A}} ---- ---- Line 16: Line 20: Made of stainless steel 316 hypodermic round tubing Made of stainless steel 316 hypodermic round tubing {{Cad4a|0393-12-31}} {{Cad4a|0393-12-31}}  +----  +=== 0393-12-31A - Disk springs support pin, Rev. "A" ===  +Made of stainless steel 316 hypodermic round tubing  +  +Note: X3D model will be updated later  +{{Cad4a|0393-12-31A}} ---- ---- Mikhail

Sd boot rootfs

Sat, 04/30/2016 - 17:05

Prepare the card:

← Older revision Revision as of 23:05, 30 April 2016 Line 11: Line 11: ** '''uImage''' ** '''uImage''' ** '''rootfs.tar.gz''' ** '''rootfs.tar.gz''' -* Format into 2 partitions: FAT32 and EXT4 (use gparted or command line instructions below), the order of partitions is important or change bootargs in the device tree accordingly.+* Partition table: '''msdos''' ('''gpt''' won't work) Format into 2 partitions: FAT32 and EXT4 (use gparted or command line instructions below), the order of partitions is important or change bootargs in the device tree accordingly. * FAT32: copy the following files: * FAT32: copy the following files: *** '''boot.bin''' *** '''boot.bin''' Oleg

Elphel camera parts 0353-99

Tue, 04/26/2016 - 14:55

0353-99-20 - Screw, M2, Socket Head, Stainless steel 18-8, l=6mm:

← Older revision Revision as of 20:55, 26 April 2016 Line 115: Line 115: ---- ---- === 0353-99-20 - Screw, M2, Socket Head, Stainless steel 18-8, l=6mm === === 0353-99-20 - Screw, M2, Socket Head, Stainless steel 18-8, l=6mm === -McMaster p/n 91292A006+McMaster <!--p/n 91292A006--> 91292A831 {{Cad4|0353-99-20}} {{Cad4|0353-99-20}} Olga

Elphel camera parts 0353-98

Mon, 04/25/2016 - 18:58

0353-98-12 - Screw, M2.5, Socket cap, Stainless Steel 18-8, l=16mm:

← Older revision Revision as of 00:58, 26 April 2016 (One intermediate revision not shown)Line 59: Line 59: McMaster p/n 91292A018 McMaster p/n 91292A018 {{Cad4|0353-98-12}} {{Cad4|0353-98-12}}  +  +----  +  +=== 0353-98-121 - Screw, M2.5, Socket cap, Black Oxide 18-8, l=16mm  ===  +McMaster p/n 91290A106 ---- ---- Line 80: Line 85: http://www.fastenal.com SKU 0154261 http://www.fastenal.com SKU 0154261  +----  +  +=== 0353-98-17 - Screw, M2.5, Socket Cap,  l=30mm, Black Oxide ===  +mcmaster p/n 91290A059 ---- ---- Olga

Elphel camera parts 0353-80

Mon, 04/25/2016 - 18:50

0353-90-05 - spacer, l=3.175mm:

← Older revision Revision as of 00:50, 26 April 2016 Line 265: Line 265: McMaster p/n 92511A125 McMaster p/n 92511A125 {{Cad4|0353-90-05}} {{Cad4|0353-90-05}}  +  +----  +  +=== 0353-90-06 - spacer for M2.5, l=16mm ===  +McMaster p/n 95669A110 ---- ---- Olga

Presentations

Mon, 04/18/2016 - 14:45

2014/04/14 UNIGE University of Geneva:

← Older revision Revision as of 20:45, 18 April 2016 Line 5: Line 5: **[http://community.elphel.com/files/presentations/UNIGE_Univ_of_Geneva/OpenHardware-ScientificApplications_U-Geneve04-2014.odp High Performance Open Hardware for Scientific Applications] (45 MB) **[http://community.elphel.com/files/presentations/UNIGE_Univ_of_Geneva/OpenHardware-ScientificApplications_U-Geneve04-2014.odp High Performance Open Hardware for Scientific Applications] (45 MB) * Video :   * Video :   -**[https://mediaserver.unige.ch/play/84201 12 years of designing and manufacturing Open Hardware cameras] +**[http://mediaserver.unige.ch/play/84201 12 years of designing and manufacturing Open Hardware cameras] - + ===2013/10/08 UofU Computer Engineering Jr Seminar=== ===2013/10/08 UofU Computer Engineering Jr Seminar=== Olga

10393

Sat, 04/16/2016 - 12:08

Memory and Storage:

← Older revision Revision as of 18:08, 16 April 2016 Line 17: Line 17: * 1.0 GB DDR3 memory - system RAM * 1.0 GB DDR3 memory - system RAM * 0.5 GB DDR3 memory - FPGA RAM * 0.5 GB DDR3 memory - FPGA RAM -* 0.5 GB NAND flash  - program storage+* 1.0 GB NAND flash  - program storage * microSD card slot  - storage and system recovery * microSD card slot  - storage and system recovery  + ====Interfaces==== ====Interfaces==== [[File:Nc393 4sensors.jpeg|thumb|220px|10393 + 4 sensors]] [[File:Nc393 4sensors.jpeg|thumb|220px|10393 + 4 sensors]] Andrey.filippov

Elphel camera parts 0393-12

Sat, 04/16/2016 - 11:59

0393-12-29 - Sensor front end, CS-mount:

← Older revision Revision as of 17:59, 16 April 2016 Line 4: Line 4: {{Cad4a|0393-12-29}} {{Cad4a|0393-12-29}} ---- ----  +=== 0393-12-29A - Sensor front end, CS-mount, Rev "A" ===  +Note: X3D model will be updated later.  +{{Cad4a|0393-12-29A}}  +----  + === 0393-12-30 - Sensor adjustment plate === === 0393-12-30 - Sensor adjustment plate === {{Cad4a|0393-12-30}} {{Cad4a|0393-12-30}} Mikhail

Stitched panoramas editor viewer

Fri, 04/15/2016 - 11:03

← Older revision Revision as of 17:03, 15 April 2016 Line 121: Line 121: ==Links== ==Links== * [https://developers.google.com/kml/documentation/ Google KML reference] * [https://developers.google.com/kml/documentation/ Google KML reference]  +  +[[Category:Eyesis4Pi]] Oleg

Poky 2.0 manual

Thu, 04/14/2016 - 20:12

← Older revision Revision as of 02:12, 15 April 2016 (One intermediate revision not shown)Line 43: Line 43: ==<font color="blue">Setup</font>== ==<font color="blue">Setup</font>== -* Step 1: Copy the following lines to <b>some_script.sh</b>, modify and run:+*   <font size='2'> <font size='2'> -  '''#Part 1'''+  $ git clone https://github.com/Elphel/elphel393.git - +  $ cd elphel393 - git clone -b master git://git.yoctoproject.org/poky.git poky+  $ ./setup.sh - cd poky; git checkout 3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c+  $ cd poky -  +  $ . ./oe-init-build-env - git clone -b master https://github.com/Elphel/meta-ezynq.git meta-ezynq+  $ bitbake u-boot device-tree linux-xlnx core-image-elphel393 - cd meta-ezynq; git checkout d3a055fc82fff990f9f2cdb8c09eb948133cf6f4; cd ..+ - + - git clone -b master https://github.com/Elphel/meta-elphel393.git meta-elphel393+ -  cd meta-elphel393; git checkout 56e3c1b7007faab1ccd4d983348b249d610165d6; cd ..+ -   + - git clone -b master https://github.com/Xilinx/meta-xilinx.git meta-xilinx+ - cd meta-xilinx; git checkout cc146d6c170f100eb2f445047969893faa7a6a55; cd ..+ - + - git clone -b master git://git.openembedded.org/meta-openembedded meta-openembedded+ - cd meta-openembedded; git checkout 73854a05565b30a5ca146ac53959c679b27815aa; cd ..+ - + - '''#Part 2 : init environment and auto-fill Yocto's conf-files'''+ - CONF_NOTES="meta/conf/conf-notes.txt"+ - + - if [ -f $CONF_NOTES ]; then+ -    rm $CONF_NOTES+ - fi+ - + - echo "Common \"elphel393\" targets are:" >> $CONF_NOTES+ - echo "    u-boot" >> $CONF_NOTES+ - echo "    device-tree" >> $CONF_NOTES+ - echo "    linux-xlnx" >> $CONF_NOTES+ - echo "    core-image-elphel393" >> $CONF_NOTES+ - + - CURRENT_PATH=$(dirname $(readlink -f "$0"))+ - . ./oe-init-build-env+ - + - BBLAYERS_CONF="conf/bblayers.conf"+ -   + - echo "BBLAYERS = \" \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-yocto \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-yocto-bsp \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-ezynq \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-elphel393 \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-xilinx \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-openembedded/meta-oe \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-openembedded/meta-python \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-openembedded/meta-networking \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-openembedded/meta-webserver \\" >> $BBLAYERS_CONF+ - echo "  \"" >> $BBLAYERS_CONF+ - + - LOCAL_CONF="conf/local.conf"+ - + - # <font color='red'>change the MACHINE</font>+ - echo "MACHINE ?= \"'''elphel393'''\"" >> $LOCAL_CONF+ - # <font color='red'>Elphel's MIRROR website, '''\n''' is important</font>+ - echo "MIRRORS =+ \"http://.*/.*    http://mirror.elphel.com/elphel393_mirror/ \n \"" >> $LOCAL_CONF+ - + -* Step 2: re-init environment+ - cd poky+ -  . ./oe-init-build-env+ - + -* Step 3: build bootable image (3 targets)+ -  bitbake u-boot-ezynq device-tree linux-xlnx core-image-elphel393+ </font> </font> Oleg

Poky 2.0 manual

Thu, 04/14/2016 - 18:25

Setup:

← Older revision Revision as of 00:25, 15 April 2016 Line 43: Line 43: ==<font color="blue">Setup</font>== ==<font color="blue">Setup</font>== -* Step 1: Copy the following lines to <b>some_script.sh</b>, modify and run:+*   <font size='2'> <font size='2'> -  '''#Part 1'''+  $ git clone https://github.com/Elphel/elphel393.git - +  $ cd elphel393 - git clone -b master git://git.yoctoproject.org/poky.git poky+  $ source setup.sh - cd poky; git checkout 3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c+ -  + - git clone -b master https://github.com/Elphel/meta-ezynq.git meta-ezynq+ - cd meta-ezynq; git checkout d3a055fc82fff990f9f2cdb8c09eb948133cf6f4; cd ..+ - + - git clone -b master https://github.com/Elphel/meta-elphel393.git meta-elphel393+ -  cd meta-elphel393; git checkout 56e3c1b7007faab1ccd4d983348b249d610165d6; cd ..+ -   + - git clone -b master https://github.com/Xilinx/meta-xilinx.git meta-xilinx+ - cd meta-xilinx; git checkout cc146d6c170f100eb2f445047969893faa7a6a55; cd ..+ - + - git clone -b master git://git.openembedded.org/meta-openembedded meta-openembedded+ - cd meta-openembedded; git checkout 73854a05565b30a5ca146ac53959c679b27815aa; cd ..+ - + - '''#Part 2 : init environment and auto-fill Yocto's conf-files'''+ - CONF_NOTES="meta/conf/conf-notes.txt"+ - + - if [ -f $CONF_NOTES ]; then+ -    rm $CONF_NOTES+ - fi+ - + - echo "Common \"elphel393\" targets are:" >> $CONF_NOTES+ - echo "    u-boot" >> $CONF_NOTES+ - echo "    device-tree" >> $CONF_NOTES+ - echo "    linux-xlnx" >> $CONF_NOTES+ - echo "    core-image-elphel393" >> $CONF_NOTES+ - + - CURRENT_PATH=$(dirname $(readlink -f "$0"))+ - . ./oe-init-build-env+ - + - BBLAYERS_CONF="conf/bblayers.conf"+ - + - echo "BBLAYERS = \" \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-yocto \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-yocto-bsp \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-ezynq \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-elphel393 \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-xilinx \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-openembedded/meta-oe \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-openembedded/meta-python \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-openembedded/meta-networking \\" >> $BBLAYERS_CONF+ - echo "  $CURRENT_PATH/meta-openembedded/meta-webserver \\" >> $BBLAYERS_CONF+ - echo "  \"" >> $BBLAYERS_CONF+ - + - LOCAL_CONF="conf/local.conf"+ - + - # <font color='red'>change the MACHINE</font>+ - echo "MACHINE ?= \"'''elphel393'''\"" >> $LOCAL_CONF+ - # <font color='red'>Elphel's MIRROR website, '''\n''' is important</font>+ - echo "MIRRORS =+ \"http://.*/.*    http://mirror.elphel.com/elphel393_mirror/ \n \"" >> $LOCAL_CONF+ - + -* Step 2: re-init environment+ - cd poky+ - . ./oe-init-build-env+ - + -* Step 3: build bootable image (3 targets)+ - bitbake u-boot-ezynq device-tree linux-xlnx core-image-elphel393+ </font> </font> Oleg

Elphel camera parts 0393-11

Thu, 04/14/2016 - 17:48

0393-11-11 - Power supply heat sink:

← Older revision Revision as of 23:48, 14 April 2016 (2 intermediate revisions not shown)Line 6: Line 6: {{Cad4a|0393-11-01}} {{Cad4a|0393-11-01}} ---- ----  +=== 0393-11-01A - Heat frame for 10393A and 10389B PCBA, Rev "A" ===  +Machined from 0393-60-07 extrusion, aluminum 6061T4, chromate conversion finish.  +Note: X3D model will be updated later  +{{Cad4a|0393-11-01A}}  +----  + === 0393-11-04 - Cooling fan enclosure === === 0393-11-04 - Cooling fan enclosure === {{Cad4a|0393-11-04}} {{Cad4a|0393-11-04}} Line 12: Line 18: {{Cad4a|0393-11-10}} {{Cad4a|0393-11-10}} ---- ----  +=== 0393-11-10A - CPU heat plate, Rev "A" ===  +Note: X3D model will be updated later.  +{{Cad4a|0393-11-10A}}  +----  + === 0393-11-11 - Power supply heat sink === === 0393-11-11 - Power supply heat sink === {{Cad4a|0393-11-11}} {{Cad4a|0393-11-11}}  +----  +=== 0393-11-11A - Power supply heat sink, Rev "A" ===  +Note: X3D model will be updated later.  +{{Cad4a|0393-11-11A}} ---- ---- Mikhail

Zynq development issues

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

Zynq development issues

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

Zynq development issues

Tue, 04/12/2016 - 20:44

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?===

==problem 2: unable to init phy: -110==
===reason?===

==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

Zynq development issues

Tue, 04/12/2016 - 14:35

New page

==Config==
==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>
==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

Zynq development issues

Tue, 04/12/2016 - 14:03

Links:

New page

==Config==
==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>
==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] Oleg

Pages