[beagleboard] Re: fb rotate?

2019-09-10 Thread zirexix
Just said in the post, if you read it all, it just rotates the fb not the 
EGL context.


On Monday, September 9, 2019 at 2:08:52 AM UTC-4, H. Nikolaus Schaller 
wrote:
>
>
> > Am 22.08.2019 um 23:10 schrieb zir...@gmail.com : 
> > 
> >  echo 1 > /sys/class/graphics/fbcon/rotate_all   
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/ed6599b8-1c6e-4cdc-bf37-b31e9aaf3b8f%40googlegroups.com.


[beagleboard] Beaglebone Black EGL Screen rotation

2019-08-29 Thread zirexix
Hi,

Os: Linux beaglebone 4.14.108-ti-r108 #1 SMP PREEMPT Tue Jun 18 05:11:38 
UTC 2019 armv7l GNU/Linux
Egl :EGL vendor string: Imagination Technologies
EGL version string: 1.4 build 1.14@3699939 (MAIN)
EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image EGL_KHR_image_base 
EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image 
EGL_KHR_gl_renderbuffer_image E
GL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync 
EGL_IMG_context_priority EGL_IMG_hibernate_process 
EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_contex
t EGL_KHR_wait_sync EGL_KHR_create_context EGL_WL_bind_wayland_display 
EGL_EXT_image_dma_buf_import
EGL client APIs are: OpenGL_ES 
.. and much more





I cannot get over with display going in portrait mode when rendering EGL 
full screen.

I want to make the change permanent portrait mode.



 echo 1 > /sys/class/graphics/fbcon/rotate_all   


does rotate the fb as text and linux fb mode, but when using the QT on 
eglfs or EGL app;s like gles1test1 is allways landscape.

Though the

 export QT_QPA_EGLFS_ROTATION=90


does nothing.

Any help would be appreciated.




-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/d24b567e-2914-434c-ba21-c61e69b1e2c9%40googlegroups.com.


[beagleboard] TFTM035-6, ili9488 on BBB or BBG

2019-07-22 Thread zirexix
Hi, 
I am trying to bring up the 
https://www.buydisplay.com/default/lcd-3-5-inch-320x480-tft-display-module-optl-touch-screen-w-breakout-board
with DRM_TILCDC on the RGB 16 pins on P8. First I tried to go SPI.
Here is my saga.


I flashed the latest 
http://debian.beagleboard.org/images/bone-debian-9.5-lxqt-armhf-2018-10-07-4gb.img.xz
 
to BBB
I killed the default u-boot from eMMC, the right uBoot is taken from sdcard

The display wiring is:

LCDBBB___GPIO___

JP2 1  P9_27 (VSYNC)
JP2 2  P9_29 (HSYNC)
JP2 3  P9_28 (PCLK)
JP2 4  P9_30 (DE)

JP1 [3-20] P8 31-46(keep first 8 LCD off due: BBB is not 
booting)
 
JP1 1P9_1GND 
JP1 2P9_3+VCC  
JP1 21 RESET P9_12   RSTGPIO 60
JP1 23 CSP9_17   CS SPI0_CS0
JP1 24 SCLK  P9_22   CLKSPI0_SCLK
JP1 25 DCP9_15   D/CGPIO 48
JP1 27 MOSI  P9_18   MOSI   SPI 0 D1
JP1 28 MISO  P9_21   MISO   SPI 0 D0
JP1 29 BL/LEDP9_27   LED/BL 29  GPIO 115




I have the uEnv.txt as:


#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0

uname_r=4.14.108-ti-r108
#uuid=
#dtb=

###U-Boot Overlays###
###Documentation: 
http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
###Master Enable
enable_uboot_overlays=1
###
###Overide capes with eeprom
#uboot_overlay_addr0=/lib/firmware/.dtbo
#uboot_overlay_addr1=/lib/firmware/.dtbo
#uboot_overlay_addr2=/lib/firmware/.dtbo
#uboot_overlay_addr3=/lib/firmware/.dtbo
###
###Additional custom capes
#uboot_overlay_addr4=/lib/firmware/.dtbo
#uboot_overlay_addr5=/lib/firmware/.dtbo
#uboot_overlay_addr6=/lib/firmware/.dtbo
#uboot_overlay_addr7=/lib/firmware/.dtbo
###
###Custom Cape
#dtb_overlay=/lib/firmware/.dtbo
# dtb_overlay=/boot/dtbs/4.14.108-ti-r108/katerra_tow.dtbo
###
###Disable auto loading of virtual capes (emmc/video/wireless/adc)
#disable_uboot_overlay_emmc=1
#disable_uboot_overlay_video=1
#disable_uboot_overlay_audio=1
#disable_uboot_overlay_wireless=1
#disable_uboot_overlay_adc=1
###
###PRUSS OPTIONS
###pru_rproc (4.4.x-ti kernel)
#uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo
###pru_rproc (4.14.x-ti kernel)
uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo
###pru_uio (4.4.x-ti, 4.14.x-ti & mainline/bone kernel)
#uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo
###
###Cape Universal Enable
enable_uboot_cape_universal=1
###
###Debug: disable uboot autoload of Cape
#disable_uboot_overlay_addr0=1
#disable_uboot_overlay_addr1=1
#disable_uboot_overlay_addr2=1
#disable_uboot_overlay_addr3=1
###
###U-Boot fdt tweaks... (6 = 384KB)
#uboot_fdt_buffer=0x6
###U-Boot Overlays###

cmdline=coherent_pool=1M net.ifnames=0 quiet

#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M net.ifnames=0 quiet video=HDMI-A-1:1024x768@60e

#Use an overlayfs on top of a read-only root filesystem:
#cmdline=coherent_pool=1M net.ifnames=0 quiet overlayroot=tmpfs

##enable Generic eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh



I compiled the kernel from: 
https://github.com/RobertCNelson/ti-linux-kernel-dev
I deployed the kernel.

I plugged into kernel this driver: 
https://github.com/avrxml/asf/tree/master/sam/components/display/ili9488


 sudo modprobe fbtft
 sudo insmod fb_ili9488.ko
dmesg
[ 1066.593329] fbtft: module is from the staging directory, the quality is 
unknown, you have been warned.
[ 1068.537263] fb_ili9488: module is from the staging directory, the 
quality is unknown, you have been warned.
debian@beaglebone:~$



I have no /dev/fb*

I also tried this, which generated a /dev/fb0, but cat-ing a /dev/random 
just flashed the display randomly

sudo cp ~/fb_ili9* ./modules/4.14.108-ti-r108/kernel/drivers/staging/fbtft/
sudo depmod -a
sudo modprobe fbtft_device custom busnum=1 name=fb_ili9488 gpios=reset:60,dc
:48,led:115 speed=1600



I also tried flexfb as:


sudo modprobe flexfb width=480 height=320

sudo modprobe flexfb width=480 height=320 buswidth=8 init=-1,0xb0,0x0,-1,
0x11,-2,120,-1,0x3A,0x55,-1,0xC2,0x33,-1,0xC5,0x00,0x1E,0x80,-1,0x36,0x48,-1
,0xB1,0xB0,-1,0xE0,0x00,0x04,0x0E,0x08,0x17,0x0A,0x40,0x79,0x4D,0x07,0x0E,
0x0A,0x1A,0x1D,0x0F,-1,0xE1,0x00,0x1B,0x1F,0x02,0x10,0x05,0x32,0x34,0x43,
0x02,0x0A,0x09,0x33,0x37,0x0F,-1,0x11,-1,0x29,-3

sudo modprobe fbtft_device name=flexpfb buswidth=8 gpios=dc:48,reset:60,wr:
27,cs:4,db00:8,db01:9,db02:12,db03:10,db04:13,db05:11,db06:14,db07:15

sudo modprobe flexfb width=480 height=320 buswidth=8 init=-1,0xb0,0x0,-1,

Re: [beagleboard] Which dtb file I have to change, to cnage i2c clock form 1Khz to 4Jhz

2018-10-13 Thread zirexix

Hi,

Ohh the 2,   i2c-2, Does it matter becaue I can find all 3 of them
44e0b000.i2c
4802a000.i2c
4819c000.i2c

                    like in am335x-boneblack-wireless.dts


Thank you.



On 2018-10-13 04:53 PM, Robert Nelson wrote:

On Sat, Oct 13, 2018 at 3:48 PM  wrote:

Hi, There is so much outdated information out there...
I want to change the I2C from 100Khz to 400 Khz and there are  (see bottom) 
many files in
beaglebone:/boot/dtbs/4.9.78-ti-r94/ folder. Which dtb (dts) I do change.
I tried am335x-boneblack-wireless.dts with no success.
Thank you.  My system is:

Which i2c port? There is 3 of them...

Regards,



--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/26b3fcf9-a816-56a7-3a1e-99ce17a2caf2%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Which dtb file I have to change, to cnage i2c clock form 1Khz to 4Jhz

2018-10-13 Thread zirexix
Hi, There is so much outdated information out there...
I want to change the I2C from 100Khz to 400 Khz and there are  (see bottom) 
many files in
beaglebone:/boot/dtbs/4.9.78-ti-r94/ folder. Which dtb (dts) I do change.
I tried am335x-boneblack-wireless.dts with no success.
Thank you.  My system is:

Kernel cmd line: 

console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 
root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M 
net.ifnames=0 quiet omap_wdt.nowayout=0


Kernel version:
root@beaglebone:/boot/dtbs/4.9.78-ti-r94$ uname -a
Linux beaglebone 4.9.78-ti-r94 #1 SMP PREEMPT Fri Jan 26 21:26:24 UTC 2018 
armv7l GNU/Linux

Version:
git:/opt/scripts/:[ea6ea9fca05f36f5044398884375b0231348d6e2]
eeprom:[A335BNLTGW1ABBGW16054396]
model:[TI_AM335x_BeagleBone_Green_Wireless]
dogtag:[BeagleBoard.org Debian Image 2018-01-28]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 
2018.01-2-g9aa111a004]
kernel:[4.9.78-ti-r94]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[disable_uboot_overlay_emmc=1]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[disable_uboot_overlay_audio=1]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg:[bb-cape-overlays]:[4.4.20180126.0-0rcnee0~stretch+20180126]
pkg:[bb-wl18xx-firmware]:[1.20170829-0rcnee2~stretch+20180104]
pkg:[firmware-ti-connectivity]:[20170823-1rcnee0~stretch+20170830]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video 
plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep 
admin spi tisdk weston-launch xenomai]
dmesg | grep pinctrl-single
[1.489799] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 
568
END


root@beaglebone:~$ cat /boot/uEnv.txt 
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0

uname_r=4.9.78-ti-r94
#uuid=
#dtb=


###U-Boot Overlays###
###Documentation: 
http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
###Master Enable
enable_uboot_overlays=1
### mco-mco added audio
### disable_uboot_overlay_audio=1
###
###Overide capes with eeprom
#uboot_overlay_addr0=/lib/firmware/.dtbo
#uboot_overlay_addr1=/lib/firmware/.dtbo
#uboot_overlay_addr2=/lib/firmware/.dtbo
#uboot_overlay_addr3=/lib/firmware/.dtbo
###
###Additional custom capes
#uboot_overlay_addr4=/lib/firmware/.dtbo
#uboot_overlay_addr5=/lib/firmware/.dtbo
#uboot_overlay_addr6=/lib/firmware/.dtbo
#uboot_overlay_addr7=/lib/firmware/.dtbo
###
###Custom Cape
#dtb_overlay=/lib/firmware/.dtbo
###
###Disable auto loading of virtual capes (emmc/video/wireless/adc)
disable_uboot_overlay_emmc=1
disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1
#disable_uboot_overlay_wireless=1
#disable_uboot_overlay_adc=1
###
###PRUSS OPTIONS
###pru_rproc (4.4.x-ti kernel)
### mco-mco

# uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo

###pru_uio (4.4.x-ti & mainline/bone kernel)
#uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo
###
###Cape Universal Enable
enable_uboot_cape_universal=1
###
###Debug: disable uboot autoload of Cape
#disable_uboot_overlay_addr0=1
#disable_uboot_overlay_addr1=1
#disable_uboot_overlay_addr2=1
#disable_uboot_overlay_addr3=1
###
###U-Boot fdt tweaks... (6 = 384KB)
#uboot_fdt_buffer=0x6
###U-Boot Overlays###

cmdline=coherent_pool=1M net.ifnames=0 quiet omap_wdt.nowayout=0

#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M net.ifnames=0 quiet video=HDMI-A-1:1024x768@60e

##Example v3.8.x
#cape_disable=capemgr.disable_partno=
#cape_enable=capemgr.enable_partno=

##Example v4.1.x
#cape_disable=bone_capemgr.disable_partno=
#cape_enable=bone_capemgr.enable_partno=

##enable Generic eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

# mco-mco
### optargs=quiet capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
### optargs=quiet capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

#dtb=am335x-boneblack-emmc-overlay.dtb





root@beaglebone:/boot/dtbs/4.9.78-ti-r94$ ls  content

am335x-abbbi.dtb
am335x-boneblue-mmap.dtb  am437x-cm-t43.dtb   
am57xx-evm-reva3-cam-mt9t111.dtb
am335x-baltos-ir2110.dtb
am335x-bone-cape-bone-argus.dtb   am437x-gp-evm.dtb   
am57xx-evm-reva3-cam-ov10635.dtb
am335x-baltos-ir3220.dtb
am335x-bone.dtb   am437x-gp-evm-hdmi.dtb  
am57xx-evm-reva3.dtb
am335x-baltos-ir5221.dtb
am335x-bonegreen.dtb  am437x-idk-evm.dtb  
am57xx-sbc-am57x.dtb
am335x-base0033.dtb 
am335x-bonegreen-overlay.dtb  am437x-sbc-t43.dtb  
dra71-evm.dtb
am335x-boneblack-audio.dtb  
am335x-bonegreen-wireless.dtb am437x-sk-evm.dtb   
dra71-evm-lcd-auo-g101evn01.0.dtb
am335x-boneblack-bbb-exp-c.dtb