Robert, thank you very much, however the overlays are not compiling - I am 
pretty sure I have the latest dtc:

root@arm:/home/ubuntu/wattup/src/dts# dtc -version
Version: DTC 1.4.0-gf345d9e4

+ dtc -O dtb -o BB-UART2-RTSCTS-00A0.dtbo -b 0 -@ BB-UART2-RTSCTS-00A0.dts
Error: BB-UART2-RTSCTS-00A0.dts:5.1-2 syntax error
FATAL ERROR: Unable to parse input tree


Dejan Nenov


On Thursday, August 21, 2014 4:30:29 PM UTC-7, Dejan Nenov wrote:
>
> Hello,
>
> I am on a BBB with:
>
> Linux arm 3.8.13-bone63 #2 SMP Sat Aug 16 00:01:36 PDT 2014 armv7l armv7l 
> armv7l GNU/Linux
> root@arm:/home/ubuntu# lsb_release -a
> LSB Version:    
> core-2.0-armhf:core-2.0-noarch:core-3.0-armhf:core-3.0-noarch:core-3.1-armhf:core-3.1-noarch:core-3.2-armhf:core-3.2-noarch:core-4.0-armhf:core-4.0-noarch:core-4.1-armhf:core-4.1-noarch:security-4.0-armhf:security-4.0-noarch:security-4.1-armhf:security-4.1-noarch
> Distributor ID: Ubuntu
> Description:    Ubuntu 14.04.1 LTS
> Release:        14.04
> Codename:       trusty
>
>
> The .dts below work sfine when compiled, copied to /libfirmware and echo 
> enable-uart2 > /sys/devices/bone_capemgr.*/slots
>
> HOWEVER, with my /boot/uEnv.txt containing this:
>
> # cat /boot/uEnv.txt
> uname_r=3.8.13-bone63
> #dtb=
> cmdline=quiet
> ###uuid=5dcad23b-fa16-4918-983f-82a6f0c02aae
> #capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
> optargs=quiet drm.debug=7 capemgr.enable_partno=enable-uart2,enable-uart5
> uuid=6baebde8-2358-4f59-aced-798c4aee4cfb
>
>
> Upon reboot in dmesg I get:
> # dmesg | grep uart2
> [    0.000000] Kernel command line: console=ttyO0,115200n8 quiet 
> drm.debug=7 capemgr.enable_partno=enable-uart2,enable-uart5 
> root=UUID=6baebde8-2358-4f59-aced-798c4aee4cfb ro rootfstype=ext4 rootwait 
> fixrtc quiet
> [    0.728384] bone-capemgr bone_capemgr.9: enabled_partno part_number 
> 'enable-uart2', version 'N/A', prio '0'
> [    0.728426] bone-capemgr bone_capemgr.9: slot #7: 'Override Board 
> Name,00A0,Override Manuf,enable-uart2'
> [    0.729118] bone-capemgr bone_capemgr.9: loader: before slot-7 
> enable-uart2:00A0 (prio 0)
> [    0.729131] bone-capemgr bone_capemgr.9: loader: check slot-7 
> enable-uart2:00A0 (prio 0)
> [    0.732152] bone-capemgr bone_capemgr.9: loader: after slot-7 
> enable-uart2:00A0 (prio 0)
> [    0.732172] bone-capemgr bone_capemgr.9: slot #7: Requesting part 
> number/version based 'enable-uart2-00A0.dtbo
> [    0.732188] bone-capemgr bone_capemgr.9: slot #7: Requesting firmware 
> 'enable-uart2-00A0.dtbo' for board-name 'Override Board Name', version 
> '00A0'
> [    1.043033] bone-capemgr bone_capemgr.9: failed to load firmware 
> 'enable-uart2-00A0.dtbo'
> [    1.051672] bone-capemgr bone_capemgr.9: loader: failed to load slot-7 
> enable-uart2:00A0 (prio 0)
>
>
> And when I then do: 
> echo enable-uart2 > /sys/devices/bone_capemgr.*/slots
>
> then all is well and dmesg says:
>
> [  721.217812] bone-capemgr bone_capemgr.9: part_number 'enable-uart2', 
> version 'N/A'
> [  721.218087] bone-capemgr bone_capemgr.9: slot #9: 'Override Board 
> Name,00A0,Override Manuf,enable-uart2'
> [  721.218349] bone-capemgr bone_capemgr.9: slot #9: Requesting part 
> number/version based 'enable-uart2-00A0.dtbo
> [  721.218401] bone-capemgr bone_capemgr.9: slot #9: Requesting firmware 
> 'enable-uart2-00A0.dtbo' for board-name 'Override Board Name', version 
> '00A0'
> [  721.223775] bone-capemgr bone_capemgr.9: slot #9: dtbo 
> 'enable-uart2-00A0.dtbo' loaded; converting to live tree
>
>
>
> # cat enable-uart2-00A0.dts
> /*
>  * 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";
>
>     /* identification */
>     part-number = "uart2";
>
>     fragment@0 {
>         target = <&am33xx_pinmux>;
>         __overlay__ {
>             pinctrl_uart2: pinctrl_uart2_pins {
>                 pinctrl-single,pins = <
>                         0x184 0x20  /* P9.24 uart1_txd.uasrt1_txd OUTPUT */
>                         0x180 0x20  /* P9.26 uart1_rxd.uart1_rxd INPUT */
>                 >;
>             };
>         };
>     };
>
>         fragment@1{
>                 target = <&uart2>;
>                 __overlay__ {
>                         status                  = "okay";
>                 };
>         };
>
>     fragment@2 {
>         target = <&ocp>;
>         __overlay__ {
>             test_helper: helper {
>                 compatible = "bone-pinmux-helper";
>                 pinctrl-names = "default";
>                 pinctrl-0 = <&pinctrl_uart2>;
>                 status = "okay";
>             };
>         };
>     };
> };
>
>
>
> Please advise?
>

-- 
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