Copy pin configuration from old to new beaglebone black

Hello!

I setup a new beaglebone black. I like to setup same configuration as my existing “old” one. To configure the pins I have some problems.
I can´t exactly remember, how I did years ago.

Can you help me here?
old BBB:

root@0a8008e:/# /opt/scripts/tools/version.sh
git:/opt/scripts/:[5fa30ffcf068996ec08e034d2af5c5a133f10709]
eeprom:[A335BNLT00C03919BBBK389A]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Image 2018-03-05]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2018.01-00002-ge9ff418fb8]:[location: dd MBR]
UBOOT: Loaded Overlay:[BB-ADC-00A0]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0]
UBOOT: Loaded Overlay:[BB-UART1-00A0]
UBOOT: Loaded Overlay:[BB-UART4-00A0]
UBOOT: Loaded Overlay:[BB-W1-P9.12-00A2]
kernel:[4.9.147-ti-r121]
nodejs:[v6.17.0]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr0=/lib/firmware/BB-UART1-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr1=/lib/firmware/BB-UART4-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr2=/lib/firmware/BB-W1-P9.12-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.14.20200312.0-0rcnee0~stretch+20200312]
pkg:[bb-wl18xx-firmware]:[1.20200226.1-0rcnee0~stretch+20200226]
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]:[20190717-2rcnee1~stretch+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetoo th netdev cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]
cmdline:[console=ttyO0,115200n8 bone_capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN bone_capemgr.enable_ partno=BB-UART1,BB-UART4 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait c oherent_pool=1M net.ifnames=0 quiet]
dmesg | grep remote
[    1.535760] remoteproc remoteproc0: wkup_m3 is available
[    1.816342] remoteproc remoteproc0: powering up wkup_m3
[    1.816877] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[    1.819378] remoteproc remoteproc0: remote processor wkup_m3 is now up
dmesg | grep pru
dmesg | grep pinctrl-single
[    1.299215] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
dmesg | grep gpio-of-helper
[    1.300343] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 002: ID 0403:6011 Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

here the new one:

root@BeagleBone:/# beagle-version
eeprom:[A335BNLT00C02151SBB32974]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Bullseye Minimal Image 2023-10-07]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2022.04-ge0d31da5 (Aug 04                                                  2023 - 18:48:26 +0000)]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[BB-ADC-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0.kernel]
kernel:[5.10.168-ti-r73]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
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.14.20210821.0-0~bullseye+20210821]
pkg:[bb-customizations]:[1.20231007.0-0~bullseye+20231007]
pkg:[bb-usb-gadgets]:[1.20231003.1-0~bullseye+20231003]
pkg:[bb-wl18xx-firmware]:[1.20230414.0-0~bullseye+20230414]
pkg:[kmod]:[28-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20210315-3]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev us                                                 ers systemd-journal input render netdev bluetooth gpio admin i2c tisdk weston-la                                                 unch cloud9ide]
cmdline:[console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/m                                                 mcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656                                                  rng_core.default_quality=100 quiet]
dmesg | grep remote
[    8.754174] remoteproc remoteproc0: wkup_m3 is available
[   31.730230] remoteproc remoteproc0: powering up wkup_m3
[   31.730267] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf,                                                  size 217148
[   31.730550] remoteproc remoteproc0: remote processor wkup_m3 is now up
[   44.702995] remoteproc remoteproc1: 4a334000.pru is available
[   44.735443] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[   44.702995] remoteproc remoteproc1: 4a334000.pru is available
[   44.735443] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pinctrl-single
[    8.287365] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[    8.288788] gpio-of-helper ocp:cape-universal: Failed to get gpio property of 'P8_03'
[    8.288816] gpio-of-helper ocp:cape-universal: Failed to create gpio entry
[    8.957428] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0 name='P8_03'
[    8.957656] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1 name='P8_04'
[    8.957836] gpio-of-helper ocp:cape-universal: Allocated GPIO id=2 name='P8_05'
[    8.958000] gpio-of-helper ocp:cape-universal: Allocated GPIO id=3 name='P8_06'
[    8.958467] gpio-of-helper ocp:cape-universal: Allocated GPIO id=4 name='P8_07'
[    8.958768] gpio-of-helper ocp:cape-universal: Allocated GPIO id=5 name='P8_08'
[    8.958989] gpio-of-helper ocp:cape-universal: Allocated GPIO id=6 name='P8_09'
[    8.959167] gpio-of-helper ocp:cape-universal: Allocated GPIO id=7 name='P8_10'
[    8.959351] gpio-of-helper ocp:cape-universal: Allocated GPIO id=8 name='P8_11'
[    8.959536] gpio-of-helper ocp:cape-universal: Allocated GPIO id=9 name='P8_12'
[    8.959785] gpio-of-helper ocp:cape-universal: Allocated GPIO id=10 name='P8_13'
[    8.959970] gpio-of-helper ocp:cape-universal: Allocated GPIO id=11 name='P8_14'
[    8.960146] gpio-of-helper ocp:cape-universal: Allocated GPIO id=12 name='P8_15'
[    8.960308] gpio-of-helper ocp:cape-universal: Allocated GPIO id=13 name='P8_16'
[    8.960489] gpio-of-helper ocp:cape-universal: Allocated GPIO id=14 name='P8_17'
[    8.960665] gpio-of-helper ocp:cape-universal: Allocated GPIO id=15 name='P8_18'
[    8.960831] gpio-of-helper ocp:cape-universal: Allocated GPIO id=16 name='P8_19'
[    8.961015] gpio-of-helper ocp:cape-universal: Allocated GPIO id=17 name='P8_20'
[    8.961178] gpio-of-helper ocp:cape-universal: Allocated GPIO id=18 name='P8_21'
[    8.961352] gpio-of-helper ocp:cape-universal: Allocated GPIO id=19 name='P8_22'
[    8.961538] gpio-of-helper ocp:cape-universal: Allocated GPIO id=20 name='P8_23'
[    8.961699] gpio-of-helper ocp:cape-universal: Allocated GPIO id=21 name='P8_24'
[    8.961900] gpio-of-helper ocp:cape-universal: Allocated GPIO id=22 name='P8_25'
[    8.962078] gpio-of-helper ocp:cape-universal: Allocated GPIO id=23 name='P8_26'
[    8.962259] gpio-of-helper ocp:cape-universal: Allocated GPIO id=24 name='P8_27'
[    8.962434] gpio-of-helper ocp:cape-universal: Allocated GPIO id=25 name='P8_28'
[    8.962698] gpio-of-helper ocp:cape-universal: Allocated GPIO id=26 name='P8_29'
[    8.962895] gpio-of-helper ocp:cape-universal: Allocated GPIO id=27 name='P8_30'
[    8.963067] gpio-of-helper ocp:cape-universal: Allocated GPIO id=28 name='P8_31'
[    8.963255] gpio-of-helper ocp:cape-universal: Allocated GPIO id=29 name='P8_32'
[    8.963435] gpio-of-helper ocp:cape-universal: Allocated GPIO id=30 name='P8_33'
[    8.963611] gpio-of-helper ocp:cape-universal: Allocated GPIO id=31 name='P8_34'
[    8.963783] gpio-of-helper ocp:cape-universal: Allocated GPIO id=32 name='P8_35'
[    8.963939] gpio-of-helper ocp:cape-universal: Allocated GPIO id=33 name='P8_36'
[    8.964116] gpio-of-helper ocp:cape-universal: Allocated GPIO id=34 name='P8_37'
[    8.964293] gpio-of-helper ocp:cape-universal: Allocated GPIO id=35 name='P8_38'
[    8.964465] gpio-of-helper ocp:cape-universal: Allocated GPIO id=36 name='P8_39'
[    8.964645] gpio-of-helper ocp:cape-universal: Allocated GPIO id=37 name='P8_40'
[    8.964821] gpio-of-helper ocp:cape-universal: Allocated GPIO id=38 name='P8_41'
[    8.964986] gpio-of-helper ocp:cape-universal: Allocated GPIO id=39 name='P8_42'
[    8.965160] gpio-of-helper ocp:cape-universal: Allocated GPIO id=40 name='P8_43'
[    8.965334] gpio-of-helper ocp:cape-universal: Allocated GPIO id=41 name='P8_44'
[    8.965508] gpio-of-helper ocp:cape-universal: Allocated GPIO id=42 name='P8_45'
[    8.965679] gpio-of-helper ocp:cape-universal: Allocated GPIO id=43 name='P8_46'
[    8.965853] gpio-of-helper ocp:cape-universal: Allocated GPIO id=44 name='P9_11'
[    8.966031] gpio-of-helper ocp:cape-universal: Allocated GPIO id=45 name='P9_12'
[    8.966202] gpio-of-helper ocp:cape-universal: Allocated GPIO id=46 name='P9_13'
[    8.966380] gpio-of-helper ocp:cape-universal: Allocated GPIO id=47 name='P9_14'
[    8.966552] gpio-of-helper ocp:cape-universal: Allocated GPIO id=48 name='P9_15'
[    8.966819] gpio-of-helper ocp:cape-universal: Allocated GPIO id=49 name='P9_16'
[    8.967010] gpio-of-helper ocp:cape-universal: Allocated GPIO id=50 name='P9_17'
[    8.967178] gpio-of-helper ocp:cape-universal: Allocated GPIO id=51 name='P9_18'
[    8.967389] gpio-of-helper ocp:cape-universal: Allocated GPIO id=52 name='P9_19'
[    8.967577] gpio-of-helper ocp:cape-universal: Allocated GPIO id=53 name='P9_20'
[    8.967758] gpio-of-helper ocp:cape-universal: Allocated GPIO id=54 name='P9_21'
[    8.967936] gpio-of-helper ocp:cape-universal: Allocated GPIO id=55 name='P9_22'
[    8.968101] gpio-of-helper ocp:cape-universal: Allocated GPIO id=56 name='P9_23'
[    8.968277] gpio-of-helper ocp:cape-universal: Allocated GPIO id=57 name='P9_24'
[    8.968744] gpio-of-helper ocp:cape-universal: Allocated GPIO id=58 name='P9_25'
[    8.968933] gpio-of-helper ocp:cape-universal: Allocated GPIO id=59 name='P9_26'
[    8.969117] gpio-of-helper ocp:cape-universal: Allocated GPIO id=60 name='P9_27'
[    8.969293] gpio-of-helper ocp:cape-universal: Allocated GPIO id=61 name='P9_28'
[    8.969469] gpio-of-helper ocp:cape-universal: Allocated GPIO id=62 name='P9_29'
[    8.969665] gpio-of-helper ocp:cape-universal: Allocated GPIO id=63 name='P9_30'
[    8.969829] gpio-of-helper ocp:cape-universal: Allocated GPIO id=64 name='P9_31'
[    8.970004] gpio-of-helper ocp:cape-universal: Allocated GPIO id=65 name='P9_41'
[    8.970175] gpio-of-helper ocp:cape-universal: Allocated GPIO id=66 name='P9_91'
[    8.970340] gpio-of-helper ocp:cape-universal: Allocated GPIO id=67 name='P9_42'
[    8.970522] gpio-of-helper ocp:cape-universal: Allocated GPIO id=68 name='P9_92'
[    8.970533] gpio-of-helper ocp:cape-universal: ready
dmesg | grep wlcore
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

Did I just need to replace the “/boot/uEnv.txt”?
I´m a little “afraid” to test, because if the BBB not starting anymore I need to reset, and again and this takes hours :slight_smile:

Thank you!

I’d start with this change first in /boot/uEnv.txt

uboot_overlay_addr0=BB-UART1-00A0.dtbo
uboot_overlay_addr1=BB-UART4-00A0.dtbo
uboot_overlay_addr2=BB-W1-P9.12-00A0.dtbo

Make sure to plug in j1 (usb serial ftdi adapter) and see what it boots as…

Regards,