Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux/BEAGLEBN: Facing issue in getting USB0 interface for Beaglebone black.

$
0
0

Part Number:BEAGLEBN

Tool/software: Linux

I have a Beaglebone black and I am trying to build a custom Os using buildroot.  I am using the default configuration provided for beaglebone using the following command:

make beaglebone_defconfig
make

I am following this link as a guide.

I have an Sd card and I have created 2 Partitions. 

The Partition 1 is a boot partition and partition 2 is a rootfs partition.

Partition 1 is created using the following command:

sudo mkfs.vfat -F 32 -n boot /dev/mmcblk0p1

and it is of size 128Mb. Partition 1 consists of the following files:

  • MLO
  • uEnv.txt
  • u-boot.img
  • zImage
  • am335x-boneblack.dtb

Partition 2 is created using:

sudo mkfs.ext4 -L rootfs -E sdcard /dev/mmcblk0p2

Now when I boot the Beaglebone using Serial console I get following logs:

U-Boot SPL 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500)
Trying to boot from MMC2
Loading Environment from EXT4...
** Unable to use mmc 0:1 for loading the env **


U-Boot 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500), Build: jenkins-github_Bootloader-Builder-65

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4...
** Unable to use mmc 0:1 for loading the env **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] ...
board_rev=[00C0] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
36793 bytes read in 8 ms (4.4 MiB/s)
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
376 bytes read in 2 ms (183.6 KiB/s)
gpio: pin 55 (gpio 55) value is 1
Loaded environment from /uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd ...
5557120 bytes read in 357 ms (14.8 MiB/s)
loading /am335x-boneblack.dtb ...
36793 bytes read in 5 ms (7 MiB/s)
bootargs=console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8fff4000, end 8fffffb8 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.40 (local@local-server) (gcc version 7.4.0 (Buildroot 2019.05-git-00541-gdde9d60)) #2 SMP Tue Apr 2 18:46:25 IST 2019
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x9e800000
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] percpu: Embedded 17 pages/cpu @df93c000 s40872 r8192 d20568 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129412
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
[    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: 479872K/522240K available (8192K kernel code, 817K rwdata, 2420K rodata, 1024K init, 7548K bss, 25984K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0000000 - 0xff800000   ( 504 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdfe00000   ( 510 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0dcc7b8   ( 818 kB)
[    0.000000]        .bss : 0xc0dce000 - 0xc152d054   (7549 kB)
[    0.000000] Running RCU self tests
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU lockdep checking is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000018] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000048] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000101] OMAP clocksource: timer1 at 24000000 Hz
[    0.000649] timer_probe: no matching timers found
[    0.001556] Console: colour dummy device 80x30
[    0.001606] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.001619] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.001632] ... MAX_LOCK_DEPTH:          48
[    0.001644] ... MAX_LOCKDEP_KEYS:        8191
[    0.001656] ... CLASSHASH_SIZE:          4096
[    0.001668] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.001680] ... MAX_LOCKDEP_CHAINS:      65536
[    0.001692] ... CHAINHASH_SIZE:          32768
[    0.001704]  memory used by lock dependency info: 4655 kB
[    0.001717]  per task-struct memory footprint: 1536 bytes
[    0.001752] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.078638] pid_max: default: 32768 minimum: 301
[    0.079038] Security Framework initialized
[    0.079178] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.079199] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.082304] CPU: Testing write buffer coherency: ok
[    0.083791] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.085292] Setting up static identity map for 0x80100000 - 0x80100078
[    0.085863] Hierarchical SRCU implementation.
[    0.087494] smp: Bringing up secondary CPUs ...
[    0.087520] smp: Brought up 1 node, 1 CPU
[    0.087537] SMP: Total of 1 processors activated (996.14 BogoMIPS).
[    0.087552] CPU: All CPU(s) started in SVC mode.
[    0.091459] devtmpfs: initialized
[    0.116646] random: get_random_u32 called from bucket_table_alloc+0xe4/0x23c with crng_init=0
[    0.117615] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.118377] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.118447] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.120248] pinctrl core: initialized pinctrl subsystem
[    0.124538] NET: Registered protocol family 16
[    0.131647] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.217406] cpuidle: using governor menu
[    0.229343] OMAP GPIO hardware version 0.1
[    0.253893] No ATAGs?
[    0.253919] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.254230] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.254251] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.289499] edma 49000000.edma: TI EDMA DMA engine driver
[    0.294363] SCSI subsystem initialized
[    0.296055] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    0.296183] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[    0.296465] pps_core: LinuxPPS API ver. 1 registered
[    0.296484] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.296544] PTP clock support registered
[    0.300654] clocksource: Switched to clocksource timer1
[    0.434539] VFS: Disk quotas dquot_6.6.0
[    0.434729] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.458712] NET: Registered protocol family 2
[    0.460661] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.460768] TCP bind hash table entries: 4096 (order: 5, 147456 bytes)
[    0.461939] TCP: Hash tables configured (established 4096 bind 4096)
[    0.462371] UDP hash table entries: 256 (order: 2, 20480 bytes)
[    0.462569] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[    0.463329] NET: Registered protocol family 1
[    0.465451] RPC: Registered named UNIX socket transport module.
[    0.465497] RPC: Registered udp transport module.
[    0.465512] RPC: Registered tcp transport module.
[    0.465527] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.467963] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    0.468954] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    0.471612] audit: initializing netlink subsys (disabled)
[    0.474118] audit: type=2000 audit(0.470:1): state=initialized audit_enabled=0 res=1
[    0.474447] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.477146] NFS: Registering the id_resolver key type
[    0.477506] Key type id_resolver registered
[    0.477545] Key type id_legacy registered
[    0.477692] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.484402] io scheduler noop registered
[    0.484435] io scheduler deadline registered
[    0.484561] io scheduler cfq registered (default)
[    0.484580] io scheduler mq-deadline registered
[    0.484596] io scheduler kyber registered
[    0.486649] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.492083] Serial: 8250/16550 driver, 6 ports, IRQ sharing enabled
[    0.497651] omap_uart 44e09000.serial: no wakeirq for uart0
[    0.498056] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a OMAP UART0
[    1.223666] console [ttyO0] enabled
[    1.255579] brd: module loaded
[    1.283987] loop: module loaded
[    1.289635] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.299291] libphy: Fixed MDIO Bus: probed
[    1.380692] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    1.388722] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    1.399374] libphy: 4a101000.mdio: probed
[    1.403814] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    1.414871] cpsw 4a100000.ethernet: Detected MACID = 68:9e:19:57:77:f3
[    1.422248] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[    1.428889] cpsw 4a100000.ethernet: ALE Table size 1024
[    1.434542] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[    1.445146] i2c /dev entries driver
[    1.452690] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.571497] ledtrig-cpu: registered to indicate activity on CPUs
[    1.580846] oprofile: using arm/armv7
[    1.585400] Initializing XFRM netlink socket
[    1.590306] NET: Registered protocol family 10
[    1.602723] Segment Routing with IPv6
[    1.606684] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.614838] NET: Registered protocol family 17
[    1.619557] NET: Registered protocol family 15
[    1.624722] Key type dns_resolver registered
[    1.629351] omap_voltage_late_init: Voltage driver support not added
[    1.636104] sr_dev_init: No voltage domain specified for smartreflex0. Cannot initialize
[    1.644608] sr_dev_init: No voltage domain specified for smartreflex1. Cannot initialize
[    1.653524] ThumbEE CPU extension supported.
[    1.658007] Registering SWP/SWPB emulation handler
[    1.663099] SmartReflex Class3 initialized
[    1.701671] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.713670] mmc0: new high speed SDHC card at address aaaa
[    1.721961] mmcblk0: mmc0:aaaa SL08G 7.40 GiB
[    1.731624]  mmcblk0: p1 p2
[    1.744292] random: fast init done
[    1.755440] mmc1: new high speed MMC card at address 0001
[    1.763168] mmcblk1: mmc1:0001 MMC04G 3.66 GiB
[    1.769208] mmcblk1boot0: mmc1:0001 MMC04G partition 1 1.00 MiB
[    1.776723] mmcblk1boot1: mmc1:0001 MMC04G partition 2 1.00 MiB
[    1.784677] mmcblk1rpmb: mmc1:0001 MMC04G partition 3 128 KiB
[    1.795501]  mmcblk1: p1
[    1.810817] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    1.817329] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.827080] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    1.834579] hctosys: unable to open rtc device (rtc0)
[    1.839873] sr_init: No PMIC hook to init smartreflex
[    1.845541] sr_init: platform driver register failed for SR
[    1.932384] EXT4-fs (mmcblk0p2): recovery complete
[    1.940401] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.949174] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.963847] devtmpfs: mounted
[    1.969162] Freeing unused kernel memory: 1024K
[    2.093204] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting syslogd: OK
Starting klogd: OK
Initializing random number generator... [    2.378602] random: dd: uninitialized urandom read (512 bytes read)
done.
Starting network: OK
OK

Welcome to Buildroot
buildroot login:

Then I checked if I got the USB Interface for Beaglebone using the following the command:

# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 68:9E:19:57:77:F3
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:45

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

I am unable to understand Why my kernel can detect the ethernet but, not the USB port?

What kernel configurations or other configurations are required to detect the USB port for buildroot?


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>