0

I built uboot, linux kernel and root filesystem for beaglebone black. I have logitech k120 for business usb keyboard. In menuconfig of kernel i selected logitech keyboard driver, usb driver, usb keyboard driver, musb. In dts file i described usb. My bbb connected with PC via com port. After turning on bbb keyboard have no power, after modprobe musb,usbkbd keyboard also have no power. Ifconfig and lsusb shows nothing.

Please, help me to solve this problem. I can't find the information how to force usb to work.

Starting log:

Starting kernel ...

[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.1.8 (bogdan@bogdan-VirtualBox) (gcc version 9.1.0 (GCC)) #1 SMP Mon Jul 15 13:13:24 MSK 2019
[    0.000000][    T0] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: TI AM335x EVM
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] efi: Getting EFI parameters from FDT:
[    0.000000][    T0] efi: UEFI not found.
[    0.000000][    T0] cma: Reserved 64 MiB at 0x9c000000
[    0.000000][    T0] CPU: All CPU(s) started in SVC mode.
[    0.000000][    T0] AM335X ES2.1 (sgx neon)
[    0.000000][    T0] random: get_random_bytes called from start_kernel+0x9c/0x494 with crng_init=0
[    0.000000][    T0] percpu: Embedded 17 pages/cpu s39884 r8192 d21556 u69632
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 video=HDMI-A-1:720x480@60 rdinit=/sbin/init
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000][    T0] Memory: 423092K/524288K available (9216K kernel code, 636K rwdata, 2836K rodata, 1024K init, 558K bss, 35660K reserved, 65536K cma-reserved, 0K highmem)
[    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000][    T0] rcu: Hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU event tracing is enabled.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=1.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
[    0.000000][    T0] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000016][    T0] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000037][    T0] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000048][    T0] OMAP clocksource: timer1 at 24000000 Hz
[    0.001427][    T0] timer_probe: no matching timers found
[    0.001644][    T0] Console: colour dummy device 80x30
[    0.001709][    T0] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.089070][    T0] pid_max: default: 32768 minimum: 301
[    0.089353][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089369][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089993][    T0] *** VALIDATE proc ***
[    0.090138][    T0] *** VALIDATE cgroup1 ***
[    0.090152][    T0] *** VALIDATE cgroup2 ***
[    0.090167][    T0] CPU: Testing write buffer coherency: ok
[    0.090220][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.090581][    T1] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.091193][    T1] Setting up static identity map for 0x80100000 - 0x80100060
[    0.091780][    T1] rcu: Hierarchical SRCU implementation.
[    0.096687][    T1] EFI services will not be available.
[    0.097010][    T1] smp: Bringing up secondary CPUs ...
[    0.097025][    T1] smp: Brought up 1 node, 1 CPU
[    0.097036][    T1] SMP: Total of 1 processors activated (996.14 BogoMIPS).
[    0.097045][    T1] CPU: All CPU(s) started in SVC mode.
[    0.098427][    T1] devtmpfs: initialized
[    0.109930][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.110205][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.110235][    T1] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.114156][    T1] pinctrl core: initialized pinctrl subsystem
[    0.115553][    T1] DMI not present or invalid.
[    0.116036][    T1] NET: Registered protocol family 16
[    0.118385][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.147405][    T1] l3-aon-clkctrl:0000:0: failed to disable
[    0.188360][    T1] cpuidle: using governor menu
[    0.205253][    T1] No ATAGs?
[    0.205265][    T1] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.207237][    T1] Serial: AMBA PL011 UART driver
[    0.221994][    T1] edma 49000000.edma: TI EDMA DMA engine driver
[    0.223445][    T1] v1_8d: supplied by vbat
[    0.223765][    T1] v3_3d: supplied by vbat
[    0.227477][    T1] SCSI subsystem initialized
[    0.228182][    T1] usbcore: registered new interface driver usbfs
[    0.228240][    T1] usbcore: registered new interface driver hub
[    0.228299][    T1] usbcore: registered new device driver usb
[    0.229364][    T1] pps_core: LinuxPPS API ver. 1 registered
[    0.229378][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
[    0.229401][    T1] PTP clock support registered
[    0.229647][    T1] EDAC MC: Ver: 3.0.0
[    0.231669][    T1] clocksource: Switched to clocksource timer1
[    0.281108][    T1] NET: Registered protocol family 2
[    0.281881][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.281914][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.281957][    T1] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.282016][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    0.282125][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.282150][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.282293][    T1] NET: Registered protocol family 1
[    0.282960][    T1] Trying to unpack rootfs image as initramfs...
[    1.359732][    T1] Freeing initrd memory: 16196K
[    1.360447][    T1] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    1.362721][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.368986][    T1] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.369197][    T1] ntfs: driver 2.1.32 [Flags: R/O].
[    1.512028][   T48] alg: No test for lzo-rle (lzo-rle-generic)
[    1.516808][   T50] alg: No test for lzo-rle (lzo-rle-scomp)
[    1.521405][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.521430][    T1] io scheduler mq-deadline registered
[    1.521439][    T1] io scheduler kyber registered
[    1.526645][    T1] OMAP GPIO hardware version 0.1
[    1.536097][    T1] ti-sysc 48042000.target-module: sysc_flags 00000222 != 00000022
[    1.536787][    T1] ti-sysc 48044000.target-module: sysc_flags 00000222 != 00000022
[    1.537443][    T1] ti-sysc 48046000.target-module: sysc_flags 00000222 != 00000022
[    1.538074][    T1] ti-sysc 48048000.target-module: sysc_flags 00000222 != 00000022
[    1.538737][    T1] ti-sysc 4804a000.target-module: sysc_flags 00000222 != 00000022
[    1.549178][    T1] ti-sysc 4830e000.target-module: idlemodes 00000087 != 00000007
[    1.550658][    T1] ti-sysc 4a101200.target-module: rev_offs 00001200 != 00000000
[    1.550679][    T1] ti-sysc 4a101200.target-module: sysc_offs 00001208 != 00000008
[    1.550690][    T1] ti-sysc 4a101200.target-module: syss_offs 00001204 != 00000004
[    1.579825][    T1] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    1.581545][    T1] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    1.633898][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.637572][    T1] printk: console [ttyS0] disabled
[    1.637649][    T1] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 31, base_baud = 3000000) is a 8250
[    2.340944][    T1] printk: console [ttyS0] enabled
[    2.347396][    T1] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 38, base_baud = 3000000) is a 8250
[    2.358850][    T1] STMicroelectronics ASC driver initialized
[    2.366891][    T1] omap_rng 48310000.rng: Random Number Generator ver. 20
[    2.377967][   T52] random: fast init done
[    2.382264][   T52] random: crng init done
[    2.396522][    T1] brd: module loaded
[    2.407991][    T1] loop: module loaded
[    2.412166][    T1] KGDB: Registered I/O driver kgdbts
[    2.417349][    T1] kgdbts:RUN plant and detach test

Entering kdb (current=0xdb0a4000, pid 1) on processor 0 due to Keyboard Entry
[0]kdb> [    2.430389][    T1] kgdbts:RUN sw breakpoint test
[    2.435355][    T1] kgdbts:RUN bad memory access test
[    2.440488][    T1] kgdbts:RUN singlestep test 1000 iterations
[    2.446758][    T1] kgdbts:RUN singlestep [0/1000]
[    2.488464][    T1] kgdbts:RUN singlestep [100/1000]
[    2.530352][    T1] kgdbts:RUN singlestep [200/1000]
[    2.572316][    T1] kgdbts:RUN singlestep [300/1000]
[    2.614224][    T1] kgdbts:RUN singlestep [400/1000]
[    2.656139][    T1] kgdbts:RUN singlestep [500/1000]
[    2.697931][    T1] kgdbts:RUN singlestep [600/1000]
[    2.739772][    T1] kgdbts:RUN singlestep [700/1000]
[    2.781700][    T1] kgdbts:RUN singlestep [800/1000]
[    2.823481][    T1] kgdbts:RUN singlestep [900/1000]
[    2.865024][    T1] kgdbts:RUN do_fork for 100 breakpoints
[    2.877141][    T1] libphy: Fixed MDIO Bus: probed
[    2.883159][    T1] CAN device driver interface
[    2.961750][    T1] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    2.970166][    T1] libphy: 4a101000.mdio: probed
[    2.981162][    T1] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    2.991311][    T1] cpsw 4a100000.ethernet: Detected MACID = ec:24:b8:6f:b8:8c
[    2.998812][    T1] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[    3.005955][    T1] cpsw 4a100000.ethernet: ALE Table size 1024
[    3.013254][    T1] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    3.021466][    T1] usbcore: registered new interface driver pegasus
[    3.027974][    T1] usbcore: registered new interface driver asix
[    3.034151][    T1] usbcore: registered new interface driver ax88179_178a
[    3.041008][    T1] usbcore: registered new interface driver cdc_ether
[    3.047627][    T1] usbcore: registered new interface driver smsc75xx
[    3.054159][    T1] usbcore: registered new interface driver smsc95xx
[    3.060652][    T1] usbcore: registered new interface driver net1080
[    3.067082][    T1] usbcore: registered new interface driver cdc_subset
[    3.073772][    T1] usbcore: registered new interface driver zaurus
[    3.080122][    T1] usbcore: registered new interface driver cdc_ncm
[    3.089015][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.096431][    T1] ehci-platform: EHCI generic platform driver
[    3.102796][    T1] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.109725][    T1] ohci-platform: OHCI generic platform driver
[    3.116724][    T1] usbcore: registered new interface driver usb-storage
[    3.123562][    T1] usbcore: registered new interface driver ldusb
[    3.133821][    T1] i2c /dev entries driver
[    3.143913][    T1] sdhci: Secure Digital Host Controller Interface driver
[    3.150834][    T1] sdhci: Copyright(c) Pierre Ossman
[    3.158322][    T1] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    3.167929][    T1] omap_hsmmc 48060000.mmc: Got CD GPIO
[    3.174082][    T1] Synopsys Designware Multimedia Card Interface Driver
[    3.181809][    T1] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.189526][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    3.198143][    T1] usbcore: registered new interface driver usbhid
[    3.204517][    T1] usbhid: USB HID core driver
[    3.210979][    T1] NET: Registered protocol family 10
[    3.217818][    T1] Segment Routing with IPv6
[    3.222385][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.229765][    T1] NET: Registered protocol family 17
[    3.235013][    T1] can: controller area network core (rev 20170425 abi 9)
[    3.242044][    T1] NET: Registered protocol family 29
[    3.247208][    T1] can: raw protocol (rev 20170425)
[    3.252218][    T1] can: broadcast manager protocol (rev 20170425 t)
[    3.258605][    T1] can: netlink gateway (rev 20170425) max_hops=1
[    3.265326][    T1] Key type dns_resolver registered
[    3.270442][    T1] ThumbEE CPU extension supported.
[    3.275502][    T1] Registering SWP/SWPB emulation handler
[    3.281016][    T1] omap_voltage_late_init: Voltage driver support not added
[    3.300163][   T14] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[    3.306196][   T14] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    3.314715][   T14] nand: No NAND device found
[    3.351912][   T14] tps65910 0-002d: No interrupt support, no core IRQ
[    3.359511][   T14] tps65910-pmic: probe of tps65910-pmic failed with error -121
[    3.367601][   T14] tps65910-rtc: probe of tps65910-rtc failed with error -121
[    3.375291][   T14] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    3.384462][   T14] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[    3.391209][   T14] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    3.518154][   T14] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    3.527692][   T14] omap_hsmmc 48060000.mmc: Got CD GPIO
[    3.534995][   T14] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    3.545955][   T14] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    3.555496][   T14] omap_hsmmc 48060000.mmc: Got CD GPIO
[    3.562090][   T14] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    3.573596][    T1] input: volume_keys0 as /devices/platform/volume_keys0/input/input0
[    3.582555][    T1] hctosys: unable to open rtc device (rtc0)
[    3.589131][    T1] v1_8d: disabling
[    3.592855][    T1] v3_3d: disabling
[    3.598376][   T14] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    3.607963][   T14] omap_hsmmc 48060000.mmc: Got CD GPIO
[    3.615807][    T1] Freeing unused kernel memory: 1024K
[    3.621871][   T14] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    3.642195][    T1] Run /sbin/init as init process

Please press Enter to activate this console.

dts:

usb: usb@47400000 {
            compatible = "ti,am33xx-usb", "my,usbkbd";
            reg = <0x47400000 0x1000>;
            ranges;
            #address-cells = <1>;
            #size-cells = <1>;
            ti,hwmods = "usb_otg_hs";
            status = "okay";

            usb_ctrl_mod: control@44e10620 {
                compatible = "ti,am335x-usb-ctrl-module";
                reg = <0x44e10620 0x10
                    0x44e10648 0x4>;
                reg-names = "phy_ctrl", "wakeup";
                status = "okay";
            };

            usb0_phy: usb-phy@47401300 {
                compatible = "ti,am335x-usb-phy";
                reg = <0x47401300 0x100>;
                reg-names = "phy";
                status = "okay";
                ti,ctrl_mod = <&usb_ctrl_mod>;
                #phy-cells = <0>;
            };

            usb0: usb@47401000 {
                compatible = "ti,musb-am33xx";
                status = "okay";
                reg = <0x47401400 0x400
                    0x47401000 0x200>;
                reg-names = "mc", "control";

                interrupts = <18>;
                interrupt-names = "mc";
                dr_mode = "host";
                mentor,multipoint = <1>;
                mentor,num-eps = <16>;
                mentor,ram-bits = <12>;
                mentor,power = <500>;
                phys = <&usb0_phy>;
            };

            usb1_phy: usb-phy@47401b00 {
                compatible = "ti,am335x-usb-phy";
                reg = <0x47401b00 0x100>;
                reg-names = "phy";
                status = "okay";
                ti,ctrl_mod = <&usb_ctrl_mod>;
                #phy-cells = <0>;
            };

            usb1: usb@47401800 {
                compatible = "ti,musb-am33xx";
                status = "okay";
                reg = <0x47401c00 0x400
                    0x47401800 0x200>;
                reg-names = "mc", "control";
                interrupts = <19>;
                interrupt-names = "mc";
                dr_mode = "host";
                mentor,multipoint = <1>;
                mentor,num-eps = <16>;
                mentor,ram-bits = <12>;
                mentor,power = <500>;
                phys = <&usb1_phy>;
            };
        };

after the devmem:

/ # devmem 0x47401c60 b
[   54.241129][  T117] Unhandled fault: external abort on non-linefetch (0x1018) at 0xb6fcfc60
[   54.249546][  T117] pgd = e8d46fe1
[   54.252962][  T117] [b6fcfc60] *pgd=9b773831, *pte=47401383, *ppte=47401a33
Bus error
/ # devmem 0x47401460 b
[   60.402024][  T124] Unhandled fault: external abort on non-linefetch (0x1018) at 0xb6fb9460
[   60.410441][  T124] pgd = e8d46fe1
[   60.413855][  T124] [b6fb9460] *pgd=9b786831, *pte=47401383, *ppte=47401a33
Bus error

what i have in my RFS:

Root Filesystem

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.