Re: [OpenWrt-Devel] Compex WPJ558 board support

2015-01-30 Thread Christian Mehlis

Am 30.01.2015 um 19:04 schrieb SGT. Garcia:

On Jan 30  18:44 +0100, Christian Mehlis wrote:

Hi,

I did a port for the Compex WPJ558 and it's almost working completely.


hi,
could you tell me where you got this board from? this is the only place
i've found it: http://tinyurl.com/ovb766y


Hi,

I did not order it, but you can contact them directly:

http://www.compex.com.sg/index.php/contactus/

or use the webshop:

http://www.compexshop.com/product_info.php?currency=USDproducts_id=466

Best
Christian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Compex WPJ558 board support

2015-01-30 Thread SGT. Garcia
On Jan 30  18:44 +0100, Christian Mehlis wrote:
 Hi,
 
 I did a port for the Compex WPJ558 and it's almost working completely.

hi,
could you tell me where you got this board from? this is the only place
i've found it: http://tinyurl.com/ovb766y

i'm in Canada, btw.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Compex WPJ558 board support

2015-01-30 Thread Christian Mehlis

Hi,

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.75] m25p80 spi0.0: found mx25l12805d, expected m25p80
[0.75] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[0.76] 7 cmdlinepart partitions found on MTD device spi0.0
[0.76] Creating 7 MTD partitions on spi0.0:
[0.77] 0x-0x0004 : u-boot
[0.78] 0x0004-0x0005 : u-boot-env
[0.78] 0x0005-0x0068 : rootfs
[0.79] mtd: device 2 (rootfs) set to be root filesystem
[0.79] mtdsplit: no squashfs found in rootfs
[0.80] mtdsplit: no squashfs found in spi0.0
[0.80] 0x0068-0x007e : kernel
[0.81] 0x007e-0x007f : nvram
[0.82] 0x007f-0x0080 : art
[0.82] 0x0005-0x007e : firmware
[0.84] switch0: Atheros AR8327 rev. 4 switch registered on 
ag71xx-mdio.0

[0.93] libphy: ag71xx_mdio: probed
[1.53] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 
[uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]

[1.54] eth0: Atheros AG71xx at 0xb900, irq 4, mode:RGMII
[2.13] eth1: Atheros AG71xx at 0xba00, irq 5, mode:SGMII
[2.14] TCP: cubic registered
[2.14] NET: Registered protocol family 17
[2.14] 8021q: 802.1Q VLAN Support v1.8
[2.15] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not 
found at 0x: 0x96da instead
[2.16] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not 
found at 0x0004: 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 
patches!


I'll send my changes to openwrt in some minutes.

Best
Christian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel