Modify

Opened 9 years ago

Closed 6 years ago

Last modified 4 years ago

#4241 closed enhancement (fixed)

edimax br-6104kp (adm5120) adding phy status support and edimax specific MAGIC_MAC_BASE

Reported by: zadevalov@… Owned by: florian
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc:

Description

Hello,

  • I've added support for Edimax specific MAGIC_MAC_BASE, so switch now can successfully get MAC from flash.
  • I've fixed few typos in adm5120sw.c (s/KERN_DBG/KERN_DEBUG/) and changed adm5120_switch_remove "dev" variable to match adm5120_switch_probe where it's "pdev".
  • I've added support for getting PHY status for built-in ports via sysfs interface "phy_status" file in /sys/devices/platform/adm5120-switch

Please let me know if it's possible to put into trunk, Thanks!

Attachments (3)

402-magic_mac_base.patch (601 bytes) - added by zadevalov@… 9 years ago.
edimax specific magic_mac_base
403-adm5120sw_typos.patch (604 bytes) - added by zadevalov@… 9 years ago.
fixes few ugly typos
404-phy_status.patch (1.6 KB) - added by zadevalov@… 9 years ago.
show PHY status through sysfs

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by zadevalov@…

edimax specific magic_mac_base

Changed 9 years ago by zadevalov@…

fixes few ugly typos

Changed 9 years ago by zadevalov@…

show PHY status through sysfs

comment:1 Changed 7 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to accepted
  • Version set to Trunk

comment:2 Changed 6 years ago by anonymous

Edimax BR-6104K (with USB host mod), trunk r28107

root@OpenWrt:/tmp# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00008000 00004000 "admboot"
mtd1: 00008000 00008000 "config"
mtd2: 001f0000 00010000 "firmware"
mtd3: 000c7be4 00010000 "kernel"
mtd4: 00126400 00010000 "rootfs"
mtd5: 00060000 00010000 "rootfs_data"
root@OpenWrt:/tmp# dd if=/dev/mtdblock1 of=/tmp/config bs=1k
32+0 records in
32+0 records out
root@OpenWrt:/tmp# hexdump -C /tmp/config
00000000  48 53 30 31 fa 03 01 00  0e 2e 2c 06 9d 00 0e 2e  |HS01......,.....|
00000010  2c 06 9e 00 0e 2e 2c 06  9d 03 03 03 03 03 03 03  |,.....,.........|
00000020  03 03 03 03 03 03 03 01  03 00 00 0b 01 00 00 00  |................|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
... The rest is leftover config stuff from stock firmware

After applying patch 402-magic_mac_base.patch MAC addresses are correct, I haven't tested the other patches

root@OpenWrt:/tmp# ifconfig |grep HWaddr
br-lan    Link encap:Ethernet  HWaddr 00:0E:2E:2C:06:9D
eth0      Link encap:Ethernet  HWaddr 00:0E:2E:2C:06:9D
eth1      Link encap:Ethernet  HWaddr 00:0E:2E:2C:06:9E

Also closes #4671, ADM5120 Omnima Embedded Controller board is the same as Edimax BR-6104KP

comment:3 Changed 6 years ago by florian

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed with r31195, thanks!

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.