[LEDE-DEV] mach-wpj531, mach-wpj344
Christian Mehlis
christian at m3hlis.de
Wed Oct 4 10:18:57 PDT 2017
Hi Antonio,
please always include the LEDE dev mailing list!
Please have a look at:
https://github.com/lede-project/source/blame/master/target/linux/ar71xx/files/arch/mips/ath79/mach-wpj344.c
https://github.com/lede-project/source/blame/master/target/linux/ar71xx/files/arch/mips/ath79/mach-wpj531.c
These files are the state of art.
In case the current version does not work for you, Compex might have
changed their flash layout?
Best Regards,
Christian
Am 2017-10-04 19:09, schrieb Antonio Anselmi:
> hello Christian,
>
> I'm running Openwrt 15.05.1 on two Compex boards WPJ531 and WPJ344 3rd
> Generation and I'm facing problems about the detection of the ethernet
> (eth0, eth1) MAC address: the found addresses are not valid so they use
> a
> random MAC.
> I found your patch:
> ...
> ...
> - u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
> - u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
> - u8 tmpmac[ETH_ALEN];
> + u8 *art = (u8 *) KSEG1ADDR(0x1fff0000);
> + u8 *mac = (u8 *) KSEG1ADDR(0x1f02e000);
> ...
> ...
>
> but I think it doesn't work anymore, at least on these 3G Compex
> boards.
>
> Offset values are ok
>
> #define WPJ531_MAC0_OFFSET 0x10
> #define WPJ531_MAC1_OFFSET 0x18
>
> but KSEG1ADDR mapping is wrong since I found eth0, eth1 mac addresses
> at
> 0x0002e010 and 0x0002e018 on mtd0 partition:
>
> # hexdump -s 0x0002e010 -C /dev/mtd0
> 0002e010 04 f0 21 31 f6 0c be 4b
> (eth0 mac 04 f0 21 31 f6 0c)
>
> # hexdump -s 0x0002e018 -C /dev/mtd0
> 0002e018 04 f0 21 31 f6 0d e7 5c
> (eth1 mac 04 f0 21 31 f6 0d)
>
> Can you please have a look at this problem or shed some light?
>
> Regards,
> Antonio Anselmi
More information about the Lede-dev
mailing list