I am attempting to get the Dallas ds18b20 going on the BeagleBone Black and I can't seem to get this going. I am assuming this is due to the fact the emmc is on the same pin this w1 driver was originally compiled for. I do not currently have the skills to move this w1 driver to another pin unless someone helps me :) I would enjoy learning how to cross compile the kernel after changing the gpio pin. Thanks in advance for any advice on this matter.
On Wednesday, May 1, 2013 9:21:39 PM UTC+1, J.J. Boyd wrote:I am attempting to get the Dallas ds18b20 going on the BeagleBone Black and I can't seem to get this going. I am assuming this is due to the fact the emmc is on the same pin this w1 driver was originally compiled for. I do not currently have the skills to move this w1 driver to another pin unless someone helps me :) I would enjoy learning how to cross compile the kernel after changing the gpio pin. Thanks in advance for any advice on this matter.
This works with the release version of Angstrom. You have to reload
the capemanager after every boot, unless you decompile, update and
recompile the arm device tree used on boot - I've forgotten the name.
The data pin is 8_11 - you need the full three wire bus with a 4.7K
pullup to get a reading. And don't do as I did, and plug the power
line into the P9 5v supply by mistake.
The dts file is:
/*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
part-number = "BBB-W1";
version = "00A0";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
w1_pins: pinmux_w1_pins {
pinctrl-single,pins = <
0x34 0x37 /* gpmc_ad13.gpio1_13, OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE7 - w1-gpio */
>;
};
};
};
fragment@1 {
target = <&ocp>;
__overlay__ {
onewire@0 {
compatible = "w1-gpio";
pinctrl-names = "default";
pinctrl-0 = <&w1_pins>;
status = "okay";
gpios = <&gpio2 13 0>;
};
};
};
};
The build script is:
#!/bin/bash
# Build the one-wire dtb file.
dtc -O dtb -o w1-00A0.dtbo -b 0 -@ w1.dts
# Copy dtbo file into /lib/firmware
The install script is:
#!/bin/bash
# Initialise one wire (may use bone_capemgr.9)
echo w1 >/sys/devices/bone_capemgr.8/slots
Will
The t=24437 is the temperature in C times 1000. Warm up the probe and see what happens to the temp.
Be:
The t=24437 is the temperature in C times .001. Warm up the probe and see what happens to the temp.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/6a937fdb-7316-48b0-8b84-543757958c8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Shouldn'tThe t=24437 is the temperature in C times 1000. Warm up the probe and see what happens to the temp.
Be:The t=24437 is the temperature in C times .001. Warm up the probe and see what happens to the temp.
?
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORoZHnv1PArG9zyCfV36esCb8T_%2BtJ-1zy7amx8TMOQocA%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/6a937fdb-7316-48b0-8b84-543757958c8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/e6fb6f5d-8ce2-470e-923e-c1a63109774a%40googlegroups.com.