-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BBBMINI /dev/spidev new -vs- old mapping #114
Comments
@patrickpoirier51 , i'll take a look at this issue this week.. @jadonk and I was hoping you guys would have stopped hardcoding the /dev/spidev* node and used the sys lookup.. Regards, |
Ok, So I will check on our side with @mirkix Thanks |
Would you have any pointers for the programming methodology to acces these devices ? |
Guess what ? I can set the but cannot t set P9.28 I see it is reserved to audio cape but it is still unavailable with audio disabled: |
When using: dtb=am335x-boneblack-bbbmini.dtb, i see: debian@beaglebone:~$ uname -r ; ls /dev/spidev*
Thus it looks like i need to fix the 4.19.x-ti and 4.14.x-bone branches.. So are you not using "dtb=am335x-boneblack-bbbmini.dtb" anymore or what? |
@RobertCNelson |
We should just create a custom overlay, so that all the base boards (bbb, bbgw, etc) and there we can patch the spi alias name.. |
That makes a lot of sense, what do you think @mirkix ? |
@RobertCNelson yes, may a custom overlay would be a good solution. and it is possible to map spi names there? |
@mirkix and @patrickpoirier51 we have another option rolling thru the kernel, a little udev rule from: https://github.com/mvduin/py-uio/blob/master/etc/udev/rules.d/10-of-symlink.rules
Thus instead of hard-coding "/dev/spidevX.Y" just use "/dev/spi/X.Y" After yesterday these kernel currently support that:
Will be tackling 4.19.x and all bone kernels today... Should have all "latest" kernel supporting this by the weekend.. Regards, |
Hello Robert,
On the BBBMINI on pre 4.9 releases we had this mapping
ls /dev/spi*
/dev/spidev1.0 /dev/spidev2.0 /dev/spidev2.1
Now I have upgraded to 4.19 and I have this mapping
ls /dev/spi*
/dev/spidev1.0 /dev/spidev1.1 /dev/spidev2.0 /dev/spidev2.1
Problem : We builded ArduPilot to use SPI1 and it seem to be mapping to 2
Note: I have not implemented config-pin and I tried with or without loading
dtb=am335x-boneblack-bbbmini.dtb
and with SPI DTBO == no change
----version----
debian@beaglebone:
$ sudo /opt/scripts/tools/version.shstretch+20190320][sudo] password for debian:
git:/opt/scripts/:[36a476c67f707ba2698bfb30452ebd2951162ce2]
eeprom:[A335BNLTBBG1BBG216084326]
model:[TI_AM335x_BeagleBone_Green]
dogtag:[BeagleBoard.org Debian Image 2019-03-03]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2018.09-00002-g08ae12f051]:[location: dd MBR]
kernel:[4.19.29-bone-rt-r29]
uboot_overlay_options:[enable_uboot_overlays=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:[bb-cape-overlays]:[4.4.20190320.1-0rcnee0
pkg:[bb-wl18xx-firmware]:[1.20190227.1-0rcnee0
stretch+20190227]stretch+20171005]pkg:[kmod]:[23-2rcnee1
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20180825+dfsg-1rcnee1~stretch+20181217]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal netdev gpio pwm eqep admin spi i2c tisdk weston-launch xenomai bluetooth cloud9ide]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet]
dmesg | grep pinctrl-single
[ 0.814231] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[ 0.826045] gpio-of-helper ocp:cape-universal: ready
END
The text was updated successfully, but these errors were encountered: