[OpenWrt-Devel] Help with sysupgrade/factory images for YunCore CPE-880 (ar71xx)

Roger Pueyo Centelles rogerpueyo at rogerpueyo.com
Sat Jan 9 16:28:23 EST 2016


Hi,

Some days ago I received a YunCore CPE-880 router. It's an AR9344-based 
outdoor 5 GHz CPE. You can read more about it at 
https://wiki.openwrt.org/toh/yuncore/cpe-880.

Up to now I've succeeded in adding OpenWrt support for this device (see 
attached patch) with:

  - Ethernet+switch working (LAN & WAN ports)
  - Wireless working
  - Leds and button working
  - MAC addresses read from EEPROM

 From U-boot I can boot the initramfs image (see attached file 
uboot-initramfs.log) and all the features above are working.

I can also flash the kernel and the rootfs to the flash and boot OpenWrt 
successfully (see attached file uboot-rootfs-kernel.log) with the 
following commands:

lf=tftp 0x80060000 ${dir}wnc83${bc}-jffs2&&erase 0x9f020000 
+0x650000&&cp.b $fileaddr 0x9f020000 $filesize
lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9f380000 
+$filesize&&cp.b $fileaddr 0x9f380000 $filesize

However, I am not able to generate a proper sysupgrade image. Either 
when booting from the initramfs or from lf+lk, performing a sysupgrade 
turns into mtd/jffs errors on next boot (see attached file 
sysupgrade.log).

Finally, I have no clue on how to generate a factory image that I can 
flash to the stock firmware from the web interface (I get an "Invalid 
image" error). Apparently, the stock firmware is [based on] the Atheros 
SDK.

Any help to fix the image generation issues will be very appreciated.

Kind regards,

Roger
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sysupgrade.log
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160109/124115bd/attachment.log>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: uboot-rootfs-kernel.log
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160109/124115bd/attachment-0001.log>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: uboot-initramfs.log
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160109/124115bd/attachment-0002.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ar71xx-add-preliminary-support-for-YunCore-CPE-880.patch
Type: text/x-diff
Size: 12735 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160109/124115bd/attachment.bin>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list