PWM problem

88 views
Skip to first unread message

krzysztof....@gmail.com

unread,
Sep 24, 2018, 3:23:00 PM9/24/18
to BeagleBoard
Hello,
I want to use PWM pins by Adafruit in my BBB but I have got some problems. Below some info about my soft:


root@beaglebone:~# cat /etc/dogtag
BeagleBoard.org Debian Image 2018-06-17
root@beaglebone:~# cat /etc/debian_version
9.5
root@beaglebone:~# uname -a
Linux beaglebone 4.14.49-ti-r54 #1 SMP PREEMPT Fri Jun 15 22:14:13 UTC 2018 armv7l GNU/Linux
root@beaglebone:~# pip install Adafruit_BBIO
Requirement already satisfied: Adafruit_BBIO in /usr/local/lib/python2.7/dist-packages/Adafruit_BBIO-1.0.10-py2.7-linux-armv7l.egg



root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1

when I want

install bb-cape-overlays I get:

root@beaglebone:~# sudo apt update ; sudo apt install bb-cape-overlays
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://deb.debian.org/debian stretch-updates InRelease
Get:3 http://deb.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Hit:4 http://deb.debian.org/debian stretch Release
Get:5 http://repos.rcn-ee.com/debian stretch InRelease [3058 B]
Get:7 http://repos.rcn-ee.com/debian stretch/main armhf Packages [683 kB]
Fetched 781 kB in 25s (30.7 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree
Reading state information... Done
bb-cape-overlays is already the newest version (4.4.20180914.0-0rcnee0~stretch+20180914).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
ti-opencl : Depends: libtiopencl1 (= 01.01.15.03-git20180817.2-0rcnee4~stretch+20180817) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).



dmesg


root@beaglebone:~# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.49-ti-r54 (root@b2-am57xx-beagle-x15-2gb) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 SMP PREEMPT Fri Jun 15 22:14:13 UTC 2018
[ 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] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0x9c800000
[ 0.000000] On node 0 totalpages: 130560
[ 0.000000] free_area_init_node: node 0, pgdat c15ed380, node_mem_map df961000
[ 0.000000] Normal zone: 1148 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 130560 pages, LIFO batch:31
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon)
[ 0.000000] random: get_random_bytes called from start_kernel+0xac/0x460 with crng_init=0
[ 0.000000] percpu: Embedded 18 pages/cpu @df928000 s41548 r8192 d23988 u73728
[ 0.000000] pcpu-alloc: s41548 r8192 d23988 u73728 alloc=18*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129412
[ 0.000000] Kernel command line: console=tty0 console=ttyO0,115200n8 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet
[ 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: 440724K/522240K available (13312K kernel code, 1168K rwdata, 4372K rodata, 1024K init, 673K bss, 32364K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xe0000000 - 0xff800000 ( 504 MB)
lowmem : 0xc0000000 - 0xdfe00000 ( 510 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0e00000 (14304 kB)
.init : 0xc1400000 - 0xc1500000 (1024 kB)
.data : 0xc1500000 - 0xc16241a8 (1169 kB)
.bss : 0xc162ec1c - 0xc16d709c ( 674 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] ftrace: allocating 42794 entries in 126 pages
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 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.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000035] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000044] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000750] timer_probe: no matching timers found
[ 0.000971] Console: colour dummy device 80x30
[ 0.001014] console [tty0] enabled
[ 0.001037] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.001041] This ensures that you still see kernel messages. Please
[ 0.001045] update your kernel commandline.
[ 0.001070] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[ 0.046949] pid_max: default: 32768 minimum: 301
[ 0.047225] Security Framework initialized
[ 0.047240] Yama: becoming mindful.
[ 0.047280] AppArmor: AppArmor disabled by boot time parameter
[ 0.047472] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.047485] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.048493] CPU: Testing write buffer coherency: ok
[ 0.049003] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.063063] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.070976] Hierarchical SRCU implementation.
[ 0.082098] EFI services will not be available.
[ 0.086980] smp: Bringing up secondary CPUs ...
[ 0.086996] smp: Brought up 1 node, 1 CPU
[ 0.087006] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[ 0.087013] CPU: All CPU(s) started in SVC mode.
[ 0.088590] devtmpfs: initialized
[ 0.103363] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.103867] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.103893] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.107907] xor: measuring software checksum speed
[ 0.147017] arm4regs : 1217.000 MB/sec
[ 0.186950] 8regs : 1091.000 MB/sec
[ 0.226949] 32regs : 1088.000 MB/sec
[ 0.266949] neon : 1665.000 MB/sec
[ 0.266956] xor: using function: neon (1665.000 MB/sec)
[ 0.266974] pinctrl core: initialized pinctrl subsystem
[ 0.267770] DMI not present or invalid.
[ 0.268217] NET: Registered protocol family 16
[ 0.272106] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.298638] omap_hwmod: debugss: _wait_target_disable failed
[ 0.351509] cpuidle: using governor menu
[ 0.357418] OMAP GPIO hardware version 0.1
[ 0.371209] No ATAGs?
[ 0.371230] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.371599] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[ 0.371611] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[ 0.467006] raid6: neonx2 gen() 1883 MB/s
[ 0.534982] raid6: neonx2 xor() 1497 MB/s
[ 0.534990] raid6: using algorithm neonx2 gen() 1883 MB/s
[ 0.534996] raid6: .... xor() 1497 MB/s, rmw enabled
[ 0.535002] raid6: using neon recovery algorithm
[ 0.542382] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.545637] SCSI subsystem initialized
[ 0.547150] libata version 3.00 loaded.
[ 0.547441] usbcore: registered new interface driver usbfs
[ 0.547498] usbcore: registered new interface driver hub
[ 0.547617] usbcore: registered new device driver usb
[ 0.548200] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.549657] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 0.549932] media: Linux media interface: v0.10
[ 0.549992] Linux video capture interface: v2.00
[ 0.550140] pps_core: LinuxPPS API ver. 1 registered
[ 0.550148] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giom...@linux.it>
[ 0.550178] PTP clock support registered
[ 0.550303] dmi: Firmware registration failed.
[ 0.550768] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.555345] Advanced Linux Sound Architecture Driver Initialized.
[ 0.556081] NetLabel: Initializing
[ 0.556092] NetLabel: domain hash size = 128
[ 0.556098] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.556181] NetLabel: unlabeled traffic allowed by default
[ 0.559485] clocksource: Switched to clocksource timer1
[ 0.726412] VFS: Disk quotas dquot_6.6.0
[ 0.726529] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.738556] NET: Registered protocol family 2
[ 0.739569] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.739619] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.739677] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.739807] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.739830] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.740063] NET: Registered protocol family 1
[ 0.748993] RPC: Registered named UNIX socket transport module.
[ 0.749004] RPC: Registered udp transport module.
[ 0.749009] RPC: Registered tcp transport module.
[ 0.749015] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.749653] Unpacking initramfs...
[ 1.019545] random: fast init done
[ 1.039688] Freeing initrd memory: 4568K
[ 1.040281] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[ 1.040507] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 1.042188] audit: initializing netlink subsys (disabled)
[ 1.043409] audit: type=2000 audit(1.040:1): state=initialized audit_enabled=0 res=1
[ 1.043676] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 1.049510] zbud: loaded
[ 1.056927] NFS: Registering the id_resolver key type
[ 1.056980] Key type id_resolver registered
[ 1.056987] Key type id_legacy registered
[ 1.057006] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.057353] fuse init (API version 7.26)
[ 1.058249] orangefs_debugfs_init: called with debug mask: :none: :0:
[ 1.058450] orangefs_init: module version upstream loaded
[ 1.058458] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[ 1.069399] Key type asymmetric registered
[ 1.069416] Asymmetric key parser 'x509' registered
[ 1.069541] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[ 1.073892] io scheduler noop registered
[ 1.073905] io scheduler deadline registered
[ 1.074312] io scheduler cfq registered (default)
[ 1.074322] io scheduler mq-deadline registered
[ 1.076195] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 1.077397] gpio-of-helper ocp:cape-universal: ready
[ 1.080289] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 1.081634] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[ 1.085334] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
[ 1.101715] console [ttyS0] enabled
[ 1.104307] omap_rng 48310000.rng: Random Number Generator ver. 20
[ 1.105340] [drm] Initialized vgem 1.0.0 20120112 for virtual device on minor 0
[ 1.105459] usbcore: registered new interface driver udl
[ 1.109805] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.110106] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.110340] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.110564] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.114050] libphy: Fixed MDIO Bus: probed
[ 1.114902] CAN device driver interface
[ 1.167517] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[ 1.167533] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 1.167934] davinci_mdio: dt: updated phy_id[0] from phy_mask[fffffffe]
[ 1.182112] libphy: 4a101000.mdio: probed
[ 1.182141] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 1.183170] cpsw 4a100000.ethernet: Detected MACID = 1c:ba:8c:e8:fb:82
[ 1.183282] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[ 1.183292] cpsw 4a100000.ethernet: ALE Table size 1024
[ 1.183328] cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies)
[ 1.186111] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.186173] ehci-platform: EHCI generic platform driver
[ 1.186368] ehci-omap: OMAP-EHCI Host Controller driver
[ 1.186873] usbcore: registered new interface driver usb-storage
[ 1.189589] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
[ 1.192493] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
[ 1.206818] omap_rtc 44e3e000.rtc: already running
[ 1.207753] omap_rtc 44e3e000.rtc: registered as rtc0
[ 1.208847] i2c /dev entries driver
[ 1.211637] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.212101] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=1)
[ 1.213208] cpuidle: enable-method property 'ti,am3352' found operations
[ 1.213710] sdhci: Secure Digital Host Controller Interface driver
[ 1.213716] sdhci: Copyright(c) Pierre Ossman
[ 1.214136] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.286771] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.288628] mmc0: new high speed SDHC card at address 1234
[ 1.289475] mmcblk0: mmc0:1234 SA16G 14.5 GiB
[ 1.290933] mmcblk0: p1
[ 1.292021] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.294125] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.295943] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 1.298324] omap-aes 53500000.aes: will run requests pump with realtime priority
[ 1.300930] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 1.305587] hidraw: raw HID events driver (C) Jiri Kosina
[ 1.307996] usbcore: registered new interface driver usbhid
[ 1.308004] usbhid: USB HID core driver
[ 1.308402] remoteproc remoteproc0: wkup_m3 is available
[ 1.314249] wireguard: WireGuard 0.0.20180531 loaded. See www.wireguard.com for information.
[ 1.314262] wireguard: Copyright (C) 2015-2018 Jason A. Donenfeld <Ja...@zx2c4.com>. All Rights Reserved.
[ 1.315087] NET: Registered protocol family 10
[ 1.321056] Segment Routing with IPv6
[ 1.321141] mip6: Mobile IPv6
[ 1.321157] NET: Registered protocol family 17
[ 1.321175] can: controller area network core (rev 20170425 abi 9)
[ 1.321265] NET: Registered protocol family 29
[ 1.321377] Key type dns_resolver registered
[ 1.321384] mpls_gso: MPLS GSO support
[ 1.321395] NET: Registered protocol family 44
[ 1.321717] omap_voltage_late_init: Voltage driver support not added
[ 1.328708] ThumbEE CPU extension supported.
[ 1.328734] Registering SWP/SWPB emulation handler
[ 1.329702] registered taskstats version 1
[ 1.329853] zswap: loaded using pool lzo/zbud
[ 1.332593] Btrfs loaded, crc32c=crc32c-generic
[ 1.332698] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
[ 1.332724] ima: Allocated hash algorithm: sha256
[ 1.347643] mmc1: new high speed MMC card at address 0001
[ 1.348526] mmcblk1: mmc1:0001 MMC02G 1.79 GiB
[ 1.348957] mmcblk1boot0: mmc1:0001 MMC02G partition 1 1.00 MiB
[ 1.349358] mmcblk1boot1: mmc1:0001 MMC02G partition 2 1.00 MiB
[ 1.349736] mmcblk1rpmb: mmc1:0001 MMC02G partition 3 128 KiB
[ 1.351791] mmcblk1: p1 p2
[ 1.377069] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
[ 1.377670] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 1.378164] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 1.502372] tda998x 0-0070: found TDA19988
[ 1.503838] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)
[ 1.503876] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.503882] [drm] No driver support for vblank timestamp query.
[ 1.504357] [drm] Cannot find any crtc or sizes
[ 1.505087] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 1
[ 1.505243] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.506774] remoteproc remoteproc0: powering up wkup_m3
[ 1.506799] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[ 1.507073] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 1.507094] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x193
[ 1.512778] bone_capemgr bone_capemgr: Baseboard: 'A335BNLT,00A5,3002BBBK9610'
[ 1.512806] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #slots=4
[ 1.540555] bone_capemgr bone_capemgr: slot #0: No cape found
[ 1.567484] bone_capemgr bone_capemgr: slot #1: No cape found
[ 1.596050] bone_capemgr bone_capemgr: slot #2: No cape found
[ 1.624578] bone_capemgr bone_capemgr: slot #3: No cape found
[ 1.624651] bone_capemgr bone_capemgr: initialized OK.
[ 1.635615] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 1.635657] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 1.636015] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.636027] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.636035] usb usb1: Product: MUSB HDRC host driver
[ 1.636043] usb usb1: Manufacturer: Linux 4.14.49-ti-r54 musb-hcd
[ 1.636050] usb usb1: SerialNumber: musb-hdrc.1
[ 1.636889] hub 1-0:1.0: USB hub found
[ 1.636973] hub 1-0:1.0: 1 port detected
[ 1.640978] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: no source widget found for Playback
[ 1.649954] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: Failed to add route Playback -> direct -> TX
[ 1.660400] asoc-simple-card sound: i2s-hifi <-> 48038000.mcasp mapping ok
[ 1.660436] asoc-simple-card sound: ASoC: no DMI vendor name!
[ 1.662156] omap_rtc 44e3e000.rtc: setting system clock to 2018-09-24 17:09:33 UTC (1537808973)
[ 1.662175] of_cfs_init
[ 1.662336] of_cfs_init: OK
[ 1.662991] ALSA device list:
[ 1.663005] #0: TI BeagleBone Black
[ 1.667850] Freeing unused kernel memory: 1024K
[ 1.815798] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 1.816560] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 1.816690] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 2.528260] [drm] Cannot find any crtc or sizes
[ 5.037317] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[ 5.758797] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 5.803700] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 5.804482] systemd[1]: Detected architecture arm.
[ 5.813891] systemd[1]: Set hostname to <beaglebone>.
[ 6.573362] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 6.574061] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 6.574270] systemd[1]: Reached target Remote File Systems.
[ 6.574444] systemd[1]: Reached target Paths.
[ 6.576331] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 6.577953] systemd[1]: Created slice System Slice.
[ 6.579305] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 6.891984] EXT4-fs (mmcblk0p1): re-mounted. Opts: errors=remount-ro
[ 7.946424] systemd-journald[265]: Received request to flush runtime journal from PID 1
[ 13.470403] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[ 14.771635] random: crng init done
[ 14.771658] random: 7 urandom warning(s) missed due to ratelimiting
[ 15.043637] using random self ethernet address
[ 15.043657] using random host ethernet address
[ 15.331035] using random self ethernet address
[ 15.331056] using random host ethernet address
[ 15.500101] net eth0: initializing cpsw version 1.12 (0)
[ 15.572916] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
[ 15.611645] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 17.632994] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 17.633079] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 18.377235] Mass Storage Function, version: 2009/09/11
[ 18.377260] LUN: removable file: (no medium)
[ 19.189505] 8021q: 802.1Q VLAN Support v1.8
[ 19.189597] 8021q: adding VLAN 0 to HW filter on device eth0
[ 19.375081] usb0: HOST MAC 1c:ba:8c:e8:fb:83
[ 19.376800] usb0: MAC 1c:ba:8c:e8:fb:84
[ 19.387648] usb1: HOST MAC 1c:ba:8c:e8:fb:86
[ 19.404179] usb1: MAC 1c:ba:8c:e8:fb:87
[ 20.485573] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 20.731829] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready



Have any idea how to enable this overlay? Becouse probably this is a problem?

Robert Nelson

unread,
Sep 24, 2018, 3:37:04 PM9/24/18
to Beagle Board, krzysztof....@gmail.com
On Mon, Sep 24, 2018 at 2:23 PM <krzysztof....@gmail.com> wrote:
>
> Hello,
> I want to use PWM pins by Adafruit in my BBB but I have got some problems. Below some info about my soft:
>
>
> root@beaglebone:~# cat /etc/dogtag
> BeagleBoard.org Debian Image 2018-06-17
> root@beaglebone:~# cat /etc/debian_version
> 9.5
> root@beaglebone:~# uname -a
> Linux beaglebone 4.14.49-ti-r54 #1 SMP PREEMPT Fri Jun 15 22:14:13 UTC 2018 armv7l GNU/Linux
> root@beaglebone:~# pip install Adafruit_BBIO
> Requirement already satisfied: Adafruit_BBIO in /usr/local/lib/python2.7/dist-packages/Adafruit_BBIO-1.0.10-py2.7-linux-armv7l.egg

This is actually pre-installed. ;)

> root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
> 0: PF---- -1
> 1: PF---- -1
> 2: PF---- -1
> 3: PF---- -1

You have an old version of u-boot in the eMMC:

Please run this script to help verify where it's located so we can remove it..

sudo /opt/scripts/tools/version.sh

Regards,

--
Robert Nelson
https://rcn-ee.com/

Krzysztof Śmiałek

unread,
Sep 24, 2018, 4:13:33 PM9/24/18
to robert...@gmail.com, beagl...@googlegroups.com
Thanks for reply :)

I am using rev B with 2GB eMMC. Now I am using the newest version boot from SD card.


Info from version.sh:

debian@beaglebone:~$ sudo /opt/scripts/tools/version.sh
[sudo] password for debian:
git:/opt/scripts/:[d837f2b02f44fabe16353fd1226bb1f64e847c93]
eeprom:[A335BNLT00A53002BBBK9610]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Image 2018-06-17]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2018.03-00002-gac9cce7c6a]:[location: dd MBR]
kernel:[4.14.49-ti-r54]
nodejs:[v6.14.4]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.4.20180914.0-0rcnee0~stretch+20180914]
pkg:[bb-wl18xx-firmware]:[1.20180517-0rcnee0~stretch+20180517]
pkg:[kmod]:[23-2rcnee1~stretch+20171005]
pkg:[roboticscape]:[0.4.4-git20180608.0-0rcnee0~stretch+20180609]:[GOT_REPLACED_BY_NEXT]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20170823-1rcnee1~stretch+20180328]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]
cmdline:[console=tty0 console=ttyO0,115200n8 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet]
dmesg | grep pinctrl-single
[    1.075942] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
dmesg | grep gpio-of-helper
[    1.077153] gpio-of-helper ocp:cape-universal: ready
END

THX,
KS

Robert Nelson

unread,
Sep 24, 2018, 4:30:40 PM9/24/18
to krzysztof....@gmail.com, Beagle Board
On Mon, Sep 24, 2018 at 3:13 PM Krzysztof Śmiałek
<krzysztof....@gmail.com> wrote:
>
> Thanks for reply :)
>
> I am using rev B with 2GB eMMC. Now I am using the newest version boot from SD card.
>
>
> Info from version.sh:
>
> debian@beaglebone:~$ sudo /opt/scripts/tools/version.sh
> [sudo] password for debian:
> git:/opt/scripts/:[d837f2b02f44fabe16353fd1226bb1f64e847c93]
> eeprom:[A335BNLT00A53002BBBK9610]
> model:[TI_AM335x_BeagleBone_Black]
> dogtag:[BeagleBoard.org Debian Image 2018-06-17]
> bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2018.03-00002-gac9cce7c6a]:[location: dd MBR]

Humm, looks like i need fix my logic, it didn't find the MLO file in p1:

[ 1.348526] mmcblk1: mmc1:0001 MMC02G 1.79 GiB
[ 1.348957] mmcblk1boot0: mmc1:0001 MMC02G partition 1 1.00 MiB
[ 1.349358] mmcblk1boot1: mmc1:0001 MMC02G partition 2 1.00 MiB
[ 1.349736] mmcblk1rpmb: mmc1:0001 MMC02G partition 3 128 KiB
[ 1.351791] mmcblk1: p1 p2

But otherwise, this 'should' fix it..

sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=100

and reboot..

Background, we moved overlays from the kernel to u-boot, thus a
"recent" u-boot must be present for this to work properly, in your
case, you have an old version of u-boot, we couldn't even detect..

Do you remember what version was installed the eMMC? Then i can work
on patching my version.sh script..

Krzysztof Śmiałek

unread,
Sep 24, 2018, 4:37:35 PM9/24/18
to robert...@gmail.com, beagl...@googlegroups.com
Hi,
on the eMMc I have installed this one:
Becouse I didn't find any newer for 2gb version. It will be easy to come bac this changes? :)
sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=100

Becouse when I last time use it I need to reflash board ;P

Krzysztof Śmiałek

unread,
Sep 24, 2018, 4:44:19 PM9/24/18
to robert...@gmail.com, beagl...@googlegroups.com
I used this and BBB don't want to boot after reboot;/ so the same situation like yesterday with this comand. Without card the same. Pressing boot buton didnt help. Hmm...

Robert Nelson

unread,
Sep 24, 2018, 4:48:14 PM9/24/18
to krzysztof....@gmail.com, Beagle Board
On Mon, Sep 24, 2018 at 3:44 PM Krzysztof Śmiałek
<krzysztof....@gmail.com> wrote:
>
> I used this and BBB don't want to boot after reboot;/ so the same situation like yesterday with this comand. Without card the same. Pressing boot buton didnt help. Hmm...
>
> pon., 24 wrz 2018 o 22:37 Krzysztof Śmiałek <krzysztof....@gmail.com> napisał(a):
>>
>> Hi,
>> on the eMMc I have installed this one:
>> https://debian.beagleboard.org/images/BBB-eMMC-flasher-debian-7.5-2014-05-14-2gb.img.xz
>> Becouse I didn't find any newer for 2gb version. It will be easy to come bac this changes? :)
>> sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=100

Thanks, flashing and old A5A now..

>>
>> Becouse when I last time use it I need to reflash board ;P


Yeah, if it's from 2014, there's a good chance it won't auto boot the
microSD, just too old of a version of u-boot..

Yes, there is a limited number of images that will fit in the 2GB
eMMC.. Best bet is just the console one, or just use a big microSD
card.

Krzysztof Śmiałek

unread,
Sep 24, 2018, 4:55:18 PM9/24/18
to Robert Nelson, Beagle Board
Ok, so what should I do? Reflash emmc to old one once again? When I was testing yesterday after reflashing the pwm was working on this old soft but probably it will be better if i can use new version of soft. 

Robert Nelson

unread,
Sep 24, 2018, 6:10:09 PM9/24/18
to krzysztof....@gmail.com, Beagle Board
On Mon, Sep 24, 2018 at 3:55 PM Krzysztof Śmiałek
<krzysztof....@gmail.com> wrote:
>

Okay the reporting is fixed:

bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot
2018.09-00002-g0b54a51eee]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot
2014.04-00014-g47880f5]:[location: fatfs /boot/uboot/MLO]

> Ok, so what should I do? Reflash emmc to old one once again? When I was testing yesterday after reflashing the pwm was working on this old soft but probably it will be better if i can use new version of soft.

It's up to you.. but i'd just run:

sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=100

and utilze the new microSD image.

Krzysztof Śmiałek

unread,
Sep 25, 2018, 2:36:29 AM9/25/18
to Robert Nelson, Beagle Board
Ok,
so first of all I need to run the BBB from emmc? So I need reflash this bootloader, yes?
After that I need download new version of image from side, load on sd card and now using: sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=100 shoudl help?
Or I need making another changes in different place of code? Because now I am little confused.
KS

Krzysztof Śmiałek

unread,
Sep 25, 2018, 5:52:56 AM9/25/18
to Robert Nelson, Beagle Board
Ok, for now I have flashed board with Debian 7.5 (BeagleBone Black - 2GB eMMC2014-05-14 
Than I remove card from BBB and install on the card: Debian 9.5 2018-08-30 4GB SD IoT
Flashing this distro probably will not be possible because of little space od eMMc. (I have tried it before)

Ond the SD card I need to change name of file to "uEnv.txt" to update the bootloader and after that I can use the newest distro. But what I need to do now to can use a PWM? If I use now: sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=100
The BBB will not get up. Need I make another changes in files on SD or emmc?
I am very newbie in BBB and now I am little confused :)
So tell me please step by step what should I do :)
Thanks!

Dennis Lee Bieber

unread,
Sep 25, 2018, 11:16:08 AM9/25/18
to beagl...@googlegroups.com
On Tue, 25 Sep 2018 08:36:10 +0200, Krzysztof ?mia?ek
<krzysztof....@gmail.com> declaimed
the following:

>Ok,
>so first of all I need to run the BBB from emmc? So I need reflash this
>bootloader, yes?
>After that I need download new version of image from side, load on sd card
>and now using: sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=100 shoudl
>help?

The dd command is used to ERASE the eMMC u-Boot. Without u-Boot on the
eMMC, the bootstrap sequence tries to load u-Boot from an SD card. If you
don't have an SD card installed for this, the board will not boot.

The u-Boot in the 2GB image you are using to flash with is too old to
be used with newer OS variations (it expects the Linux kernel to load the
device tree, but new kernels expect u-Boot to load the device tree).

Your choices (to me) appear to be to either run with a three year old,
unsupported, OS that fits in the eMMC; or run with an eMMC that has no
u-Boot and needs to have an SD card holding a more recent OS/u-Boot; OR
figure out how to take a recent IoT image and REMOVE enough stuff from it
to let it fit into the 2GB eMMC, and then flash the eMMC using this
stripped down image with a modern u-Boot.*


* I don't know enough about the flashing process to know if it is done on
a "by file" basis, or is done "by block". If the former, getting the used
space of the SD card down to around 1.5-1.8GB might be sufficient; if it is
by blocks, you'd have to somehow compress the SD card free space and shrink
the partition...
Perhaps Mr. Nelson could chime in on this part of the mysterious BBB
flashing process?



--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/

Robert Nelson

unread,
Sep 25, 2018, 11:27:08 AM9/25/18
to Beagle Board
> * I don't know enough about the flashing process to know if it is done on
> a "by file" basis, or is done "by block". If the former, getting the used
> space of the SD card down to around 1.5-1.8GB might be sufficient; if it is
> by blocks, you'd have to somehow compress the SD card free space and shrink
> the partition...
> Perhaps Mr. Nelson could chime in on this part of the mysterious BBB
> flashing process?

So it's just rsync that copes files, so when it error's out, it really
just error's out from lack of space..

One option, for the 2GB eMMC that I've slightly played with but
haven't tested in a flashing situation... Btrfs with compression..

With BTFS with lzo, cut down the iot image from 3.3G to 1.6-ishG...
Well somewhere around there, it's been a few months..

Krzysztof Śmiałek

unread,
Sep 25, 2018, 11:48:31 AM9/25/18
to Beagle Board
Ok, for me it is not important to flash emmc. I can use system from card. And I want use this method. So, what should I do step  by step? For this momet I have got old version on the emmc and ne we on sd card. If i remove card, BBB boot from emmc. If I insert card, BBB boot from sd card. But when I am using system form card there is problem with this PWM by adafruit in python. When I use this comand: sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=100 after rebooting BBB dont get up. All leds are off. With card, without don't matter. BBB is off.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/VVhdRE72JFE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYggtFGmyvt3euvo7QLUtfJj7PffCtf9t%3DXA5%2B7twAvqQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Robert Nelson

unread,
Sep 27, 2018, 2:06:51 PM9/27/18
to Krzysztof Śmiałek, Beagle Board


On Thu, Sep 27, 2018 at 12:59 PM Krzysztof Śmiałek <krzysztof....@gmail.com> wrote:
Hi,
So what should I do now? First I tell you where am I at the moment, because I've made a lot of strange things and just today I came back to start point.
- I have got flashed emmc by this old image.
- I install the newest version of soft from site. Then I change name of file "BBB-uEnv.txt" to uEnv.txt because I found there infromation:
"##Rename as: uEnv.txt to override old bootloader in eMMC

##These are needed to be compliant with Debian 2014-05-14 u-boot."

Only after that i can boot from my sd card. But now there is still porblem with pwm from adafruit library.
I typed in promt after boot from card:

debian@beaglebone:~$ sudo fdisk -l
Disk /dev/mmcblk0: 14.5 GiB, 15552479232 bytes, 30375936 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x80be9afc

Device         Boot Start     End Sectors  Size Id Type
/dev/mmcblk0p1 *     8192 6963199 6955008  3.3G 83 Linux


Disk /dev/mmcblk1: 1.8 GiB, 1920991232 bytes, 3751936 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device         Boot  Start     End Sectors  Size Id Type
/dev/mmcblk1p1 *      2048  198655  196608   96M  e W95 FAT16 (LBA)
/dev/mmcblk1p2      198656 3751935 3553280  1.7G 83 Linux




Disk /dev/mmcblk1boot1: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk1boot0: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

So now if I type: "sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=10" I will delete all from my emmc and after that my BBB will not get up from SD.

So tell me please what should I do now? I have got clean version (without updates) in emmc and on sd card.


I'd erase the eMMC:

sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=100

Then utilize any image on the microSD..

Regards,

Robert Nelson

unread,
Sep 27, 2018, 2:29:54 PM9/27/18
to Krzysztof Śmiałek, Beagle Board
On Thu, Sep 27, 2018 at 1:21 PM Krzysztof Śmiałek
<krzysztof....@gmail.com> wrote:
>
> Ok, I've made it. And now all leds are off. I've tried push boot bton, or wait. Didn't start.
> Any oder idea?

Stick this image on a microSD card:

https://rcn-ee.net/rootfs/bb.org/testing/2018-09-23/stretch-lxqt-2gb/BBB-blank-debian-9.5-lxqt-2gb-armhf-2018-09-23-2gb.img.xz

using your thumb nail hold the boot button.

Insert power

After the 4 leds come on, lift thumb nail..

Should flash the eMMC in 5-10 minutes.
Reply all
Reply to author
Forward
0 new messages