It wouldn’t Killed a couple of hours trying to make TS050 work with mainline kernel. Found a set of errors during build process with Fenix script… By default it doesn’t matter if you set
in board config file - everything will be wiped out, because the way config module dependencies are set in mainline
you won’t see this driver in config unless you specify any other driver panel
in my case I just enabled
However it is still far from the end of the game… A lot of things are missing in mainline to make it work.
I’ve been playing with DTS from Neil Armstrong and even got lcd backlight driver loaded.
I even can mod probe TS050 - only thing I’ve reached - is absolutely black screen (this is even a progress as by default you will get scrambled logo from u-boot). Perhaps I’m missing some more things - as there is no framebuffer device in /dev. section
So far - I don’t see any progress with mainlining TS050 into the vanilla kernel. It’s not a problem with panel driver itself - most of the work is related to DRM drivers and so far per patchwork it is not yet finished, @narmstrong was working on that - but seems his last updates for vanilla DRM and MIPI-DSI was 9 months ago.
it went well and compiled the vmlinux file, any guidance on how to swap this new kernel file with the one on the default mainline ubuntu image ? @OldNavi
I flashed this image from krescue: vim3-ubuntu-20.04-server-linux-5.17-fenix-1.0.11-220429.img
@Electr1 - I’m afraid it is not an easy step to just swap it out. I assume you’ve just compiled a mainline kernel without Fenix build system.
if it was Fenix - you can just generate kernel deb files and update kernel with dpkg command.
if you have compiled kernel on a board itself - you can go on with make modules_install and make install - I assume
If you was compiling manually using cross compile on x86 machine you have
1/ Build kernel vmlinux image + build all needed kernel modules with make modules
2/ Transfer them
3/ Update ramdisk
4/ Transfer DTBs and copy correct one into /boot/dtb.img
5/ Many other things I may forgot - but perhaps you can build some mainline kernel deb packages using Fenix and take a look what steps are done for correctly installing kernel in a .deb files
Most reliable way is to use Fenix build system with a Neil sources, as Fenix also apply some additional patches to vanilla kernel (but they need to revised for 5.20 kernel) and produce new test 5.20 kernel .deb packages - but this require some time to accomplish, perhaps Artem @hyphop will try this out.
I actually did cross compiling, but it seems for testing it will involve too many steps, I will give it a go by trying to compile on the board,
and yes the prebuilt mainline image was built by fenix, but I complied the mainline kernel from neil’s source without fenix.
I used the
make defconfig
command after adding the additional configs and this resulted in a much more bigger kernel with unnecessary stuff enabled, but It is ok for testing I suppose,
I’ll try the method of compiling on the system and using make modules_install