No, you do not have to be root to simply cross compile.BlackMesa wrote:4. Made these commands as root:
Logging in as root for ordinary tasks is simply bad practice.
Since you're building AT91Bootstrap for an atypical use (i.e. not for loading U-Boot), you need to pay attention to the configuration.BlackMesa wrote:make menuconfig - for advanced configurations. In configuration window changed:
- Image Loading Strategy to "Load 1 MB into start of SDRAM"
- Demo Application Image Storage Setup --> The External Ram Address to Load Demo-App Image, tried both 0x26F00000 (default) and 0x20000000 (as readed in this forum);
The DRAM start address used by the examples in the Software Package is 0x20000000, so that is what is needed for the `External Ram Address`.
The `Image Name` is no longer "u-boot.bin". Something like "softpack.bin" is appropriate.
It's not obvious (to me anyway) where you're going wrong.BlackMesa wrote:I used Putty to see board output in terminal when board starts (With all IAR and GNU examples I got the same output):
Code: Select all
HW Info: The total size: 0xff isn't correct EEPROM: Using default information EEPROM: Board sn: 0x1012420 revision: 0x680820 HDMI SiI9022: Enter D3 Cold mode NAND: ONFI not supported NAND: Manufacturer ID: 0x0 Chip ID: 0x0 NAND: Disable On-Die ECC Nand flash is not ONFI compliant, use 2-bit/512-byte ecc. PMECC: Not supported page size: 0 NAND: Failed to load image
The AT91Bootstrap that you built detects but is not properly recognizing the NAND flash chip, e.g. it is ONFI compliant and has nonzero ID codes.
Erasing the NAND wasn't the best idea.
You may be best off by "trying to get basic (getting-started and pwm) bare metal examples working" in smaller steps.
Boot from SDcard until you have validated your build environment.
Reconfigure AT91Bootstrap for Memory selection ---> Flash Memory Technology (NAND flash) ---> SD card;
change the Image Name to "softpack.bin".
Follow the instructions at SD Card Boot up to step 6. Instead of step 6, copy the pre-built getting-started-ddram.bin to the FAT partition, and rename it softpack.bin.
If that works, then progress to the smc_nandflash example in the Softpack.