User Tools

Site Tools


u-boot_boot_sequence

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
u-boot_boot_sequence [2019/04/12 11:02]
rpjday [misc_init_r()]
u-boot_boot_sequence [2019/04/12 11:05]
rpjday [CMD_NET]
Line 401: Line 401:
         return 0;         return 0;
 } }
 +</​code>​
 +
 +==== initr_ethaddr() [C] ====
 +
 +<​code>​
 +#ifdef CONFIG_CMD_NET
 +        initr_ethaddr,​
 +#endif
 +</​code>​
 +
 +<​code>​
 +#ifdef CONFIG_CMD_NET
 +static int initr_ethaddr(void)
 +{
 +        bd_t *bd = gd->bd;
 +
 +        /* kept around for legacy kernels only ... ignore the next section */
 +        eth_env_get_enetaddr("​ethaddr",​ bd->​bi_enetaddr);​
 +#ifdef CONFIG_HAS_ETH1
 +        eth_env_get_enetaddr("​eth1addr",​ bd->​bi_enet1addr);​
 +#endif
 +#ifdef CONFIG_HAS_ETH2
 +        eth_env_get_enetaddr("​eth2addr",​ bd->​bi_enet2addr);​
 +#endif
 +#ifdef CONFIG_HAS_ETH3
 +        eth_env_get_enetaddr("​eth3addr",​ bd->​bi_enet3addr);​
 +#endif
 +#ifdef CONFIG_HAS_ETH4
 +        eth_env_get_enetaddr("​eth4addr",​ bd->​bi_enet4addr);​
 +#endif
 +#ifdef CONFIG_HAS_ETH5
 +        eth_env_get_enetaddr("​eth5addr",​ bd->​bi_enet5addr);​
 +#endif
 +        return 0;
 +}
 +#endif /* CONFIG_CMD_NET */
 </​code>​ </​code>​
  
  
u-boot_boot_sequence.txt ยท Last modified: 2019/12/28 08:33 by rpjday