As far as I know trying to remove a device tree overlay while the BBB is running the OS will always cause a crash.
In order to remove device tree overlays, pass the appropriate parameters to the kernel via uEnv.txt / uboot Such as : optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN Except of course use the device tree overlay name you're trying to unload. However I get the sense you really do not care about this specifically and would possibly like to tweak a device tree overlay file ( make changes etc ) remove and then reload the modified version. Unfortunately I do not think this is possible without a reboot. On Mon, Dec 2, 2013 at 3:57 PM, Bit Pusher <ken.w.mar...@gmail.com> wrote: > I did a >sudo su - and then >echo -7 > /sys/devices/bone_capemgr.9/slots > (as Adafruit_BBIO.ADC had loaded into slot 7). The command appeared to > work, but it also dropped me back to my regular user status so something > went wrong. When, as a regular user, I >cat $SLOTS, it locked up the > terminal the same as before. By the way, my kernel is > Linux ubuntu-armhf 3.8.13-bone28 > > > On Monday, December 2, 2013 4:10:07 PM UTC-5, btr...@gmail.com wrote: >> >> if you actually run "echo -9 > $SLOTS" as the root user do you still have >> this issue? >> >> On Sunday, December 1, 2013 7:42:06 PM UTC-6, Bit Pusher wrote: >>> >>> I am trying to use both the A/D and the high-speed PRU direct I/O. I >>> have the A/D working using Adafruit_BBIO.ADC and separately, I can write >>> directly using the PRU based on the TI examples and using a Device Tree >>> Overlay, but have not been successful using them concurrently yet. By using >>> cat /sys/devices/bone_capemgr.9/slots, I found that the commands in >>> python of >>> >>>import Adafruit_BBBIO.ADC as ADC >>> >>>ADC>setup() >>> loaded the cape-bone-iio-00A0.dtbo overlay >>> >>> as >>> >>> /lib/firmware\> cat $SLOTS >>> 0: 54:PF--- >>> 1: 55:PF--- >>> 2: 56:PF--- >>> 3: 57:PF--- >>> 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G >>> 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI >>> 9: ff:P-O-L Override Board Name,00A0,Override Manuf,cape-bone-iio >>> >>> I then attempted to remove the overlay by >>> >>> /lib/firmware\> sudo sh -c "echo -9 > $SLOTS" >>> /lib/firmware\> cat $SLOTS >>> >>> but the terminal then freezes and never comes back. In another terminal >>> window, using ps aux | grep cat >>> I can see the process, but a kill -9 will not get rid of it. In the >>> other terminal window, I also attempted the >>> cat $SLOTS, and it froze up, as well. The only way of getting it back is >>> rebooting the system. In addition >>> the Adafruit_BBBIO.ADC does not have cleanup function. This behaviour >>> does not seem correct to me. >>> I also tried removing the overlay that set up the PRU output pins, and >>> that did seem to work correctly. >>> >>> Any ideas? Thanks. >>> Bit Pusher >>> >> -- > 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+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.