[Letux-kernel] How to build LetuxOS Android Kernel for LetuxOS Replicant 4.2?
H. Nikolaus Schaller
hns at goldelico.com
Sun Jun 30 21:32:37 CEST 2019
> Am 30.06.2019 um 10:55 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
>
> Hi,
> I am now able to build letux-4.14.129-replicant, patch it over the replicant 4.2 image and get the display working.
> To make it work automatically, it needs some modifications to the load_modules.sh to get omapdss and the tvout up and running.
>
> Charging with 500mA is now working out of the box :)
>
> Libertas WiFi firmware also loads. The main mistake was a misinterpretation of the message
>
> [ 341.977203] libertas_sdio mmc1:0001:1: Direct firmware load for libertas/sd8686_v8_helper.bin failed with error -2
>
> This will always come since the firmware loader is trying in sequence:
>
> sd8686_v9_helper.bin
> sd8686_v8_helper.bin
> sd8686_helper.bin
>
> So a successful load of sd8686_helper.bin is not reported!
>
> If I rename sd8686_helper.bin -> sd8686_v8_helper.bin it will still report that two variants do fail.
>
> Still, moving the Settings/Wi-Fi switch to ON makes it snap back immediately without any console activity.
>
> As a next step I'll try to add the missing module loading to the kernel tree...
> This might need to maintain the /system/load_modules.sh script within the kernel branch.
> Which seems to be a good idea since it must track kernel changes.
>
> There are also other drivers renamed, e.g. bmp085 -> bmp280 etc.
>
> So bringing that into a publishable shape is the next step.
Ok, here it is.
I had to cherry-pick (and fix a little) the patches by Josua for the lowmemorykiller.
They did sit in my tree from earlier experiments and were simply compiled. So that I
thought they were still available in v4.14... But after switching some branches forth
and back, the lowmemorykiller.c was lost.
And if you look into the patch set, I could add back the tvout since it is fully
supported by the latest letux-4.14 kernels.
Here is the source tree and binaries:
http://git.goldelico.com/?p=letux-kernel.git;a=shortlog;h=refs/heads/letux-4.14.129-replicant
http://download.goldelico.com/letux-kernel/letux-4.14.129-replicant/
Making a bootable µSD is now even shorter:
makesd -v 20170423-kernel-4.10 replicant -kboot letux-4.14.129-replicant -dboot letux-4.14.129-replicant -m letux-4.14.129-replicant
Someone should try...
BR,
Nikolaus
More information about the Letux-kernel
mailing list