do_bootm---------------->boot_body_linux -------------->ft_board_setup
1、mac地址修正:u-boot修正:fdt_fixup_ethernet, kernel内部修正mac地址:of_get_mac_address
2、获取cpu频率:const u32 *max_freqp;
u32 max_freq;
max_freqp = of_get_property(cpu, "clock-frequency", NULL);
max_freq = *max_freqp / 1000;
本文详细介绍了U-Boot中MAC地址修正过程,包括使用fdt_fixup_ethernet进行修正以及内核内部通过of_get_mac_address获取MAC地址的方法。同时,阐述了如何从内核属性中获取CPU频率。
687

被折叠的 条评论
为什么被折叠?



