openwrt-sunxi: progress report

I finally managed to find a few spare minutes and make some serious progress on this port.

So, what’s new:

  • Rebased against the current openwrt trunk
  • Initial router name/model  stuff support via uboot env.
  • Now with stable 3.4 kernel from sunxi-3.4 branch. OpenWRT compiles kernel and working module packages
  • sun4i-specific modules like ahci, ir, i2c, etc. are now compiled and loaded by OpenWRT.
  • Instructions for building can be found at the github repo

wrt

 

9 thoughts on “openwrt-sunxi: progress report

  1. I download source code for openwrt-sunxi .
    than:
    ./scripts/feeds update -a
    ./scripts/feeds install -a
    make defconfig
    make menuconfig

    all is ok but for
    make V=99 have some problems. I don`t know why .Do you kown?

    1. cp config_sunxi .config
      make menuconfig
      tick “Use external kernel tree” and set it to your linux sunxi-3.4 branch.

  2. Hello, did not find instructions for what to do after compiling the trunk. Could you please make a little tutorial to boot from SD and then from flash? Also a brief of what is working and what is not would be great!

    Keep Up the good work! It is much appreciative.

  3. Follow the existing tutorials on how to make the SD card bootable and how to set kernel boot parameters. You need a serial dongle though. Most of the sunxi stuff is working. Booting from NAND has NOT been tested, and I don’t have time to implement it now. Too busy with PhD studies, sorry.

  4. Hello again,

    Did the procedure in README.sunxi but trunk does not compile. At some point asked me to update link to luci, after that just fails when checking for libusb. I am using the config_sunxi with branch sunxi-3.4

    checking whether to build serial drivers… yes
    configure: error: “USB drivers requested, but libusb not found.”
    make[3]: *** [/home/wavesys/sunxi/openwrt-sunxi/build_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/nut-2.6.5/.configured_] Error 1
    make[3]: Leaving directory `/home/wavesys/sunxi/openwrt-sunxi/feeds/packages/utils/nut’
    make[2]: *** [package/feeds/packages/nut/compile] Error 2
    make[2]: Leaving directory `/home/wavesys/sunxi/openwrt-sunxi’
    make[1]: *** [/home/wavesys/sunxi/openwrt-sunxi/staging_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/stamp/.package_compile] Error 2
    make[1]: Leaving directory `/home/wavesys/sunxi/openwrt-sunxi’
    make: ** [world] Erro 2

    1. Must be a problem with some of the packages, I haven’t tested it against the recent trunk due to the lack of time. Try disabling the package causing trouble and see if it works for you.

  5. Uninstalled nut with feeds and then failed with:

    mkdir -p /home/wavesys/sunxi/openwrt-sunxi/bin/sunxi/packages /home/wavesys/sunxi/openwrt-sunxi/build_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/linux-sunxi_cubie/packages/ipkg-sunxi/kmod-ppp/CONTROL /home/wavesys/sunxi/openwrt-sunxi/staging_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/pkginfo
    ERROR: module ‘/home/wavesys/sunxi/openwrt-sunxi/build_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/linux-sunxi_cubie/linux-3.4.24/drivers/net/ppp/ppp_async.ko’ is missing.
    make[3]: *** [/home/wavesys/sunxi/openwrt-sunxi/bin/sunxi/packages/kmod-ppp_3.4.24-1_sunxi.ipk] Error 1
    make[3]: Leaving directory `/home/wavesys/sunxi/openwrt-sunxi/package/kernel’
    make[2]: *** [package/kernel/compile] Error 2
    make[2]: Leaving directory `/home/wavesys/sunxi/openwrt-sunxi’
    make[1]: *** [/home/wavesys/sunxi/openwrt-sunxi/staging_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/stamp/.package_compile] Error 2
    make[1]: Leaving directory `/home/wavesys/sunxi/openwrt-sunxi’
    make: ** [world] Erro 2

    Disabled ppp related and kmod-ppp with menuconfig then failed with:

    WARNING: skipping kmod-sound-soc-core — package not selected
    mkdir -p /home/wavesys/sunxi/openwrt-sunxi/bin/sunxi/packages /home/wavesys/sunxi/openwrt-sunxi/build_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/linux-sunxi_cubie/packages/ipkg-sunxi/kmod-usb-core/CONTROL /home/wavesys/sunxi/openwrt-sunxi/staging_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/pkginfo
    NOTICE: module ‘/home/wavesys/sunxi/openwrt-sunxi/build_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/linux-sunxi_cubie/linux-3.4.24/drivers/usb/core/usbcore.ko’ is built-in.
    ERROR: module ‘/home/wavesys/sunxi/openwrt-sunxi/build_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/linux-sunxi_cubie/linux-3.4.24/drivers/usb/usb-common.ko’ is missing.
    make[3]: *** [/home/wavesys/sunxi/openwrt-sunxi/bin/sunxi/packages/kmod-usb-core_3.4.24-1_sunxi.ipk] Error 1
    make[3]: Leaving directory `/home/wavesys/sunxi/openwrt-sunxi/package/kernel’
    make[2]: *** [package/kernel/compile] Error 2
    make[2]: Leaving directory `/home/wavesys/sunxi/openwrt-sunxi’
    make[1]: *** [/home/wavesys/sunxi/openwrt-sunxi/staging_dir/target-arm_v7-a_uClibc-0.9.33.2_eabi/stamp/.package_compile] Error 2
    make[1]: Leaving directory `/home/wavesys/sunxi/openwrt-sunxi’
    make: ** [world] Erro 2

    Can’t disable kmod-usb-core. What now? I am compiling with the trunk in your git and with sunxi-3.4 as instructed. This should have worked. I really need openwrt, suggestions?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.