Re: Mac address in the DT
smitha.va...@wipro.com wrote on 2012/01/10 10:37:14: Hi, The fdt_fixup_ethernet() is not supported in the older version of u-boot. So how to go about it in u-boot 1.3.0 version. Upgrade or find out how its done in your older version, I have no idea. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: Mac address in the DT
Dear smitha.va...@wipro.com, In message 40631e9a2581f14ba60888c87a76a1fe01d...@hyd-mkd-mbx4.wipro.com you wrote: The fdt_fixup_ethernet() is not supported in the older version of u-boot. So how to go about it in u-boot 1.3.0 version. U-Boot v1.3.0 is more than 4 years old. Update, or restrict yourself to using 4 years old Linux kernel versions as well, like v2.6.23 or so :-( Best regards, Wolfgang Denk -- 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: w...@denx.de Everyting looks interesting until you do it. Then you find it's just another job. - Terry Pratchett, _Moving Pictures_ ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
RE: Mac address in the DT
Hi, I am using 2.6.21 linux kernel with this bootloader. The ethernet driver in the kernel reads the mac address from the .dtb file. Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: Mac address in the DT
Hi Wolfgang, I need to automate a sequence of commands. To do that I am setting a environment variable with the sequence of commands. And using run command run the environment variable. But one of the command uses in the command. So how do I save the command with quotes. Below is the command which I want to set in the environment variable. setenv set_mac cp 0xffec 0x10 1024;fdt addr 0x10 8192;fdt set /soc8272@f000/ethernet@24000 mac-address [00 22 00 33 00 55] But when I saveenv the command doesnot get save as fdt set /soc8272@f000/ethernet@24000 mac-address [00 22 00 33 00 55] Thanks Regards, Smitha Have you tried ...\[00 22 00 33 00 55]\ ? Jocke ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
RE: Mac address in the DT
Hi Joakim, I have tried it but it doesn't work. Just now found that with single ' quotes the entire sequence it works. Setenv set_mac 'cp 0xffec 0x10 1024;fdt addr 0xc0 8192;fdt set /soc8272@f000/ethernet@24000 mac-address [00 44 00 55 00 66];erase 0xffec 0xffec4000;cp 0xc0 0xffec 1024;bootm 0xfe06 - 0xffec' run set_mac For the above command I want to replace the mac address with the ethaddr How do I do that. I tried $ethaddr but I get extra : characters. Setenv set_mac 'cp 0xffec 0x10 1024;fdt addr 0xc0 8192;fdt set /soc8272@f000/ethernet@24000 mac-address $ethaddr;erase 0xffec 0xffec4000;cp 0xc0 0xffec 1024;bootm 0xfe06 - 0xffec' Regards, Smitha Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
RE: Mac address in the DT
smitha.va...@wipro.com wrote on 2012/01/09 15:28:54: Hi Joakim, I have tried it but it doesn't work. Just now found that with single ' quotes the entire sequence it works. Setenv set_mac 'cp 0xffec 0x10 1024;fdt addr 0xc0 8192;fdt set /soc8272@f000/ethernet@24000 mac-address [00 44 00 55 00 66];erase 0xffec 0xffec4000;cp 0xc0 0xffec 1024;bootm 0xfe06 - 0xffec' run set_mac For the above command I want to replace the mac address with the ethaddr How do I do that. I tried $ethaddr but I get extra : characters. Setenv set_mac 'cp 0xffec 0x10 1024;fdt addr 0xc0 8192;fdt set /soc8272@f000/ethernet@24000 mac-address $ethaddr;erase 0xffec 0xffec4000;cp 0xc0 0xffec 1024;bootm 0xfe06 - 0xffec' Of course you do, ethaddr has a different syntax and contains : Anyway you should not have to set mac address manually like you do, u-boot will do it for you if you have configured u-boot correctly and have a proper dtb tree. Check the u-boot code and the many dts files in linux under arch/powerpc/boot/dts ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev
Re: Mac address in the DT
Dear smitha.va...@wipro.com, In message 40631e9a2581f14ba60888c87a76a1fe01d...@hyd-mkd-mbx4.wipro.com you wrote: Setenv set_mac 'cp 0xffec 0x10 1024;fdt addr 0xc0 8192;fdt set= /soc8272@f000/ethernet@24000 mac-address [00 44 00 55 00 66];erase 0x= ffec 0xffec4000;cp 0xc0 0xffec 1024;bootm 0xfe06 - 0xffec000= 0' run set_mac For the above command I want to replace the mac address with the ethaddr How do I do that. I tried $ethaddr but I get extra : characters. Why would you do that at all? U-Boot will run fdt_fixup_ethernet() for all (at least AFAICT) supported architectures, which will replace mac-address and local-mac-address for all ethernet? interfaces in the device tree for which a corresponding ethadd / eth?addr environment variable is set. No additional actions are needed. Best regards, Wolfgang Denk -- 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: w...@denx.de One day, said a dull voice from down below, I'm going to be back in form again and you're going to be very sorry you said that. For a very long time. I might even go so far as to make even more Time just for you to be sorry in. - Terry Pratchett, _Small Gods_ ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev