My aim is to boot the board with the U-Boot environment on SDCard.
I have the at91boostrap in NAND flash compiled to load U-Boot from SDCard in which there is also the uboot.env text file with my own environment.
The boot procedure is correctly executed, at91bootstrap loads U-Boot until I get this error:
Code: Select all
U-Boot 2016.01-00039-g077678e (Feb 04 2016 - 14:47:00 +0100) CPU: SAMA5D36 Crystal frequency: 12 MHz CPU clock : 528 MHz Master clock : 132 MHz DRAM: 256 MiB NAND: 256 MiB MMC: mci: 0 reading uboot.env *** Warning - bad CRC, using default environment
I tried to format the SDCard both FAT16 and FAT32 but nothing changed.
I tried both Atmel u-boot-at91 and official u-boot repositories compiling with MMC support but nothing changed.
I found out (only with the official U-Boot code) that uboot.env is correctly read only if I previously write it using the saveenv command.
Whenever I unplug the SDCard from the board and read/modify uboot.env with an editor (I use mousepad or nano on Xubuntu 14.04), it seems it got corrupted and U-Boot reports the above error.
It there a proper way to create and edit the uboot.env file?
PS: I already used successfully the U-Boot + environment file on SDCard with the Beagle Bone Board.
Thank you in advance