[Lenny400] LetuxOS on SD card for MIPS JZ4780 CI20
H. Nikolaus Schaller
hns at goldelico.com
Fri Apr 19 14:27:16 CEST 2019
> Am 19.04.2019 um 13:37 schrieb Paul Boddie <paul at boddie.org.uk>:
> On Thursday 18. April 2019 19.17.12 H. Nikolaus Schaller wrote:
>>> Am 18.04.2019 um 19:08 schrieb Paul Boddie <paul at boddie.org.uk>:
>>> Branch ci20-v2013.10 from the above repository.
>> Yes, exactly.
> Good to know that we're still on the same page. :-)
>> Most likely... But how should we run a device-tree kernel now?
> I imagine that any future effort would depend on doing so.
>> It does not look as if there is a MIPS pendant to CONFIG_ARM_APPENDED_DTB.
>> Android seems to have that:
>> Well, there is always the option to manually do the append. But I am not
>> sure if the MIPS kernel is searching for it...
> Is this it...?
> I vaguely remember similar options when doing the initial work for the Letux
> 400, or maybe it was related to the Ben NanoNote and newer kernels. Maybe
That looks interesting!
CONFIG_BUILTIN_DTB is mentioned on https://cateee.net/lkddb/web-lkddb/BUILTIN_DTB.html
but it is neither defined by ci20_defconfig nor letux_defconfig.
Here is the ci20_defconfig:
The latter defines CONFIG_MIPS_RAW_APPENDED_DTB by default!:
So it might simply suffice to append the .dtb manually... I think there is (was) some script
to do that inside flash-nand for the GTA04. Yes, here:
Or if we do research there might be a kernel make option for that. I'll give it a try as soon as I find time for it.
Here I have found some (ARM) patch for the kernel makefile:
index abfce28..131558f 100644
@@ -55,6 +55,9 @@ $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
@$(kecho) ' Kernel: $@ is ready'
+$(obj)/zImage-dtb.%: $(obj)/%.dtb $(obj)/zImage + cat $(obj)/zImage $< > $@
+$(obj)/uImage-dtb.%: $(obj)/zImage-dtb.% FORCE
+ $(call if_changed,uimage)
+ @echo ' Image $@ is ready'
> Of course, I did spend some time trying to define a usable device tree for the
> Letux 400, and I am pretty sure that the NanoNote kernel adopted device tree.
> Plus, there are device tree files for the JZ4780 and CI20, so I do wonder
> whether the support isn't already in place. So, maybe a perusal of the CI20
> discussion groups/lists is needed to remind myself.
Indeed. I can't believe that there was no progress since 2013... And some of
the android images mention that they use device tree.
Maybe it is just missing in the "compile kernel yourself" documentation.
>> Or should we backport a newer bootm command? That may not be easy as it
>> assumes a standard to pass the DTB address to a kernel and that might not
>> be in the old tree.
>> So we are a little stuck here. Ideas are welcome!
> I would need to refresh my memory a lot more to be able to say something
> sensible, I think.
BR and thanks for the new hints for experimentation,
More information about the Lenny400