waveshareteam / Waveshare-DSI-LCD

26 stars 14 forks source link

bullseye kernel update (6.1.19) not yet supported #6

Open pereltje opened 1 year ago

pereltje commented 1 year ago

the other day Raspberrypi OS updated the kernel for "bullseye" to 6.1.19 and the drivers supplied to date do not yet support that new kernel. Thus leaving the display useless in my application. please advise for a temporary work around and supply an updated driver package.

Kind regards. Fenna

pereltje commented 1 year ago

ok, back on the topic. I have found a temporary workaround. needed: hdmi monitor, synaptic package manager (implies graphical desktop), remote access (ssh) and a downloaded raspberry kernel with datecode 20230306. (package name: raspberrypi-kernel_*.deb) download location: http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/?C=M;O=D Choose the version applicable to your own setup. The datecode 20230306 is the last kernel of the 5.15.84 branch that has a supported driver from waveshare

procedure: remote into the booted raspberrypi with ssh and comment out the dtoverlay lines (in /boot/config.txt) for the waveshare display upon reboot, you should be able to get a hdmi connected monitor to display a desktop. if not installed, install synaptic package manager (sudo apt install synaptic)

download the applicable raspberrypi-kernel package and install from the command line with: sudo dpkg --install downloadpath/raspberrypi-kernel_*.deb you will get a warning of downgrading the kernel, but it will install

after install is complete, go to synaptic package manager and find 'raspberrypi-kernel' package in the list. select the package and from the synaptic menubar choose: "package" - "lock version".

The checkbox in front of the package name should now display a lock in it and when not selected the line of the package is in red background.

after reboot you can install the waveshare driver as usual and do not forget to uncomment the dtoverlay lines in /boot/config.txt

hope this helps Fenna ps, an update driver package is still highly appreciated ;-)

6by9 commented 1 year ago

https://github.com/waveshare/Waveshare-DSI-LCD/issues/1#issuecomment-1276965891

When the Raspberry Pi OS kernel is updated, we will update the Waveshare-DSI-LCD driver package within 48 hours. Sorry for not checking your ISSUE in time. If you have any new problem,In order to respond to your technical issues faster, it is recommended to submit issues through the ticket system:https://support.waveshare.com/hc/en-us/

Holding back the kernel package is only a short term fix to get around Waveshare not fulfilling their stated commitment or licence obligation. If we can resolve #4, then it will mean that there's no need to use Waveshare's drivers at all.

6by9 commented 1 year ago

Actually it looks like they have updated this repo, but not commented or closed this issue.

pereltje commented 1 year ago

Actually it looks like they have updated this repo, but not commented or closed this issue.

i've read through the #4 thread and you are right. if waveshare is not obiding to the licence that they agreed on, some action is requiered.

as far as the 6.1.19 kernel is concerned, Waveshare only seem to have released a 64bit version. have not yet tried it, but my system is a rpi3 with 32bit bullseye , see how that goes at a later time (to busy with a different project at the moment

6by9 commented 1 year ago

From issue 4, I've created an open source driver in https://github.com/raspberrypi/linux/pull/5433.

If running Raspberry Pi OS then you should be able to use sudo rpi-update pulls/5433 to get the CI test build from the PR. It should generate builds for all versions of Pi. Please don't do this on a critical SD card as there is a small risk of regressions.

You don't say which display variant you're using, but removing the 2 dtoverlay=WS_xinchDSI_..... lines in /boot/config.txt and replacing with dtoverlay=vc4-kms-dsi-waveshare-panel,7_9_inch (substitute 7_9_inch with the relevant size for your display - see the README change in the PR for the list of options) should work.

If it does work, could you comment to that effect with the relevant size of display you're using? Thanks.