Hi,
Bas, you were right about the setup.sh. Following the findings in this thread: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!searchin/machinekit/grep$3A$20$2Fsys$2Fdevices$2Fbone_capemgr.*$2Fslots$3A$20No$20such$20file$20or$20directory|sort:date/machinekit/_6nfova0Q9s/PoSZAHVBBQAJ I found out that the loading of the /sys/devices/bone_capemgr.*/slots was the main reason for the error I had. We also updated CometNP_Metric.ini according to the findings in the mentioned thread. However, I now have a new issue. It seems that the cape_universal is not correctly enabled during bootup. Setup.sh fails with the error: * MACHINEKIT - 0.1Machine configuration directory is '/home/machinekit/machinekit/configs/ARM.BeagleBone.Probotix'Machine configuration file is 'CometNP.ini'Starting Machinekit...rtapi_msgd command: /usr/libexec/linuxcnc/rtapi_msgd --instance=0 --rtmsglevel=1 --usrmsglevel=1 --debug=1 --halsize=524288rtapi_app command: /usr/libexec/linuxcnc/rtapi_app_rt-preempt --instance=0 --debug=1io startedUnrecognized line skipped: POC FMS LEN DIAM COMMENThalcmd loadusr io startedP8_08 pinmux file not found!Pin has no cape: P8_08Comet.hal:5: program './setup.sh' failed, returned 1Shutting down and cleaning up Machinekit...Cleanup doneMachinekit terminated with an error. For simple cases more informationcan be found in the following files: /home/machinekit/linuxcnc_debug.txt /home/machinekit/linuxcnc_print.txtFor other cases get more meaningfull information by restarting after export DEBUG=5and look at the output of: /var/log/linuxcnc.log dmesgWhen looking for errors, specifically look for libraries that fail to loadby looking for lines with 'insmod failed' as per example below.insmod failed, returned -1:do_load_cmd: dlopen: nonexistant-component.so: cannot open shared object file:No such file or directoryFor getting help, please have a look here: www.machinekit.io/docs/getting-help/* Running the version.sh script gives the following output: *git:/opt/scripts/:[90c549502ab96c2ca51aa7adfdd3a5ca384038ee]eeprom:[A335BNLTEIA00419BBBK0F60]model:[Octavo_Systems_OSD3358-SM-RED]dogtag:[Machinekit Debian Image 2019-10-21]bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-gf15b99f0b6]:[location: dd MBR]bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2017.11-00002-g7b415acfc1]:[location: dd MBR]UBOOT: Loaded Overlay:[AM335X-PRU-UIO-00A0]UBOOT: Loaded Overlay:[BB-ADC-00A0]UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]UBOOT: Loaded Overlay:[BB-NHDMI-TDA998x-00A0]UBOOT: Loaded Overlay:[M-BB-OSD3358-SM-RED-00A0]UBOOT: Loaded Overlay:[OSD3358-00A0]kernel:[4.19.72-bone-rt-r39]/boot/uEnv.txt Settings:uboot_overlay_options:[enable_uboot_overlays=1]uboot_overlay_options:[disable_uboot_overlay_audio=1]uboot_overlay_options:[disable_uboot_overlay_wireless=1]uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-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.20191102.0-0rcnee0~stretch+20191102]pkg:[bb-wl18xx-firmware]:[1.20190227.1-0rcnee0~stretch+20190227]pkg:[kmod]:[23-2rcnee1~stretch+20171005]WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]pkg:[firmware-ti-connectivity]:[20180825+dfsg-1rcnee1~stretch+20181217]groups:[machinekit : machinekit adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetooth netdev gpio pwm eqep remoteproc admin spi tisdk weston-launch xenomai cloud9ide]cmdline:[console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet]dmesg | grep remote[ 0.884743] remoteproc remoteproc0: wkup_m3 is available[ 1.363767] remoteproc remoteproc0: powering up wkup_m3[ 1.363788] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168[ 1.365993] remoteproc remoteproc0: remote processor wkup_m3 is now updmesg | grep prudmesg | grep pinctrl-single[ 0.697809] pinctrl-single 44e10800.pinmux: 142 pins, size 568dmesg | grep gpio-of-helperlsusbBus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying ReceiverBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubEND* Attached is the uEnv.txt file. What am I missing? Running config-pin P8.08 gpio gives the same error message as the setup.sh so I believe the error is not related to machinekit directly, but how the cape_universal is loaded. I am thankful for any advise I can get. onsdag 6. november 2019 15.11.43 UTC+1 skrev Bas de Bruijn følgende: > > Hi Rolf, > I’m no Beaglebone expert, but I guess that you setup.sh script is the > cause of your crashes. Iirc there was s somewhat recent pr that fixed > permissions on a setup.sh script for another board. > Please try to execute the setup.sh script to see if that gives you > meaningful info on why it crashes. > > On 6 Nov 2019, at 14:16, Rolf <[email protected] <javascript:>> wrote: > > btw: I got my machinekit image from: > https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#BBW.2FBBB_.28All_Revs.29_Machinekit, > > however I also tried to just follow an installation guide ( > https://machinekoder.com/machinekit-debian-stretch-beaglebone-black/), > but both gave me the same result. > > > -- > website: http://www.machinekit.io blog: http://blog.machinekit.io github: > https://github.com/machinekit > --- > You received this message because you are subscribed to the Google Groups > "Machinekit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/machinekit/6ce223d9-f05e-4261-92e3-32c2762af965%40googlegroups.com > > <https://groups.google.com/d/msgid/machinekit/6ce223d9-f05e-4261-92e3-32c2762af965%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/76302c31-f1f4-467d-9c01-08155a4767bd%40googlegroups.com.
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0 uname_r=4.19.72-bone-rt-r39 #uuid= #dtb= ###U-Boot Overlays### ###Documentation: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays ###Master Enable enable_uboot_overlays=1 ### ###Overide capes with eeprom #uboot_overlay_addr0=/lib/firmware/<file0>.dtbo #uboot_overlay_addr1=/lib/firmware/<file1>.dtbo #uboot_overlay_addr2=/lib/firmware/<file2>.dtbo #uboot_overlay_addr3=/lib/firmware/<file3>.dtbo ### ###Additional custom capes #uboot_overlay_addr4=/lib/firmware/<file4>.dtbo #uboot_overlay_addr5=/lib/firmware/<file5>.dtbo #uboot_overlay_addr6=/lib/firmware/<file6>.dtbo #uboot_overlay_addr7=/lib/firmware/<file7>.dtbo ### ###Custom Cape #dtb_overlay=/lib/firmware/<file8>.dtbo ### ###Disable auto loading of virtual capes (emmc/video/wireless/adc) #disable_uboot_overlay_emmc=1 #disable_uboot_overlay_video=1 disable_uboot_overlay_audio=1 disable_uboot_overlay_wireless=1 #disable_uboot_overlay_adc=1 ### ###PRUSS OPTIONS ###pru_rproc (4.14.x-ti kernel) #uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo ###pru_rproc (4.19.x-ti kernel) #uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo ###pru_uio (4.14.x-ti, 4.19.x-ti & mainline/bone kernel) uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo ### ###Cape Universal Enable enable_uboot_cape_universal=1 ### ###Debug: disable uboot autoload of Cape #disable_uboot_overlay_addr0=1 #disable_uboot_overlay_addr1=1 #disable_uboot_overlay_addr2=1 #disable_uboot_overlay_addr3=1 ### ###U-Boot fdt tweaks... (60000 = 384KB) #uboot_fdt_buffer=0x60000 ###U-Boot Overlays### cmdline=coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet #In the event of edid real failures, uncomment this next line: #cmdline=coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet video=HDMI-A-1:1024x768@60e #Use an overlayfs on top of a read-only root filesystem: #cmdline=coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet overlayroot=tmpfs ##enable Generic eMMC Flasher: ##make sure, these tools are installed: dosfstools rsync #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
