[U-Boot] How do I use AM335x eth1 rather than eth0 ?

Bo Shen voice.shen at gmail.com
Thu Apr 18 17:49:16 CEST 2013


Hi Mark,

On 04/12/2013 06:32 PM, Mark Jackson wrote:
> 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 ?

Have you try "setenv ethprime eth1"? Then reset board, and do dhcp.

Best Regards,
Bo Shen

>
> Cheers
> Mark J.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot



More information about the U-Boot mailing list