*OR* P8.26 . . . *smacks hardware designer / buddy . . . *william@beaglebone:~/dev/bb.org-overlays$* diff src/arm/BB-W1-P8.26-00A0.dts src/arm/BB-W1-P8.14-00A0.dts 4c4 < * Virtual cape for onewire on connector pin P8.26 --- > * Virtual cape for onewire on connector pin P8.14 21c21 < part-number = "BB-W1-P8.26"; --- > part-number = "BB-W1-P8.14"; 27c27 < "P8.26"; --- > "P8.14"; 35c35 < BONE_P8_26 0x37 --- > BONE_P8_14 0x37 51c51 < gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>; --- > gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; *william@beaglebone:~$* cd dev/bb.org-overlays/ william@beaglebone:~/dev/bb.org-overlays$ make ./src/arm/BB-W1-P8.26-00A0.dtbo DTC src/arm/BB-W1-P8.26-00A0.dtbo *william@beaglebone:~/dev/bb.org-overlays*$ sudo cp ./src/arm/BB-W1-P8.26-00A0.dtbo /lib/firmware/ *william@beaglebone:~/dev/bb.org-overlays*$ cat /sys/devices/platform/bone_capemgr/slots 0: PF---- -1 1: PF---- -1 2: PF---- -1 3: PF---- -1 *william@beaglebone:~/dev/bb.org-overlays$* sudo sh -c "echo 'BB-W1-P8.26' > /sys/devices/platform/bone_capemgr/slots" *william@beaglebone:~/dev/bb.org-overlays$* cat /sys/devices/platform/bone_capemgr/slots 0: PF---- -1 1: PF---- -1 2: PF---- -1 3: PF---- -1 4: P-O-L- 0 Override Board Name,00A0,Override Manuf,BB-W1-P8.26 *william@beaglebone:~/dev/bb.org-overlays$* dmesg |grep W1 [ 210.416201] bone_capemgr bone_capemgr: part_number 'BB-W1-P8.26', version 'N/A' [ 210.416276] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,BB-W1-P8.26' [ 210.430251] bone_capemgr bone_capemgr: slot #4: dtbo 'BB-W1-P8.26-00A0.dtbo' loaded; overlay id #0 *william@beaglebone:~/dev/bb.org-overlays$* ls /sys/bus/w1/devices/ 28-00000647ddf6 w1_bus_master1 *william@beaglebone:~/dev/bb.org-overlays$* cat /sys/bus/w1/devices/28-00000647ddf6/w1_slave 19 01 4b 46 7f ff 07 10 eb : crc=eb YES 19 01 4b 46 7f ff 07 10 eb t=17562
Anyway, dead horse . . . point made? On Mon, Dec 5, 2016 at 6:41 PM, William Hermans <[email protected]> wrote: > I repeated this process for P8.14, and it works fine. This is just to let > others who may not be aware that you can use 1-wire on any gpio pin that is > not already in use by the system. Again, double check the pins in the > schematic, to make sure they're not being used by somethign like HDMI( > which you can disable hdmi audio and video if you do not need it. ), or > i2c-0 / i2c-2, emmc, sdcard, etc. But again you have to of course change > the overlay to reflect the pin you need to use. > > *william@beaglebone:~$* diff > ./dev/bb.org-overlays/src/arm/BB-W1-P8.14-00A0.dts > ./dev/bb.org-overlays/src/arm/BB-W1-P9.12-00A0.dts > 1c1,2 > < /* > --- > > > > /* > 4c5 > < * Virtual cape for onewire on connector pin P8.14 > --- > > * Virtual cape for onewire on connector pin P9.12 > 21c22 > < part-number = "BB-W1-P8.14"; > --- > > part-number = "BB-W1-P9.12"; > 27c28 > < "P8.14"; > --- > > "P9.12"; > 35c36 > < BONE_P8_14 0x37 > --- > > BONE_P9_12 0x37 > 51c52 > < gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; > --- > > gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; > > > > > On Sat, Dec 3, 2016 at 3:11 PM, William Hermans <[email protected]> wrote: > >> @ Sebastian >> >> Ah I forgot to mention loading capes from /boot/uEnv.txt. So . . . >> >> *william@beaglebone:~$* cat /boot/uEnv.txt |grep cape >> #cmdline=coherent_pool=1M quiet cape_universal=enable >> video=HDMI-A-1:1024x768@60e >> #cape_disable=capemgr.disable_partno= >> #cape_enable=capemgr.enable_partno= >> #cape_disable=bone_capemgr.disable_partno= >> >> cape_enable=capemgr.enable_partno=<overlay_name> is the way to go. You >> can assign multiple cape overlays with this feature, but I do not remember >> if they are space, or comma separated. I'm thinking comma separated, but >> may be wrong. >> >> That's the first step. >> >> The second step would be to . . . >> >> Copy all your required overlays into /lib/firmware, which you've >> probably already done. >> >> *william@beaglebone:~$* cd /opt/scripts/ >> *william@beaglebone:/opt/scripts$* git pull >> *william@beaglebone:/opt/scripts$* cd tools/developers/ >> *william@beaglebone:/opt/scripts/tools/developers$* sudo >> ./update_initrd.sh >> >> What this does, is notes what's in uEnv.txt in the way of enabled capes, >> then which overlays you have in /lib/firmware, and "injects" these overlays >> into the initramfs. This is important, and if not done, your overlays will >> not load at boot using this method. But the upside is that once done, this >> will load your overlays at boot faster than any other method. Near >> instantly at boot, 1-2 seconds tops. >> >> Anyway, this method is fairly easy, and is actually the best way to go. >> >> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORrTBgaOaXJE-o32GkooKJdt_Z_LbOevXncqmS-0-1jkgg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
