1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-06-28 22:11:40 +03:00

libubb/README: describe how to get rid of competing drivers

This commit is contained in:
Werner Almesberger 2012-12-31 09:51:00 -03:00
parent 9d298216e7
commit 506db2d69e

View File

@ -121,3 +121,29 @@ Access to timers, interrupts, etc.
include/ubb/regs4740.h gives access to even more registers.
Please consult the JZ4740 Programming Manual for details on
their use.
Competing users of the 8:10 card interface
------------------------------------------
Other programs and kernel drivers may compete for access to the
8:10 card interface. The most common conflicts are with the
kernel drivers for MMC (uSD card) and AT86RF230 (atben).
OpenWRT and JLime start with the MMC driver loaded and active.
To detach the MMC driver, run
# echo jz4740-mmc.0 >/sys/bus/platform/drivers/jz4740-mmc/unbind
To re-attach the MMC driver, run
# echo jz4740-mmc.0 >/sys/bus/platform/drivers/jz4740-mmc/bind
To detach the AT86RF230 driver, run
# cd /sys/bus/spi/drivers/at86rf230
# echo spi*.0 >unbind
libubb allows multiple programs to open UBB at the same time,
leaving it up to these programs to coordinate their access.