PocketBeagle SD Card Extra Storage

328 views
Skip to first unread message

Jack_H

unread,
Feb 2, 2018, 4:44:21 PM2/2/18
to BeagleBoard

Hello all.


 I was wondering if there were any resources for adding an additional microSD card to the pocketbeagle for storage. I currently have a microSD click from MikroElektronika but it’s not listed under the pocketbeagle "working" mikrobus.


I currently have an ethernet click working with my pocketbealge and beaglebone black using very similar code snippets. I have found resources for using a microSD card for the beaglebone black from


here

and here

and this tutorial


Will any of this translate over to the pocketbeagle?

Any information regarding this topic is welcome.

Robert Nelson

unread,
Feb 2, 2018, 5:01:42 PM2/2/18
to Beagle Board, jackg...@tamu.edu
On Fri, Feb 2, 2018 at 9:15 AM, Jack_H <jackg...@tamu.edu> wrote:
> Hello all.
>
>
> I was wondering if there were any resources for adding an additional
> microSD card to the pocketbeagle for storage. I currently have a microSD
> click from MikroElektronika but it’s not listed under the pocketbeagle
> "working" mikrobus.

Oh, that's easy, prove it can work, and provide a pull request here
for both spix positions:

https://github.com/beagleboard/bb.org-overlays/

Then update the wiki.

Just because I haven't purchased that click doesn't mean it 'will not' work.. ;)


> I currently have an ethernet click working with my pocketbealge and
> beaglebone black using very similar code snippets. I have found resources
> for using a microSD card for the beaglebone black from
>
> here
>
> and here
>
> and this tutorial
>
> Will any of this translate over to the pocketbeagle?

There's a new driver in v4.14.x? and a device tree node; "mmc-slot"
CONFIG_MMC_SPI

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/mmc/mmc-spi-slot.txt

Regards,

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

Jason Kridner

unread,
Feb 3, 2018, 11:18:57 PM2/3/18
to beagl...@googlegroups.com, jackg...@tamu.edu
I found it in the 4.9 driver and made an attempt to build it natively as a module and give it a try:


I optimized the loading time for the git clone with a shallow checkout. The build happens pretty fast. It didn't load for me at first. I was able to load it, by doing a depmod and modprobe manually, but it never reports anything beyond:

mmc_spi spi2.1: SD/MMC host mmc3, no WP, no poweroff

So, got any ideas? How should I specify the interrupts?


sudo apt-get update
sudo apt-get install linux-headers-`uname -r`
cd
mkdir linux
cd linux/
git init
git config core.sparsecheckout true
git remote add origin https://github.com/beagleboard/linux
echo drivers/mmc/host > .git/info/sparse-checkout                                                   
git fetch origin/4.9 --depth 1
git checkout 4.9
cd drivers/mmc/host
CONFIG_MMC_SPI=m make -C /lib/modules/`uname -r`/build M=$PWD
sudo make -C /lib/modules/`uname -r`/build M=$PWD INSTALL_MOD_DIR=kernel/drivers/mmc/host modules_install

cd /lib/modules/`uname -r`
sudo depmod -a
sudo /opt/scripts/tools/developers/update_initrd.sh
cd /opt/source/bb.org-overlays
echo <<EOF > src/arm/PB-SPI1-MICROSD-CLICK.dts
/*
 * Copyright (C) 2018 Texas Instruments, Jason Kridner <j...@ti.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * https://www.mikroe.com/microsd-click
 * https://download.mikroe.com/documents/add-on-boards/click/microsd/microsd-click-schematic.pdf
 */

/dts-v1/;
/plugin/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/am33xx.h>
#include <dt-bindings/interrupt-controller/irq.h>

/ {
	/*
	 * Free up the pins used by the cape from the pinmux helpers.
	 */
	fragment@0 {
		target = <&ocp>;
		__overlay__ {
			P1_36_pinmux { status = "disabled"; };	/* CD - gpio3_14*/
			P2_25_pinmux { status = "disabled"; };	/* MOSI - gpio1_9 */
			P2_27_pinmux { status = "disabled"; };	/* MISO - gpio1_8 */
			P2_29_pinmux { status = "disabled"; };	/* CLK - gpio0_7 */
			P2_31_pinmux { status = "disabled"; };	/* CS - gpio0_19 */
			cape-universal { status = "disabled"; };
			cape-universal@1 { status = "disabled"; };
		};
	};

	fragment@1 {
		target = <&spi1>;
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

			channel@0 {
				status = "disabled";
			};
			channel@1 {
				status = "disabled";
			};

			mikroe_microsd: mikroe_microsd@0{
				compatible = "mmc-spi-slot";
				pinctrl-names = "default";
				pinctrl-0 = <
					&P2_31_spi_cs_pin
					&P2_29_spi_sclk_pin
					&P2_27_spi_pin
					&P2_25_spi_pin
					&P1_36_gpio_pin
				>;
				
				reg = <1>;
				gpios = <&gpio3 14 0>;
				voltage-ranges = <3300 3300>;
				spi-max-frequency = <50000000>;
			};
		};
	};
};

make
sudo make install
sudo perl -i -pe 's/^#(.*)<file0>/$1PB-SPI1-MICROSD-CLICK/;' /boot/uEnv.txt  
 
------

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.78-ti-r94 (root@b2-am57xx-beagle-x15-2gb) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP PREEMPT Fri Jan 26 21:26:24 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 PocketBeagle
[    0.000000] cma: Reserved 48 MiB at 0x9c800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 130560
[    0.000000] free_area_init_node: node 0, pgdat c14e97c0, 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] percpu: Embedded 15 pages/cpu @df8f8000 s31884 r8192 d21364 u61440
[    0.000000] pcpu-alloc: s31884 r8192 d21364 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129412
[    0.000000] Kernel command line: console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro 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: 439152K/522240K available (12288K kernel code, 1153K rwdata, 4356K rodata, 1024K init, 751K bss, 33936K 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 - 0xc0d00000   (13280 kB)
                     .init : 0xc1300000 - 0xc1400000   (1024 kB)
                     .data : 0xc1400000 - 0xc1520770   (1154 kB)
                      .bss : 0xc1522000 - 0xc15ddfb0   ( 752 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 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.000024] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000046] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000056] OMAP clocksource: timer1 at 24000000 Hz
[    0.002088] clocksource_probe: no matching clocksources found
[    0.002681] Console: colour dummy device 80x30
[    0.002709] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.002715] This ensures that you still see kernel messages. Please
[    0.002720] update your kernel commandline.
[    0.002742] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.020819] pid_max: default: 32768 minimum: 301
[    0.021115] Security Framework initialized
[    0.021127] Yama: becoming mindful.
[    0.021186] AppArmor: AppArmor initialized
[    0.021399] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.021410] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.022613] CPU: Testing write buffer coherency: ok
[    0.022682] ftrace: allocating 39651 entries in 117 pages
[    0.135459] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.135526] Setting up static identity map for 0x80100000 - 0x80100060
[    0.180821] Brought up 1 CPUs
[    0.180842] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[    0.180849] CPU: All CPU(s) started in SVC mode.
[    0.182454] devtmpfs: initialized
[    0.229138] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.229698] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.229722] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.233483] xor: measuring software checksum speed
[    0.272837]    arm4regs  :  1217.000 MB/sec
[    0.312786]    8regs     :  1091.000 MB/sec
[    0.352785]    32regs    :  1088.000 MB/sec
[    0.392784]    neon      :  1669.000 MB/sec
[    0.392792] xor: using function: neon (1669.000 MB/sec)
[    0.392808] pinctrl core: initialized pinctrl subsystem
[    0.394339] NET: Registered protocol family 16
[    0.398145] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.469911] omap_hwmod: debugss: _wait_target_disable failed
[    0.532831] cpuidle: using governor ladder
[    0.544813] cpuidle: using governor menu
[    0.554110] OMAP GPIO hardware version 0.1
[    0.583218] No ATAGs?
[    0.583245] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.584083] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.584098] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.696839] raid6: neonx2   gen()  1894 MB/s
[    0.764818] raid6: neonx2   xor()  1169 MB/s
[    0.764825] raid6: using algorithm neonx2 gen() 1894 MB/s
[    0.764831] raid6: .... xor() 1169 MB/s, rmw enabled
[    0.764837] raid6: using intx1 recovery algorithm
[    0.775240] edma 49000000.edma: TI EDMA DMA engine driver
[    0.781793] SCSI subsystem initialized
[    0.784967] libata version 3.00 loaded.
[    0.785336] usbcore: registered new interface driver usbfs
[    0.785417] usbcore: registered new interface driver hub
[    0.785544] usbcore: registered new device driver usb
[    0.786332] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    0.787288] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
[    0.788107] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 400 kHz
[    0.788396] media: Linux media interface: v0.10
[    0.788462] Linux video capture interface: v2.00
[    0.788552] pps_core: LinuxPPS API ver. 1 registered
[    0.788558] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giom...@linux.it>
[    0.788581] PTP clock support registered
[    0.789572] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.793204] Advanced Linux Sound Architecture Driver Initialized.
[    0.794051] NetLabel: Initializing
[    0.794061] NetLabel:  domain hash size = 128
[    0.794066] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.794140] NetLabel:  unlabeled traffic allowed by default
[    0.797266] clocksource: Switched to clocksource timer1
[    0.925557] VFS: Disk quotas dquot_6.6.0
[    0.925675] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.926084] AppArmor: AppArmor Filesystem Enabled
[    0.941802] NET: Registered protocol family 2
[    0.942827] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.942874] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.942933] TCP: Hash tables configured (established 4096 bind 4096)
[    0.943005] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.943025] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.943238] NET: Registered protocol family 1
[    0.952223] RPC: Registered named UNIX socket transport module.
[    0.952233] RPC: Registered udp transport module.
[    0.952237] RPC: Registered tcp transport module.
[    0.952242] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.952260] PCI: CLS 0 bytes, default 64
[    0.953041] Unpacking initramfs...
[    1.089318] random: fast init done
[    1.419528] Freeing initrd memory: 6356K
[    1.420140] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    1.423564] audit: initializing netlink subsys (disabled)
[    1.423662] audit: type=2000 audit(1.352:1): initialized
[    1.429178] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.429447] zbud: loaded
[    1.434704] NFS: Registering the id_resolver key type
[    1.434754] Key type id_resolver registered
[    1.434759] Key type id_legacy registered
[    1.434778] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.435189] fuse init (API version 7.26)
[    1.435631] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.435912] orangefs_init: module version upstream loaded
[    1.435920] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    1.456448] Key type asymmetric registered
[    1.456462] Asymmetric key parser 'x509' registered
[    1.456596] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.460911] io scheduler noop registered
[    1.460920] io scheduler deadline registered
[    1.461018] io scheduler cfq registered (default)
[    1.463292] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    1.470778] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    1.472542] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.476104] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
[    1.489036] console [ttyS0] enabled
[    1.490106] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a 8250
[    1.491024] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 160, base_baud = 3000000) is a 8250
[    1.491853] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 161, base_baud = 3000000) is a 8250
[    1.494685] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    1.495014] [drm] Initialized
[    1.515117] libphy: Fixed MDIO Bus: probed
[    1.516163] CAN device driver interface
[    1.517772] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=167)
[    1.518857] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=168)
[    1.521525] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.521581] ehci-pci: EHCI PCI platform driver
[    1.521664] ehci-platform: EHCI generic platform driver
[    1.521954] ehci-omap: OMAP-EHCI Host Controller driver
[    1.522690] usbcore: registered new interface driver usb-storage
[    1.525821] 47401300.usb-phy supply vcc not found, using dummy regulator
[    1.530081] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[    1.530151] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[    1.530497] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.530508] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.530516] usb usb1: Product: MUSB HDRC host driver
[    1.530523] usb usb1: Manufacturer: Linux 4.9.78-ti-r94 musb-hcd
[    1.530530] usb usb1: SerialNumber: musb-hdrc.0
[    1.531670] hub 1-0:1.0: USB hub found
[    1.531740] hub 1-0:1.0: 1 port detected
[    1.534676] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    1.538845] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    1.538892] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
[    1.539221] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.539231] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.539239] usb usb2: Product: MUSB HDRC host driver
[    1.539247] usb usb2: Manufacturer: Linux 4.9.78-ti-r94 musb-hcd
[    1.539254] usb usb2: SerialNumber: musb-hdrc.1
[    1.540317] hub 2-0:1.0: USB hub found
[    1.540385] hub 2-0:1.0: 1 port detected
[    1.553774] omap_rtc 44e3e000.rtc: already running
[    1.554301] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    1.555968] i2c /dev entries driver
[    1.558750] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.560453] cpuidle: enable-method property 'ti,am3352' found operations
[    1.562028] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.608122] ledtrig-cpu: registered to indicate activity on CPUs
[    1.608675] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    1.609039] omap-aes 53500000.aes: will run requests pump with realtime priority
[    1.611569] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    1.617387] hidraw: raw HID events driver (C) Jiri Kosina
[    1.618198] usbcore: registered new interface driver usbhid
[    1.618206] usbhid: USB HID core driver
[    1.618681] remoteproc remoteproc0: wkup_m3 is available
[    1.620834] ti_am3359-tscadc 44e0d000.tscadc: chan 0 step_avg truncating to 16
[    1.620849] ti_am3359-tscadc 44e0d000.tscadc: chan 1 step_avg truncating to 16
[    1.620856] ti_am3359-tscadc 44e0d000.tscadc: chan 2 step_avg truncating to 16
[    1.620864] ti_am3359-tscadc 44e0d000.tscadc: chan 3 step_avg truncating to 16
[    1.620871] ti_am3359-tscadc 44e0d000.tscadc: chan 4 step_avg truncating to 16
[    1.620879] ti_am3359-tscadc 44e0d000.tscadc: chan 5 step_avg truncating to 16
[    1.620886] ti_am3359-tscadc 44e0d000.tscadc: chan 6 step_avg truncating to 16
[    1.620894] ti_am3359-tscadc 44e0d000.tscadc: chan 7 step_avg truncating to 16
[    1.625202] wireguard: WireGuard 0.0.20180118 loaded. See www.wireguard.com for information.
[    1.625214] wireguard: Copyright (C) 2015-2018 Jason A. Donenfeld <Ja...@zx2c4.com>. All Rights Reserved.
[    1.625964] NET: Registered protocol family 10
[    1.631288] mip6: Mobile IPv6
[    1.631311] NET: Registered protocol family 17
[    1.631330] can: controller area network core (rev 20120528 abi 9)
[    1.631408] NET: Registered protocol family 29
[    1.631550] Key type dns_resolver registered
[    1.631557] mpls_gso: MPLS GSO support
[    1.631881] omap_voltage_late_init: Voltage driver support not added
[    1.639533] PM: Cannot get wkup_m3_ipc handle
[    1.644404] ThumbEE CPU extension supported.
[    1.644431] Registering SWP/SWPB emulation handler
[    1.645639] registered taskstats version 1
[    1.645772] zswap: loaded using pool lzo/zbud
[    1.651719] Btrfs loaded, crc32c=crc32c-generic
[    1.689631] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.692299] mmc0: new high speed SDHC card at address aaaa
[    1.693137] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #1, port1 00000104
[    1.693835] Key type encrypted registered
[    1.693857] AppArmor: AppArmor sha1 policy hashing enabled
[    1.702309] mmcblk0: mmc0:aaaa SS08G 7.40 GiB 
[    1.708637]  mmcblk0: p1
[    1.739037] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
[    1.739605] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    1.740102] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.740195] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.741748] remoteproc remoteproc0: powering up wkup_m3
[    1.742263] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[    1.743382] PM: Cannot get wkup_m3_ipc handle
[    1.748222] remoteproc remoteproc0: remote processor wkup_m3 is now up
[    1.748240] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[    1.751396] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[    1.752280] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    1.752292] of_cfs_init
[    1.752443] of_cfs_init: OK
[    1.754291] PM: bootloader does not support rtc-only!
[    1.754797] PM: Hibernation image not present or could not be loaded.
[    1.754935] ALSA device list:
[    1.754941]   No soundcards found.
[    1.757666] Freeing unused kernel memory: 1024K
[    1.845576] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #2, port1 00000104
[    1.998000] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #3, port1 00000104
[    2.150424] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 0008010c
[    5.348164] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[    5.983030] systemd[1]: System time before build time, advancing clock.
[    6.059840] ip_tables: (C) 2000-2006 Netfilter Core Team
[    6.111736] 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)
[    6.112503] systemd[1]: Detected architecture arm.
[    6.117882] systemd[1]: Set hostname to <beaglebone>.
[    6.780470] systemd[1]: Listening on Journal Socket.
[    6.781735] systemd[1]: Listening on Journal Socket (/dev/log).
[    6.782271] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    6.782641] systemd[1]: Listening on udev Kernel Socket.
[    6.782793] systemd[1]: Reached target Remote File Systems.
[    6.783292] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    6.783421] systemd[1]: Reached target Paths.
[    7.197520] EXT4-fs (mmcblk0p1): re-mounted. Opts: errors=remount-ro
[    8.119352] systemd-journald[314]: Received request to flush runtime journal from PID 1
[   12.924034] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[   16.225495] using random self ethernet address
[   16.225515] using random host ethernet address
[   16.310037] using random self ethernet address
[   16.310058] using random host ethernet address
[   16.487151] Mass Storage Function, version: 2009/09/11
[   16.487176] LUN: removable file: (no medium)
[   16.653802] usb0: HOST MAC 60:64:05:f4:a7:d4
[   16.655333] usb0: MAC 60:64:05:f4:a7:d5
[   16.665466] usb1: HOST MAC 60:64:05:f4:a7:d7
[   16.665863] usb1: MAC 60:64:05:f4:a7:d8
[   16.958207] configfs-gadget gadget: high-speed config #1: c
[   17.321671] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[   17.669691] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
[   22.288883] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[   22.393720] fb_st7735r: module is from the staging directory, the quality is unknown, you have been warned.
[   22.395618] fbtft_of_value: buswidth = 8
[   22.395635] fbtft_of_value: debug = 1
[   22.395642] fbtft_of_value: rotate = 0
[   22.395649] fbtft_of_value: fps = 30
[   22.395848] fb_st7735r spi1.0: fbtft_request_one_gpio: 'reset-gpios' = GPIO27
[   22.395874] fb_st7735r spi1.0: fbtft_request_one_gpio: 'dc-gpios' = GPIO65
[   22.395901] fb_st7735r spi1.0: fbtft_request_one_gpio: 'led-gpios' = GPIO50
[   24.890161] random: crng init done
[   31.718105] Console: switching to colour frame buffer device 16x20
[   31.718434] graphics fb0: fb_st7735r frame buffer, 128x160, 40 KiB video memory, 4 KiB buffer memory, fps=31, spi1.0 at 32 MHz



Regards,

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

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYgBf3Hbk7_9tP%3Dt%3Dn6UTEhX89wQgacWOBB%2B3W%2Bz%3DbUhWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--

Robert Nelson

unread,
Feb 6, 2018, 3:26:39 PM2/6/18
to Beagle Board, Jack Hunt, Jason Kridner
Okay i got Jason's overlay working:

CD isn't working, looks more like a driver problem:

https://github.com/beagleboard/bb.org-overlays/commit/d83490f8f4d0b61e123ad2086b057f48dc84b3c0

debian@beaglebone:~$ sudo hdparm -tT /dev/mmcblk0

/dev/mmcblk0:
Timing cached reads: 476 MB in 2.00 seconds = 237.65 MB/sec
Timing buffered disk reads: 66 MB in 3.03 seconds = 21.80 MB/sec

debian@beaglebone:~$ sudo hdparm -tT /dev/mmcblk1

/dev/mmcblk1:
Timing cached reads: 100 MB in 2.00 seconds = 49.96 MB/sec
Timing buffered disk reads: 4 MB in 3.29 seconds = 1.22 MB/sec

debian@beaglebone:~$ dmesg | grep mmc1
[ 0.909930] mmc_spi spi0.0: SD/MMC host mmc1, no WP, no poweroff, cd polling
[ 0.954369] mmc1: host does not support reading read-only switch,
assuming write-enable
[ 0.954396] mmc1: new SDHC card on SPI
[ 0.956952] mmcblk1: mmc1:0000 00000 14.6 GiB

debian@beaglebone:~$ cat /boot/uEnv.txt | grep SPI
uboot_overlay_addr0=/lib/firmware/PB-SPI0-MICROSD-CLICK.dtbo

debian@beaglebone:~$ zcat /proc/config.gz | grep MMC_SPI
CONFIG_MMC_SPI=y

jackg...@tamu.edu

unread,
Feb 11, 2018, 9:21:12 PM2/11/18
to BeagleBoard
Im having trouble executing this command

git fetch origin/4.9 --depth 1

Im consistently getting the error

fatal: 'origin/4.9' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.4

How can I get the correct access rights to run the 4.9 kernel?

Jason Kridner

unread,
Feb 12, 2018, 12:49:20 AM2/12/18
to beagl...@googlegroups.com
With Robert’s integration, there’s no longer a need to debug my steps. Use /opt/scripts/tools/update_kernel.sh to get the latest 4.9 kernel. Googling for that script name should get sufficient instructions. Once on that kernel, do the /boot/uEnv.txt edit as indicated. 

jackfh...@gmail.com

unread,
Feb 22, 2018, 7:41:02 AM2/22/18
to BeagleBoard
I've gotten the sd card overlay working, thank you for the help! Now I'm trying to read and write a file to it in python but am struggling finding the directory that it is in. Any idea on how to locate this path?

Karishma jaiswal

unread,
May 14, 2020, 11:14:49 AM5/14/20
to BeagleBoard
Hi 
I am trying the same thing with Beagle bone green board. 
Can u help me in this as you mentioned that it worked for you.
Thanks
Karishma

jackfh...@gmail.com

unread,
May 14, 2020, 10:37:08 PM5/14/20
to BeagleBoard
Hi Karishma,

Since Jason and Robert helped me out so much there shouldn't be too much to do.
Beagle bone green and pocket beagle use the same debian version. 
So I'd assume you just have to load the latest version and then edit the uEnv.txt like I did. https://github.com/beagleboard/pocketbeagle/wiki/Click-boards

If that doesn't work for you I'd suggest posting a new question because I am by no means an expert.

Regards,
Jack
Reply all
Reply to author
Forward
0 new messages