beagleboard/beaglebone-blue

buster alpha image no battery monitor

Closed this issue · 3 comments

dlech commented

It's been a while since I fired up my Blue, but I just installed Debian 10.0 2019-07-07 4GB SD IoT. After booting, I noticed there are no battery lights. Apparently the ADC isn't being loaded by default. There is nothing in /sys/bus/iio/devices/.

root@beaglebone:/# rc_battery_monitor 
WARNING: instance of rc_battery_monitor already running
Killing it and starting a new instance
ERROR in rc_adc_init, failed to open iio adc interface
: No such file or directory
Perhaps kernel or device tree is too old
root@beaglebone:/# /opt/scripts/tools/version.sh
git:/opt/scripts/:[46d33928c4a396ef472829bcf22761546e550a6f]
eeprom:[A335BNLTBLA21703EMBL0014]
model:[TI_AM335x_BeagleBone_Blue]
dogtag:[BeagleBoard.org Debian Image 2019-07-07]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-gb96b20de74]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2017.03-rc2-00002-g11d4fd]:[location: dd MBR]
kernel:[4.19.50-ti-r20]
nodejs:[v10.15.2]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-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.20190610.0-0rcnee0~buster+20190610]
pkg:[bb-wl18xx-firmware]:[1.20190227.1-0rcnee0~buster+20190227]
pkg:[kmod]:[26-1]
pkg:[librobotcontrol]:[1.0.4-git20190227.1-0rcnee0~buster+20190327]
pkg:[firmware-ti-connectivity]:[20190114-1]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev i2c cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]
cmdline:[console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 cape_universal=enable quiet]
dmesg | grep remote
[    1.379128] remoteproc remoteproc0: wkup_m3 is available
[    1.540959] remoteproc remoteproc0: powering up wkup_m3
[    1.541085] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[    1.544472] remoteproc remoteproc0: remote processor wkup_m3 is now up
dmesg | grep pru
dmesg | grep pinctrl-single
[    1.102508] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END
dlech commented

I guess I need to update the eMMC bootloader even though I am booting from an SD card?

dlech commented

yup, that made the difference.

dlech commented

FYI, I had to edit /opt/scripts/tools/developers/update_bootloader.sh to flash mmcblk1 instead of mmcblk0.