Re: new kernel regression with fbtft
Posted: Thu Sep 10, 2020 8:31 am
no, I haven't built my own kernel. When is the new kernel available?
A small, affordable computer with free resources to help people learn, make things, and have fun
https://www.raspberrypi.org/forums/
https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=281204
Code: Select all
dtoverlay=adafruit18_green,dc_pin=9,reset_pin=27,bgr=1,rotate=270,debug=3,verbose=3
Code: Select all
[ 7.567535] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.571131] fb_st7735r: module is from the staging directory, the quality is unknown, you have been warned.
[ 7.572169] fbtft_of_value: buswidth = 8
[ 7.572179] fbtft_of_value: bpp = 1
[ 7.572185] fbtft_of_value: debug = 3
[ 7.572192] fbtft_of_value: rotate = 270
[ 7.572201] fbtft_of_value: fps = 25
[ 7.572270] fb_st7735r spi0.0: fbtft_gamma_parse_str() str=
[ 7.572277] fb_st7735r spi0.0: 02 1c 07 12 37 32 29 2d 29 25 2B 39 00 01 03 10
03 1d 07 06 2E 2C 29 2D 2E 2E 37 3F 00 00 02 10
[ 7.572347] fb_st7735r spi0.0: fbtft_request_one_gpio: 'reset' GPIO
[ 7.572380] fb_st7735r spi0.0: fbtft_request_one_gpio: 'dc' GPIO
[ 7.572406] fb_st7735r spi0.0: fbtft_request_one_gpio: 'rd' GPIO
[ 7.572430] fb_st7735r spi0.0: fbtft_request_one_gpio: 'wr' GPIO
[ 7.572456] fb_st7735r spi0.0: fbtft_request_one_gpio: 'cs' GPIO
[ 7.572480] fb_st7735r spi0.0: fbtft_request_one_gpio: 'latch' GPIO
[ 7.572504] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.572528] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.572552] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.572577] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.572601] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.572625] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.572649] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.572673] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.572698] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.572722] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.572746] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.572770] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.572794] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.572818] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.572844] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.572868] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.572892] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.572916] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.572940] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.572965] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.572989] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.573013] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.573037] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.573061] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.573086] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.573110] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.573134] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.573158] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.573182] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.573208] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.573575] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.573602] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.573626] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.573650] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.573674] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.573699] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.573723] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.573747] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.573771] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.573795] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.573819] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.573844] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.573868] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.573892] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.573916] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.573940] fb_st7735r spi0.0: fbtft_request_one_gpio: 'db' GPIO
[ 7.573965] fb_st7735r spi0.0: fbtft_request_one_gpio: 'led' GPIO
[ 7.573989] fb_st7735r spi0.0: fbtft_request_one_gpio: 'aux' GPIO
[ 7.573996] fb_st7735r spi0.0: fbtft_verify_gpios()
[ 7.574004] fb_st7735r spi0.0: fbtft_reset()
[ 7.704356] fb_st7735r spi0.0: init: write(0x01)
[ 7.704410] fb_st7735r spi0.0: init: mdelay(150)
[ 7.854427] fb_st7735r spi0.0: init: write(0x11)
[ 7.854465] fb_st7735r spi0.0: init: mdelay(500)
[ 8.354498] fb_st7735r spi0.0: init: write(0xB1) 0x01 0x2C 0x2D
[ 8.354596] fb_st7735r spi0.0: init: write(0xB2) 0x01 0x2C 0x2D
[ 8.354647] fb_st7735r spi0.0: init: write(0xB3) 0x01 0x2C 0x2D 0x01 0x2C 0x2D
[ 8.354700] fb_st7735r spi0.0: init: write(0xB4) 0x07
[ 8.354743] fb_st7735r spi0.0: init: write(0xC0) 0xA2 0x02 0x84
[ 8.354789] fb_st7735r spi0.0: init: write(0xC1) 0xC5
[ 8.354830] fb_st7735r spi0.0: init: write(0xC2) 0x0A 0x00
[ 8.354874] fb_st7735r spi0.0: init: write(0xC3) 0x8A 0x2A
[ 8.354918] fb_st7735r spi0.0: init: write(0xC4) 0x8A 0xEE
[ 8.354962] fb_st7735r spi0.0: init: write(0xC5) 0x0E
[ 8.355002] fb_st7735r spi0.0: init: write(0x20)
[ 8.355027] fb_st7735r spi0.0: init: write(0x3A) 0x05
[ 8.355067] fb_st7735r spi0.0: init: write(0x29)
[ 8.355091] fb_st7735r spi0.0: init: mdelay(100)
[ 8.455108] fb_st7735r spi0.0: init: write(0x13)
[ 8.455152] fb_st7735r spi0.0: init: mdelay(10)
[ 8.549771] fb_st7735r spi0.0: Display update: 472 kB/s, fps=0
[ 8.558155] graphics fb1: fb_st7735r frame buffer, 160x128, 40 KiB video memory, 4 KiB buffer memory, fps=25, spi0.0 at 4 MHz
Code: Select all
rpi-update e1050e94821a70b2e4c72b318d6c6c968552e9a2
uname -a
Linux pump 4.19.118-v7+ #1311 SMP Mon Apr 27 14:21:24 BST 2020 armv7l GNU/Linux
Code: Select all
[ 5.407008] fb_st7735r spi0.0: fbtft_request_one_gpio: 'reset-gpios' = GPIO27
[ 5.409343] fb_st7735r spi0.0: fbtft_request_one_gpio: 'dc-gpios' = GPIO9
Code: Select all
[ 5.403121] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.406145] fb_st7735r: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.406804] fbtft_of_value: buswidth = 8
[ 5.406817] fbtft_of_value: bpp = 1
[ 5.406821] fbtft_of_value: debug = 3
[ 5.406828] fbtft_of_value: rotate = 270
[ 5.406833] fbtft_of_value: fps = 25
[ 5.406922] fb_st7735r spi0.0: fbtft_gamma_parse_str() str=
[ 5.406927] fb_st7735r spi0.0: 02 1c 07 12 37 32 29 2d 29 25 2B 39 00 01 03 10
03 1d 07 06 2E 2C 29 2D 2E 2E 37 3F 00 00 02 10
[ 5.407008] fb_st7735r spi0.0: fbtft_request_one_gpio: 'reset-gpios' = GPIO27
[ 5.409343] fb_st7735r spi0.0: fbtft_request_one_gpio: 'dc-gpios' = GPIO9
[ 5.409391] fb_st7735r spi0.0: fbtft_verify_gpios()
[ 5.409398] fb_st7735r spi0.0: fbtft_reset()
[ 5.548817] fb_st7735r spi0.0: init: write(0x01)
[ 5.548864] fb_st7735r spi0.0: init: mdelay(150)
[ 5.698899] fb_st7735r spi0.0: init: write(0x11)
[ 5.698985] fb_st7735r spi0.0: init: mdelay(500)
[ 6.199019] fb_st7735r spi0.0: init: write(0xB1) 0x01 0x2C 0x2D
[ 6.199104] fb_st7735r spi0.0: init: write(0xB2) 0x01 0x2C 0x2D
[ 6.199137] fb_st7735r spi0.0: init: write(0xB3) 0x01 0x2C 0x2D 0x01 0x2C 0x2D
[ 6.199173] fb_st7735r spi0.0: init: write(0xB4) 0x07
[ 6.199201] fb_st7735r spi0.0: init: write(0xC0) 0xA2 0x02 0x84
[ 6.199230] fb_st7735r spi0.0: init: write(0xC1) 0xC5
[ 6.199254] fb_st7735r spi0.0: init: write(0xC2) 0x0A 0x00
[ 6.199281] fb_st7735r spi0.0: init: write(0xC3) 0x8A 0x2A
[ 6.199310] fb_st7735r spi0.0: init: write(0xC4) 0x8A 0xEE
[ 6.199343] fb_st7735r spi0.0: init: write(0xC5) 0x0E
[ 6.199368] fb_st7735r spi0.0: init: write(0x20)
[ 6.199384] fb_st7735r spi0.0: init: write(0x3A) 0x05
[ 6.199410] fb_st7735r spi0.0: init: write(0x29)
[ 6.199426] fb_st7735r spi0.0: init: mdelay(100)
[ 6.299439] fb_st7735r spi0.0: init: write(0x13)
[ 6.299512] fb_st7735r spi0.0: init: mdelay(10)
[ 6.394260] fb_st7735r spi0.0: Display update: 471 kB/s, fps=0
[ 6.401748] graphics fb1: fb_st7735r frame buffer, 160x128, 40 KiB video memory, 4 KiB buffer memory, fps=25, spi0.0 at 4 MHz
Code: Select all
/*
* Device Tree overlay for Adafruit 1.8" TFT LCD with ST7735R chip 160x128
*/
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};
fragment@1 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
af18: adafruit18@0 {
compatible = "fbtft,adafruit18";
reg = <0>;
pinctrl-names = "default";
spi-max-frequency = <40000000>;
rotate = <90>;
buswidth = <8>;
fps = <50>;
height = <160>;
width = <128>;
reset-gpios = <&gpio 25 0>;
dc-gpios = <&gpio 24 0>;
led-gpios = <&gpio 18 0>;
bgr;
debug = <0>;
};
};
};
__overrides__ {
green = <&af18>, "compatible=fbtft,adafruit18_green";
speed = <&af18>,"spi-max-frequency:0";
rotate = <&af18>,"rotate:0";
fps = <&af18>,"fps:0";
bgr = <&af18>,"bgr?";
debug = <&af18>,"debug:0";
dc_pin = <&af18>,"dc-gpios:4";
reset_pin = <&af18>,"reset-gpios:4";
led_pin = <&af18>,"led-gpios:4";
};
};
Code: Select all
/*
* Device Tree overlay for Adafruit 1.8" TFT LCD with ST7735R chip 160x128
*/
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};
fragment@1 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
af18: adafruit18@0 {
compatible = "fbtft,adafruit18";
reg = <0>;
pinctrl-names = "default";
spi-max-frequency = <40000000>;
rotate = <90>;
buswidth = <8>;
fps = <50>;
height = <160>;
width = <128>;
reset-gpios = <&gpio 25 1>;
dc-gpios = <&gpio 24 0>;
led-gpios = <&gpio 18 0>;
bgr;
debug = <0>;
};
};
};
__overrides__ {
green = <&af18>, "compatible=fbtft,adafruit18_green";
speed = <&af18>,"spi-max-frequency:0";
rotate = <&af18>,"rotate:0";
fps = <&af18>,"fps:0";
bgr = <&af18>,"bgr?";
debug = <&af18>,"debug:0";
dc_pin = <&af18>,"dc-gpios:4";
reset_pin = <&af18>,"reset-gpios:4";
led_pin = <&af18>,"led-gpios:4";
};
};
Code: Select all
dtoverlay=adafruit18,green,dc_pin=9,reset_pin=27,debug=3
Code: Select all
console=serial0,115200 console=tty1 .... rootwait fbcon=map:10 fbcon=rotate:1
Code: Select all
/*
* Device Tree overlay for Adafruit/Waveshare 1.8" TFT LCD with ST7735 chip 160x128
*
* compile:
* dtc -@ -I dts -Odtc -@ -I dts -O dtb -o /boot/overlays/adafruit18.dtbo adafruit18.dts
*/
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};
fragment@1 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
st7735: st7735@0 {
compatible = "fbtft,adafruit18";
reg = <0>;
pinctrl-names = "default";
spi-max-frequency = <40000000>;
rotate = <0>;
buswidth = <8>;
fps = <25>;
height = <160>;
width = <128>;
reset-gpios = <&gpio 25 1>;
dc-gpios = <&gpio 24 0>;
led-gpios = <&gpio 18 0>;
bgr = <0>;
debug = <0>;
};
};
};
__overrides__ {
green = <&st7735>,"compatible=fbtft,adafruit18_green";
height = <&st7735>,"height:0";
width = <&st7735>,"width:0";
speed = <&st7735>,"spi-max-frequency:0";
rotate = <&st7735>,"rotate:0";
fps = <&st7735>,"fps:0";
bgr = <&st7735>,"bgr:0";
debug = <&st7735>,"debug:0";
dc_pin = <&st7735>,"dc-gpios:4";
reset_pin = <&st7735>,"reset-gpios:4";
led_pin = <&st7735>,"led-gpios:4";
};
};
Code: Select all
/*
* Device Tree overlay for Adafruit/Waveshare 1.8" TFT LCD with ST7735 chip 160x128
*
* compile:
* dtc -@ -I dts -Odtc -@ -I dts -O dtb -o /boot/overlays/adafruit18.dtbo adafruit18.dts
*/
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};
fragment@1 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
st7735: st7735@0 {
compatible = "fbtft,adafruit18";
reg = <0>;
pinctrl-names = "default";
spi-max-frequency = <40000000>;
rotate = <0>;
buswidth = <8>;
fps = <25>;
height = <160>;
width = <128>;
reset-gpios = <&gpio 25 1>;
dc-gpios = <&gpio 24 0>;
led-gpios = <&gpio 18 0>;
debug = <0>;
};
};
};
__overrides__ {
green = <&st7735>,"compatible=fbtft,adafruit18_green";
height = <&st7735>,"height:0";
width = <&st7735>,"width:0";
speed = <&st7735>,"spi-max-frequency:0";
rotate = <&st7735>,"rotate:0";
fps = <&st7735>,"fps:0";
bgr = <&st7735>,"bgr?";
debug = <&st7735>,"debug:0";
dc_pin = <&st7735>,"dc-gpios:4";
reset_pin = <&st7735>,"reset-gpios:4";
led_pin = <&st7735>,"led-gpios:4";
};
};
Code: Select all
dtoverlay=adafruit18,green,bgr,dc_pin=9,reset_pin=27,debug=3
Code: Select all
[ 4.231045] fb_st7735r: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.231436] fbtft_of_value: width = 128
[ 4.231443] fbtft_of_value: height = 160
[ 4.231450] fbtft_of_value: buswidth = 8
[ 4.231458] fbtft_of_value: debug = 3
[ 4.231464] fbtft_of_value: rotate = 0
[ 4.231471] fbtft_of_value: fps = 25
There is no debug output for the bgr property - it is handled by a different function. Are you saying that using the bgr parameter makes no difference?still not working:
Code: Select all
dtoverlay=adafruit18,green,bgr,dc_pin=9,reset_pin=27,debug=3
Code: Select all
[ 4.231045] fb_st7735r: module is from the staging directory, the quality is unknown, you have been warned. [ 4.231436] fbtft_of_value: width = 128 [ 4.231443] fbtft_of_value: height = 160 [ 4.231450] fbtft_of_value: buswidth = 8 [ 4.231458] fbtft_of_value: debug = 3 [ 4.231464] fbtft_of_value: rotate = 0 [ 4.231471] fbtft_of_value: fps = 25
Code: Select all
‘1’ =BGR, (When MADCTL (36h) D3=’1’)
‘0’ =RGB, (When MADCTL (36h) D3=’0’)
Code: Select all
bgr = <0>;
bgr;
Code: Select all
console=serial0,115200 console=tty1 ... rootwait fbcon=map:10 fbcon=rotate:1
Code: Select all
dtoverlay=fluidicworks18,green,dc_pin=9,reset_pin=27,debug=3
Code: Select all
/*
* Device Tree overlay for Adafruit/Waveshare 1.8" TFT LCD with ST7735 chip 160x128
*
* compile:
* dtc -@ -I dts -Odtc -@ -I dts -O dtb -o /boot/overlays/adafruit18.dtbo adafruit18.dts
*/
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};
fragment@1 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
st7735: st7735@0 {
compatible = "fbtft,adafruit18";
reg = <0>;
pinctrl-names = "default";
spi-max-frequency = <40000000>;
rotate = <0>;
buswidth = <8>;
fps = <25>;
height = <160>;
width = <128>;
reset-gpios = <&gpio 25 1>;
dc-gpios = <&gpio 24 0>;
led-gpios = <&gpio 18 0>;
debug = <0>;
};
};
};
__overrides__ {
green = <&st7735>,"compatible=fbtft,adafruit18_green";
height = <&st7735>,"height:0";
width = <&st7735>,"width:0";
speed = <&st7735>,"spi-max-frequency:0";
rotate = <&st7735>,"rotate:0";
fps = <&st7735>,"fps:0";
bgr = <&st7735>,"bgr?";
debug = <&st7735>,"debug:0";
dc_pin = <&st7735>,"dc-gpios:4";
reset_pin = <&st7735>,"reset-gpios:4";
led_pin = <&st7735>,"led-gpios:4";
};
};
Code: Select all
dtc -@ -I dts -O dtb -o /boot/overlays/fluidicworks18.dtbo fluidicworks18.dts
Code: Select all
uname -a
Linux pump 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l GNU/Linux