This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

boot from usb not working!(2)

I have setup a boot from USB scenario with the following printouts. Kernel is OK and can detect USB storage device but it does it very late! This kernel was used in a boot from net scenario and it worked fine and detected the USB device before.

I think before initializing the USB device, it tries to read from a non existent  device means /dev/sda2!

How I can solve this problem?

=> boot
starting USB...
USB0:   Register 2001040 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
reading k2-fw-initrd.cpio.gz
47927 bytes read in 50 ms (935.5 KiB/s)
reading keystone-k2l-evm.dtb
43494 bytes read in 49 ms (866.2 KiB/s)
reading skern-k2l.bin
45056 bytes read in 43 ms (1022.5 KiB/s)
reading zImage-k2l-evm.bin
3748216 bytes read in 2020 ms (1.8 MiB/s)
K2_BM_15.07-39-g035329c SoC:k2l built:19:52:11, Jul  8 2016

## installed monitor, freq [199680000], status 0
Kernel image @ 0x82000000 [ 0x000000 - 0x393178 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 90000000, end 90000000 ... OK
   Loading Device Tree to 8fff2000, end 8ffff9e5 ... OK

Starting kernel ...
.

.

.

[    1.667728] 3 ofpart partitions found on MTD device 30000000.nand
[    1.673794] Creating 3 MTD partitions on "30000000.nand":
[    1.679185] 0x000000000000-0x000000100000 : "u-boot"
[    1.685006] 0x000000100000-0x000000180000 : "params"
[    1.690768] 0x000000180000-0x000080000000 : "ubifs"
[    1.697238] davinci_nand 30000000.nand: controller rev. 2.5
[    1.703232] platform snd-soc-dummy: set dma_pfn_offset00780000
[    1.710382] NET: Registered protocol family 10
[    1.715525] sit: IPv6 over IPv4 tunneling driver
[    1.720631] NET: Registered protocol family 17
[    1.725222] Key type dns_resolver registered
[    1.729578] ThumbEE CPU extension supported.
[    1.733839] Registering SWP/SWPB emulation handler
[    1.740205] hctosys: unable to open rtc device (rtc0)
[    1.748632] netcp-1.0 2620110.netcp: Could not open DMA queue for channel "tx-pipe-2620110": 0
[    1.757245] net eth0: module open failed
[    2.136682] IP-Config: Failed to open eth0
[    2.141123] netcp-1.0 2620110.netcp: Could not open DMA queue for channel "tx-pipe-2620110": 0
[    2.149728] net eth1: module open failed
[    2.506682] IP-Config: Failed to open eth1
[    2.510782] IP-Config: No network devices available
[    2.525953] ALSA device list:
[    2.528919]   No soundcards found.
[    2.532830] Waiting for root device /dev/sda2...

  • Hi ali hagigat,

    [ 2.525953] ALSA device list:
    [ 2.528919] No soundcards found.
    [ 2.532830] Waiting for root device /dev/sda2...

    It seems USB pendrive is not detected in Linux, you should get "/dev/sda2" message while USB driver registering.
    Are you enabled the USB driver as module ?
  • I just recompiled the kernel source with "keystone_defconfig" and able to detect the USB device.

    Here you can see, my pendrive was detected while booting as Shankari said.

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.4.12-g3639bea54a (ti@e2e) (gcc version 4.8.3 20140401 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC 4.8-2014.04) ) #1 SMP PREEMPT Tue Aug 23 12:46:23 IST 2016
    [ 0.000000] CPU: ARMv7 Processor [412fc0f4] revision 4 (ARMv7), cr=30c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [ 0.000000] Machine model: Texas Instruments Keystone 2 Edison EVM
    [ 0.000000] Switching physical address space to 0x800000000
    [ 0.000000] Reserved memory: OVERLAP DETECTED!
    [ 0.000000] mpm_block_mem@820000000 (0x0000000820000000--0x0000000822000000) overlaps with dsp_reserved_mpm_area (0x0000000820000000--0x0000000840000000)
    [ 0.000000] Reserved memory: OVERLAP DETECTED!
    [ 0.000000] dsp_reserved_mpm_area (0x0000000820000000--0x0000000840000000) overlaps with cmem_block_mem@829000000 (0x0000000822000000--0x0000000840000000)
    [ 0.000000] Reserved memory: created CMA memory pool at 0x000000081f800000, size 8 MiB
    [ 0.000000] Reserved memory: initialized node dsp_common_cma_pool, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created DMA memory pool at 0x0000000820000000, size 512 MiB
    [ 0.000000] Reserved memory: initialized node dsp_reserved_mpm_area, compatible id shared-dma-pool
    [ 0.000000] cma: Reserved 16 MiB at 0x000000085f000000
    [ 0.000000] Forcing write-allocate cache policy for SMP
    [ 0.000000] Memory policy: Data cache writealloc
    [ 0.000000] psci: probing for conduit method from DT.
    [ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
    [ 0.000000] PERCPU: Embedded 13 pages/cpu @dd78e000 s21248 r8192 d23808 u53248
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 784896
    [ 0.000000] Kernel command line: console=ttyS0,115200n8 rootwait=1 rootfstype=nfs root=/dev/nfs rw nfsroot=10.100.1.40:/usr/local/psdk_03_00_00_04,v3,tcp,rsize=4096,wsize=4096 ip=dhcp
    [ 0.000000] log_buf_len individual max cpu contribution: 4096 bytes
    [ 0.000000] log_buf_len total cpu_extra contributions: 12288 bytes
    [ 0.000000] log_buf_len min size: 16384 bytes
    [ 0.000000] log_buf_len: 32768 bytes
    [ 0.000000] early log buf free: 13632(83%)
    [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Memory: 3086964K/3145728K available (5737K kernel code, 363K rwdata, 1956K rodata, 360K init, 199K bss, 34188K reserved, 24576K cma-reserved, 2605056K highmem)
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc078ba40 (7695 kB)
    [ 0.000000] .init : 0xc078c000 - 0xc07e6000 ( 360 kB)
    [ 0.000000] .data : 0xc07e6000 - 0xc0840e94 ( 364 kB)
    [ 0.000000] .bss : 0xc0842000 - 0xc0873fc0 ( 200 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] Build-time adjustment of leaf fanout to 32.
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] Architected cp15 timer(s) running at 208.33MHz (virt).
    [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x300c4cdf1c, max_idle_ns: 440795202901 ns
    [ 0.000003] sched_clock: 56 bits at 208MHz, resolution 4ns, wraps every 4398046511101ns
    [ 0.000010] Switching to timer-based delay loop, resolution 4ns
    [ 0.000127] keystone timer clock @208333333 Hz
    [ 0.000328] Console: colour dummy device 80x30
    [ 0.000343] Calibrating delay loop (skipped), value calculated using timer frequency.. 416.66 BogoMIPS (lpj=2083333)
    [ 0.000353] pid_max: default: 4096 minimum: 301
    [ 0.000416] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.000423] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.000812] Initializing cgroup subsys io
    [ 0.000824] Initializing cgroup subsys devices
    [ 0.000834] Initializing cgroup subsys freezer
    [ 0.000850] CPU: Testing write buffer coherency: ok
    [ 0.001017] /cpus/cpu@0 missing clock-frequency property
    [ 0.001042] /cpus/cpu@1 missing clock-frequency property
    [ 0.001067] /cpus/cpu@2 missing clock-frequency property
    [ 0.001092] /cpus/cpu@3 missing clock-frequency property
    [ 0.001100] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [ 0.001130] Setting up static identity map for 0x800082c0 - 0x800083cc
    [ 0.084682] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [ 0.114723] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    [ 0.144758] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    [ 0.144834] Brought up 4 CPUs
    [ 0.144849] SMP: Total of 4 processors activated (1666.66 BogoMIPS).
    [ 0.144854] CPU: All CPU(s) started in SVC mode.
    [ 0.145181] devtmpfs: initialized
    [ 0.153552] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [ 0.153845] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.154304] pinctrl core: initialized pinctrl subsystem
    [ 0.154543] NET: Registered protocol family 16
    [ 0.155305] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.161865] irq: no irq domain found for /soc/keystone_irq@26202a0 !
    [ 0.169036] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [ 0.169043] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [ 0.178653] vgaarb: loaded
    [ 0.178926] SCSI subsystem initialized
    [ 0.179312] usbcore: registered new interface driver usbfs
    [ 0.179392] usbcore: registered new interface driver hub
    [ 0.179482] usbcore: registered new device driver usb
    [ 0.181398] clocksource: Switched to clocksource arch_sys_counter
    [ 0.209136] NET: Registered protocol family 2
    [ 0.209549] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.209579] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
    [ 0.209632] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.209672] UDP hash table entries: 256 (order: 1, 8192 bytes)
    [ 0.209688] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
    [ 0.209810] NET: Registered protocol family 1
    [ 0.209972] RPC: Registered named UNIX socket transport module.
    [ 0.209979] RPC: Registered udp transport module.
    [ 0.209983] RPC: Registered tcp transport module.
    [ 0.209988] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.210144] Unpacking initramfs...
    [ 0.213272] Freeing initrd memory: 48K (cfff4000 - d0000000)
    [ 0.213407] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [ 0.214164] platform alarmtimer: set dma_pfn_offset00780000
    [ 0.214786] futex hash table entries: 16 (order: -2, 1024 bytes)
    [ 0.226291] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
    [ 0.226387] ntfs: driver 2.1.32 [Flags: R/O].
    [ 0.226714] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    [ 0.229547] NET: Registered protocol family 38
    [ 0.229609] bounce: pool size: 64 pages
    [ 0.229824] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
    [ 0.229835] io scheduler noop registered
    [ 0.229844] io scheduler deadline registered
    [ 0.229867] io scheduler cfq registered (default)
    [ 0.229979] keystone_irq soc:keystone_irq@26202a0: irqchip registered, nr_irqs 28
    [ 0.230778] keystone-pcie 21021000.pcie: No pcie serdes driver found: -38
    [ 0.230795] keystone-pcie: probe of 21021000.pcie failed with error -38
    [ 0.231014] keystone-navigator-qmss soc:qmss@2a40000: qmgr start queue 0, number of queues 8192
    [ 0.231125] keystone-navigator-qmss soc:qmss@2a40000: added qmgr start queue 0, num of queues 8192, reg_peek f0940000, reg_status f0962000, reg_config f0964000, reg_region f0966000, reg_push f0980000, reg_pop f09c0000
    [ 0.231377] keystone-navigator-qmss soc:qmss@2a40000: firmware file ks2_qmss_pdsp_acc48.bin downloaded for pdsp0
    [ 0.231488] keystone-navigator-qmss soc:qmss@2a40000: firmware file ks2_qmss_pdsp_qos.bin downloaded for pdsp3
    [ 0.231554] keystone-navigator-qmss soc:qmss@2a40000: firmware file ks2_qmss_pdsp_qos.bin downloaded for pdsp7
    [ 0.233687] keystone-navigator-dma soc:knav_dmas@0: DMA dma_gbe registered 149 logical channels, flows 128, tx chans: 21, rx chans: 91
    [ 0.233801] keystone-navigator-dma soc:knav_dmas@0: DMA dma_xgbe registered 48 logical channels, flows 32, tx chans: 16, rx chans: 16
    [ 0.294295] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 0.294366] platform serial8250: set dma_pfn_offset00780000
    [ 0.295950] console [ttyS0] disabled
    [ 0.295989] 2530c00.serial: ttyS0 at MMIO 0x2530c00 (irq = 26, base_baud = 13020833) is a 16550A
    [ 1.121139] console [ttyS0] enabled
    [ 1.125317] 2531000.serial: ttyS1 at MMIO 0x2531000 (irq = 27, base_baud = 13020833) is a 16550A
    [ 1.139562] loop: module loaded
    [ 1.142894] at24 0-0050: 131072 byte 24c1024 EEPROM, writable, 1 bytes/write
    [ 1.150966] spi_davinci 21000400.spi: DMA is not supported (-19)
    [ 1.157612] m25p80 spi32766.0: n25q128a11 (16384 Kbytes)
    [ 1.162951] 2 ofpart partitions found on MTD device spi32766.0
    [ 1.168774] Creating 2 MTD partitions on "spi32766.0":
    [ 1.173918] 0x000000000000-0x000000100000 : "u-boot-spl"
    [ 1.180095] 0x000000100000-0x000001000000 : "misc"
    [ 1.185721] spi_davinci 21000400.spi: Controller at 0xf0a6a400
    [ 1.191691] spi_davinci 21000600.spi: DMA is not supported (-19)
    [ 1.198026] spi_davinci 21000600.spi: Controller at 0xf0a6c600
    [ 1.203996] spi_davinci 21000800.spi: DMA is not supported (-19)
    [ 1.210324] spi_davinci 21000800.spi: Controller at 0xf0a6e800
    [ 1.261411] davinci_mdio 24200f00.mdio: davinci mdio revision 1.7
    [ 1.267496] libphy: 24200f00.mdio: probed
    [ 1.272141] davinci_mdio 24200f00.mdio: phy[0]: device 24200f00.mdio:00, driver Marvell 88E1510
    [ 1.280830] davinci_mdio 24200f00.mdio: phy[1]: device 24200f00.mdio:01, driver Marvell 88E1510
    [ 4.301410] netcp-1.0 2620110.netcp: initialized cpsw ale version 1.4
    [ 4.309933] netcp-1.0 2620110.netcp: module(netcp-xgbe) not used for device
    [ 4.518223] platform xhci-hcd.0.auto: set dma_pfn_offset00780000
    [ 4.725066] platform xhci-hcd.1.auto: set dma_pfn_offset00780000
    [ 4.731750] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [ 4.737388] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [ 4.745285] xhci-hcd xhci-hcd.0.auto: hcc params 0x0298f06d hci version 0x100 quirks 0x00010010
    [ 4.754000] xhci-hcd xhci-hcd.0.auto: irq 34, io mem 0x02690000
    [ 4.760037] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 4.766829] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 4.774056] usb usb1: Product: xHCI Host Controller
    [ 4.778926] usb usb1: Manufacturer: Linux 4.4.12-g3639bea54a xhci-hcd
    [ 4.785369] usb usb1: SerialNumber: xhci-hcd.0.auto
    [ 4.790702] hub 1-0:1.0: USB hub found
    [ 4.794480] hub 1-0:1.0: 1 port detected
    [ 4.798645] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [ 4.804438] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [ 4.812163] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [ 4.820333] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    [ 4.827130] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 4.834355] usb usb2: Product: xHCI Host Controller
    [ 4.839224] usb usb2: Manufacturer: Linux 4.4.12-g3639bea54a xhci-hcd
    [ 4.845670] usb usb2: SerialNumber: xhci-hcd.0.auto
    [ 4.850995] hub 2-0:1.0: USB hub found
    [ 4.854771] hub 2-0:1.0: 1 port detected
    [ 4.858966] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [ 4.864619] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
    [ 4.872487] xhci-hcd xhci-hcd.1.auto: hcc params 0x0298f06d hci version 0x100 quirks 0x00010010
    [ 4.881183] xhci-hcd xhci-hcd.1.auto: irq 69, io mem 0x25010000
    [ 4.887228] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
    [ 4.894073] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 4.901286] usb usb3: Product: xHCI Host Controller
    [ 4.906171] usb usb3: Manufacturer: Linux 4.4.12-g3639bea54a xhci-hcd
    [ 4.912613] usb usb3: SerialNumber: xhci-hcd.1.auto
    [ 4.917902] hub 3-0:1.0: USB hub found
    [ 4.921680] hub 3-0:1.0: 1 port detected
    [ 4.925831] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [ 4.931473] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
    [ 4.939170] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
    [ 4.947357] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
    [ 4.954234] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 4.961463] usb usb4: Product: xHCI Host Controller
    [ 4.966332] usb usb4: Manufacturer: Linux 4.4.12-g3639bea54a xhci-hcd
    [ 4.972775] usb usb4: SerialNumber: xhci-hcd.1.auto
    [ 4.978078] hub 4-0:1.0: USB hub found
    [ 4.981853] hub 4-0:1.0: 1 port detected
    [ 4.986191] usbcore: registered new interface driver usb-storage
    [ 4.992689] mousedev: PS/2 mouse device common for all mice
    [ 4.998496] i2c /dev entries driver
    [ 5.002518] davinci-wdt 22f0080.wdt: heartbeat 60 sec
    [ 5.008520] usbcore: registered new interface driver usbhid
    [ 5.014098] usbhid: USB HID core driver
    [ 5.018687] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xac
    [ 5.025119] nand: Micron MT29F4G08ABBDAH4
    [ 5.029122] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [ 5.037013] Bad block table found at page 262080, version 0x01
    [ 5.043375] Bad block table found at page 262016, version 0x01
    [ 5.049515] 3 ofpart partitions found on MTD device 30000000.nand
    [ 5.055660] Creating 3 MTD partitions on "30000000.nand":
    [ 5.061051] 0x000000000000-0x000000100000 : "u-boot"
    [ 5.066894] 0x000000100000-0x000000180000 : "params"
    [ 5.072738] 0x000000180000-0x000020000000 : "ubifs"
    [ 5.078682] davinci_nand 30000000.nand: controller rev. 2.5
    [ 5.084652] platform oprofile-perf.0: set dma_pfn_offset00780000
    [ 5.090870] oprofile: using timer interrupt.
    [ 5.095194] Netfilter messages via NETLINK v0.30.
    [ 5.099902] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
    [ 5.106476] ctnetlink v0.93: registering with nfnetlink.
    [ 5.111805] usb 1-1: new high-speed USB device number 2 using xhci-hcd
    [ 5.118695] ipip: IPv4 over IPv4 tunneling driver
    [ 5.123941] gre: GRE over IPv4 demultiplexor driver
    [ 5.128814] ip_gre: GRE over IPv4 tunneling driver
    [ 5.134631] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 5.140013] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
    [ 5.146395] arp_tables: (C) 2002 David S. Miller
    [ 5.151039] Initializing XFRM netlink socket
    [ 5.156201] NET: Registered protocol family 10
    [ 5.161388] NET: Registered protocol family 17
    [ 5.165860] NET: Registered protocol family 15
    [ 5.170300] 8021q: 802.1Q VLAN Support v1.8
    [ 5.174541] sctp: Hash tables configured (established 512 bind 512)
    [ 5.181108] Registering SWP/SWPB emulation handler
    [ 5.198749] netcp-1.0 2620110.netcp eth0: Link is Up - 1Gbps/Full - flow control off
    [ 5.208828] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 5.214670] 8021q: adding VLAN 0 to HW filter on device eth0
    [ 5.247453] netcp-1.0 2620110.netcp eth1: Link is Down
    [ 5.253548] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [ 5.259371] 8021q: adding VLAN 0 to HW filter on device eth1
    [ 5.265101] IP-Config: Failed to open gretap0
    [ 5.271696] usb 1-1: New USB device found, idVendor=05dc, idProduct=a530
    [ 5.278390] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 5.285539] Sending DHCP requests .
    [ 5.288863] usb 1-1: Product: JD EXPRESSION
    [ 5.293235] usb 1-1: Manufacturer: LEXAR
    [ 5.297150] usb 1-1: SerialNumber: 302AC212041624130806
    [ 5.302885] usb 1-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
    [ 5.311817] usb 1-1: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
    [ 5.320870] usb-storage 1-1:1.0: USB Mass Storage device detected
    [ 5.327200] scsi host0: usb-storage 1-1:1.0
    [ 6.301404] netcp-1.0 2620110.netcp eth0: Link is Up - 1Gbps/Full - flow control off
    [ 6.332543] scsi 0:0:0:0: Direct-Access LEXAR JD EXPRESSION 3000 PQ: 0 ANSI: 0 CCS
    [ 6.342625] sd 0:0:0:0: [sda] 1014784 512-byte logical blocks: (520 MB/496 MiB)
    [ 6.350455] sd 0:0:0:0: [sda] Write Protect is off
    [ 6.355866] sd 0:0:0:0: [sda] No Caching mode page found
    [ 6.361172] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [ 6.430166] sda: sda1
    [ 6.434565] sd 0:0:0:0: [sda] Attached SCSI removable disk
    [ 8.391402] .
    [ 10.191756] netcp-1.0 2620110.netcp eth0: Link is Up - 1Gbps/Full - flow control off
    [ 10.199672] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
  • I recompiled by keystone_defconfig. The kernel stops before login prompt!! USB is OK but the rest is NOT OK!

    [ 2.961942] usb 1-1: New USB device found, idVendor=8564, idProduct=1000
    [ 2.968793] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 2.975923] usb 1-1: Product: Mass Storage Device
    [ 2.980627] usb 1-1: Manufacturer: JetFlash
    [ 2.984790] usb 1-1: SerialNumber: 38QEZ7T9NR37C9DN
    [ 2.990068] usb 1-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
    [ 2.998989] usb 1-1: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
    [ 3.008053] usb-storage 1-1:1.0: USB Mass Storage device detected
    [ 3.014341] scsi host0: usb-storage 1-1:1.0
    [ 4.210506] netcp-1.0 2620110.netcp eth0: Link is Up - 1Gbps/Full - flow control off
    [ 4.340342] scsi 0:0:0:0: Direct-Access JetFlash Transcend 8GB 1100 PQ: 0 ANSI: 4
    [ 4.349185] sd 0:0:0:0: [sda] 15820800 512-byte logical blocks: (8.10 GB/7.54 GiB)
    [ 4.357265] sd 0:0:0:0: [sda] Write Protect is off
    [ 4.362499] sd 0:0:0:0: [sda] No Caching mode page found
    [ 4.367960] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [ 4.376379] sda: sda1 sda2
    [ 4.380867] sd 0:0:0:0: [sda] Attached SCSI removable disk
    .
    .
    .
    Welcome to Arago 2016.05!
    .
    [ SKIP ] Ordering cycle found, skipping alignment.service
    .
    [FAILED] Failed to listen on Syslog Socket.
    .
    [FAILED] Failed to start Load Kernel Modules.
    .
    [ OK ] Started Create Volatile Files and Directories[ 34.162481] uio_module_drv: disagrees about version of symbol module_layout
    .
    [ 34.171878] uio_module_drv: disagrees about version of symbol module_layout
    [ 34.186877] uio_module_drv: disagrees about version of symbol module_layout
    .
    [ 34.346787] uio_module_drv: disagrees about version of symbol module_layout
    Starting Update UTMP about System Boot/Shutdown.[ 34.359816] uio_module_drv: disagrees about version of symbol module_layot
    ..
    [ 34.395189] uio_module_drv: disagrees about version of symbol module_layout
    .
    [FAILED] Failed to start Synchronize System and HW clocks.
    .
    [FAILED] Failed to start parse-ip.service.
    See 'systemctl status parse-ip.service' for details.
    Starting gplv3-notice.service...
    [ OK ] Started gplv3-notice.service.
    [ TIME ] Timed out waiting for device dev-ttyO0.device.
    [DEPEND] Dependency failed for Serial Getty on ttyO0.
    [ TIME ] Timed out waiting for device dev-ttyS0.device.
    [DEPEND] Dependency failed for Serial Getty on ttyS0.
    [ OK ] Reached target Login Prompts.
    [ OK ] Reached target Multi-User System.
    Starting Update UTMP about System Runlevel Changes...
    [ OK ] Started Update UTMP about System Runlevel Changes.
  • I recompiled with tisdk_k2l-evm_defconfig, CONFIG_XTCON=y and CONFIG_USB_DWC3=y, again the kernel stops:

    1.690690] hctosys: unable to open rtc device (rtc0)
    [ 1.699200] netcp-1.0 2620110.netcp: Could not open DMA queue for channel "tx-pipe-2620110": 0
    [ 1.707844] net eth0: module open failed
    [ 2.066733] IP-Config: Failed to open eth0
    [ 2.071175] netcp-1.0 2620110.netcp: Could not open DMA queue for channel "tx-pipe-2620110": 0
    [ 2.079775] net eth1: module open failed
    [ 2.436731] IP-Config: Failed to open eth1
    [ 2.440830] IP-Config: No network devices available
    [ 2.455970] ALSA device list:
    [ 2.458935] No soundcards found.
    [ 2.462827] Waiting for root device /dev/sda2...
  • Dear Titusrathinaraj Stalin ,
    please do , printenv , at uboot prompt and copy here the text you get there. Thank you so much in advance
  • Here is the log.

    U-Boot SPL 2016.05-gb4e185a8c3 (Jul 08 2016 - 20:45:12)
    Trying to boot from SPI


    U-Boot 2016.05-gb4e185a8c3 (Jul 08 2016 - 20:45:12 -0400)

    CPU: 66AK2Ex SR1.0
    I2C: ready
    DRAM: DDR3A Speed will be configured for 1600 Operation.
    Detected SO-DIMM [18KSF51272HZ-1G6K2]
    DDR3 speed 1600
    DRAM: 4 GiB

    Clear entire DDR3 memory to enable ECC
    2 GiB
    NAND: 512 MiB
    Net:
    Warning: netcp@24000000 using MAC address from ROM
    eth0: netcp@24000000
    Hit any key to stop autoboot: 0
    => pri
    addr_mon=0x0c140000
    addr_secdb_key=0xc000000
    addr_ubi=0x82000000
    arch=arm
    args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1
    args_net=setenv bootargs ${bootargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp
    args_ramfs=setenv bootargs ${bootargs} rdinit=/sbin/init rw root=/dev/ram0 initrd=0x808080000,80M
    args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,2048
    baudrate=115200
    board=ks2_evm
    board_name=ks2_evm
    boot=net
    bootargs=console=ttyS0,115200n8 rootwait=1 rootfstype=nfs root=/dev/nfs rw nfsroot=10.100.1.94:/usr/local/psdk_03_00_00_04,v3,tcp,rsize=4096,wsize=4096 ip=dhcp
    bootcmd=run init_${boot} init_fw_rd_${boot} get_fdt_${boot} get_mon_${boot} get_kern_${boot} run_mon run_kern
    bootdelay=2
    bootdir=/boot
    bootfile=psdk_03_00_00_04/k2-fw-initrd.cpio.gz
    bootm_size=0x10000000
    burn_ubi=nand erase.part ubifs; nand write ${addr_ubi} ubifs ${filesize}
    burn_uboot_nand=nand erase 0 0x100000; nand write ${loadaddr} 0 ${filesize}
    burn_uboot_spi=sf probe; sf erase 0 0x90000; sf write ${loadaddr} 0 ${filesize}
    cpu=armv7
    ethact=netcp@24000000
    ethaddr=08:00:28:32:bd:2a
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=feeec880
    get_fdt_net=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}
    get_fdt_nfs=nfs ${fdtaddr} ${nfs_root}/boot/${name_fdt}
    get_fdt_ramfs=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}
    get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}
    get_fs_ramfs=dhcp ${rdaddr} ${tftp_root}/${name_fs}
    get_kern_net=dhcp ${loadaddr} ${tftp_root}/${name_kern}
    get_kern_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_kern}
    get_kern_ramfs=dhcp ${loadaddr} ${tftp_root}/${name_kern}
    get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}
    get_mon_net=dhcp ${addr_mon} ${tftp_root}/${name_mon}
    get_mon_nfs=nfs ${addr_mon} ${nfs_root}/boot/${name_mon}
    get_mon_ramfs=dhcp ${addr_mon} ${tftp_root}/${name_mon}
    get_mon_ubi=ubifsload ${addr_mon} ${bootdir}/${name_mon}
    get_ubi_net=dhcp ${addr_ubi} ${tftp_root}/${name_ubi}
    get_ubi_nfs=nfs ${addr_ubi} ${nfs_root}/boot/${name_ubi}
    get_uboot_net=dhcp ${loadaddr} ${tftp_root}/${name_uboot}
    get_uboot_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_uboot}
    init_fw_rd_net=dhcp ${rdaddr} ${tftp_root}/${name_fw_rd}; run set_rd_spec
    init_fw_rd_ramfs=setenv rd_spec -
    init_fw_rd_ubi=ubifsload ${rdaddr} ${bootdir}/${name_fw_rd}; run set_rd_spec
    init_net=run args_all args_net
    init_nfs=setenv autoload no; dhcp; run args_all args_net
    init_ramfs=run args_all args_ramfs get_fs_ramfs
    init_ubi=run args_all args_ubi; ubi part ubifs; ubifsmount ubi:rootfs;
    ipaddr=10.100.1.39
    kernel_addr_r=0x82000000
    loadaddr=0x82000000
    mem_lpae=1
    mem_reserve=512M
    mtdparts=mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(params)ro,-(ubifs)
    name_fdt=keystone-k2e-evm.dtb
    name_fs=arago-console-image-k2e-evm.cpio.gz
    name_fw_rd=k2-fw-initrd.cpio.gz
    name_kern=zImage
    name_mon=skern-k2e.bin
    name_ubi=k2e-evm-ubifs.ubi
    name_uboot=u-boot-spi-k2e-evm.gph
    nfs_options=v3,tcp,rsize=4096,wsize=4096
    nfs_root=/usr/local/psdk_03_00_00_04
    no_post=1
    pxefile_addr_r=0x80100000
    ramdisk_addr_r=0x88080000
    rd_spec=0x88080000:
    rdaddr=0x88080000
    run_kern=bootz ${loadaddr} ${rd_spec} ${fdtaddr}
    run_mon=mon_install ${addr_mon}
    scriptaddr=0x80000000
    serverip=10.100.1.40
    set_rd_spec=setenv rd_spec ${rdaddr}:${filesize}
    soc=keystone
    stderr=serial@02530c00
    stdin=serial@02530c00
    stdout=serial@02530c00
    tftp_root=psdk_03_00_00_04
    vendor=ti
    ver=U-Boot 2016.05-gb4e185a8c3 (Jul 08 2016 - 20:45:12 -0400)

    Environment size: 3662/262140 bytes
    =>
  • Thank you Stalin.
    I think the problem is that USB device detection is done after reading the root file system. The process is slow. Is there any way to force kernel to detect USB device sooner?
    Besides the present initramfs can not detect USB device unfortunately.
  • [quote]
    I think the problem is that USB device detection is done after reading the root file system. The process is slow. Is there any way to force kernel to detect USB device sooner?
    [/quote
    I hope it won't be like that.
    USB driver would detect the USB device (pendrive) while driver loading stage itself not after rootfs booting time.

    Do one thing, connect the USB pendrive but don't boot from USB but NFS or NAND UBIFS and see where you are getting the USB pendrive detection.
  • I did that before messaging you before! It seems like Pendrive detection is done after reading the root file system and very late near the end of the kernel messages. you see that reading the root file system is done at the 9 second while finding the usb hubs are done at 13. In the boot from USB scenario, i do not see the messages at the 13 th. second :

    [ 9.007994] systemd[1]: Set hostname to <k2l-evm>.
    [ 9.910329] systemd[1]: [/lib/systemd/system/syslog-ng.service:6] Executable path is not absolute, ignoring: @SBINDIR@/syslog-ng -d
    [ 9.925222] systemd[1]: [/lib/systemd/system/syslog-ng.service:7] Executable path is not absolute, ignoring: @BASEBINDIR@/kill -HUD
    [ 9.938023] systemd[1]: syslog-ng.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.

    .
    [ 13.693453] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [ 13.699946] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [ 13.725278] xhci-hcd xhci-hcd.0.auto: hcc params 0x0298f06d hci version 0x100 quirks 0x00010010
    [ 13.738732] xhci-hcd xhci-hcd.0.auto: irq 33, io mem 0x02690000
    [ 13.745689] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 13.752885] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 13.760172] usb usb1: Product: xHCI Host Controller
    [ 13.765161] usb usb1: Manufacturer: Linux 4.4.12-g3639bea54a xhci-hcd
    [ 13.771696] usb usb1: SerialNumber: xhci-hcd.0.auto
    [ 13.778883] hub 1-0:1.0: USB hub found
    [ 13.782724] hub 1-0:1.0: 1 port detected
    [ 13.787985] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [ 13.795969] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    [ 13.804937] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [ 13.816313] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    [ 13.824413] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 13.833259] usb usb2: Product: xHCI Host Controller
    [ 13.838714] usb usb2: Manufacturer: Linux 4.4.12-g3639bea54a xhci-hcd
    [ 13.845266] usb usb2: SerialNumber: xhci-hcd.0.auto
    [ 13.850879] hub 2-0:1.0: USB hub found
    [ 13.855962] hub 2-0:1.0: 1 port detected
  • It looks like you have enabled the USB driver as module.
    Please enable it with (*)
  • You are right. Thank you. it is OK now and boot from USB is OK now. good
  • Sounds good.
    Thanks for the update.