Was OpenWrt pre-installed on Ci40 board?

This topic contains 3 replies, has 2 voices, and was last updated by  Matt Atkinson 1 year, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #53830

    yasuhiko
    Member

    Hello,
    according to the IMG site, Ci40 was pre-installed with OpenWrt.
    However, I powered the board, the u-boot failed to load the kernel image.
    Please find the attached file messages.
    Is it a normal phenomenon?
    If it is normal, how can I install OpenWrt into Ci40 board?
    Thank you and best regards,
    Yasuhiko Koumoto.

    Attachments:
    You must be logged in to view attached files.
    1 user thanked author for this post.
    #53834

    Hi Yasuhiko,

    It should have OpenWrt pre-installed (all production boards will have it flashed on). Your unit may be different, as it’s a pre-release. Try “run dualnandboot” in the bootloader terminal and see if you get the same result. If so, you will need to boot from USB or SD (https://github.com/IMGCreator/openwrt#boot-from-usb). You can then flash the NAND image if you would like to remove the need for additional storage devices.

    Regards,

    Matt

    #53842

    yasuhiko
    Member

    Hi Matt,
    thank you for your reply.
    My Ci40 board seems to be a pre-release version and OpenWrt was not in NAND flash.
    I could boot OpenWrt from SD card by the “run mmcboot”.
    By the way, isn’t any compiler include in the pre-installed OpenWrt?
    How can I install C compiler?
    Thank you and best regards,
    Yasuhiko Koumoto.

    #53850

    There is no compiler by default. gcc is currently a bit broken on OpenWrt (https://github.com/openwrt/packages/issues/2244) but it should be possible to make it work.

    1. enable gcc in ‘make menuconfig’
    2. Modify “staging_dir/target-mipsel_mips32_musl-1.1.11/pkginfo/libc.provides” to add libc.so.6, otherwise GCC will complain about missing dependencies
    3. Once on the Ci40, the following command can be used to compile:
    gcc -Wl,–dynamic-linker=/lib/ld-musl-mipsel-sf.so.1 <files>
    The dynamic linker needs to be explicitly provided, otherwise the resulting executable won’t run.

    It’s a bit of a workaround (and there are several ways to work around the problem), but hopefully that will work for you in the short term.

    Regards,

    Matt

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Creator Platforms’ is closed to new topics and replies.