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.

TMDSEVM437X: USB boot issue

Part Number: TMDSEVM437X
Other Parts Discussed in Thread: AM4372

Hello,

While attempting to boot latest kernel 4.19.x as in latest SDK, via USB pen drive, on this AM4372 GP EVM, it hangs with a message "Waiting for dev /dev/sda2" after loading kernel.

Based on the console messages, it appears that EHCI driver is not loaded yet.
I need to use Yocto build system to generate the images.

Added the USB specific configurations as suggested into the kernel using a CFG file.
Ensured that this CFG file is merged while configuring the kernel.

If I boot the same image using uSD, OS boots normally.
OS detects the USB drive properly and able to access.

Not sure where I am missing.

Kindly point me to document, which lists down the config options to be verified for successful USB pen drive booting.

Thanks

  • Hi,

    Sounds like you still have some usb related drivers are not built in the kernel image.

    HCRajan GopalSamy said:
    If I boot the same image using uSD, OS boots normally.
    OS detects the USB drive properly and able to access.

    Now please run command 'lsmod' on the linux console and provide its ouput. It should tell which drivers are not built in.

  • Hello,

    Thank you for your reply.

    Please find below the output from lsmod,
    It looks like the kernel is configured properly with the following options

    CONFIG_USB_XHCI_HCD=y
    CONFIG_USB_XHCI_PLATFORM=y
    CONFIG_USB_DWC3=y
    CONFIG_USB_DWC3_HOST=y
    CONFIG_USB_DWC3_OMAP=y
    CONFIG_USB_DWC3_DUAL_ROLE=y
    CONFIG_USB_OTG=y
    CONFIG_USB_MASS_STORAGE=y
    CONFIG_OMAP_CONTROL_PHY=y
    CONFIG_OMAP_USB2=y

    However, the USB boot script tries to start the kernel too early.
    When I boot from uSD, I find the messages from EHCI after 22 seconds.

    You may also wish to note that I have enabled eMMC on this board as well.
    Configured / Expected boot order is uSD, USB Pen Drive, eMMC.

    This is as per SYSBOOT[4:0] configuration index 21 as below.
    21 10100b MMC0 USB_MS(USB1) USB_CL(USB0) MMC1 (Recommended)

    I have attached the complete console log as well.
    First section has the log during problematic scenario of USB Boot.
    Second section has the log during working scenario (uSD boot, pen drive attached after login prompt).

    Looking forward for your reply,

    20190828_090503_putty_0.log
    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2019.08.28 09:05:03 =~=~=~=~=~=~=~=~=~=~=~=
    
    U-Boot SPL 2018.01-00557-g313dcd6-dirty (Aug 27 2019 - 11:49:26)
    Trying to boot from USB
    USB0:   Register 2000440 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
    SPL: Please implement spl_start_uboot() for your board
    SPL: Direct Linux boot not active!
    
    
    U-Boot 2018.01-00557-g313dcd6-dirty (Aug 27 2019 - 11:49:26 +0000)
    
    CPU  : AM437X-GP rev 1.2
    Model: TI AM437x GP EVM
    DRAM:  2 GiB
    PMIC:  TPS65218
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    MMC: no card present
    ** Bad device mmc 0 **
    Using default environment
    
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot:  2  1  0 
    MMC: no card present
    MMC: no card present
    MMC: no card present
    MMC: no card present
    starting USB...
    USB0:   Register 2000440 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
    
    Device 0: Vendor: JetFlash Rev: 8.07 Prod: TS8GJFV30       
                Type: Removable Hard Disk
                Capacity: 7799.9 MB = 7.6 GB (15974398 x 512)
    ... is now current device
    MMC: no card present
    ** Bad device mmc 0 **
    4096512 bytes read in 2468 ms (1.6 MiB/s)
    52334 bytes read in 191 ms (267.6 KiB/s)
    Booting from usb 0...
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff0000, end 8ffffc6d ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.19.38-g4dae378bbe (oe-user@oe-host) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 PREEMPT Wed Aug 28 03:11:39 UTC 2019
    [    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: TI AM437x GP EVM
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0xfcc00000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM437x ES1.2 (sgx neon)
    [    0.000000] random: get_random_bytes called from start_kernel+0xa4/0x434 with crng_init=0
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 522559
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/sda2 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 2015676K/2097148K available (8192K kernel code, 302K rwdata, 2612K rodata, 1024K init, 253K bss, 32320K reserved, 49152K cma-reserved, 1261564K 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 : 0x(ptrval) - 0x(ptrval)   (9184 kB)
    [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
    [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 303 kB)
    [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 254 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] Tasks RCU enabled.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] L2C: platform modifies aux control register: 0x0e030000 -> 0x3e430000
    [    0.000000] L2C: DT/platform modifies aux control register: 0x0e030000 -> 0x3e430000
    [    0.000000] L2C-310 enabling early BRESP for Cortex-A9
    [    0.000000] OMAP L2C310: ROM does not support power control setting
    [    0.000000] L2C-310 dynamic clock gating disabled, standby mode disabled
    [    0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
    [    0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e430000
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000013] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000030] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000040] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000430] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000439] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.000835] Console: colour dummy device 80x30
    [    0.000863] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000869] This ensures that you still see kernel messages. Please
    [    0.000873] update your kernel commandline.
    [    0.000915] Calibrating delay loop... 1987.37 BogoMIPS (lpj=9936896)
    [    0.060181] pid_max: default: 32768 minimum: 301
    [    0.060366] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.060390] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.061138] CPU: Testing write buffer coherency: ok
    [    0.061194] CPU0: Spectre v2: using BPIALL workaround
    [    0.062055] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.062200] rcu: Hierarchical SRCU implementation.
    [    0.062536] EFI services will not be available.
    [    0.063609] devtmpfs: initialized
    [    0.072889] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    [    0.073274] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.073296] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.076473] pinctrl core: initialized pinctrl subsystem
    [    0.077155] DMI not present or invalid.
    [    0.077591] NET: Registered protocol family 16
    [    0.079251] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.151929] cpuidle: using governor ladder
    [    0.151966] cpuidle: using governor menu
    [    0.158871] OMAP GPIO hardware version 0.1
    [    0.167970] No ATAGs?
    [    0.167996] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
    [    0.168011] hw-breakpoint: maximum watchpoint size is 4 bytes.
    [    0.180952] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.184931] media: Linux media interface: v0.10
    [    0.184977] videodev: Linux video capture interface: v2.00
    [    0.185081] pps_core: LinuxPPS API ver. 1 registered
    [    0.185089] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.185109] PTP clock support registered
    [    0.185141] EDAC MC: Ver: 3.0.0
    [    0.185910] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.186291] Advanced Linux Sound Architecture Driver Initialized.
    [    0.187440] clocksource: Switched to clocksource timer1
    [    0.194964] NET: Registered protocol family 2
    [    0.195696] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
    [    0.195730] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.195789] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.195863] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.196038] UDP hash table entries: 512 (order: 1, 8192 bytes)
    [    0.196065] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
    [    0.196218] NET: Registered protocol family 1
    [    0.196765] RPC: Registered named UNIX socket transport module.
    [    0.196779] RPC: Registered udp transport module.
    [    0.196785] RPC: Registered tcp transport module.
    [    0.196790] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.198696] Initialise system trusted keyrings
    [    0.199019] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    [    0.202994] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.203701] NFS: Registering the id_resolver key type
    [    0.203737] Key type id_resolver registered
    [    0.203743] Key type id_legacy registered
    [    0.203785] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.204216] pstore: using deflate compression
    [    0.205928] Key type asymmetric registered
    [    0.205945] Asymmetric key parser 'x509' registered
    [    0.206004] bounce: pool size: 64 pages
    [    0.206065] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.206076] io scheduler noop registered
    [    0.206084] io scheduler deadline registered
    [    0.206310] io scheduler cfq registered (default)
    [    0.206321] io scheduler mq-deadline registered
    [    0.206327] io scheduler kyber registered
    [    0.209962] pinctrl-single 44e10800.pinmux: 199 pins, size 796
    [    0.212890] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [    0.212993] pwm-backlight backlight: Linked as a consumer to regulator.0
    [    0.255325] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.258560] omap8250 44e09000.serial: No clock speed specified: using default: 48000000
    [    0.259266] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 31, base_baud = 3000000) is a 8250
    [    0.947323] console [ttyS0] enabled
    [    0.951454] omap8250 481a6000.serial: No clock speed specified: using default: 48000000
    [    0.960222] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 32, base_baud = 3000000) is a 8250
    [    0.971088] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    0.978609] omapdss_dss 4832a000.dss: 4832a000.dss supply vdda_video not found, using dummy regulator
    [    0.988029] omapdss_dss 4832a000.dss: Linked as a consumer to regulator.0
    [    0.994956] omapdss_dss 4832a000.dss: Dropping the link to regulator.0
    [    1.004480] panel-simple display: display supply power not found, using dummy regulator
    [    1.012692] panel-simple display: Linked as a consumer to regulator.0
    [    1.030461] brd: module loaded
    [    1.042135] loop: module loaded
    [    1.047996] libphy: Fixed MDIO Bus: probed
    [    1.127491] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    1.135193] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [    1.142588] libphy: 4a101000.mdio: probed
    [    1.146634] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Micrel KSZ9031 Gigabit PHY
    [    1.157250] cpsw 4a100000.ethernet: Detected MACID = 68:9e:19:b8:3a:b0
    [    1.164018] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    1.170480] cpsw 4a100000.ethernet: ALE Table size 1024
    [    1.175763] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.184298] i2c /dev entries driver
    [    1.189869] cpuidle: enable-method property 'ti,am4372' found operations
    [    1.197039] sdhci: Secure Digital Host Controller Interface driver
    [    1.203355] sdhci: Copyright(c) Pierre Ossman
    [    1.209062] omap_hsmmc 481d8000.mmc: Linked as a consumer to regulator.1
    [    1.241244] omap_hsmmc 47810000.mmc: Linked as a consumer to regulator.2
    [    1.273946] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.280802] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.290654] NET: Registered protocol family 10
    [    1.296415] Segment Routing with IPv6
    [    1.300347] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.307151] NET: Registered protocol family 17
    [    1.312115] Key type dns_resolver registered
    [    1.316661] omap_voltage_late_init: Voltage driver support not added
    [    1.324134] Loading compiled-in X.509 certificates
    [    1.340134] GPIO line 119 (SelEMMCorNAND) hogged as output/high
    [    1.346874] GPIO line 136 (SelLCDorHDMI) hogged as output/high
    [    1.393355] omap_i2c 44e0b000.i2c: bus 0 rev0.12 at 100 kHz
    [    1.400693] omap_i2c 4802a000.i2c: bus 1 rev0.12 at 100 kHz
    [    1.406967] omapdss_dss 4832a000.dss: 4832a000.dss supply vdda_video not found, using dummy regulator
    [    1.416365] omapdss_dss 4832a000.dss: Linked as a consumer to regulator.0
    [    1.423328] DSS: OMAP DSS rev 2.0
    [    1.427804] omapdss_dss 4832a000.dss: bound 4832a400.dispc (ops dispc_component_ops)
    [    1.436089] omapdrm omapdrm.0: DMM not available, disable DMM support
    [    1.442973] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    1.449654] [drm] No driver support for vblank timestamp query.
    [    1.518184] Console: switching to colour frame buffer device 100x30
    [    1.541219] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
    [    1.547991] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
    [    1.555596] cpu cpu0: Linked as a consumer to regulator.5
    [    1.561194] cpu cpu0: Dropping the link to regulator.5
    [    1.566598] cpu cpu0: Linked as a consumer to regulator.5
    [    1.573657] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
    [    1.582540] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.587784] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.1
    [    1.598577] mmc0: new high speed MMC card at address 0001
    [    1.606568] mmcblk0: mmc0:0001 MMC04G 3.60 GiB 
    [    1.612491] mmcblk0boot0: mmc0:0001 MMC04G partition 1 16.0 MiB
    [    1.619517] mmcblk0boot1: mmc0:0001 MMC04G partition 2 16.0 MiB
    [    1.626295] mmcblk0rpmb: mmc0:0001 MMC04G partition 3 128 KiB, chardev (244:0)
    [    1.638034] hctosys: unable to open rtc device (rtc0)
    [    1.643938] vmmcwl_fixed: disabling
    [    1.647927] ALSA device list:
    [    1.651183]   No soundcards found.
    [    1.658074] random: fast init done
    [    1.663844]  mmcblk0: p1
    [    1.668789] Waiting for root device /dev/sda2...
    
    U-Boot SPL 2018.01-00557-g313dcd6-dirty (Aug 27 2019 - 11:49:26)
    Trying to boot from MMC1
    SPL: Please implement spl_start_uboot() for your board
    SPL: Direct Linux boot not active!
    
    
    U-Boot 2018.01-00557-g313dcd6-dirty (Aug 27 2019 - 11:49:26 +0000)
    
    CPU  : AM437X-GP rev 1.2
    Model: TI AM437x GP EVM
    DRAM:  2 GiB
    PMIC:  TPS65218
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - bad CRC, using default environment
    
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot:  2  1  0 
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    ** Unable to read file boot.scr **
    ** Unable to read file uEnv.txt **
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    4096512 bytes read in 220 ms (17.8 MiB/s)
    52334 bytes read in 15 ms (3.3 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff0000, end 8ffffc6d ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.19.38-g4dae378bbe (oe-user@oe-host) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 PREEMPT Wed Aug 28 03:11:39 UTC 2019
    [    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: TI AM437x GP EVM
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0xfcc00000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM437x ES1.2 (sgx neon)
    [    0.000000] random: get_random_bytes called from start_kernel+0xa4/0x434 with crng_init=0
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 522559
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=dc19cde9-02 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 2015676K/2097148K available (8192K kernel code, 302K rwdata, 2612K rodata, 1024K init, 253K bss, 32320K reserved, 49152K cma-reserved, 1261564K 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 : 0x(ptrval) - 0x(ptrval)   (9184 kB)
    [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
    [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 303 kB)
    [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 254 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] Tasks RCU enabled.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] L2C: platform modifies aux control register: 0x0e030000 -> 0x3e430000
    [    0.000000] L2C: DT/platform modifies aux control register: 0x0e030000 -> 0x3e430000
    [    0.000000] L2C-310 enabling early BRESP for Cortex-A9
    [    0.000000] OMAP L2C310: ROM does not support power control setting
    [    0.000000] L2C-310 dynamic clock gating disabled, standby mode disabled
    [    0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
    [    0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e430000
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000011] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000029] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000037] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000434] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000444] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.000833] Console: colour dummy device 80x30
    [    0.000860] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000867] This ensures that you still see kernel messages. Please
    [    0.000871] update your kernel commandline.
    [    0.000915] Calibrating delay loop... 1987.37 BogoMIPS (lpj=9936896)
    [    0.060186] pid_max: default: 32768 minimum: 301
    [    0.060369] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.060392] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.061137] CPU: Testing write buffer coherency: ok
    [    0.061193] CPU0: Spectre v2: using BPIALL workaround
    [    0.062050] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.062192] rcu: Hierarchical SRCU implementation.
    [    0.062527] EFI services will not be available.
    [    0.063592] devtmpfs: initialized
    [    0.072875] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    [    0.073265] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.073285] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.076472] pinctrl core: initialized pinctrl subsystem
    [    0.077159] DMI not present or invalid.
    [    0.077592] NET: Registered protocol family 16
    [    0.079245] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.151944] cpuidle: using governor ladder
    [    0.151985] cpuidle: using governor menu
    [    0.158904] OMAP GPIO hardware version 0.1
    [    0.167974] No ATAGs?
    [    0.168000] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
    [    0.168015] hw-breakpoint: maximum watchpoint size is 4 bytes.
    [    0.180958] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.184919] media: Linux media interface: v0.10
    [    0.184965] videodev: Linux video capture interface: v2.00
    [    0.185072] pps_core: LinuxPPS API ver. 1 registered
    [    0.185081] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.185102] PTP clock support registered
    [    0.185135] EDAC MC: Ver: 3.0.0
    [    0.185908] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.186291] Advanced Linux Sound Architecture Driver Initialized.
    [    0.187422] clocksource: Switched to clocksource timer1
    [    0.194960] NET: Registered protocol family 2
    [    0.195704] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
    [    0.195740] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.195799] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.195873] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.196047] UDP hash table entries: 512 (order: 1, 8192 bytes)
    [    0.196073] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
    [    0.196220] NET: Registered protocol family 1
    [    0.196780] RPC: Registered named UNIX socket transport module.
    [    0.196793] RPC: Registered udp transport module.
    [    0.196799] RPC: Registered tcp transport module.
    [    0.196804] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.198704] Initialise system trusted keyrings
    [    0.199034] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    [    0.203003] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.203707] NFS: Registering the id_resolver key type
    [    0.203741] Key type id_resolver registered
    [    0.203748] Key type id_legacy registered
    [    0.203787] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.204226] pstore: using deflate compression
    [    0.205957] Key type asymmetric registered
    [    0.205973] Asymmetric key parser 'x509' registered
    [    0.206030] bounce: pool size: 64 pages
    [    0.206088] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.206100] io scheduler noop registered
    [    0.206107] io scheduler deadline registered
    [    0.206337] io scheduler cfq registered (default)
    [    0.206346] io scheduler mq-deadline registered
    [    0.206353] io scheduler kyber registered
    [    0.209977] pinctrl-single 44e10800.pinmux: 199 pins, size 796
    [    0.212877] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [    0.212983] pwm-backlight backlight: Linked as a consumer to regulator.0
    [    0.255272] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.258516] omap8250 44e09000.serial: No clock speed specified: using default: 48000000
    [    0.259220] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 31, base_baud = 3000000) is a 8250
    [    0.948241] console [ttyS0] enabled
    [    0.952361] omap8250 481a6000.serial: No clock speed specified: using default: 48000000
    [    0.961121] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 32, base_baud = 3000000) is a 8250
    [    0.971973] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    0.979494] omapdss_dss 4832a000.dss: 4832a000.dss supply vdda_video not found, using dummy regulator
    [    0.988918] omapdss_dss 4832a000.dss: Linked as a consumer to regulator.0
    [    0.995845] omapdss_dss 4832a000.dss: Dropping the link to regulator.0
    [    1.005359] panel-simple display: display supply power not found, using dummy regulator
    [    1.013571] panel-simple display: Linked as a consumer to regulator.0
    [    1.031357] brd: module loaded
    [    1.043057] loop: module loaded
    [    1.048888] libphy: Fixed MDIO Bus: probed
    [    1.127485] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    1.135187] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [    1.142598] libphy: 4a101000.mdio: probed
    [    1.146642] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Micrel KSZ9031 Gigabit PHY
    [    1.157270] cpsw 4a100000.ethernet: Detected MACID = 68:9e:19:b8:3a:b0
    [    1.164036] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    1.170499] cpsw 4a100000.ethernet: ALE Table size 1024
    [    1.175780] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.184317] i2c /dev entries driver
    [    1.189884] cpuidle: enable-method property 'ti,am4372' found operations
    [    1.197059] sdhci: Secure Digital Host Controller Interface driver
    [    1.203372] sdhci: Copyright(c) Pierre Ossman
    [    1.209074] omap_hsmmc 481d8000.mmc: Linked as a consumer to regulator.1
    [    1.241230] omap_hsmmc 47810000.mmc: Linked as a consumer to regulator.2
    [    1.273923] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.280775] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.290625] NET: Registered protocol family 10
    [    1.296362] Segment Routing with IPv6
    [    1.300297] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.307095] NET: Registered protocol family 17
    [    1.312064] Key type dns_resolver registered
    [    1.316631] omap_voltage_late_init: Voltage driver support not added
    [    1.324095] Loading compiled-in X.509 certificates
    [    1.340104] GPIO line 119 (SelEMMCorNAND) hogged as output/high
    [    1.346852] GPIO line 136 (SelLCDorHDMI) hogged as output/high
    [    1.393370] omap_i2c 44e0b000.i2c: bus 0 rev0.12 at 100 kHz
    [    1.400694] omap_i2c 4802a000.i2c: bus 1 rev0.12 at 100 kHz
    [    1.406965] omapdss_dss 4832a000.dss: 4832a000.dss supply vdda_video not found, using dummy regulator
    [    1.416369] omapdss_dss 4832a000.dss: Linked as a consumer to regulator.0
    [    1.423334] DSS: OMAP DSS rev 2.0
    [    1.427792] omapdss_dss 4832a000.dss: bound 4832a400.dispc (ops dispc_component_ops)
    [    1.436084] omapdrm omapdrm.0: DMM not available, disable DMM support
    [    1.442978] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    1.449660] [drm] No driver support for vblank timestamp query.
    [    1.518201] Console: switching to colour frame buffer device 100x30
    [    1.541229] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
    [    1.547994] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
    [    1.555600] cpu cpu0: Linked as a consumer to regulator.5
    [    1.561202] cpu cpu0: Dropping the link to regulator.5
    [    1.566606] cpu cpu0: Linked as a consumer to regulator.5
    [    1.573663] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
    [    1.582549] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.587803] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.1
    [    1.598589] mmc0: new high speed MMC card at address 0001
    [    1.606537] mmcblk0: mmc0:0001 MMC04G 3.60 GiB 
    [    1.612461] mmcblk0boot0: mmc0:0001 MMC04G partition 1 16.0 MiB
    [    1.619478] mmcblk0boot1: mmc0:0001 MMC04G partition 2 16.0 MiB
    [    1.626267] mmcblk0rpmb: mmc0:0001 MMC04G partition 3 128 KiB, chardev (244:0)
    [    1.637992] hctosys: unable to open rtc device (rtc0)
    [    1.643910] vmmcwl_fixed: disabling
    [    1.647909] ALSA device list:
    [    1.651163]   No soundcards found.
    [    1.658460] random: fast init done
    [    1.664255]  mmcblk0: p1
    [    1.669309] Waiting for root device PARTUUID=dc19cde9-02...
    [    1.718867] mmc2: host does not support reading read-only switch, assuming write-enable
    [    1.733133] mmc2: new high speed SDHC card at address aaaa
    [    1.741275] mmcblk2: mmc2:aaaa SS08G 7.40 GiB 
    [    1.751567]  mmcblk2: p1 p2 p3
    [    1.797813] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.806098] VFS: Mounted root (ext4 filesystem) on device 179:50.
    [    1.816492] devtmpfs: mounted
    [    1.821373] Freeing unused kernel memory: 1024K
    [    1.826084] Run /sbin/init as init process
    [    2.150076] systemd[1]: System time before build time, advancing clock.
    [    2.186204] systemd[1]: systemd 239 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
    [    2.209003] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2019.05!
    
    [    2.261719] systemd[1]: Set hostname to <am437x-evm>.
    [    2.274854] random: systemd: uninitialized urandom read (16 bytes read)
    [    2.281710] systemd[1]: Initializing machine ID from random generator.
    [    2.645226] systemd[1]: File /lib/systemd/system/systemd-journald.service:36 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
    [    2.662787] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
    [    2.989379] random: systemd: uninitialized urandom read (16 bytes read)
    [    2.996702] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    3.027955] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.035447] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    3.079733] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    3.130425] systemd[1]: Starting Create list of required static device nodes for the current kernel...
             Starting Create list of required stce nodes for the current kernel...
    [  OK  ] Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Network Service Netlink Socket.
             Starting Remount Root and Kernel File Systems...
    [    3.277860] urandom_read: 5 callbacks suppressed
    [    3.277870] random: systemd: uninitialized urandom read (16 bytes read)
    [  OK  ] Listening on udev Control Socket.
    [    3.327972] random: systemd: uninitialized urandom read (16 bytes read)
    [    3.343641] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null)
    [  OK  ] Listening on Process Core Dump Socket.
             Mounting POSIX Message Queue File System...
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
             Mounting Kernel Configuration File System...
             Starting Apply Kernel Variables...
             Starting udev Coldplug all Devices...
             Starting Journal Service...
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [  OK  ] Created slice system-getty.slice.
    [  OK  ] Reached target Paths.
    [  OK  ] Reached target Swap.
    [    3.817724] random: crng init done
             Mounting Temporary Directory (/tmp)...
    [  OK  ] Created slice User and Session Slice.
    [  OK  ] Reached target Slices.
             Mounting Kernel Debug File System...
    [  OK  ] Reached target Remote File Systems.
    [  OK  ] Started Create list of required stavice nodes for the current kernel.
    [  OK  ] Started Remount Root and Kernel File Systems.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Journal Service.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [  OK  ] Mounted Kernel Debug File System.
             Starting Create System Users...
             Starting Flush Journal to Persistent Storage...
             Starting Rebuild Hardware Database...
    [    4.374231] systemd-journald[82]: Received request to flush runtime journal from PID 1
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Create System Users.
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /var/volatile...
             Mounting /media/ram...
    [  OK  ] Reached target Containers.
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Rebuild Dynamic Linker Cache...
             Starting Create Volatile Files and Directories...
             Starting Rebuild Journal Catalog...
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Network Time Synchronization...
             Starting Run pending postinsts...
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Rebuild Journal Catalog.
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Rebuild Dynamic Linker Cache.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Synchronized.
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Started Run pending postinsts.
    [  OK  ] Started Rebuild Hardware Database.
             Starting udev Kernel Device Manager...
             Starting Update is Completed...
    [  OK  ] Started Update is Completed.
    [  OK  ] Started udev Kernel Device Manager.
             Starting Network Service...
    [  OK  ] Reached target System Initialization.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
             Starting Print notice about GPLv3 packages...
             Starting RPC Bind Service...
             Starting rng-tools.service...
    [  OK  ] Started Job spooling tools.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
             Starting Login Service...
    [  OK  ] Started D-Bus System Message Bus.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Reached target Timers.
    [  OK  ] Started Periodic Command Scheduler.
    [  OK  ] Started Network Service.
    [  OK  ] Started RPC Bind Service.
    [  OK  ] Started rng-tools.service.
             Starting telnetd.service...
             Starting Network Name Resolution...
    [  OK  ] Started Login Service.
    [  OK  ] Started telnetd.service.
             Starting thttpd.service...
    [  OK  ] Started thttpd.service.
             Starting thermal-zone-init.service...
    [  OK  ] Started thermal-zone-init.service.
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Host and Network Name Lookups.
    [  OK  ] Reached target Network.
             Starting Permit User Sessions...
    [   11.909264] remoteproc remoteproc0: wkup_m3 is available
    [   11.927170] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
    [   12.015969] omap_rtc 44e3e000.rtc: registered as rtc0
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Getty on tty1.
    [   12.349751] remoteproc remoteproc0: powering up wkup_m3
    [   12.498837] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 242904
    [   12.531070] ov2659 0-0030: Sensor detection failed (3030, 0)
    [  OK  ] Found device /dev/ttyS0.
    [   12.651100] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [   12.657776] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [   12.682093] tlv320aic3x-codec 1-001b: Linked as a consumer to regulator.1
    [   12.692912] ov2659 1-0030: Found OV2656 sensor
    [  OK  ] Started Serial Getty on ttyS0.
    [  OK  ] Reached target Login Prompts.
    [   12.810447] tlv320aic3x-codec 1-001b: Linked as a consumer to regulator.10
    [   12.858936] CAN device driver interface
    [   12.866739] ov2659 1-0030: ov2659 1-0030 sensor driver registered !!
             Starting Synchronize System and HW clocks...
    [   12.930032] input: pixcir_tangoc as /devices/platform/44000000.ocp/4802a000.i2c/i2c-1/1-005c/input/input0
    [   12.977043] c_can_platform 481cc000.can: c_can_platform device registered (regs=c8b5df16, irq=61)
    [   13.120921] c_can_platform 481d0000.can: c_can_platform device registered (regs=407e0750, irq=62)
    [  OK  ] Started Synchronize System and HW clocks.
    [   13.838350] omap-sham 53100000.sham: hw accel on OMAP rev 0.0
    [   13.872403] omap-aes 53501000.aes: OMAP AES hw accel rev: 0.1
    [   13.896897] omap-des 53701000.des: OMAP DES hw accel rev: 0.33
    [   13.978956] omap-aes 53501000.aes: will run requests pump with realtime priority
    [   13.989407] omap-des 53701000.des: will run requests pump with realtime priority
    [   14.708825] input: matrix_keypad0 as /devices/platform/matrix_keypad0/input/input1
    [   14.936423] PM: bootloader does not support rtc-only!
    [   15.449113] asoc-simple-card sound0: tlv320aic3x-hifi <-> 4803c000.mcasp mapping ok
    [   15.456884] asoc-simple-card sound0: ASoC: no DMI vendor name!
    [   15.538667] net eth0: initializing cpsw version 1.15 (0)
    [   15.743735] Micrel KSZ9031 Gigabit PHY 4a101000.mdio:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
    [   15.972992] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am437x-evm ttyS0
    
    Arago 2019.05 am437x-evm ttyS0
    
    am437x-evm login: ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
    bash
    bc
    cifs-utils
    cpio
    dosfstools
    elfutils
    gawk
    gzip
    libbfd
    libdw1
    libelf1
    libreadline7
    which
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    [   21.922211] dwc3 48390000.usb: Failed to get clk 'ref': -2
    [   22.039109] OF: graph: no port node found in /ocp@44000000/ocp2scp@483a8000/phy@483a8000
    [   22.148112] dwc3 483d0000.usb: Failed to get clk 'ref': -2
    [   22.442990] remoteproc remoteproc1: 54434000.pru is available
    [   22.496459] pru-rproc 54434000.pru: PRU rproc node pru@54434000 probed successfully
    [   22.563727] remoteproc remoteproc2: 54438000.pru is available
    [   22.618578] pru-rproc 54438000.pru: PRU rproc node pru@54438000 probed successfully
    [   22.632900] usbcore: registered new interface driver usbfs
    [   22.655231] remoteproc remoteproc3: 54474000.pru is available
    [   22.663963] usbcore: registered new interface driver hub
    [   22.673380] pru-rproc 54474000.pru: PRU rproc node pru@54474000 probed successfully
    [   22.690132] usbcore: registered new device driver usb
    [   22.699219] remoteproc remoteproc4: 54478000.pru is available
    [   22.712186] pru-rproc 54478000.pru: PRU rproc node pru@54478000 probed successfully
    [   22.750247] xhci-hcd xhci-hcd.4.auto: xHCI Host Controller
    [   22.755816] xhci-hcd xhci-hcd.4.auto: new USB bus registered, assigned bus number 1
    [   22.857947] xhci-hcd xhci-hcd.4.auto: hcc params 0x0238f06d hci version 0x100 quirks 0x0000000002010010
    [   22.882990] xhci-hcd xhci-hcd.4.auto: irq 104, io mem 0x483d0000
    [   22.902946] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [   22.941367] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   22.967636] usb usb1: Product: xHCI Host Controller
    [   22.972554] usb usb1: Manufacturer: Linux 4.19.38-g4dae378bbe xhci-hcd
    [   22.997986] usb usb1: SerialNumber: xhci-hcd.4.auto
    [   23.005355] hub 1-0:1.0: USB hub found
    [   23.017684] hub 1-0:1.0: 1 port detected
    [   23.030400] xhci-hcd xhci-hcd.4.auto: xHCI Host Controller
    [   23.035946] xhci-hcd xhci-hcd.4.auto: new USB bus registered, assigned bus number 2
    [   23.064850] xhci-hcd xhci-hcd.4.auto: Host supports USB 3.0  SuperSpeed
    [   23.077684] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   23.096932] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
    [   23.118082] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   23.125356] usb usb2: Product: xHCI Host Controller
    [   23.147241] usb usb2: Manufacturer: Linux 4.19.38-g4dae378bbe xhci-hcd
    [   23.155061] usb usb2: SerialNumber: xhci-hcd.4.auto
    [   23.169767] hub 2-0:1.0: USB hub found
    [   23.180144] hub 2-0:1.0: 1 port detected
    [   27.898279] EXT4-fs (mmcblk2p3): mounted filesystem with ordered data mode. Opts: (null)
    
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am437x-evm ttyS0
    
    Arago 2019.05 am437x-evm ttyS0
    
    am437x-evm login: root
    
    root@am437x-evm:~# [  166.827548] usb 1-1: new high-speed USB device number 2 using xhci-hcd
    [  167.340255] usb 1-1: New USB device found, idVendor=058f, idProduct=6387, bcdDevice= 1.41
    [  167.348584] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [  167.355773] usb 1-1: Product: Mass Storage Device
    [  167.364027] usb 1-1: Manufacturer: JetFlash
    [  167.369485] usb 1-1: SerialNumber: DHT2JMFL
    [  167.441439] SCSI subsystem initialized
    [  167.473287] usb-storage 1-1:1.0: USB Mass Storage device detected
    [  167.480468] usb-storage 1-1:1.0: Quirks match for vid 058f pid 6387: 400
    [  167.487375] scsi host0: usb-storage 1-1:1.0
    [  167.500665] usbcore: registered new interface driver usb-storage
    [  167.517410] usbcore: registered new interface driver uas
    [  168.585642] scsi 0:0:0:0: Direct-Access     JetFlash TS8GJFV30        8.07 PQ: 0 ANSI: 2
    [  168.632218] sd 0:0:0:0: [sda] 15974398 512-byte logical blocks: (8.18 GB/7.62 GiB)
    [  168.658460] sd 0:0:0:0: [sda] Write Protect is off
    [  168.664228] sd 0:0:0:0: [sda] No Caching mode page found
    [  168.674368] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [  168.688135]  sda: sda1 sda2
    [  168.695122] sd 0:0:0:0: [sda] Attached SCSI removable disk
    
    rootfs: fsck 0.0% complete...
    
    rootfs: fsck 1.1% complete...
    
    rootfs: fsck 3.3% complete...
    
    rootfs: fsck 6.7% complete...
    
    rootfs: fsck 8.9% complete...
    
    rootfs: fsck 11.1% complete...
    
    rootfs: fsck 13.3% complete...
    
    rootfs: fsck 70.0% complete...
    
    rootfs: fsck 74.2% complete...
    
    rootfs: fsck 78.4% complete...
    
    rootfs: fsck 82.6% complete...
    
    rootfs: fsck 86.8% complete...
    
    rootfs: fsck 90.8% complete...
    
                                    
    [  173.678040] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
    
    root@am437x-evm:~# df -h
    Filesystem                Size      Used Available Use% Mounted on
    /dev/root               481.9M    268.3M    184.6M  59% /
    devtmpfs                984.2M      4.0K    984.2M   0% /dev
    tmpfs                  1008.7M         0   1008.7M   0% /dev/shm
    tmpfs                  1008.7M      9.5M    999.3M   1% /run
    tmpfs                  1008.7M         0   1008.7M   0% /sys/fs/cgroup
    tmpfs                  1008.7M         0   1008.7M   0% /tmp
    tmpfs                    50.0M      8.0K     50.0M   0% /var/volatile
    tmpfs                    16.0M         0     16.0M   0% /media/ram
    /dev/mmcblk2p3            3.8G      7.8M      3.6G   0% /run/media/mmcblk2p3
    /dev/mmcblk2p1            1.5G    804.0K      1.5G   0% /run/media/mmcblk2p1
    tmpfs                   201.7M         0    201.7M   0% /run/user/0
    /dev/sda1              1022.0M    804.0K   1021.2M   0% /run/media/sda1
    /dev/sda2               481.9M    266.9M    186.1M  59% /run/media/sda2
    root@am437x-evm:~# ls -l /dev/mmc*
    brw-rw----    1 root     disk      179,   0 Aug 26 04:28 /dev/mmcblk0
    brw-rw----    1 root     disk      179,  16 Aug 26 04:28 /dev/mmcblk0boot0
    brw-rw----    1 root     disk      179,  32 Aug 26 04:28 /dev/mmcblk0boot1
    brw-rw----    1 root     disk      179,   1 Aug 26 04:28 /dev/mmcblk0p1
    crw-------    1 root     root      244,   0 Aug 26 04:28 /dev/mmcblk0rpmb
    brw-rw----    1 root     disk      179,  48 Aug 26 04:28 /dev/mmcblk2
    brw-rw----    1 root     disk      179,  49 Aug 26 04:28 /dev/mmcblk2p1
    brw-rw----    1 root     disk      179,  50 Aug 26 04:28 /dev/mmcblk2p2
    brw-rw----    1 root     disk      179,  51 Aug 26 04:28 /dev/mmcblk2p3
    root@am437x-evm:~# lsmod
    Module                  Size  Used by
    sd_mod                 40960  3
    uas                    24576  0
    usb_storage            57344  3 uas
    scsi_mod              143360  3 sd_mod,usb_storage,uas
    xhci_plat_hcd          16384  0
    xhci_hcd              143360  1 xhci_plat_hcd
    usbcore               217088  4 usb_storage,xhci_plat_hcd,uas,xhci_hcd
    pru_rproc              20480  0
    irq_pruss_intc         16384  1 pru_rproc
    pruss                  16384  1 pru_rproc
    dwc3                   77824  0
    udc_core               28672  1 dwc3
    usb_common             16384  3 udc_core,usbcore,dwc3
    ti_am335x_adc          20480  0
    snd_soc_simple_card    16384  0
    snd_soc_simple_card_utils    16384  1 snd_soc_simple_card
    pm33xx                 16384  0
    matrix_keypad          20480  0
    matrix_keymap          16384  1 matrix_keypad
    omap_des               20480  0
    omap_aes_driver        24576  0
    des_generic            28672  1 omap_des
    omap_sham              28672  0
    crypto_engine          16384  2 omap_des,omap_aes_driver
    omap_crypto            16384  2 omap_des,omap_aes_driver
    pruss_soc_bus          16384  0
    ti_emif_sram           16384  1 pm33xx
    dwc3_omap              16384  0
    am437x_vpfe            36864  0
    c_can_platform         16384  0
    c_can                  20480  1 c_can_platform
    can_dev                28672  1 c_can
    pixcir_i2c_ts          16384  0
    snd_soc_tlv320aic3x    57344  1
    ov2659                 16384  1
    v4l2_fwnode            20480  2 am437x_vpfe,ov2659
    wkup_m3_ipc            16384  1 pm33xx
    rtc_omap               20480  2
    omap_wdt               16384  0
    wkup_m3_rproc          16384  1
    ti_am335x_tscadc       16384  1 ti_am335x_adc
    remoteproc             45056  3 pru_rproc,wkup_m3_rproc,wkup_m3_ipc
    sch_fq_codel           20480  2
    root@am437x-evm:~# shutdown -h now
    root@am437x-evm:~# [  OK  ] Stopped target Timers.
    [  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
             Unmounting /run/media/mmcblk2p3...
    [  OK  ] Stopped Daily Cleanup of Temporary Directories.
    [  OK  ] Stopped Daily rotation of log files.
    [  OK  ] Stopped target System Time Synchronizo         Stopping Session c1 of user root.
             Unmounting /run/media/mmcblk2p1...
             Unmounting /run/media/sda1...
             Stopping NFS status monitor for NFSv2/3 locking....
    [  OK  ] Stopped target Multi-User System.
             Stopping D-Bus System Message Bus...
             Stopping Periodic Command Scheduler...
    [  OK  ] Stopped target Login Prompts.
             Stopping Serial Getty on ttyS0...
             Stopping Getty on tty1...
    [  OK  ] Stopped target Containers.
             Stopping Job spooling tools...
             Stopping thermal-zone-init.service...
             Stopping Save/Restore Sound Card State...
             Unmounting /run/media/sda2...
             Stopping User Manager for UID 0...
    [  OK  ] Stopped Job spooling tools.
    [  OK  ] Stopped D-Bus System Message Bus.
    [  OK  ] Stopped Periodic Command Scheduler.
    [  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
    [  OK  ] Stopped Getty on tty1.
    [  OK  ] Stopped Serial Getty on ttyS0.
    [  OK  ] Stopped User Manager for UID 0.
    [  OK  ] Unmounted /run/media/mmcblk2p3.
    [  OK  ] Unmounted /run/media/mmcblk2p1.
    [  OK  ] Unmounted /run/media/sda1.
    [  OK  ] Stopped thermal-zone-init.service.
    [  OK  ] Stopped Save/Restore Sound Card State.
    [  OK  ] Unmounted /run/media/sda2.
    [  OK  ] Stopped Session c1 of user root.
             Stopping Login Service...
    [  OK  ] Stopped File System Check on /dev/sda2.
             Stopping thttpd.service...
    [  OK  ] Stopped File System Check on /dev/sda1.
    [  OK  ] Stopped File System Check on /dev/mmcblk2p1.
    [  OK  ] Stopped File System Check on /dev/mmcblk2p3.
    [  OK  ] Removed slice system-systemd\x2dfsck.slice.
    [  OK  ] Removed slice User Slice of UID 0.
             Stopping /run/user/0 mount wrapper...
    [  OK  ] Removed slice system-serial\x2dgetty.slice.
    [  OK  ] Removed slice system-getty.slice.
             Stopping Permit User Sessions...
    [  OK  ] Stopped target Host and Network Name Lookups.
             Stopping RPC Bind Service...
    [  OK  ] Unmounted /run/user/0.
    [  OK  ] Stopped Login Service.
    [  OK  ] Stopped RPC Bind Service.
    [  OK  ] Stopped thttpd.service.
    [  OK  ] Stopped /run/user/0 mount wrapper.
    [  OK  ] Stopped Permit User Sessions.
    [  OK  ] Stopped target Remote File Systems.
    [  OK  ] Stopped target Network.
             Stopping Network Name Resolution...
    [  OK  ] Removed slice system-user\x2druntime\x2ddir.slice.
             Stopping telnetd.service...
    [  OK  ] Stopped Network Name Resolution.
    [  OK  ] Stopped telnetd.service.
             Stopping rng-tools.service...
             Stopping Network Service...
    [  OK  ] Stopped rng-tools.service.
    [  OK  ] Stopped Network Service.
    [  OK  ] Stopped target Basic System.
    [  OK  ] Stopped target Paths.
    [  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
    [  OK  ] Stopped target Sockets.
    [  OK  ] Closed D-Bus System Message Bus Socket.
    [  OK  ] Closed RPCbind Server Activation Socket.
    [  OK  ] Stopped target Slices.
    [  OK  ] Removed slice User and Session Slice.
    [  OK  ] Stopped target System Initialization.
             Stopping Load/Save Random Seed...
             Stopping Load/Save Screen Backlightightness of backlight:backlight...
    [  OK  ] Stopped Apply Kernel Variables.
             Stopping Network Time Synchronization...
    [  OK  ] Stopped Update is Completed.
    [  OK  ] Stopped Rebuild Journal Catalog.
    [  OK  ] Stopped Rebuild Hardware Database.
    [  OK  ] Stopped Rebuild Dynamic Linker Cache.
    [  OK  ] Stopped Network Time Synchronization.
    [  OK  ] Stopped Load/Save Random Seed.
    [  OK  ] Stopped Load/Save Screen Backlight Brightness of backlight:backlight.
    [  OK  ] Removed slice system-systemd\x2dbacklight.slice.
    [  OK  ] Stopped Create Volatile Files and Directories.
    [  OK  ] Stopped target Local File Systems.
             Unmounting /var/volatile...
             Unmounting /media/ram...
             Unmounting Temporary Directory (/tmp)...
    [  OK  ] Unmounted /var/volatile.
    [  OK  ] Unmounted /media/ram.
    [  OK  ] Unmounted Temporary Directory (/tmp).
    [  OK  ] Reached target Unmount All Filesystems.
    [  OK  ] Stopped target Local File Systems (Pre).
    [  OK  ] Stopped Create Static Device Nodes in /dev.
    [  OK  ] Stopped Create System Users.
    [  OK  ] Stopped Remount Root and Kernel File Systems.
    [  OK  ] Stopped target Swap.
    [  OK  ] Reached target Shutdown.
    [  OK  ] Reached target Final Step.
             Starting Power-Off...
    [  317.401317] systemd-shutdow: 27 output lines suppressed due to ratelimiting
    [  317.428617] systemd-shutdown[1]: Syncing filesystems and block devices.
    [  317.859187] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [  317.881558] systemd-journald[82]: Received SIGTERM from PID 1 (systemd-shutdow).
    [  317.939104] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [  317.962571] systemd-shutdown[1]: Unmounting file systems.
    [  317.974299] [941]: Remounting '/' read-only in with options '(null)'.
    [  318.058508] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null)
    [  318.076566] systemd-shutdown[1]: All filesystems unmounted.
    [  318.082816] systemd-shutdown[1]: Deactivating swaps.
    [  318.088952] systemd-shutdown[1]: All swaps deactivated.
    [  318.094573] systemd-shutdown[1]: Detaching loop devices.
    [  318.105414] systemd-shutdown[1]: All loop devices detached.
    [  318.111216] systemd-shutdown[1]: Detaching DM devices.
    [  318.150910] reboot: Power down
    

    {

    root@am437x-evm:~# lsmod
    Module Size Used by
    sd_mod 40960 3
    uas 24576 0
    usb_storage 57344 3 uas
    scsi_mod 143360 3 sd_mod,usb_storage,uas
    xhci_plat_hcd 16384 0
    xhci_hcd 143360 1 xhci_plat_hcd
    usbcore 217088 4 usb_storage,xhci_plat_hcd,uas,xhci_hcd
    pru_rproc 20480 0
    irq_pruss_intc 16384 1 pru_rproc
    pruss 16384 1 pru_rproc
    dwc3 77824 0
    udc_core 28672 1 dwc3
    usb_common 16384 3 udc_core,usbcore,dwc3
    ti_am335x_adc 20480 0
    snd_soc_simple_card 16384 0
    snd_soc_simple_card_utils 16384 1 snd_soc_simple_card
    pm33xx 16384 0
    matrix_keypad 20480 0
    matrix_keymap 16384 1 matrix_keypad
    omap_des 20480 0
    omap_aes_driver 24576 0
    des_generic 28672 1 omap_des
    omap_sham 28672 0
    crypto_engine 16384 2 omap_des,omap_aes_driver
    omap_crypto 16384 2 omap_des,omap_aes_driver
    pruss_soc_bus 16384 0
    ti_emif_sram 16384 1 pm33xx
    dwc3_omap 16384 0
    am437x_vpfe 36864 0
    c_can_platform 16384 0
    c_can 20480 1 c_can_platform
    can_dev 28672 1 c_can
    pixcir_i2c_ts 16384 0
    snd_soc_tlv320aic3x 57344 1
    ov2659 16384 1
    v4l2_fwnode 20480 2 am437x_vpfe,ov2659
    wkup_m3_ipc 16384 1 pm33xx
    rtc_omap 20480 2
    omap_wdt 16384 0
    wkup_m3_rproc 16384 1
    ti_am335x_tscadc 16384 1 ti_am335x_adc
    remoteproc 45056 3 pru_rproc,wkup_m3_rproc,wkup_m3_ipc
    sch_fq_codel 20480 2

    }

  • Hi,

    Please check your lsmod output, it looks like none of the usb related drivers is built into the kernel image, they are all modules.

    HCRajan GopalSamy said:
    CONFIG_USB_XHCI_HCD=y
    CONFIG_USB_XHCI_PLATFORM=y
    CONFIG_USB_DWC3=y
    CONFIG_USB_DWC3_HOST=y
    CONFIG_USB_DWC3_OMAP=y
    CONFIG_USB_DWC3_DUAL_ROLE=y
    CONFIG_USB_OTG=y
    CONFIG_USB_MASS_STORAGE=y
    CONFIG_OMAP_CONTROL_PHY=y
    CONFIG_OMAP_USB2=y

    From where you got this information? kernel .config file? If so please compare it with /proc/config.gz on your board. It sounds like you didn't install kernel image and modules properly.

  • Hello,

    Thank you for your reply.

    As I mentioned earlier, I am using yocto build system.
    The above settings were present in a cfg file and injected during the kernel configuration process.

    I have personally verified the configure log and ensured that those options were included.
    Tomorrow, I shall inspect the .config and config.gz files and keep you posted.

    If I understand your reply, the above settings must be sufficient for successful USB boot.
    Am I right ?

    Also, I copy the following files to the boot media FAT partition

    MLO
    u-boot.img
    u-boot-spl.bin

    Every other items in rootfs would be available in file system.

    Let me know, if you suspect any gaps here,

    Thanks

  • Hi,

    HCRajan GopalSamy said:
    I have personally verified the configure log and ensured that those options were included.

    There are cases that the kernel image or modules are not copied to the SD card properly, then the board ends up still running with the old image. So better to double check /proc/config.gz to ensure the right kernel configs are in place.

    HCRajan GopalSamy said:
    If I understand your reply, the above settings must be sufficient for successful USB boot.
    Am I right ?

    Frankly I only glanced the list but didn't check the list to see if any module is missing. Kernel keep changes from version to version, so I am unable to track the details in my mind. The easiest way is to check the output of 'lsmod' command, I can easily spot it out if it shows any usb related module, which should be built in kernel for usb boot.

    HCRajan GopalSamy said:

    Also, I copy the following files to the boot media FAT partition

    MLO
    u-boot.img
    u-boot-spl.bin

    U-Boot is not relevant in this case.

    HCRajan GopalSamy said:
    Every other items in rootfs would be available in file system.

    Kernel image and modules are installed in rootfs.

  • Hello,

    You are correct that USB drivers were not included in the kernel, causing them to be loaded as module.

    Do you have a suggestion to inject a CFG file in the build process.
    I could not get this working.

    During the configure task, custom CFG file contents are merged.
    However, the kernel configuration is restarted immediately and all these custom settings are lost.
    Kernel continue to have the defconfig options alone.

    What would be your recommended method to provide custom, kernel configuration fragments?

    I shall continue to explore ways of including the above settings and try USB boot.
    It would be great, if you could have any suggestions around this,

    Thanks

  • Hi,

    I am glad we found the root cause.

    I am sorry I don't use Yacto and don't know how to modify it to take the customized kernel config. But a quick hack that I can think of is to directly add the config options into kernel defconfig file in arch/arm/configs/.

  • Hello,

    Will it be possible to share the .config or defconfig that is working with USB Boot.
    I am unable to enable USB_MASS_STORAGE in my kernel.

    No matter what I try, it is removed in the compile stage by the conf checker.
    Looks like some other setting is conflicting, but I could not get any clue about it.

    {

    LOADADDR=0x80008000
    GEN     ./Makefile
    scripts/kconfig/conf --syncconfig Kconfig
    .config:4542:warning: override: USB_MASS_STORAGE changes choice state
    *
    * Restart config...
    }

    Yocto's devtool seems to be not supported by TI, making this problem difficult to fix.
    Looking forward for some support,

    Thanks

  • Hi,

    I don't use Yocto so not sure what overrides the config. But I found the following config fragment in TI kernel which sets USB_MASS_STORAGE=m. Can you please try to modify it to '=y' to see if it fixes the issue?

    $ git grep USB_MASS_STORAGE ti_config_fragments/
    ti_config_fragments/connectivity.cfg:CONFIG_USB_MASS_STORAGE=m
    
  • Sorry that it did not work.

    Able to simulate this problem with the usual build method (outside of yocto).

    hcr@hcr-yocto:/opt/tisdk/board-support/linux-4.19.38+gitAUTOINC+4dae378bbe-g4dae378bbe$ git grep USB_MASS_STORAGE ti_config_fragments/
    ti_config_fragments/connectivity.cfg:CONFIG_USB_MASS_STORAGE=y
    
    hcr@hcr-yocto:/opt/tisdk/board-support/linux-4.19.38+gitAUTOINC+4dae378bbe-g4dae378bbe$ make tisdk_am437x-evm_defconfig
    arch/arm/configs/tisdk_am437x-evm_defconfig:4491:warning: override: USB_MASS_STORAGE changes choice state
    

    Kindly help us with an USB boot working defconfig for this EVM,

    Thanks

  • Please check if CONFIG_USB=y. If it is 'm', CONFIG_USB_MASS_STORAGE cannot be 'y'.

  • Thank you for the pointer regarding lsmod.

    Following is the list of specific changes needed to kernel config for successful USB boot with SDK 6.0.0.7

    CONFIG_SCSI_MOD=y
    CONFIG_SCSI=y
    CONFIG_BLK_DEV_SD=y
    CONFIG_USB_COMMON=y
    CONFIG_USB=y
    CONFIG_USB_XHCI_HCD=y
    CONFIG_USB_XHCI_DBGCAP=y
    CONFIG_USB_XHCI_PCI=y
    CONFIG_USB_XHCI_PLATFORM=y
    CONFIG_USB_STORAGE=y
    CONFIG_USB_UAS=y
    CONFIG_USB_DWC3=y
    CONFIG_USB_DWC3_HOST=y
    # CONFIG_USB_DWC3_DUAL_ROLE is not set
    CONFIG_USB_DWC3_OMAP=y
    CONFIG_USB_DWC3_HAPS=y
    CONFIG_USB_DWC3_OF_SIMPLE=y
    CONFIG_USB_GADGET=y
    CONFIG_USB_F_MASS_STORAGE=y
    CONFIG_USB_MASS_STORAGE=y
    CONFIG_OMAP_USB2=y

    Might be useful for someone in future,

  • Hi,

    I am glad the issue is solved. Thanks for sharing the solution.

    By the way, I don't think the following config are needed.

    HCRajan GopalSamy said:

    CONFIG_USB_XHCI_DBGCAP=y
    CONFIG_USB_XHCI_PCI=y
    CONFIG_USB_DWC3_HAPS=y
    CONFIG_USB_GADGET=y
    CONFIG_USB_F_MASS_STORAGE=y