On 2/27/21 6:04 AM, H. Nikolaus Schaller wrote:
> Hi William,
>
>> Am 27.02.2021 um 07:32 schrieb Zhou Yanjie <
zhouy...@wanyeetech.com>:
>>
>> Hello William,
>>
>> On 2021/2/26 上午9:38, William Cohen wrote:
>>> Hi,
>>>
>>> I would like to run a more recent distribution of linux on the creator CI20. I was able to get the newer Gentoo image from
https://www.setphaserstostun.org/pages/mips-creator-ci20-gentoo-resources/ installed into the MTD NAND memory. I would prefer to have everything on an SD card to make it easier to switch to different versions and have more storage space available than what is provided by the builtin MTD NAND. I looked around and none of the older sd card boot image for debian seem to be available. The best I could do was find some scripts and instructions about creating a bootable SD Card at:
>>>
>>>
https://elinux.org/CI20_Dev_Zone#Making_a_bootable_SD_card_from_sources
>>>
>>>
https://download.goldelico.com/letux-debian-rootfs/README
>>>
>>> To avoid frustration of getting a non-working u-boot/kernel does anyone have pointers to specific versions of u-boot/kernel/rootfs and/or command line arguments known to create a working bootable SD card with a more recent distribution of linux?
>>
>> U-Boot in the
elinux.org (2013.10-rc3) is OK, and the mainline kernel can run properly on CI20, but only supports single-core. The letux kernel maintained by Nikolaus and Paul can provide dual-core support. As for rootfs, I have tested debian9 and debian10, and both can run properly.
> Our makesd tool [1] can bake a working SD card (any size - even 200GB should work) including (old) U-Boot, latest kernel (incl. device tree and modules) and a rootfs. You can choose between Jessie, Squeeze, Buster and Bullseye.
>
> Typical commands:
>
> DEV=/dev/sdb makesd -v latest ci20 -r
http://download.goldelico.com/letux-debian-rootfs/stable-mipsel-minimal.tbz
> DEV=/dev/sdb makesd -v latest ci20 -r
http://download.goldelico.com/letux-debian-rootfs/20201123-bullseye-11.sid-mipsel-minimal.tbz
>
> (BTW: these rootfs images were debootstrapped on the CI20).
>
> The Letux tree includes HDMI support and other improvements we have not yet pushed upstream (lack of time to wrestle with upstream maintainers about details).
>
> A big missing part is NAND where we do not know how to implement. It was explicitly removed by the maintainer some years ago because he found that it can not work and can not be fixed (although it seemed to work in practice with the older Vendor kernels).
Thanks for the examples and suggestions. I was able to use the makesd command (with some tweaks afterwards) to run with the letux debian bullseye minimal tarball and the 5.10.16 ci20 kernel.
I hooked up a serial port to see what messages were being printed on boot up and diagnose some of the issues I encountered. Here are the things that I had issues with when creating the sdcard with the script:
-5.10.16 modules did not seem to be installed in /lib/modules, so manually downloaded the tarball and unpacked it in the target root filesystem
-it would be nice if script check that arguments were things that could be downloaded before overwriting the sd card. I made some typos in the names and the error were rather buried in the output of the makesd script.