News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

why no /dev/mtd or working USB under petalinux 2016.2 on TE0720-03-2IF?

Started by danwwright, September 25, 2016, 07:56:33 PM

Previous topic - Next topic

danwwright

Hi-

I'm working with a TE0720-03-2IF plugged into a TE0703 and I'm using petalinux 2016.2.   I did a design in Vivado 2016.2 which specifies the TE0720_2IF board and I exported a .hdf to petalinux.  For my rootfs I'm using the pre-built  Ubuntu on Zynq rootfs from here: http://www.wiki.xilinx.com/file/detail/zynq-ubuntu-core-12.10-core-armhf-rootfs.tar.xz.

Everything seems to be working- except qspi flash and USB.  Also oddly the system believes that it has only an eth1 but no eth0 (though eth1 does work fine).

There is no /dev/mtd' that the kernel can see:

Ubuntu 12.10 zynq ttyPS0

zynq login: root
Password:
Last login: Sat Sep 24 18:11:26 PDT 2016 on ttyPS0
Welcome to Ubuntu 12.10 (GNU/Linux 4.4.0-xilinx armv7l)

* Documentation:  https://help.ubuntu.com/
root@zynq:~# ls -l /dev/m*
crw-r----- 1 root kmem   1,  1 Dec 31  1969 /dev/mem
crw------- 1 root root  10, 59 Dec 31  1969 /dev/memory_bandwidth
brw-rw---- 1 root disk 179,  0 Dec 31  1969 /dev/mmcblk0
brw-rw---- 1 root disk 179,  1 Dec 31  1969 /dev/mmcblk0p1
brw-rw---- 1 root disk 179,  2 Dec 31  1969 /dev/mmcblk0p2
brw-rw---- 1 root disk 179,  8 Dec 31  1969 /dev/mmcblk1
brw-rw---- 1 root disk 179, 16 Dec 31  1969 /dev/mmcblk1boot0
brw-rw---- 1 root disk 179, 24 Dec 31  1969 /dev/mmcblk1boot1
brw-rw---- 1 root disk 179,  9 Dec 31  1969 /dev/mmcblk1p1
brw-rw---- 1 root disk 179, 10 Dec 31  1969 /dev/mmcblk1p2
brw-rw---- 1 root disk 179, 32 Dec 31  1969 /dev/mmcblk1rpmb

My evidence that suggests that there is a USB problem is that lsusb simply fails to execute:

root@zynq:~# lsusb
unable to initialize libusb: -99

I did see the posted issue here: http://forum.trenz-electronic.de/index.php/topic,481.msg2015.html#msg2015 and I tried making my system-top.dts this:

/dts-v1/;
/include/ "system-conf.dtsi"
/ {
&flash0 {
   compatible = "spansion,s25fl256s1";
   #size-cells = <1>;
   reg = <0x0>;
   spi-tx-bus-width = <1>;
   spi-rx-bus-width = <4>;
   spi-max-frequency = <10000000>;

};
};

as the ticket suggested.  But this fails to build:

INFO: Building linux
[INFO ] pre-build linux/rootfs/fwupgrade
[INFO ] pre-build linux/rootfs/peekpoke
[INFO ] build system.dtb
[ERROR] Error: /home/dwright/VBase8Linux/subsystems/linux/configs/device-tree/system-top.dts:4.1-8 syntax error
[ERROR] make[1]: *** [system.dtb] Error 255
ERROR: Failed to build linux

Are there some other additions that are needed to my device tree to make the /dev/mtd's appear and make USB work?  If so why should these things be absent from the device tree generated when using the TE0720_2IF board specified in Vivado?

Thanks,
Dan Wright

Antti Lukats


danwwright

I now have the /dev/mtd's showing up fine- however USB is still not working.  For reference my system-top.dts is now:

dts-v1/;
/include/ "system-conf.dtsi"
/ {
};

&flash0 {
   compatible = "spansion,s25fl256s1";
   #size-cells = <1>;
   reg = <0x0>;
   spi-tx-bus-width = <1>;
   spi-rx-bus-width = <4>;
   spi-max-frequency = <10000000>;

};

&usb0 {
   dr_mode = "host";
};

Is my usb entry incorrect?

Thanks,
Dan

danwwright

Also I tried making my system-conf.dtsi identical to the system-conf.dtsi I find in te0720-test_board_noprebuilt-vivado_2016.2-build_05_20160913133616.zip but still USB does not appear to be working:

root@zynq:~# lsusb
unable to initialize libusb: -99
root@zynq:~# find /dev/ -name \*usb\*
root@zynq:~# find /sys -name \*usb\*
/sys/bus/usb
/sys/bus/usb/drivers/usb
/sys/bus/usb/drivers/usbfs
/sys/bus/usb/drivers/usb-storage
/sys/bus/usb/drivers/usbhid
/sys/bus/platform/devices/e0002000.usb
/sys/bus/platform/drivers/chipidea-usb2
/sys/bus/platform/drivers/msm_hsusb
/sys/bus/platform/drivers/usbmisc_imx
/sys/bus/platform/drivers/zevio_usb
/sys/bus/platform/drivers/imx_usb
/sys/devices/soc0/amba/e0002000.usb
/sys/firmware/devicetree/base/amba/usb@e0002000
/sys/firmware/devicetree/base/amba/usb@e0003000
/sys/module/usb_storage
/sys/module/usb_storage/drivers/usb:usb-storage
/sys/module/kernel/parameters/nousb
/sys/module/usbhid
/sys/module/usbhid/drivers/usb:usbhid
/sys/module/usbcore
/sys/module/usbcore/drivers/usb:hub
/sys/module/usbcore/drivers/usb:usbfs
/sys/module/usbcore/parameters/usbfs_snoop
/sys/module/usbcore/parameters/usbfs_memory_mb
root@zynq:~# find /proc -name \*usb\*
root@zynq:~#

danwwright

oops- what I meant to say is:

"Also I tried making my system-top.dts identical to the system-top.dts I find in te0720-test_board_noprebuilt-vivado_2016.2-build_05_20160913133616.zip..."

Andrei Errapart

This particular Ubuntu image is from the year 2013; see http://www.wiki.xilinx.com/Ubuntu+on+Zynq.

The device tree exported by current version of Vivado most probably differs from the Vivado in the year 2013.

You could download the device tree blob from the wiki page and disassemble it in order to see what does the Linux kernel in the Ubuntu imag expects from the device tree.

Notes:
* to disassemble device tree blob file "devicetree.dtb", run the command "dtc -I dtb -O dts -o devicetree.dts devicetree.dtb".
* to see kernel boot messages, run the command "dmesg".
* to see kernel boot messages containing text "usb", run the command "dmesg | grep -i usb".

danwwright

I have determined that the USB issue has nothing to do with my rootfs.  I think that USB is simply broken in the TE0720 petalinix 2016.2 reference projects test_board downloaded from the Trenz site.

If I take the unmodifiedcontents of te0720-test_board_noprebuilt-vivado_2016.2-build_05_20160913133616/test_board/os/petalinux/subsystems and copy this over the /subsystems folder in my petalinux project (and here I'm using the default ramfs) what I get is below.  Notice that no usb is found in /dev.  Please try this yourself.


U-Boot 2016.01 (Sep 27 2016 - 17:31:04 -0700)

DRAM:  ECC disabled 512 MiB
MMC:   sdhci@e0100000: 0, sdhci@e0101000: 1
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
In:    serial
Out:   serial
Err:   serial
Net:   ZYNQ GEM: e000b000, phyaddr 0, interface rgmii-id
eth0: ethernet@e000b000
Hit any key to stop autoboot:  0
Device: sdhci@e0100000
Manufacturer ID: 3
OEM: 5344
Name: SL64G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 59.5 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading image.ub
7704452 bytes read in 674 ms (10.9 MiB/s)
## Loading kernel from FIT Image at 10000000 ...
   Using 'conf@1' configuration
   Verifying Hash Integrity ... OK
   Trying 'kernel@1' kernel subimage
     Description:  PetaLinux Kernel
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x100000f0
     Data Size:    7688795 Bytes = 7.3 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x00008000
     Entry Point:  0x00008000
     Hash algo:    crc32
     Hash value:   32267711
   Verifying Hash Integrity ... crc32+ OK
## Loading fdt from FIT Image at 10000000 ...
   Using 'conf@1' configuration
   Trying 'fdt@1' fdt subimage
     Description:  Flattened Device Tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x10755430
     Data Size:    14360 Bytes = 14 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   4167423a
   Verifying Hash Integrity ... crc32+ OK
   Booting using the fdt blob at 0x10755430
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 07ff9000, end 07fff817 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.4.0-xilinx (dwright@dwright-Macmini) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) ) #2 SMP PREEMPT Tue Sep 27 17:31:37 PDT 2016
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: linux
bootconsole [earlycon0] enabled
cma: Reserved 16 MiB at 0x1f000000
Memory policy: Data cache writealloc
PERCPU: Embedded 12 pages/cpu @5ebcc000 s19264 r8192 d21696 u49152
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyPS0,115200 earlyprintk
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 491872K/524288K available (4828K kernel code, 202K rwdata, 1772K rodata, 4276K init, 213K bss, 16032K reserved, 16384K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0x60800000 - 0xff800000   (2544 MB)
    lowmem  : 0x40000000 - 0x60000000   ( 512 MB)
    pkmap   : 0x3fe00000 - 0x40000000   (   2 MB)
    modules : 0x3f000000 - 0x3fe00000   (  14 MB)
      .text : 0x40008000 - 0x4067a2cc   (6601 kB)
      .init : 0x4067b000 - 0x40aa8000   (4276 kB)
      .data : 0x40aa8000 - 0x40adabe0   ( 203 kB)
       .bss : 0x40adabe0 - 0x40b1023c   ( 214 kB)
Preemptible hierarchical RCU implementation.
        Build-time adjustment of leaf fanout to 32.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
slcr mapped to 60800000
L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
L2C-310 erratum 769419 enabled
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 ID prefetch enabled, offset 1 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 512 kB
L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
zynq_clock_init: clkc starts at 60800100
Zynq clock init
sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025, max_idle_ns: 440795209040 ns
clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
timer #0 at 60808000, irq=17
Console: colour dummy device 80x30
Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x82c0 - 0x8318
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (2664.03 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0x60880000
zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
media: Linux media interface: v0.10
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource arm_global_timer
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
futex hash table entries: 512 (order: 3, 32768 bytes)
jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
dma-pl330 f8003000.dmac:        DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
e0000000.serial: ttyPS0 at MMIO 0xe0000000 (irq = 145, base_baud = 3125000) is a xuartps
▒console [ttyPS0] enabled
console [ttyPS0] enabled
bootconsole [earlycon0] disabled
bootconsole [earlycon0] disabled
e0001000.serial: ttyPS1 at MMIO 0xe0001000 (irq = 146, base_baud = 3125000) is a xuartps
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to 6086c000
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
m25p80 spi0.0: found s25fl256s1, expected w25q256
m25p80 spi0.0: s25fl256s1 (32768 Kbytes)
5 ofpart partitions found on MTD device spi0.0
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000200000 : "boot"
0x000000500000-0x000000f00000 : "image"
0x000000520000-0x000000fa0000 : "kernel"
0x000000fa0000-0x000002000000 : "spare"
0x000000f00000-0x000000f40000 : "bootenv"
CAN device driver interface
libphy: MACB_mii_bus: probed
mdio_bus e000b000.etherne: /amba/ethernet@e000b000/mdio has invalid PHY address
mdio_bus e000b000.etherne: scan phy mdio at address 0
mdio_bus e000b000.etherne: scan phy mdio at address 1
mdio_bus e000b000.etherne: scan phy mdio at address 2
mdio_bus e000b000.etherne: scan phy mdio at address 3
mdio_bus e000b000.etherne: scan phy mdio at address 4
mdio_bus e000b000.etherne: scan phy mdio at address 5
mdio_bus e000b000.etherne: scan phy mdio at address 6
mdio_bus e000b000.etherne: scan phy mdio at address 7
mdio_bus e000b000.etherne: scan phy mdio at address 8
mdio_bus e000b000.etherne: scan phy mdio at address 9
mdio_bus e000b000.etherne: scan phy mdio at address 10
mdio_bus e000b000.etherne: scan phy mdio at address 11
mdio_bus e000b000.etherne: scan phy mdio at address 12
mdio_bus e000b000.etherne: scan phy mdio at address 13
mdio_bus e000b000.etherne: scan phy mdio at address 14
mdio_bus e000b000.etherne: scan phy mdio at address 15
mdio_bus e000b000.etherne: scan phy mdio at address 16
mdio_bus e000b000.etherne: scan phy mdio at address 17
mdio_bus e000b000.etherne: scan phy mdio at address 18
mdio_bus e000b000.etherne: scan phy mdio at address 19
mdio_bus e000b000.etherne: scan phy mdio at address 20
mdio_bus e000b000.etherne: scan phy mdio at address 21
mdio_bus e000b000.etherne: scan phy mdio at address 22
mdio_bus e000b000.etherne: scan phy mdio at address 23
mdio_bus e000b000.etherne: scan phy mdio at address 24
mdio_bus e000b000.etherne: scan phy mdio at address 25
mdio_bus e000b000.etherne: scan phy mdio at address 26
mdio_bus e000b000.etherne: scan phy mdio at address 27
mdio_bus e000b000.etherne: scan phy mdio at address 28
mdio_bus e000b000.etherne: scan phy mdio at address 29
mdio_bus e000b000.etherne: scan phy mdio at address 30
mdio_bus e000b000.etherne: scan phy mdio at address 31
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 150 (00:0a:35:00:1e:53)
macb e000b000.ethernet eth0: attached PHY driver [Marvell 88E1510] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1)
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
usbcore: registered new interface driver usb-storage
e0002000.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.0: unable to init phy: -110
ci_hdrc: probe of ci_hdrc.0 failed with error -110
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 141
cdns-i2c e0005000.i2c: timeout waiting on completion
pcf857x: probe of 1-0020 failed with error -110
cdns-i2c e0005000.i2c: timeout waiting on completion
pcf857x: probe of 1-0021 failed with error -110
cdns-i2c e0005000.i2c: timeout waiting on completion
rtc-isl12022 1-006f: isl12022_read_regs: read error, ret=-110
rtc-isl12022 1-006f: rtc core: registered rtc-isl12022 as rtc0
cdns-i2c e0005000.i2c: 400 kHz mmio e0005000 irq 142
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-arasan e0100000.sdhci: No vmmc regulator found
sdhci-arasan e0100000.sdhci: No vqmmc regulator found
mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA
sdhci-arasan e0101000.sdhci: No vmmc regulator found
sdhci-arasan e0101000.sdhci: No vqmmc regulator found
mmc1: SDHCI controller on e0101000.sdhci [e0101000.sdhci] using ADMA
mmc0: new high speed SDXC card at address aaaa
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
Registering SWP/SWPB emulation handler
mmcblk0: mmc0:aaaa SL64G 59.4 GiB
mmcblk0: p1 p2
mmc1: MAN_BKOPS_EN bit is not set
mmc1: new high speed MMC card at address 0001
mmcblk1: mmc1:0001 MMC04G 3.52 GiB
mmcblk1boot0: mmc1:0001 MMC04G partition 1 16.0 MiB
mmcblk1boot1: mmc1:0001 MMC04G partition 2 16.0 MiB
mmcblk1rpmb: mmc1:0001 MMC04G partition 3 128 KiB
mmcblk1: p1 p2
cdns-i2c e0005000.i2c: timeout waiting on completion
rtc-isl12022 1-006f: isl12022_read_regs: read error, ret=-110
rtc-isl12022 1-006f: hctosys: unable to read the hardware clock
ALSA device list:
  No soundcards found.
Freeing unused kernel memory: 4276K (4067b000 - 40aa8000)
INIT: version 2.88 booting
FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
mount: mounting /dev/mmcblk1p1 on /run/media/mmcblk1p1 failed: Invalid argument
EXT4-fs (mmcblk1p2): recovery complete
EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (mmcblk1rpmb): unable to read superblock
EXT4-fs (mmcblk1rpmb): unable to read superblock
EXT2-fs (mmcblk1rpmb): error: unable to read superblock
FAT-fs (mmcblk1rpmb): unable to read boot sector
EXT4-fs (mmcblk1rpmb): unable to read superblock
EXT4-fs (mmcblk1rpmb): unable to read superblock
EXT2-fs (mmcblk1rpmb): error: unable to read superblock
FAT-fs (mmcblk1rpmb): unable to read boot sector
FAT-fs (mmcblk1rpmb): unable to read boot sector
mount: mounting /dev/mmcblk1rpmb on /run/media/mmcblk1rpmb failed: Input/output error
mount: mounting /dev/mmcblk1boot0 on /run/media/mmcblk1boot0 failed: Invalid argument
mount: mounting /dev/mmcblk1boot1 on /run/media/mmcblk1boot1 failed: Invalid argument
sh: /sys/block/mmcblk1/mmcblk1p1: unknown operand
mount: mounting /dev/mmcblk1 on /run/media/mmcblk1 failed: Device or resource busy
bootlogd: cannot allocate pseudo tty: No such file or directory
Creating /dev/flash/* device nodes
random: dd urandom read with 4 bits of entropy available
cdns-i2c e0005000.i2c: timeout waiting on completion
rtc-isl12022 1-006f: isl12022_read_regs: read error, ret=-110
hwclock: RTC_RD_TIME: Input/output error
Starting internet superserver: inetd.
INIT: Entering runlevel: 5
Configuring network interfaces... udhcpc (v1.23.2) started
Sending discover...
Sending discover...
macb e000b000.ethernet eth0: link up (1000/Full)
Sending discover...
Sending select for 192.168.1.107...
Lease of 192.168.1.107 obtained, lease time 7200
/etc/udhcpc.d/50default: Adding DNS 75.75.75.75
/etc/udhcpc.d/50default: Adding DNS 75.75.75.76
done.
cdns-i2c e0005000.i2c: timeout waiting on completion
rtc-isl12022 1-006f: isl12022_read_regs: read error, ret=-110
hwclock: RTC_RD_TIME: Input/output error

linux login: root
Password:
login[1126]: root login on 'ttyPS0'
root@linux:~# find /dev/ -name \*usb\*
root@linux:~# find /proc/ -name \*usb\*
root@linux:~# find /sys/ -name \*usb\*
/sys/bus/usb
/sys/bus/usb/drivers/usb
/sys/bus/usb/drivers/usbfs
/sys/bus/usb/drivers/usb-storage
/sys/bus/usb/drivers/usbhid
/sys/bus/platform/devices/e0002000.usb_phy
/sys/bus/platform/devices/e0002000.usb
/sys/bus/platform/drivers/chipidea-usb2
/sys/bus/platform/drivers/chipidea-usb2/e0002000.usb
/sys/bus/platform/drivers/msm_hsusb
/sys/bus/platform/drivers/usbmisc_imx
/sys/bus/platform/drivers/zevio_usb
/sys/bus/platform/drivers/usb_phy_generic
/sys/bus/platform/drivers/imx_usb
/sys/bus/platform/drivers/ulpi-phy/e0002000.usb_phy
/sys/devices/soc0/amba/e0002000.usb
/sys/devices/soc0/e0002000.usb_phy
/sys/devices/platform/reg-dummy/regulator/regulator.0/e0002000.usb-vbus
/sys/firmware/devicetree/base/amba/usb@e0002000
/sys/firmware/devicetree/base/amba/usb@e0002000/usb-phy
/sys/firmware/devicetree/base/amba/usb@e0003000
/sys/firmware/devicetree/base/usb_phy@0
/sys/module/usb_storage
/sys/module/usb_storage/drivers/usb:usb-storage
/sys/module/kernel/parameters/nousb
/sys/module/usbhid
/sys/module/usbhid/drivers/usb:usbhid
/sys/module/usbcore
/sys/module/usbcore/drivers/usb:hub
/sys/module/usbcore/drivers/usb:usbfs
/sys/module/usbcore/parameters/usbfs_snoop
/sys/module/usbcore/parameters/usbfs_memory_mb
root@linux:~#
root@linux:~# dmesg | grep -i usb
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
usbcore: registered new interface driver usb-storage
e0002000.usb supply vbus not found, using dummy regulator
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver

Antti Lukats

Hi

there are many possible issues, do you have correct FSBL that does do the USB reset? This may be one problem.

danwwright

The FSBL I have I obtained in the following way:

from my Vivado design I exported hardware to get the file: VBase8Linux.hdf

Then on my Linux development PC:
petalinux-create --type project --template zynq --name VBase8Linux
cp VBase8Linux.hdf  VBase8Linux/hw-description/
cd VBase8Linux
petalinux-config --get-hw-description=hw-description
petalinux-build -x distclean
petalinux-build
petalinux-package --force --boot --fsbl images/linux/zynq_fsbl.elf --fpga images/linux/VBase8fpga.bit --u-boot

And some FSBL code appears.  But USB is broken.  As a test I did try running the prebuilt BOOT.BIN for te0720_2if and  image.ub from te0720-test_board-vivado_2016.2-build_05_20160913133607 and USB is fine on that.

Then I tried the prebuilt BOOT.BIN for te0720_2if from te0720-test_board-vivado_2016.2-build_05_20160913133607 but my own and  image.ub and USB works fine.

So whatever the problem is it's in BOOT.BIN (meaning FSBL and/or u-boot) and NOT in my kernel and rootfs.  However I cannot debug further because te0720-test_board-vivado_2016.2-build_05_20160913133607 does not include the sources for the prebuilt BOOT.BIN's.

As a hopeful experiment I tried this:

petalinux-create --type project --template zynq --name test_board
cp te0720-test_board-vivado_2016.2-build_05_20160913133607/test_board/prebuilt/hardware/te0720_2if/test_board.hdf test_board/hw-description/
cd test_board
petalinux-config --get-hw-description=hw-description
<and I change NOTHING in the config dialog, and then>
petalinux-build -x distclean
petalinux-build
petalinux-package --force --boot --fsbl images/linux/zynq_fsbl.elf --fpga images/linux/zsys_wrapper.bit --u-boot

And boot fails without any output on the console at all.  Please try this yourself.

Is there any way to obtaine the sources for the magic working BOOT.BIN ?


Antti Lukats

You have to include our FSBL init code in the fsbl_hooks.c

this code does the RESET for USB, if it is missing, like when you generate xilinx template fsbl then USB will not work.


blsmith_g3


Oleksandr Kiyenko

Hello,

sw_lib\sw_apps\zynq_fsbl\src\te_fsbl_hooks.c
line 458


Best regards
Oleksandr Kiyenko