Here is the dmesg output:

xsentius@beaglebone:~/attemp2/overlay$ dmesg | tail -n 16
[  407.585016] bone-capemgr bone_capemgr.9: part_number 'EBB-PRU-Example', 
version 'N/A'
[  407.585197] bone-capemgr bone_capemgr.9: slot #7: generic override
[  407.585242] bone-capemgr bone_capemgr.9: bone: Using override eeprom 
data at slot 7
[  407.585290] bone-capemgr bone_capemgr.9: slot #7: 'Override Board 
Name,00A0,Override Manuf,EBB-PRU-Example'
[  407.585560] bone-capemgr bone_capemgr.9: slot #7: Requesting part 
number/version based 'EBB-PRU-Example-00A0.dtbo
[  407.585608] bone-capemgr bone_capemgr.9: slot #7: Requesting firmware 
'EBB-PRU-Example-00A0.dtbo' for board-name 'Override Board Name', version 
'00A0'
[  407.586139] bone-capemgr bone_capemgr.9: slot #7: dtbo 
'EBB-PRU-Example-00A0.dtbo' loaded; converting to live tree
[  407.592577] bone-capemgr bone_capemgr.9: slot #7: #3 overlays
[  407.610703] omap_hwmod: pruss: failed to hardreset
[  407.631137] gpio-of-helper gpio_helper.11: could not find pctldev for 
node /ocp/i2c@44e0b000/tps@24/regulators/regulator@1, deferring probe
[  407.637371] platform gpio_helper.11: Driver gpio-of-helper requests 
probe deferral
[  407.637787] bone-capemgr bone_capemgr.9: slot #7: Applied #3 overlays.
[  407.720074] pruss_uio 4a300000.pruss: could not find pctldev for node /
ocp/interrupt-controller@48200000, deferring probe
[  407.720133] pruss_uio 4a300000.pruss: pins are not configured from the 
driver
[  407.768723] gpio-of-helper gpio_helper.11: could not find pctldev for 
node /ocp/i2c@44e0b000/tps@24/regulators/regulator@1, deferring probe
[  407.768810] platform gpio_helper.11: Driver gpio-of-helper requests 
probe deferral





On Monday, April 4, 2016 at 4:47:26 AM UTC+3, Xsentius wrote:
>
> Hello all,
>
> I am trying to load the sample overlay from Derek Molloy's book, here is 
> the .dto file:
>
> /* Device Tree Overlay for enabling the pins that are used in Chapter 13
>> * This overlay is based on the BB-PRU-01 overlay
>> * Written by Derek Molloy for the book "Exploring BeagleBone: Tools and
>> * Techniques for Building with Embedded Linux" by John Wiley & Sons, 2014
>> * ISBN 9781118935125. Please see the file README.md in the repository root
>> * directory for copyright and GNU GPLv3 license information.
>> */
>> /dts-v1/;
>> /plugin/;
>> / {
>>    compatible = "ti,beaglebone", "ti,beaglebone-black";
>>    part-number = "EBB-PRU-Example";
>>    version = "00A0";
>>    /* This overlay uses the following resources */
>>    exclusive-use =
>>          "P9.11", "P9.13", "P9.27", "P9.28", "pru0";
>>    fragment@0 {
>>       target = <&am33xx_pinmux>;
>>       __overlay__ {
>>          gpio_pins: pinmux_gpio_pins {         // The GPIO pins
>>             pinctrl-single,pins = <
>>                0x070 0x07  // P9_11 MODE7 | OUTPUT | GPIO pull-down
>>                0x074 0x27  // P9_13 MODE7 | INPUT | GPIO pull-down
>>             >;
>>          };
>>          pru_pru_pins: pinmux_pru_pru_pins {   // The PRU pin modes
>>             pinctrl-single,pins = <
>>                0x1a4 0x05  // P9_27 pr1_pru0_pru_r30_5, MODE5 | OUTPUT | 
>> PRU
>>                0x19c 0x26  // P9_28 pr1_pru0_pru_r31_3, MODE6 | INPUT | 
>> PRU
>>             >;
>>          };
>>       };
>>    };
>>    fragment@1 {         // Enable the PRUSS
>>       target = <&pruss>;
>>       __overlay__ {
>>          status = "okay";
>>          pinctrl-names = "default";
>>          pinctrl-0 = <&pru_pru_pins>;
>>       };
>>    };
>>    fragment@2 {         // Enable the GPIOs
>>       target = <&ocp>;
>>       __overlay__ {
>>          gpio_helper {
>>             compatible = "gpio-of-helper";
>>             status = "okay";
>>             pinctrl-names = "default";
>>             pinctrl-0 = <&gpio_pins>;
>>          };
>>       };
>>    };
>> };
>>
>>
> First I compile it:
>
> dtc -O dtb -o EBB-PRU-Example-00A0.dtbo -b 0 -@ EBB-PRU-Example.dts
>
>
>
>
> and then as instructed I do:
> sudo cp EBB‐PRU‐Example‐00A0.dtbo /lib/firmware
> sudo sh ‐c "echo EBB‐PRU‐Example > $SLOTS"
>
>  Now when I check $SLOTS:
>
> xsentius@beaglebone:~/attemp2/overlay$ cat $SLOTS
>  0: 54:PF---
>  1: 55:PF---
>  2: 56:PF---
>  3: 57:PF---
>  4: ff:P-O-- Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
>  5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
>  6: ff:P-O-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
>  7: ff:P-O-L Override Board Name,00A0,Override Manuf,EBB-PRU-Example
>
>
> I can see it is loaded successfully, however when I check $PINS:
>
>
>
>
> xsentius@beaglebone:~/attemp2/overlay$ sudo cat $PINS|grep '103\|105'
> pin 103 (44e1099c) 00000027 pinctrl-single
> pin 105 (44e109a4) 00000027 pinctrl-single
>
>
> I see that their values are not changed. They should be equal to 26 and 5. 
>
> What do you think the problem might be?
>
>
> Thanks
>
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to