Hello Childhood, I attached the sources. Just compile it on your development pc. What the tool does: The uboot header is the checksum. The checksum are the first 4 bytes. uboot_envcrc takes an u-boot environment (with a wrong crc) and updates the checksum. How to use it: get the u-boot environment of a working system. I do a cat /dev/mtdblock2 > /var/mtdblock2. Put it to your PC and change the ethernet MAC with a HEX editor. Then proceed as written before. Let me know if you have any problems. Cheers, Marco On Tue, 2009-08-25 at 02:27 +0800, Childhood Hwang wrote: > Hi hoefle: > > I would like to know if you could forward these tools to me, it is > quite helpful for me :-) > Thanks. > > Rgs. > Childhood. > > 2009/8/21 hoefle marco <marco.hoefle@xxxxxxxxxxxxx>: > > > >> Hi, > >> > From: hoefle marco [mailto:marco.hoefle@xxxxxxxxxxxxx]: > >> > When ethaddr and macaddr are set correctly the ethernet lite driver > >> > should use the "new" mac address, right? > >> Yes, the bootloader will pass your edited flash data to the kernel as command-line parameters. > >> You must tweek the CRC checksum of the flash data to avoid the CRC failure. Then you edited data will be accepted when the bootloader reads the flash sector. > >> CU, Falk > > > > Hi Falk, > > your hint helped. After getting the 5 "golden mtdblocks" from a working > > board I modify that on containing the u-boot environment with the new > > MAC. Afterward I do: > > > > uboot_envcrc ./mtdblock2 mtdblock_out > > (I used the CRC routine from u-boot for this tool, if anybody is > > interested I am happy to forward it) > > > > cat mtdblock0 mtdblock1 mtdblock_out mtdblock3 mtdblock4 mtdblock5 > > > spartan_flash_image > > > > The spartan_flash_image can now be programmed via EDK flashwriter > > utility directly to the board. > > > > Petalinux is using mtdblock3 as "config". I want to get rid of that > > partition but it would be good to know first what its for :-) > > Cheers, > > Marco > > > > > >> ___________________________ > >> microblaze-uclinux mailing list > >> microblaze-uclinux@xxxxxxxxxxxxxx > >> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux > >> Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/ > >> > >> > > > > ___________________________ > > microblaze-uclinux mailing list > > microblaze-uclinux@xxxxxxxxxxxxxx > > Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux > > Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/ > > > > > ___________________________ > microblaze-uclinux mailing list > microblaze-uclinux@xxxxxxxxxxxxxx > Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux > Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/ > >
Attachment:
uboot_envcrc.tar.gz
Description: application/compressed-tar