Go to advanced search

by notro
Tue Nov 16, 2021 4:59 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Help for fbtft dtoverlay [SOLVED]
Replies: 11
Views: 389

Re: Help for fbtft dtoverlay [SOLVED]

The rotate parameter doesn't seem to work 'rotate' will only work with displays that agree with the values in the driver set_var() function. For details see: https://github.com/notro/fbtft/wiki/FBTFT-RPI-overlays Not clear why this is necessary as it seems to replicate the internal initialisation s...
by notro
Mon Nov 15, 2021 2:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Help for fbtft dtoverlay [SOLVED]
Replies: 11
Views: 389

Re: Help for fbtft dtoverlay [SOLVED]

Do you plan to add new controllers to your fbtft dtoverlay ? It already supports all the existing fbtft drivers: https://elixir.bootlin.com/linux/latest/source/drivers/staging/fbtft There won't be added any more fbtft drivers since fbdev is a deprecated display subsystem. Some have a counterpart in...
by notro
Sun Nov 14, 2021 9:59 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Help for fbtft dtoverlay [SOLVED]
Replies: 11
Views: 389

Re: Help for fbtft dtoverlay [SOLVED]

You were right: I didn't ran rpi-update (and didn't know it was mandatory). So it's just a matter of time to have this driver officially in the Rpi OS distro ? The Device Tree overlay was added just a few days ago and is available in the "beta" kernel installed using rpi-update (best avoi...
by notro
Sun Nov 14, 2021 2:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Help for fbtft dtoverlay [SOLVED]
Replies: 11
Views: 389

Re: Help for fbtft dtoverlay

I assumed that you had used rpi-update to get the latest kernel (not in the deb package yet) or copied in the overlay manually, but maybe not: $ ls -l /boot/overlays/fbtft.dtbo -rwxr-xr-x 1 root root 12764 Nov 10 09:35 /boot/overlays/fbtft.dtbo You can get it like this: $ wget https://github.com/ras...
by notro
Sun Nov 14, 2021 12:15 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Help for fbtft dtoverlay [SOLVED]
Replies: 11
Views: 389

Re: Help for fbtft dtoverlay

This will show you why it fails to load:

Code: Select all

sudo vcdbg log msg
There's a 78 character line length limit on the overlay lines in config.txt.

I think this should work:

Code: Select all

dtoverlay=fbtft,spi0-0,ssd1351,dc_pin=24,reset_pin=25,width=128,height=128
dtparam=fps=25
dtparam=rotate=0
dtparam=speed=4500000
by notro
Wed Oct 20, 2021 11:49 am
Forum: Troubleshooting
Topic: Attempt to get TFT SPI screen working on a Raspberry Pi 0 W hits roadblock
Replies: 14
Views: 3234

Re: Attempt to get TFT SPI screen working on a Raspberry Pi 0 W hits roadblock

@6by9 I have made a generic MIPI DBI SPI DRM driver that will work with all DBI compatible SPI displays: https://github.com/notro/gud/blob/master/buildroot/external/board/raspberrypi/linux-patches/drm-tiny-Add-a-generic-MIPI-DBI-SPI-driver.patch https://github.com/notro/gud/wiki/MIPI-DBI-SPI-driver ...
by notro
Tue Oct 19, 2021 2:00 pm
Forum: General
Topic: Pico as a USB interface board and Linux drivers
Replies: 2
Views: 455

Re: Pico as a USB interface board and Linux drivers

DLN-2 USB-I2C/SPI/GPIO ADAPTER https://diolan.com/dln-2 https://elixir.bootlin.com/linux/latest/source/drivers/mfd/dln2.c Uses bulk transfers. https://elixir.bootlin.com/linux/latest/source/drivers/gpio/gpio-dln2.c https://elixir.bootlin.com/linux/latest/source/drivers/i2c/busses/i2c-dln2.c https:/...
by notro
Mon Oct 18, 2021 10:43 pm
Forum: Troubleshooting
Topic: Attempt to get TFT SPI screen working on a Raspberry Pi 0 W hits roadblock
Replies: 14
Views: 3234

Re: Attempt to get TFT SPI screen working on a Raspberry Pi 0 W hits roadblock

Is it possible to install fbtft_device manually and still use it or did the refactoring make that impossible? fbtft_device would have to be rewritten to use device properties instead of platform data and AFAIK no one has done that. His is close but not quite the same. Mine has a spot for a chip whi...
by notro
Mon Oct 18, 2021 8:07 pm
Forum: Troubleshooting
Topic: Attempt to get TFT SPI screen working on a Raspberry Pi 0 W hits roadblock
Replies: 14
Views: 3234

Re: Attempt to get TFT SPI screen working on a Raspberry Pi 0 W hits roadblock

This: https://aaron-brown.net/blog/?p=99, seems to be the same as yours. He uses adafruit22a which fbtft_device lists as fb_ili9340, this is the same as DT compatible "ilitek,ili9340". The pitft22-overlay has this, but it doesn't have a reset line, so not sure if that will work (adafruit h...
by notro
Tue Aug 17, 2021 12:36 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

My brain wouldn't let go of RGB332 so I've spent a few hours on it: drm/gud: Add some more pixel formats
by notro
Sun Aug 08, 2021 5:29 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

If USB-IF had a case MCS would not be able to still sell PID's. USB-IF would have dragged them to court. As for OpenMoko maybe they silently tolerate it since the PID's are generally used on (very) low volume niche devices and must be open source. At least I haven't seen any evidence of USB-IF haras...
by notro
Sat Aug 07, 2021 10:40 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

No need to remove anything, these VID's are used by several Linux drivers: drivers/usb/misc/chaoskey.c:#define CHAOSKEY_VENDOR_ID 0x1d50 /* OpenMoko */ drivers/gpu/drm/gud/gud_drv.c: { USB_DEVICE_INTERFACE_CLASS(0x1d50, 0x614d, USB_CLASS_VENDOR_SPEC) }, drivers/media/usb/airspy/airspy.c: { USB_DEVIC...
by notro
Sat Aug 07, 2021 8:17 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

There is support in the HID spec for displays: Alphanumeric Display Page 0x14: Bitmapped Display https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf This would have worked for tiny displays, but I needed compression in order to do 1920x1080@RGB565 for desktop use. So I made my own protoc...
by notro
Fri Aug 06, 2021 8:41 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

By "it" what do you mean: udev or ligthing up the display? I looked at the udev man page and it uses shell style matching in the rules, so it's treated like strings. The kernel uses lowercase, so the rule needs to that as well: pi@pi4:~ $ cat /sys/bus/usb/devices/*/idVendor 045e 2e8a 2109 ...
by notro
Fri Aug 06, 2021 7:56 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

Without the module loaded the id can't be added. Id addded by the rule: pi@pi4:~ $ cat /sys/bus/usb/drivers/gud/new_id 2e8a d003 That's an empty file for me. Maybe not quite an empty file; seems to be 4096 bytes long but 'nothing in it' - I have this line in my log: Aug 06 14:41:35 pi4 systemd-udev...
by notro
Fri Aug 06, 2021 2:14 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

I think the new_id rule should specify the VENDOR interface class as well: pi@pi4:~ $ cat /sys/bus/usb/drivers/gud/new_id 2e8a d003 ff Ref: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-usb On a multi interface device, gud might probe all interfaces, depending on the driver-device m...
by notro
Fri Aug 06, 2021 1:53 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

I tested your udev file and had to lowercase the hex letters in the first rule to make it trigger. Without the module loaded the id can't be added. Id addded by the rule: pi@pi4:~ $ cat /sys/bus/usb/drivers/gud/new_id 2e8a d003 I used this in order to see rules firing: https://superuser.com/a/1501568
by notro
Wed Aug 04, 2021 3:30 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

This works for me over ssh: sudo fbi -d /dev/fb1 -T 1 151px-Ada_Lovelace.jpg
The problem is that I loose control over the process so I have to kill it. I did use fbi when I was testing fbtft a few years back, so not sure what has changed, me or the world :)
by notro
Wed Aug 04, 2021 1:40 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

It doesn't look like it's possible to poke /dev/fbX even after using fbset, there's no framebuffer update happening. Maybe it's because no one is holding the fbdev device open and thus enabling the pipeline, not sure. If you want to test using fbdev, it's probably better to use 'fbi' or move over th...
by notro
Wed Aug 04, 2021 1:06 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

The gud driver uses the DRM fbdev emulation layer which needs the FBIOPUT_VSCREENINFO ioctl in order to wake up. You can use fbset for this: fbset -fb /dev/fb1 -match (If the GUD display was the only display in your system, you would get /dev/fb0 and on a Pi this would automatically make fbcon attac...
by notro
Fri Jul 30, 2021 11:24 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

Serial number appears reversed to what I see in my own builds, but meh ...
Thanks hippy, fixed now:
https://github.com/notro/gud-pico/commi ... e562719d8e
by notro
Fri Jul 30, 2021 1:13 pm
Forum: Advanced users
Topic: Automatic reboot on kernel panic during boot
Replies: 13
Views: 1252

Re: Automatic reboot on kernel panic during boot

Are you sure that you're hitting a panic()? AFAICS in the issue you link to there are no logs that show a panic. A panic prints this: Kernel panic - not syncing: There is the xhci warning which is just a note in the kernel log: https://elixir.bootlin.com/linux/v5.10/source/drivers/usb/host/xhci-ring...
by notro
Mon Jul 26, 2021 5:23 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

I haven't got any time to waste on lawyers, so I've just deleted the info, thanks @hippy.
by notro
Mon Jul 26, 2021 4:18 pm
Forum: General
Topic: Pico as USB display?
Replies: 79
Views: 4837

Re: Pico as USB display?

Is there a way for me to communicate that I'm fine with this USB id being used for small scale production without me possibly getting into trouble?

Go to advanced search