[Letux-kernel] How to build LetuxOS Android Kernel for LetuxOS Replicant 4.2?
Andreas Kemnade
andreas at kemnade.info
Fri Jun 28 20:53:39 CEST 2019
On Fri, 28 Jun 2019 19:39:22 +0200
Andreas Kemnade <andreas at kemnade.info> wrote:
> On Fri, 28 Jun 2019 19:19:13 +0200
> "H. Nikolaus Schaller" <hns at goldelico.com> wrote:
>
> > Hi,
> >
> > > Am 28.06.2019 um 19:01 schrieb Andreas Kemnade <andreas at kemnade.info>:
> > >
> > > On Fri, 28 Jun 2019 18:41:45 +0200
> > > "H. Nikolaus Schaller" <hns at goldelico.com> wrote:
> > >
> > > [...]
> > >> What does this mean?
> > >>
> > >> * kernel can be built outside of Replicant build system
> > >> * uImage can simply be patched over to /boot/uImage
> > >
> > > well, that is obvious, because it can be loaded by
> > > ordinary uboot.
> >
> > Well, not completely. It could have been that it needs some other tweaks.
> >
> > >
> > >> * kernel modules are built differently by the Replicant build system or post-processed
> > >> * and I have not found where this is done...
> > >>
> > >> So if we can find the post-processing script that prepares the kernel modules to /system/lib/modules
> > >> we can do the same outside of the Replicant build system.
> > >>
> > > after make modules_install to somewhere
> > > a oneliner like:
> > >
> > > find -name "*.ko" -exec mv \{\} /path/to/system/lib/modules \;
> >
> > That is what I had tried first but it did not load any module...
> > Maybe it needs a special depmod to be run.
> >
> and simple insmod calls do result in what? simply use adb shell
> or call a shell via the init kernel commandline?
> and try to insmod from there. We manually load modules there in
> the init scripts and the android kernels have their own config.
>
> I have to bring back my memories for these things. I remember
> I was the last one working on 4.2.
>
ok, some more progress here:
I simply removed the lis302,hmc5843 and itg3200 modules,
and the thing did boot here.
Originally I tested these on the gta04a5, there I needed the smshack
thing. And it boots there reliably. I am using it regularly there.
About timing of commits and build:
At that time I was building in a chroot on a server, I took commits
from there and added later on correct messages on my ordinary machine,
so commit dates are later than build dates in this case.
Some more thing I managed to test: I did a chroot into the android
partition and did an insmod with a module from a 5.2 kernel.
There is a busybox in there containing modprobe and insmod.
So at least insmod takes ordinary modules.
Regards,
Andreas
More information about the Letux-kernel
mailing list