How do I use AM335x eth1 rather than eth0 ?
We have a dual Ethernet board (based on the BeagelBone) but with both Ethernet ports connected.
I'm wanting to use eth1 (rather than eth0), so in my board.c file, I changed:-
static struct cpsw_slave_data cpsw_slaves[] = {
{
.slave_reg_ofs = 0x208,
.sliver_reg_ofs = 0xd80,
.phy_id = 0,
},
{
.slave_reg_ofs = 0x308,
.sliver_reg_ofs = 0xdc0,
.phy_id = 1,
},
};... to ...
static struct cpsw_slave_data cpsw_slaves[] = {
{
.slave_reg_ofs = 0x308,
.sliver_reg_ofs = 0xdc0,
.phy_id = 1,
},
{
.slave_reg_ofs = 0x208,
.sliver_reg_ofs = 0xd80,
.phy_id = 0,
},
};... assuming that eth0 would now be ignored (as only 1 slave is configured).
But (eg) dhcp still only responds on eth0 !?!
What else do I have to change ?
Cheers
Mark J.
Hi Mark,
Quoted 32 lines · Mark Jackson
We have a dual Ethernet board (based on the BeagelBone) but with both Ethernet ports connected.
I'm wanting to use eth1 (rather than eth0), so in my
board.cfile, I changed:-static struct cpsw_slave_data cpsw_slaves[] = { { .slave_reg_ofs = 0x208, .sliver_reg_ofs = 0xd80, .phy_id = 0, }, { .slave_reg_ofs = 0x308, .sliver_reg_ofs = 0xdc0, .phy_id = 1, }, };... to ...
static struct cpsw_slave_data cpsw_slaves[] = { { .slave_reg_ofs = 0x308, .sliver_reg_ofs = 0xdc0, .phy_id = 1, }, { .slave_reg_ofs = 0x208, .sliver_reg_ofs = 0xd80, .phy_id = 0, }, };
Quoted 5 lines
... assuming that eth0 would now be ignored (as only 1 slave is configured).
But (eg) dhcp still only responds on eth0 !?!
What else do I have to change ?
Have you try "setenv ethprime eth1"? Then reset board, and do dhcp.
Best Regards,
Bo Shen
Quoted 7 lines
Cheers
Mark J.
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Dear Bo Shen,
Quoted 4 lines · In message <[email protected]> you wrote:
Quoted 2 lines
What else do I have to change ?
Have you try "setenv ethprime eth1"? Then reset board, and do dhcp.
Before thje reset, doi also a "saveenv" to make the setting stick.
Or "setenv ethact eth1" and retry then (without reset).
Best regards,
Wolfgang Denk
Signature · 3 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Hi Wolfgang,
Quoted 8 lines · Wolfgang Denk
Dear Bo Shen,
Quoted 2 lines · In message <[email protected]> you wrote:
Quoted 1 line
What else do I have to change ?
Have you try "setenv ethprime eth1"? Then reset board, and do dhcp.
Before thje reset, doi also a "saveenv" to make the setting stick.
Or "setenv ethact eth1" and retry then (without reset).
Thanks for you information, without reset is better.
Best Regards,
Bo Shen
Quoted 5 lines
Best regards,
Wolfgang Denk