Re: [Machinekit] frame buffer for Optocape in 3.8

2017-03-11 Thread Dean Gouramanis
Charles, I found the branches. Can you clarify on how to browse the 
overlays?

On Thursday, March 9, 2017 at 8:49:56 PM UTC-5, Charles Steinkuehler wrote:
>
> On 3/9/2017 5:32 PM, Dean Gouramanis wrote: 
> > 
> > The cape is loaded: 
> > 
> > cat /sys/devices/bone_capemgr.9/slots 
> >   0: 54:PF--- 
> >   1: 55:PF--- 
> >   2: 56:PF--- 
> >   3: 57:PF--- 
> >   4: ff:P-O-L 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,BB-OPTOCAPE14 
> > 
> > 
> > "*fb0*" does not appear in /sys/class/graphics 
> > 
> >   ls /sys/class/graphics 
> > fbcon 
> > 
> > How do I switch on the LCD hardware to output LCD signals? 
>
> You either need to load an appropriate LCD cape, or add the required 
> device-tree entries to your Optocape overlay. 
>
> NOTE: For browsing the overlays (which are now compiled into the 
> kernel) I find it convenient to keep a kernel source directory on-hand 
> (as generated by https://github.com/RobertCNelson/bb-kernel using the 
> 3.8.13-xenomai branch & tags). 
>
> -- 
> Charles Steinkuehler 
> cha...@steinkuehler.net  
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


Re: [Machinekit] frame buffer for Optocape in 3.8

2017-03-10 Thread Dean Gouramanis
I tried over ten .dts files made from snippets of the files you 
recommended, as well as other ideas. I keep getting error messages similar 
to:

*panel panel.11: Failed to get pinctrl*
>


Then I tried *BB-BONE-LCD4-01.* It loaded no problem, and fb0 was present. 
The strange thing is:

cat /sys/devices/bone_capemgr.9/slots
>  0: 54:PF--- 
>  1: 55:PF--- 
>  2: 56:PF--- 
>  3: 57:PF--- 
>  4: ff:P-O-L 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,*BB-BONE-LCD4-01*
>
>
It says the version is *00A0*, but that file is nowhere to be found. 
Loading 00A1 also fails. 


*lsinitramfs -l /boot/initrd.img-3.8.13-xenomai-r83 | grep 
> BB-BONE-LCD4-01-00A0.dtbo*
>

 ...returns nothing.

I tried compiling copies of each of the (4) historical versions also. They 
all failed. 

https://github.com/beagleboard/linux/commits/3.8/firmware/capes/BB-BONE-LCD4-01-00A0.dts

My best guess is that I'm using the wrong version dtc.

dtc --version
> Version: DTC 1.4.0-gf345d9e4
>

Is that old enough? 



On Thursday, March 9, 2017 at 8:08:00 PM UTC-5, Robert Nelson wrote:
>
> On Thu, Mar 9, 2017 at 5:32 PM, Dean Gouramanis 
>  wrote: 
> > I had Optocape working last week using 4.1 kernel. 
> > 
> > https://twitter.com/deandzines/status/839979348602028033 
> > 
> > I used the am335x-boneblack-emmc-overlay.dtb and loaded my .dtbo file 
> from 
> > /lib/firmware. 
> > 
> > Here is a link to the .dts 
> > 
> > 
> https://github.com/dgouramanis/optocape/blob/master/device%20tree/BB-OPTOCAPE1-00A0.dts
>  
>
> So first, make sure you are using the old dtc compiler, it should be 
> installed in /usr/local/bin/dtc 
>
> second, for your overlay, 3.8.x needs a fb section: 
>
> https://github.com/beagleboarMy best guess is i'm 
> d/linux/blob/3.8/firmware/capes/BB-BONE-LCD7-01-00A3.dts#L272-L280 
> 
>  
>
> with 3.8.x the usart is off by one: 
>
>
> https://github.com/beagleboard/linux/blob/3.8/firmware/capes/BB-UART4-00A0.dts#L41
>  
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


Re: [Machinekit] frame buffer for Optocape in 3.8

2017-03-10 Thread Dean Gouramanis
The dtc compiler version is:

DTC 1.4.0-gf345d9e4


I made a .dts file with fb section + corrected uart:

https://github.com/dgouramanis/optocape/blob/master/device%20tree/3.8x_dev/BB-OPTOCAPE385-00A0.dts


Boot debug shows failure:


Uncompressing Linux... done, booting the kernel. 
> [0.415820] omap2_mbox_probe: platform not supported 
> [0.578248] tps65217-bl tps65217-bl: no platform data provided 
> [0.637693] bone-capemgr bone_capemgr.9: slot #0: No cape found 
> [0.674794] bone-capemgr bone_capemgr.9: slot #1: No cape found 
> [0.711908] bone-capemgr bone_capemgr.9: slot #2: No cape found 
> [0.749017] bone-capemgr bone_capemgr.9: slot #3: No cape found 
> [0.770850] omap_hsmmc mmc.5: of_parse_phandle_with_args of 'reset' 
> failed 
> [0.833218] pinctrl-single 44e10800.pinmux: pin 44e10854 already 
> requested by 44e10800.pinmux; cannot claim for gpio-leds.8 
> [0.844854] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status 
> -22 
> [0.852133] pinctrl-single 44e10800.pinmux: could not request pin 21 on 
> device pinctrl-single 
> [0.871568] panel panel.11: Failed to get pinctrl 
> [0.877496] tilcdc 4830e000.fb: no encoders/connectors found 
> [0.883453] tilcdc 4830e000.fb: failed to initialize mode setting 
> [0.890905] panel panel.11: Failed to get pinctrl 
> [0.951605] panel panel.11: Failed to get pinctrl 
> [0.957413] panel panel.11: Failed to get pinctrl
>

Full boot debug log attached... 


On Thursday, March 9, 2017 at 8:08:00 PM UTC-5, Robert Nelson wrote:
>
> On Thu, Mar 9, 2017 at 5:32 PM, Dean Gouramanis 
>  wrote: 
> > I had Optocape working last week using 4.1 kernel. 
> > 
> > https://twitter.com/deandzines/status/839979348602028033 
> > 
> > I used the am335x-boneblack-emmc-overlay.dtb and loaded my .dtbo file 
> from 
> > /lib/firmware. 
> > 
> > Here is a link to the .dts 
> > 
> > 
> https://github.com/dgouramanis/optocape/blob/master/device%20tree/BB-OPTOCAPE1-00A0.dts
>  
>
> So first, make sure you are using the old dtc compiler, it should be 
> installed in /usr/local/bin/dtc 
>
> second, for your overlay, 3.8.x needs a fb section: 
>
>
> https://github.com/beagleboard/linux/blob/3.8/firmware/capes/BB-BONE-LCD7-01-00A3.dts#L272-L280
>  
>
> with 3.8.x the usart is off by one: 
>
>
> https://github.com/beagleboard/linux/blob/3.8/firmware/capes/BB-UART4-00A0.dts#L41
>  
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2017.03.10 03:31:14 =~=~=~=~=~=~=~=~=~=~=~=
#
U-Boot SPL 2017.03-rc1-3-ga09f2d69d3 (Feb 08 2017 - 16:09:51)
Trying to boot from MMC2


U-Boot 2017.03-rc1-3-ga09f2d69d3 (Feb 08 2017 - 16:09:51 -0600), Build: 
jenkins-github_Bootloader-Builder-518

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
Reset Source: Power-on reset has occurred.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

 not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   eth0: MII MODE
cpsw
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] ...
board_rev=[000C] ...
Card did not respond to voltage select!
mmc_init: -95, time 13
Card did not respond to voltage select!
mmc_init: -95, time 12
Card did not respond to voltage select!
mmc_init: -95, time 13
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
Card did not respond to voltage select!
mmc_init: -95, time 13
Card did not respond to voltage select!
mmc_init: -95, time 13
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc1(part 0) is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking for: /boot/uEnv.txt ...
gpio: pin 55 (gpio 55) value is 1
1185 bytes read in 15 ms (77.1 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-3.8.13-xenomai-r83 ...
5740648 bytes read in 379 ms (14.4 MiB/s)
loading /boot/dtbs/3.8.13-xenomai-r83/am335x-boneblack.dtb ...
26118 

Re: [Machinekit] frame buffer for Optocape in 3.8

2017-03-09 Thread Robert Nelson
On Thu, Mar 9, 2017 at 5:32 PM, Dean Gouramanis
 wrote:
> I had Optocape working last week using 4.1 kernel.
>
> https://twitter.com/deandzines/status/839979348602028033
>
> I used the am335x-boneblack-emmc-overlay.dtb and loaded my .dtbo file from
> /lib/firmware.
>
> Here is a link to the .dts
>
> https://github.com/dgouramanis/optocape/blob/master/device%20tree/BB-OPTOCAPE1-00A0.dts

So first, make sure you are using the old dtc compiler, it should be
installed in /usr/local/bin/dtc

second, for your overlay, 3.8.x needs a fb section:

https://github.com/beagleboard/linux/blob/3.8/firmware/capes/BB-BONE-LCD7-01-00A3.dts#L272-L280

with 3.8.x the usart is off by one:

https://github.com/beagleboard/linux/blob/3.8/firmware/capes/BB-UART4-00A0.dts#L41

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.