[OpenWrt-Devel] Compex WPJ558 board support
christian at m3hlis.de
Fri Jan 30 12:44:41 EST 2015
I did a port for the Compex WPJ558 and it's almost working completely.
It's booting up, ethernet, wifi and pci is working.
But I got some problems with the image structure.
This board seems to need a uImage instead of bin.lzma ?!
I found two ways of creating an image for this board:
1) create 2 partitions with the compex image format: Linux is
booting and rootfs is found, but sysupgrade won't work (because the
compex sysupgrade handler writes on partition and the upgraded system
lands in case 2)
2) use the same way as the other compex boards and cat together the
uImage and the rootfs.
use one partition in the compex image with myloader: in this
case the rootfs is not mountable.
[ 0.750000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[ 0.750000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.760000] 7 cmdlinepart partitions found on MTD device spi0.0
[ 0.760000] Creating 7 MTD partitions on "spi0.0":
[ 0.770000] 0x000000000000-0x000000040000 : "u-boot"
[ 0.780000] 0x000000040000-0x000000050000 : "u-boot-env"
[ 0.780000] 0x000000050000-0x000000680000 : "rootfs"
[ 0.790000] mtd: device 2 (rootfs) set to be root filesystem
[ 0.790000] mtdsplit: no squashfs found in "rootfs"
[ 0.800000] mtdsplit: no squashfs found in "spi0.0"
[ 0.800000] 0x000000680000-0x0000007e0000 : "kernel"
[ 0.810000] 0x0000007e0000-0x0000007f0000 : "nvram"
[ 0.820000] 0x0000007f0000-0x000000800000 : "art"
[ 0.820000] 0x000000050000-0x0000007e0000 : "firmware"
[ 0.840000] switch0: Atheros AR8327 rev. 4 switch registered on
[ 0.930000] libphy: ag71xx_mdio: probed
[ 1.530000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00
[uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[ 1.540000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 2.130000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:SGMII
[ 2.140000] TCP: cubic registered
[ 2.140000] NET: Registered protocol family 17
[ 2.140000] 8021q: 802.1Q VLAN Support v1.8
[ 2.150000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not
found at 0x00000000: 0x96da instead
[ 2.160000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not
found at 0x00000004: 0x0ca1 instead
So my questions:
0) what's the difference between bin.lzma and uImage?
1) how does a linux kernel determine the beginning of the rootfs?
2) why is it working with two partitions in the compex loader?
3) do you think that the best solution is to make 1) or 2) work?
4) please review my port, I'll collect the comments and reset the
I'll send my changes to openwrt in some minutes.
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel