How to flash SAMA5D4 Xplained usb bare metal examples?

For SAMA5D2 Xplained, SAMA5D3 Xplained and SAMA5D4 Xplained

Moderator: nferre

blue_z
Location: USA
Posts: 1550
Joined: Thu Apr 19, 2007 10:15 pm

Re: How to flash SAMA5D4 Xplained usb bare metal examples?

Tue Oct 17, 2017 4:01 am

BlackMesa wrote:4. Made these commands as root:
No, you do not have to be root to simply cross compile.
Logging in as root for ordinary tasks is simply bad practice.

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);
Since you're building AT91Bootstrap for an atypical use (i.e. not for loading U-Boot), you need to pay attention to the configuration.
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.

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
It's not obvious (to me anyway) where you're going wrong.
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.

Regards
User avatar
BlackMesa
Location: Vilnius
Posts: 9
Joined: Thu Oct 05, 2017 2:02 pm

Re: How to flash SAMA5D4 Xplained usb bare metal examples?

Wed Oct 18, 2017 2:49 pm

Tried to come back with good news, butt....

I tried three versions:
  • Make bootstrap in NAND, which have to load softpack.bin from SD card;
  • Make bootstrap in NAND, which have to load softpack.bin from SD card, but without SD card;
  • Make bootstrap in SD card, which have to load softpack.bin from SD card.
All these versions gave the same output ( p.s. I didn't forgot to erase NAND, bootstrap compilation time was different :) ):

Code: Select all

RomBOOT


AT91Bootstrap 3.8.9 (Wed Oct 18 15:09:05 EEST 2017)

EEPROM: Loading AT24xx information ...
EEPROM: BoardName | [Revid] | VendorName
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
SD/MMC: Image: Read file softpack.bin to 0x20000000
*** FATFS: f_open, filename: [softpack.bin]: error
SD/MMC: Failed to load image
Softpack file in SD card is named exactly softpack.bin and it is only one file in card. Card is formatted to FAT32.

Any ideas?

Thanks, blue_z, your answer gave me a lot to think of :mrgreen:
blue_z
Location: USA
Posts: 1550
Joined: Thu Apr 19, 2007 10:15 pm

Re: How to flash SAMA5D4 Xplained usb bare metal examples?

Wed Oct 18, 2017 10:48 pm

BlackMesa wrote:I tried three versions:
No, I suggested that you reduce the number of unknowns in this problem, and all you did is provide useless experimentation.
BlackMesa wrote: All these versions gave the same output ( p.s. I didn't forgot to erase NAND, bootstrap compilation time was different :) ):
...
Softpack file in SD card is named exactly softpack.bin and it is only one file in card. Card is formatted to FAT32.
If the "three" experiments produced the exact "same" results, then I contend that you performed just one experiment three times.
Since you claim that softpack.bin is the only file on the SDcard, then that means you never tested the third experiment, "bootstrap in SD card".
In order to boot from the SDcard, the bootstrap program would have to exist on the SDcard as a file named boot.bin, which means that there would have to be two files on the SDcard (which you have already denied).

The single boot log seems to indicate that the board is always booting from NAND, and then fails to find the target file.
Obviously you did not follow the instructions from the web page on making a bootable SDcard.

Make a choice: methodically solve the problem (my way), or tell me to go away because you want to solve this your way.

Regards
User avatar
BlackMesa
Location: Vilnius
Posts: 9
Joined: Thu Oct 05, 2017 2:02 pm

Re: How to flash SAMA5D4 Xplained usb bare metal examples?

Fri Oct 20, 2017 3:16 pm

Sorry for bad explanation on what I was doing. Actually I made a mistake when said that there was only one file in SD card. In third experiment there was two files (BOOT.BIN and softpack.bin). And I tested this experiment by removing SD card. Then only one line shows up in terminal "RomBOOT", which means that BOOT.BIN was read from SD card. On first two experiments (when bootstrap was written in NAND) bootstrap was loaded even without SD card.

I tried to do what you said again:

Made bootable SD card in steps from 1 to 5 as written in linux4sam/bin/view/Linux4SAM/SDCardBootNotice . Tried two experiments just to be sure:
  • With 2 partitions (partition1: FAT32, partition2: EXT2)
  • With one partition(only partition1: FAT32)
Moved to at91bootstrap folder, executed these commands:
make mrproper
make sama5d4_xplainedsd_uboot_secure_defconfig
make menuconfig and there changed some values:
  • "Flash Memory Technology" ---> "SD card" (this was already set to SD card, so I didn't touch it)
  • "Image Name" ---> "softpack.bin"
  • Ext RAM address to Load Image ---> 0x20000000
  • Image Loading Strategy ---> "Load 1 MB into start of SDRAM"
export CROSS_COMPILE=arm-linux-gnueabi-
make

Now I have file sama5d4_xplained-sdcardboot-softpack-3.8.9.bin and execute command:
cp binaries/sama5d4_xplained-sdcardboot-softpack-3.8.9.bin /mnt/fat/BOOT.BIN
Then "cd" to folder where is my getting-started-ddram.bin.
cp getting-started-ddram.bin /mnt/fat/softpack.bin
Looked at SD Card directory (files BOOT.BIN and softpack.bin are there)
umount /dev/mmcblk0p1

Powered board with SD card and got the output in putty:

Code: Select all

RomBOOT


AT91Bootstrap 3.8.9 (Fri Oct 20 15:26:49 EEST 2017)

EEPROM: Loading AT24xx information ...
EEPROM: BoardName | [Revid] | VendorName
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
SD/MMC: Image: Read file softpack.bin to 0x20000000
*** FATFS: f_open, filename: [softpack.bin]: error
SD/MMC: Failed to load image
If I remove SD card and reset the board, got output:

Code: Select all

RomBOOT
Looks like SD card is bootable, and BOOT.BIN was found. Why bootstrap didn't find softpack.bin? :roll:
Make a choice: methodically solve the problem (my way), or tell me to go away because you want to solve this your way.
Sorry, I thought that my experiments will be helpful. Your help would be appreciated :)
blue_z
Location: USA
Posts: 1550
Joined: Thu Apr 19, 2007 10:15 pm

Re: How to flash SAMA5D4 Xplained usb bare metal examples?

Sat Oct 21, 2017 1:08 am

Test the integrity of the FAT partition with `fsck`. The dirty bit is probably set.
Also perform a sanity check of the directory contents with `ls -l`.

Regards
User avatar
BlackMesa
Location: Vilnius
Posts: 9
Joined: Thu Oct 05, 2017 2:02 pm

Re: How to flash SAMA5D4 Xplained usb bare metal examples?

Mon Oct 23, 2017 11:08 am

Thanks for your reply. It was a nice try, I didn't know anything about dirty bit since now, so I'm happy to learn something new :)
But looks like the problem is hiding somewhere else:

Code: Select all

lukas@BlackMesa:~/Documents/at91bootstrap-master$ fsck /dev/mmcblk0p1 
bash: fsck: command not found
lukas@BlackMesa:~/Documents/at91bootstrap-master$ sudo fsck /dev/mmcblk0p1 
fsck from util-linux 2.29.2
fsck.fat 4.1 (2017-01-24)
/dev/mmcblk0p1: 2 files, 16/1967864 clusters
lukas@BlackMesa:~/Documents/at91bootstrap-master$ mount /dev/mmcblk0p1 /mnt/fat/
mount: only root can do that
lukas@BlackMesa:~/Documents/at91bootstrap-master$ sudo mount /dev/mmcblk0p1 /mnt/fat/
lukas@BlackMesa:~/Documents/at91bootstrap-master$ cd /mnt/fat/
lukas@BlackMesa:/mnt/fat$ ls -l
total 60
-rwxr-xr-x 1 root root 24572 Oct 20 16:48 boot.bin
-rwxr-xr-x 1 root root 32824 Oct 19 15:55 softpack.bin
lukas@BlackMesa:/mnt/fat$ ls -la
total 68
drwxr-xr-x 2 root root  4096 Jan  1  1970 .
drwxr-xr-x 4 root root  4096 Oct 17 12:10 ..
-rwxr-xr-x 1 root root 24572 Oct 20 16:48 boot.bin
-rwxr-xr-x 1 root root 32824 Oct 19 15:55 softpack.bin
lukas@BlackMesa:/mnt/fat$ 
I looked at board's datasheet:
http://ww1.microchip.com/downloads/en/D ... -Guide.pdf
And found something on page 18:
4.2.7.2 HSMCI Card Connector
A standard MMC/SD card (push and click type) connector, connected to MCI1, is mounted on the top side of the board. It features a push-lock / push-eject mechanism and a card detection switch.
A micro SD card (push and click type) connector, connected to MCI0, is mountable as an option on the bottom side of the board.
I always thought that top side is the side on which the MPU is soldered :shock: , but that doesn't matter...
In my bootstrap Memory selection ---> SD Card Configuration ---> MultiMedia Card Interface Select() was set to "On Atmel MCI 0" , which means micro SD card connector. So I changed the value to "On Atmel MCI 1" (MMC/SD Card connector as written in datasheet).
But with this setting I can't make binaries - error appears:

Code: Select all

lukas@BlackMesa:~/Documents/at91bootstrap-master$ sudo make mrproper
[sudo] password for lukas: 
  CLEAN        obj and misc files!
  CLEAN        configuration files!
  CLEAN        binary files!
lukas@BlackMesa:~/Documents/at91bootstrap-master$ sudo make sama5d4_xplainedsd_uboot_secure_defconfig
#
# configuration written to .config
#
#
# make dependencies written to .auto.deps
# See top of this file before playing with this auto-preprequisites!
#
lukas@BlackMesa:~/Documents/at91bootstrap-master$ sudo make menuconfig
#
# configuration written to .config
#


*** End of at91bootstrap configuration.
*** Execute 'make' to build at91bootstrap or try 'make help'.

#
# make dependencies written to .auto.deps
# See top of this file before playing with this auto-preprequisites!
#
lukas@BlackMesa:~/Documents/at91bootstrap-master$ sudo make
error: Environment variable CROSS_COMPILE must be defined!
Makefile:286: recipe for target 'CheckCrossCompile' failed
make: *** [CheckCrossCompile] Error 2
lukas@BlackMesa:~/Documents/at91bootstrap-master$ sudo export CROSS_COMPILE=arm-linux-gnueabi-
sudo: export: command not found
lukas@BlackMesa:~/Documents/at91bootstrap-master$ export CROSS_COMPILE=arm-linux-gnueabi-
lukas@BlackMesa:~/Documents/at91bootstrap-master$ sudo make
error: Environment variable CROSS_COMPILE must be defined!
Makefile:286: recipe for target 'CheckCrossCompile' failed
make: *** [CheckCrossCompile] Error 2
lukas@BlackMesa:~/Documents/at91bootstrap-master$ make
CC
========
arm-linux-gnueabi-gcc 6.3.0

as FLAGS
========
-g -Os -Wall -I/home/lukas/Documents/at91bootstrap-master/board/sama5d4_xplained -Iinclude -Icontrib/include -DJUMP_ADDR=0x20000000 -DTOP_OF_MEMORY=0x210000 -DMACH_TYPE=9999 -Dsama5d4_xplained -DMACH_TYPE=9999 -DTOP_OF_MEMORY=0x210000 -DCRYSTAL_12_000MHZ -DSAMA5D4 -mcpu=cortex-a5 -mtune=cortex-a5 -DCONFIG_CPU_V7 -DCONFIG_SAMA5D4_XPLAINED

gcc FLAGS
=========
-nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabi/6/include -ffunction-sections -g -Os -Wall -mno-unaligned-access -fno-stack-protector -fno-common -I/home/lukas/Documents/at91bootstrap-master/board/sama5d4_xplained -Icontrib/include -Iinclude -Ifs/include -I/home/lukas/Documents/at91bootstrap-master/config/at91bootstrap-config -DAT91BOOTSTRAP_VERSION="3.8.9" -DCOMPILE_TIME="Mon Oct 23 11:55:07 EEST 2017" -DIMG_ADDRESS= -DIMG_SIZE= -DJUMP_ADDR=0x20000000 -DOF_OFFSET= -DOF_ADDRESS= -DMEM_BANK= -DMEM_SIZE= -DIMAGE_NAME="softpack.bin" -DCMDLINE="" -DCMDLINE_FILE="" -DTOP_OF_MEMORY=0x210000 -DMACH_TYPE=9999 -DCONFIG_DEBUG -DBANNER="

AT91Bootstrap " AT91BOOTSTRAP_VERSION " (" COMPILE_TIME ")

" -DCONFIG_HW_DISPLAY_BANNER -DCONFIG_HW_INIT -Dsama5d4_xplained -DMACH_TYPE=9999 -DTOP_OF_MEMORY=0x210000 -DCRYSTAL_12_000MHZ -DSAMA5D4 -mcpu=cortex-a5 -mtune=cortex-a5 -DCONFIG_SCLK -DCONFIG_CRYSTAL_12_000MHZ -DCONFIG_CPU_CLK_600MHZ -DCONFIG_BUS_SPEED_200MHZ -DCPU_HAS_PIO3 -DCONFIG_LOAD_EEPROM -DCONFIG_CPU_V7 -DCONFIG_MATRIX -DCONFIG_REDIRECT_ALL_INTS_AIC -DCPU_HAS_H32MXDIV -DCONFIG_SAMA5D4_XPLAINED -DCONFIG_DDRC -DCONFIG_DDR2 -DCONFIG_RAM_512MB -DCONFIG_SDCARD -DBOOTSTRAP_DEBUG_LEVEL=DEBUG_INFO -DCONFIG_DISABLE_WATCHDOG -DCONFIG_TWI -DCONFIG_TWI0 -DCONFIG_TWI1 -DCONFIG_TWI2 -DCONFIG_TWI3 -DCONFIG_ACT8865 -DCONFIG_ACT8865_SET_VOLTAGE -DCONFIG_DISABLE_ACT8865_I2C -DCONFIG_PM -DCONFIG_MACB -DCONFIG_MAC0_PHY -DCONFIG_HDMI -DCONFIG_LOAD_HW_INFO -DCONFIG_PM_PMIC -DCONFIG_AUTOCONFIG_TWI_BUS -DCPU_HAS_HSMCI0 -DCONFIG_AT91_MCI -DCONFIG_AT91_MCI1

ld FLAGS
========
-nostartfiles -Map=/home/lukas/Documents/at91bootstrap-master/binaries/sama5d4_xplained-sdcardboot-softpack-3.8.9.map --cref -static -T elf32-littlearm.lds --gc-sections -Ttext 0x200000

  AS        /home/lukas/Documents/at91bootstrap-master/crt0_gnu.S
  CC        /home/lukas/Documents/at91bootstrap-master/main.c
  CC        /home/lukas/Documents/at91bootstrap-master/board/sama5d4_xplained/sama5d4_xplained.c
  CC        /home/lukas/Documents/at91bootstrap-master/lib/string.c
  CC        /home/lukas/Documents/at91bootstrap-master/lib/eabi_utils.c
  CC        /home/lukas/Documents/at91bootstrap-master/lib/div.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/debug.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_slowclk.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/common.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_pio.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/pmc.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_pit.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_wdt.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_usart.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_rstc.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/lp310_l2cc.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/ddramc.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_mci.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/mci_media.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/sdcard.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at24xx.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/board_hw_info.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/matrix.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/pm.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_twi.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/act8865.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/macb.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/hdmi_SiI9022.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_aicredir.c
  CC        /home/lukas/Documents/at91bootstrap-master/fs/src/ff.c
  CC        /home/lukas/Documents/at91bootstrap-master/fs/src/diskio.c
  CC        /home/lukas/Documents/at91bootstrap-master/fs/src/option/ccsbcs.c
mkdir -p /home/lukas/Documents/at91bootstrap-master/binaries
  LD        sama5d4_xplained-sdcardboot-softpack-3.8.9.elf
/home/lukas/Documents/at91bootstrap-master/driver/sdcard.o: In function `load_sdcard':
/home/lukas/Documents/at91bootstrap-master/driver/sdcard.c:126: undefined reference to `at91_mci1_hw_init'
Makefile:308: recipe for target '/home/lukas/Documents/at91bootstrap-master/binaries/sama5d4_xplained-sdcardboot-softpack-3.8.9.bin' failed
make: *** [/home/lukas/Documents/at91bootstrap-master/binaries/sama5d4_xplained-sdcardboot-softpack-3.8.9.bin] Error 1
lukas@BlackMesa:~/Documents/at91bootstrap-master$ 
Tried compile as Administrator too, obviously without any success :D
I think I should find more info about this error line: /home/lukas/Documents/at91bootstrap-master/driver/sdcard.c:126: undefined reference to `at91_mci1_hw_init'
Am I right that I have to use MCI1 ? Maybe someone who made bootstrap work knows the exact value? :)
blue_z
Location: USA
Posts: 1550
Joined: Thu Apr 19, 2007 10:15 pm

Re: How to flash SAMA5D4 Xplained usb bare metal examples?

Mon Oct 23, 2017 8:38 pm

BlackMesa wrote:It was a nice try, I didn't know anything about dirty bit since now, so I'm happy to learn something new :)
The sole reason I mention the fs dirty bit is because that was the only way I have been able to replicate your problem. I'm giving you credit that you haven't messed up the SDcard in some other way.
Maybe you could try using a USB adapter for SDcard (like I do), which exposes a /dev/sdX device node.

BlackMesa wrote:But with this setting I can't make binaries - error appears:

Code: Select all

lukas@BlackMesa:~/Documents/at91bootstrap-master$ sudo make mrproper
...  
I already mentioned to you that building as superuser is bad practice.
What is misconfigured in your build environment (which you haven't described) that compels this bad practice?

BlackMesa wrote:Am I right that I have to use MCI1 ? Maybe someone who made bootstrap work knows the exact value? :)
No, you are not right. AT91Bootstrap should be configured for the default "MCI0", but use the full-size SDcard socket.
If you look at the source code, logical "MCI0" accesses hardware MCI1 in board/sama5d4_xplained/sama5d4_xplained.c:at91_mci0_hw_init().
And I do have AT91Bootstrap loading a softpack.bin from SDcard on a SAMA5D4 XULT.

Regards
User avatar
BlackMesa
Location: Vilnius
Posts: 9
Joined: Thu Oct 05, 2017 2:02 pm

Re: How to flash SAMA5D4 Xplained usb bare metal examples?

Tue Oct 24, 2017 4:23 pm

I tried my best to make commands in terminal look readable :)

Code: Select all

lukas@BlackMesa:/$ umount /dev/sde1
lukas@BlackMesa:/$ umount /dev/sde1
umount: /dev/sde1: not mounted
lukas@BlackMesa:/$ fsck /dev/sde1
bash: fsck: command not found
lukas@BlackMesa:/$ sudo fsck /dev/sde1
[sudo] password for lukas: 
fsck from util-linux 2.29.2
fsck.fat 4.1 (2017-01-24)
/dev/sde1: 2 files, 118/1967864 clusters
lukas@BlackMesa:/$ sudo fsck /dev/sde
fsck from util-linux 2.29.2
e2fsck 1.43.4 (31-Jan-2017)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sde

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

Found a dos partition table in /dev/sde
lukas@BlackMesa:/$ sudo dd if=/dev/zero of=/dev/sde bs=10M count=1
1+0 records in
1+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 1.1756 s, 8.9 MB/s
lukas@BlackMesa:/$ sudo fdisk /dev/sde

Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xcfe48578.

Command (m for help): p
Disk /dev/sde: 7.5 GiB, 8077180928 bytes, 15775744 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xcfe48578

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-15775743, default 2048): 
Last sector, +sectors or +size{K,M,G,T,P} (2048-15775743, default 15775743): +64M

Created a new partition 1 of type 'Linux' and of size 64 MiB.

Command (m for help): t
Selected partition 1
Partition type (type L to list all types): 6
Changed type of partition 'Linux' to 'FAT16'.

Command (m for help): p
Disk /dev/sde: 7.5 GiB, 8077180928 bytes, 15775744 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xcfe48578

Device     Boot Start    End Sectors Size Id Type
/dev/sde1        2048 133119  131072  64M  6 FAT16

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

lukas@BlackMesa:/$ sudo mkfs.msdos /dev/sde1
mkfs.fat 4.1 (2017-01-24)
lukas@BlackMesa:/$ sudo mount -t vfat /dev/sde1 /mnt/fat
lukas@BlackMesa:/$ cd ~/Documents/at91bootstrap-master/
lukas@BlackMesa:~/Documents/at91bootstrap-master$ ls -l
total 128
drwxr-xr-x  2 lukas lukas  4096 Oct 24 14:09 binaries
drwxrwxr-x 20 lukas lukas  4096 Oct  3 11:15 board
drwxrwxr-x  4 lukas lukas  4096 Oct 24 14:09 config
-rw-rw-r--  1 lukas lukas 10447 Oct  3 11:15 Config.in
-rw-rw-r--  1 lukas lukas   884 Oct  3 11:15 Config.in.app-image
-rw-rw-r--  1 lukas lukas  3456 Oct  3 11:15 Config.in.kernel
-rw-rw-r--  1 lukas lukas  2589 Oct  3 11:15 Config.in.secure
-rw-rw-r--  1 lukas lukas   968 Oct  3 11:15 Config.in.u-boot
drwxrwxr-x  5 lukas lukas  4096 Oct  3 11:15 contrib
-rw-r--r--  1 lukas lukas  2864 Oct 24 14:09 crt0_gnu.o
-rw-rw-r--  1 lukas lukas  5540 Oct  3 11:15 crt0_gnu.S
drwxrwxr-x  4 lukas lukas  4096 Oct 24 14:09 driver
-rw-rw-r--  1 lukas lukas   848 Oct  3 11:15 elf32-littlearm.lds
-rw-rw-r--  1 lukas lukas  1143 Oct  3 11:15 elf32-littlearm-tz.lds
drwxrwxr-x  4 lukas lukas  4096 Oct  3 11:15 fs
drwxrwxr-x  2 lukas lukas  4096 Oct  3 11:15 host-utilities
drwxrwxr-x  4 lukas lukas  4096 Oct  3 11:15 include
-rw-rw-r--  1 lukas lukas   150 Oct  3 11:15 KNOWN_ISSUES
drwxrwxr-x  2 lukas lukas  4096 Oct 24 14:09 lib
-rw-rw-r--  1 lukas lukas  3151 Oct  3 11:15 main.c
-rw-r--r--  1 lukas lukas  4872 Oct 24 14:09 main.o
-rw-rw-r--  1 lukas lukas 11890 Oct  3 11:15 Makefile
-rw-rw-r--  1 lukas lukas  5885 Oct  3 11:15 README.txt
drwxrwxr-x  2 lukas lukas  4096 Oct  3 11:15 scripts
-rw-rw-r--  1 lukas lukas  1050 Oct  3 11:15 toplevel_cpp.mk
lukas@BlackMesa:~/Documents/at91bootstrap-master$ make mrproper
  CLEAN        obj and misc files!
  CLEAN        configuration files!
  CLEAN        binary files!
lukas@BlackMesa:~/Documents/at91bootstrap-master$ make sama5d4_xplainedsd_uboot_secure_defconfig
#
# configuration written to .config
#
#
# make dependencies written to .auto.deps
# See top of this file before playing with this auto-preprequisites!
#
lukas@BlackMesa:~/Documents/at91bootstrap-master$ make menuconfig
#
# configuration written to .config
#


*** End of at91bootstrap configuration.
*** Execute 'make' to build at91bootstrap or try 'make help'.

#
# make dependencies written to .auto.deps
# See top of this file before playing with this auto-preprequisites!
#
lukas@BlackMesa:~/Documents/at91bootstrap-master$ printenv CROSS_COMPILE
arm-linux-gnueabi-
lukas@BlackMesa:~/Documents/at91bootstrap-master$ make
CC
========
arm-linux-gnueabi-gcc 6.3.0

as FLAGS
========
-g -Os -Wall -I/home/lukas/Documents/at91bootstrap-master/board/sama5d4_xplained -Iinclude -Icontrib/include -DJUMP_ADDR=0x20000000 -DTOP_OF_MEMORY=0x210000 -DMACH_TYPE=9999 -Dsama5d4_xplained -DMACH_TYPE=9999 -DTOP_OF_MEMORY=0x210000 -DCRYSTAL_12_000MHZ -DSAMA5D4 -mcpu=cortex-a5 -mtune=cortex-a5 -DCONFIG_CPU_V7 -DCONFIG_SAMA5D4_XPLAINED

gcc FLAGS
=========
-nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabi/6/include -ffunction-sections -g -Os -Wall -mno-unaligned-access -fno-stack-protector -fno-common -I/home/lukas/Documents/at91bootstrap-master/board/sama5d4_xplained -Icontrib/include -Iinclude -Ifs/include -I/home/lukas/Documents/at91bootstrap-master/config/at91bootstrap-config -DAT91BOOTSTRAP_VERSION="3.8.9" -DCOMPILE_TIME="Tue Oct 24 16:31:08 EEST 2017" -DIMG_ADDRESS= -DIMG_SIZE= -DJUMP_ADDR=0x20000000 -DOF_OFFSET= -DOF_ADDRESS= -DMEM_BANK= -DMEM_SIZE= -DIMAGE_NAME="softpack.bin" -DCMDLINE="" -DCMDLINE_FILE="" -DTOP_OF_MEMORY=0x210000 -DMACH_TYPE=9999 -DCONFIG_DEBUG -DBANNER="

AT91Bootstrap " AT91BOOTSTRAP_VERSION " (" COMPILE_TIME ")

" -DCONFIG_HW_DISPLAY_BANNER -DCONFIG_HW_INIT -Dsama5d4_xplained -DMACH_TYPE=9999 -DTOP_OF_MEMORY=0x210000 -DCRYSTAL_12_000MHZ -DSAMA5D4 -mcpu=cortex-a5 -mtune=cortex-a5 -DCONFIG_SCLK -DCONFIG_CRYSTAL_12_000MHZ -DCONFIG_CPU_CLK_600MHZ -DCONFIG_BUS_SPEED_200MHZ -DCPU_HAS_PIO3 -DCONFIG_LOAD_EEPROM -DCONFIG_CPU_V7 -DCONFIG_MATRIX -DCONFIG_REDIRECT_ALL_INTS_AIC -DCPU_HAS_H32MXDIV -DCONFIG_SAMA5D4_XPLAINED -DCONFIG_DDRC -DCONFIG_DDR2 -DCONFIG_RAM_512MB -DCONFIG_SDCARD -DBOOTSTRAP_DEBUG_LEVEL=DEBUG_INFO -DCONFIG_DISABLE_WATCHDOG -DCONFIG_TWI -DCONFIG_TWI0 -DCONFIG_TWI1 -DCONFIG_TWI2 -DCONFIG_TWI3 -DCONFIG_ACT8865 -DCONFIG_ACT8865_SET_VOLTAGE -DCONFIG_DISABLE_ACT8865_I2C -DCONFIG_PM -DCONFIG_MACB -DCONFIG_MAC0_PHY -DCONFIG_HDMI -DCONFIG_LOAD_HW_INFO -DCONFIG_PM_PMIC -DCONFIG_AUTOCONFIG_TWI_BUS -DCPU_HAS_HSMCI0 -DCONFIG_AT91_MCI -DCONFIG_AT91_MCI0

ld FLAGS
========
-nostartfiles -Map=/home/lukas/Documents/at91bootstrap-master/binaries/sama5d4_xplained-sdcardboot-softpack-3.8.9.map --cref -static -T elf32-littlearm.lds --gc-sections -Ttext 0x200000

  AS        /home/lukas/Documents/at91bootstrap-master/crt0_gnu.S
  CC        /home/lukas/Documents/at91bootstrap-master/main.c
  CC        /home/lukas/Documents/at91bootstrap-master/board/sama5d4_xplained/sama5d4_xplained.c
  CC        /home/lukas/Documents/at91bootstrap-master/lib/string.c
  CC        /home/lukas/Documents/at91bootstrap-master/lib/eabi_utils.c
  CC        /home/lukas/Documents/at91bootstrap-master/lib/div.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/debug.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_slowclk.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/common.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_pio.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/pmc.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_pit.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_wdt.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_usart.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_rstc.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/lp310_l2cc.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/ddramc.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_mci.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/mci_media.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/sdcard.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at24xx.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/board_hw_info.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/matrix.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/pm.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_twi.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/act8865.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/macb.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/hdmi_SiI9022.c
  CC        /home/lukas/Documents/at91bootstrap-master/driver/at91_aicredir.c
  CC        /home/lukas/Documents/at91bootstrap-master/fs/src/ff.c
  CC        /home/lukas/Documents/at91bootstrap-master/fs/src/diskio.c
  CC        /home/lukas/Documents/at91bootstrap-master/fs/src/option/ccsbcs.c
mkdir -p /home/lukas/Documents/at91bootstrap-master/binaries
  LD        sama5d4_xplained-sdcardboot-softpack-3.8.9.elf
Size of sama5d4_xplained-sdcardboot-softpack-3.8.9.bin is 25116 bytes
[Succeeded] It's OK to fit into SRAM area
[Attention] The space left for stack is 40420 bytes
lukas@BlackMesa:~/Documents/at91bootstrap-master$ ls -l binaries/
total 316
lrwxrwxrwx 1 lukas lukas     46 Oct 24 16:31 at91bootstrap.bin -> sama5d4_xplained-sdcardboot-softpack-3.8.9.bin
lrwxrwxrwx 1 lukas lukas     46 Oct 24 16:31 boot.bin -> sama5d4_xplained-sdcardboot-softpack-3.8.9.bin
-rwxr-xr-x 1 lukas lukas  24572 Oct 24 16:31 sama5d4_xplained-sdcardboot-softpack-3.8.9.bin
-rwxr-xr-x 1 lukas lukas 177948 Oct 24 16:31 sama5d4_xplained-sdcardboot-softpack-3.8.9.elf
-rw-r--r-- 1 lukas lukas 117010 Oct 24 16:31 sama5d4_xplained-sdcardboot-softpack-3.8.9.map
lukas@BlackMesa:~/Documents/at91bootstrap-master$ cp binaries/sama5d4_xplained-sdcardboot-softpack-3.8.9.bin /mnt/fat/BOOT.BIN
cp: cannot create regular file '/mnt/fat/BOOT.BIN': Permission denied
lukas@BlackMesa:~/Documents/at91bootstrap-master$ sudo cp binaries/sama5d4_xplained-sdcardboot-softpack-3.8.9.bin /mnt/fat/BOOT.BIN
lukas@BlackMesa:~/Documents/at91bootstrap-master$ ls -l /mnt/fat/
total 24
-rwxr-xr-x 1 root root 24572 Oct 24 16:32 BOOT.BIN
lukas@BlackMesa:~/Documents/at91bootstrap-master$ cd ../Embedded_Projects/GetStart/
lukas@BlackMesa:~/Documents/Embedded_Projects/GetStart$ ls -l
total 64
-rw-r--r-- 1 lukas lukas 32824 Apr 17  2015 ddram.bin
-rw-r--r-- 1 lukas lukas 26712 Oct  5 12:51 getting-started-ddram.bin
lukas@BlackMesa:~/Documents/Embedded_Projects/GetStart$ cp getting-started-ddram.bin /mnt/fat/softpack.bin
cp: cannot create regular file '/mnt/fat/softpack.bin': Permission denied
lukas@BlackMesa:~/Documents/Embedded_Projects/GetStart$ sudo cp getting-started-ddram.bin /mnt/fat/softpack.bin
lukas@BlackMesa:~/Documents/Embedded_Projects/GetStart$ ls -l /mnt/fat/
total 52
-rwxr-xr-x 1 root root 24572 Oct 24 16:32 BOOT.BIN
-rwxr-xr-x 1 root root 26712 Oct 24 16:35 softpack.bin
lukas@BlackMesa:~/Documents/Embedded_Projects/GetStart$ umount /dev/sde1
umount: /mnt/fat: umount failed: Operation not permitted
lukas@BlackMesa:~/Documents/Embedded_Projects/GetStart$ sudo umount /dev/sde1
lukas@BlackMesa:~/Documents/Embedded_Projects/GetStart$ sudo umount /dev/sde1
umount: /dev/sde1: not mounted
lukas@BlackMesa:~/Documents/Embedded_Projects/GetStart$ 
I made these steps:
  • Checked SD card with fsck
  • Formatted SD card to fat16 (I don't know, maybe fat32 would be better)
  • Made fat16 partition only 64 MB in size. I thing it's enough
  • Build at91bootstrap.
  • Copied BOOT.BIN and softpack.bin files to SD card
I already mentioned to you that building as superuser is bad practice.
What is misconfigured in your build environment (which you haven't described) that compels this bad practice?
My fault, I didn't know that user with sudo is superuser, I thought that only root is superuser. And another reason was that previously I build bootstrap as superuser, so as user I didn't have permissions to clean (mrproper) that files, so I used sudo. In order to not leave any mistakes I downloaded a fresh copy from GitHub and unziped it.
If you look at the source code, logical "MCI0" accesses hardware MCI1 in board/sama5d4_xplained/sama5d4_xplained.c:at91_mci0_hw_init().
Yeah, now I see. It would take much time to find this by myself. Thanks again, blue_z

Board's output is still the same:

Code: Select all

RomBOOT


AT91Bootstrap 3.8.9 (Tue Oct 24 16:31:08 EEST 2017)

EEPROM: Loading AT24xx information ...
EEPROM: BoardName | [Revid] | VendorName
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
SD/MMC: Image: Read file softpack.bin to 0x20000000
*** FATFS: f_open, filename: [softpack.bin]: error
SD/MMC: Failed to load image
Also I tried to load u-boot files to look if bootstrap can load u-boot. Output was very similar:

Code: Select all

RomBOOT


AT91Bootstrap 3.8.9 (Tue Oct 24 14:09:56 EEST 2017)

EEPROM: Loading AT24xx information ...
EEPROM: BoardName | [Revid] | VendorName
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
SD/MMC: Image: Read file u-boot.bin to 0x26f00000
*** FATFS: f_open, filename: [u-boot.bin]: error
SD/MMC: Failed to load image
This time I didn't use make menuconfig command in at91bootstrap building.
U-boot compiles without errors. U-boot making process shown below:

Code: Select all

lukas@BlackMesa:~/Documents/Embedded_Projects/u-boot-at91-master$ make mrproper
  CLEAN   dts/../arch/arm/dts
  CLEAN   dts
  CLEAN   examples/standalone
  CLEAN   tools
  CLEAN   tools/lib tools/common
  CLEAN   spl/arch spl/board spl/cmd spl/common spl/disk spl/drivers spl/dts spl/fs spl/lib spl/u-boot.cfg spl/u-boot-spl spl/u-boot-spl.bin spl/u-boot-spl.dtb spl/u-boot-spl-dtb.bin spl/u-boot-spl.lds spl/u-boot-spl.map spl/u-boot-spl-nodtb.bin
  CLEAN   boot.bin u-boot-nodtb.bin u-boot.lds u-boot.dtb u-boot.cfg.configs u-boot.map u-boot.bin u-boot.cfg u-boot.srec u-boot-dtb.bin u-boot u-boot.img u-boot.sym u-boot-dtb.img System.map
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   include/config include/generated spl
  CLEAN   .config include/autoconf.mk include/autoconf.mk.dep include/config.h
lukas@BlackMesa:~/Documents/Embedded_Projects/u-boot-at91-master$ make sama5d4_xplained_mmc_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
lukas@BlackMesa:~/Documents/Embedded_Projects/u-boot-at91-master$ printenv CROSS_COMPILE
arm-linux-gnueabi-
lukas@BlackMesa:~/Documents/Embedded_Projects/u-boot-at91-master$ make
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  GEN     spl/include/autoconf.mk
  CHK     include/config/uboot.release
  UPD     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  UPD     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CC      lib/asm-offsets.s
  CHK     include/generated/generic-asm-offsets.h
  UPD     include/generated/generic-asm-offsets.h
  CC      arch/arm/lib/asm-offsets.s
  CHK     include/generated/asm-offsets.h
  UPD     include/generated/asm-offsets.h
  HOSTCC  tools/gen_eth_addr
  HOSTCC  tools/gen_ethaddr_crc.o
  WRAP    tools/lib/crc8.c
  HOSTCC  tools/lib/crc8.o
  HOSTLD  tools/gen_ethaddr_crc
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/os_support.o
  WRAP    tools/lib/crc32.c
  HOSTCC  tools/lib/crc32.o
  HOSTLD  tools/mkenvimage
  HOSTCC  tools/aisimage.o
  HOSTCC  tools/atmelimage.o
  WRAP    tools/common/bootm.c
  HOSTCC  tools/common/bootm.o
  HOSTCC  tools/default_image.o
  WRAP    tools/lib/fdtdec_common.c
  HOSTCC  tools/lib/fdtdec_common.o
  WRAP    tools/lib/fdtdec.c
  HOSTCC  tools/lib/fdtdec.o
  HOSTCC  tools/fit_common.o
  HOSTCC  tools/fit_image.o
  WRAP    tools/common/image-fit.c
  HOSTCC  tools/common/image-fit.o
  HOSTCC  tools/image-host.o
  WRAP    tools/common/image.c
  HOSTCC  tools/common/image.o
  HOSTCC  tools/imagetool.o
  HOSTCC  tools/imximage.o
  HOSTCC  tools/kwbimage.o
  WRAP    tools/lib/md5.c
  HOSTCC  tools/lib/md5.o
  HOSTCC  tools/lpc32xximage.o
  HOSTCC  tools/mxsimage.o
  HOSTCC  tools/omapimage.o
  HOSTCC  tools/pblimage.o
  HOSTCC  tools/pbl_crc32.o
  HOSTCC  tools/vybridimage.o
  WRAP    tools/lib/rc4.c
  HOSTCC  tools/lib/rc4.o
  HOSTCC  tools/rkcommon.o
  HOSTCC  tools/rkimage.o
  HOSTCC  tools/rksd.o
  HOSTCC  tools/rkspi.o
  HOSTCC  tools/socfpgaimage.o
  WRAP    tools/lib/sha1.c
  HOSTCC  tools/lib/sha1.o
  WRAP    tools/lib/sha256.c
  HOSTCC  tools/lib/sha256.o
  WRAP    tools/common/hash.c
  HOSTCC  tools/common/hash.o
  HOSTCC  tools/ublimage.o
  HOSTCC  tools/zynqimage.o
  HOSTCC  tools/zynqmpimage.o
  WRAP    tools/lib/libfdt/fdt.c
  HOSTCC  tools/lib/libfdt/fdt.o
  WRAP    tools/lib/libfdt/fdt_ro.c
  HOSTCC  tools/lib/libfdt/fdt_ro.o
  WRAP    tools/lib/libfdt/fdt_rw.c
  HOSTCC  tools/lib/libfdt/fdt_rw.o
  WRAP    tools/lib/libfdt/fdt_strerror.c
  HOSTCC  tools/lib/libfdt/fdt_strerror.o
  WRAP    tools/lib/libfdt/fdt_wip.c
  HOSTCC  tools/lib/libfdt/fdt_wip.o
  WRAP    tools/lib/libfdt/fdt_region.c
  HOSTCC  tools/lib/libfdt/fdt_region.o
  WRAP    tools/lib/libfdt/fdt_sw.c
  HOSTCC  tools/lib/libfdt/fdt_sw.o
  HOSTCC  tools/gpimage.o
  HOSTCC  tools/gpimage-common.o
  HOSTCC  tools/dumpimage.o
  HOSTLD  tools/dumpimage
  HOSTCC  tools/mkimage.o
  HOSTLD  tools/mkimage
  HOSTCC  tools/proftool
  HOSTCC  tools/fdtgrep.o
  HOSTLD  tools/fdtgrep
  LD      arch/arm/cpu/built-in.o
  CC      arch/arm/cpu/armv7/cache_v7.o
  AS      arch/arm/cpu/armv7/cache_v7_asm.o
  CC      arch/arm/cpu/armv7/cpu.o
  CC      arch/arm/cpu/armv7/cp15.o
  CC      arch/arm/cpu/armv7/syslib.o
  LD      arch/arm/cpu/armv7/built-in.o
  AS      arch/arm/cpu/armv7/start.o
  AS      arch/arm/lib/vectors.o
  AS      arch/arm/lib/crt0.o
  AS      arch/arm/lib/relocate.o
  CC      arch/arm/lib/bootm-fdt.o
  CC      arch/arm/lib/bootm.o
  CC      arch/arm/lib/zimage.o
  AS      arch/arm/lib/memset.o
  AS      arch/arm/lib/memcpy.o
  CC      arch/arm/lib/sections.o
  CC      arch/arm/lib/stack.o
  CC      arch/arm/lib/interrupts.o
  CC      arch/arm/lib/reset.o
  CC      arch/arm/lib/cache.o
  CC      arch/arm/lib/cache-cp15.o
  CC      arch/arm/lib/psci-dt.o
  LD      arch/arm/lib/built-in.o
  AS      arch/arm/lib/ashldi3.o
  AS      arch/arm/lib/ashrdi3.o
  CC      arch/arm/lib/div0.o
  AS      arch/arm/lib/div64.o
  AS      arch/arm/lib/lib1funcs.o
  AS      arch/arm/lib/lshrdi3.o
  AS      arch/arm/lib/muldi3.o
  AS      arch/arm/lib/uldivmod.o
  AR      arch/arm/lib/lib.a
  CC      arch/arm/lib/eabi_compat.o
  AS      arch/arm/lib/crt0_arm_efi.o
  CC      arch/arm/lib/reloc_arm_efi.o
  CC      arch/arm/mach-at91/clock.o
  CC      arch/arm/mach-at91/armv7/sama5d4_devices.o
  CC      arch/arm/mach-at91/armv7/clock.o
  CC      arch/arm/mach-at91/armv7/cpu.o
  CC      arch/arm/mach-at91/armv7/reset.o
  CC      arch/arm/mach-at91/armv7/timer.o
  LD      arch/arm/mach-at91/armv7/built-in.o
  LD      arch/arm/mach-at91/built-in.o
  CC      board/atmel/sama5d4_xplained/sama5d4_xplained.o
  LD      board/atmel/sama5d4_xplained/built-in.o
  CC      cmd/boot.o
  CC      cmd/bootm.o
  CC      cmd/help.o
  CC      cmd/version.o
  CC      cmd/source.o
  CC      cmd/bdinfo.o
  CC      cmd/bootefi.o
  CC      cmd/bootz.o
  CC      cmd/console.o
  CC      cmd/echo.o
  CC      cmd/elf.o
  CC      cmd/exit.o
  CC      cmd/fat.o
  CC      cmd/fdt.o
  CC      cmd/itest.o
  CC      cmd/load.o
  CC      cmd/mem.o
  CC      cmd/misc.o
  CC      cmd/mmc.o
  CC      cmd/nand.o
  CC      cmd/net.o
  CC      cmd/pcmcia.o
  CC      cmd/sf.o
  CC      cmd/setexpr.o
  CC      cmd/test.o
  CC      cmd/usb.o
  CC      cmd/disk.o
  CC      cmd/ximg.o
  CC      cmd/nvedit.o
  LD      cmd/built-in.o
  CC      common/init/board_init.o
  LD      common/init/built-in.o
  CC      common/main.o
  CC      common/exports.o
  CC      common/hash.o
  CC      common/cli_hush.o
  CC      common/autoboot.o
  CC      common/board_f.o
  CC      common/board_r.o
  CC      common/bootm.o
  CC      common/bootm_os.o
  CC      common/env_attr.o
  CC      common/env_callback.o
  CC      common/env_flags.o
  CC      common/env_fat.o
  CC      common/fdt_support.o
  CC      common/miiphyutil.o
  CC      common/usb.o
  CC      common/usb_hub.o
  CC      common/usb_storage.o
  CC      common/iomux.o
  CC      common/splash.o
  CC      common/env_common.o
  CC      common/console.o
  CC      common/dlmalloc.o
  CC      common/malloc_simple.o
  CC      common/image.o
  CC      common/image-fdt.o
  CC      common/image-fit.o
  CC      common/memsize.o
  CC      common/stdio.o
  CC      common/cli_simple.o
  CC      common/cli.o
  CC      common/cli_readline.o
  CC      common/command.o
  CC      common/s_record.o
  CC      common/xyzModem.o
  LD      common/built-in.o
  CC      disk/part.o
  CC      disk/part_dos.o
  LD      disk/built-in.o
  LD      drivers/adc/built-in.o
  CC      drivers/block/blk-uclass.o
  LD      drivers/block/built-in.o
  CC      drivers/clk/clk-uclass.o
  CC      drivers/clk/clk_fixed_rate.o
  CC      drivers/clk/at91/pmc.o
  CC      drivers/clk/at91/sckc.o
  CC      drivers/clk/at91/clk-slow.o
  CC      drivers/clk/at91/clk-main.o
  CC      drivers/clk/at91/clk-plla.o
  CC      drivers/clk/at91/clk-master.o
  CC      drivers/clk/at91/clk-system.o
  CC      drivers/clk/at91/clk-peripheral.o
  CC      drivers/clk/at91/clk-utmi.o
  CC      drivers/clk/at91/clk-h32mx.o
  LD      drivers/clk/at91/built-in.o
  LD      drivers/clk/tegra/built-in.o
  LD      drivers/clk/built-in.o
  CC      drivers/core/device.o
  CC      drivers/core/lists.o
  CC      drivers/core/root.o
  CC      drivers/core/uclass.o
  CC      drivers/core/util.o
  CC      drivers/core/device-remove.o
  CC      drivers/core/simple-bus.o
  CC      drivers/core/dump.o
  CC      drivers/core/regmap.o
  CC      drivers/core/syscon-uclass.o
  LD      drivers/core/built-in.o
  CC      drivers/crypto/fsl/sec.o
  LD      drivers/crypto/fsl/built-in.o
  LD      drivers/crypto/rsa_mod_exp/built-in.o
  LD      drivers/crypto/built-in.o
  LD      drivers/dfu/built-in.o
  LD      drivers/hwmon/built-in.o
  CC      drivers/input/input.o
  CC      drivers/input/key_matrix.o
  LD      drivers/input/built-in.o
  LD      drivers/mailbox/built-in.o
  LD      drivers/memory/built-in.o
  CC      drivers/misc/misc-uclass.o
  LD      drivers/misc/built-in.o
  CC      drivers/pcmcia/tqm8xx_pcmcia.o
  LD      drivers/pcmcia/built-in.o
  LD      drivers/phy/marvell/built-in.o
  CC      drivers/pinctrl/pinctrl-uclass.o
  CC      drivers/pinctrl/pinctrl-generic.o
  CC      drivers/pinctrl/pinctrl-at91.o
  LD      drivers/pinctrl/nxp/built-in.o
  LD      drivers/pinctrl/built-in.o
  LD      drivers/pwm/built-in.o
  LD      drivers/reset/built-in.o
  CC      drivers/rtc/date.o
  LD      drivers/rtc/built-in.o
  LD      drivers/soc/built-in.o
  LD      drivers/sound/built-in.o
  LD      drivers/spmi/built-in.o
  LD      drivers/sysreset/built-in.o
  LD      drivers/thermal/built-in.o
  LD      drivers/timer/built-in.o
  LD      drivers/tpm/built-in.o
  LD      drivers/twserial/built-in.o
  LD      drivers/video/bridge/built-in.o
  LD      drivers/video/built-in.o
  LD      drivers/watchdog/built-in.o
  LD      drivers/built-in.o
  LD      drivers/dma/built-in.o
  CC      drivers/gpio/gpio-uclass.o
  CC      drivers/gpio/at91_gpio.o
  LD      drivers/gpio/built-in.o
  CC      drivers/i2c/i2c-uclass.o
  CC      drivers/i2c/at91_i2c.o
  LD      drivers/i2c/built-in.o
  CC      drivers/mmc/mmc-uclass.o
  CC      drivers/mmc/mmc.o
  CC      drivers/mmc/gen_atmel_mci.o
  CC      drivers/mmc/mmc_write.o
  LD      drivers/mmc/built-in.o
  CC      drivers/mtd/mtdcore.o
  CC      drivers/mtd/mtd_uboot.o
  LD      drivers/mtd/built-in.o
  CC      drivers/mtd/nand/nand.o
  CC      drivers/mtd/nand/nand_bbt.o
  CC      drivers/mtd/nand/nand_ids.o
  CC      drivers/mtd/nand/nand_util.o
  CC      drivers/mtd/nand/nand_ecc.o
  CC      drivers/mtd/nand/nand_base.o
  CC      drivers/mtd/nand/nand_timings.o
  CC      drivers/mtd/nand/atmel_nand.o
  LD      drivers/mtd/nand/built-in.o
  LD      drivers/mtd/onenand/built-in.o
  CC      drivers/mtd/spi/sf-uclass.o
  CC      drivers/mtd/spi/sf_probe.o
  CC      drivers/mtd/spi/spi_flash.o
  CC      drivers/mtd/spi/spi_flash_ids.o
  CC      drivers/mtd/spi/sf.o
  LD      drivers/mtd/spi/built-in.o
  CC      drivers/net/macb.o
  LD      drivers/net/built-in.o
  CC      drivers/net/phy/phy.o
  LD      drivers/net/phy/built-in.o
  LD      drivers/pci/built-in.o
  LD      drivers/power/built-in.o
  LD      drivers/power/battery/built-in.o
  LD      drivers/power/domain/built-in.o
  LD      drivers/power/fuel_gauge/built-in.o
  LD      drivers/power/mfd/built-in.o
  LD      drivers/power/pmic/built-in.o
  LD      drivers/power/regulator/built-in.o
  CC      drivers/serial/serial-uclass.o
  CC      drivers/serial/atmel_usart.o
  LD      drivers/serial/built-in.o
  CC      drivers/spi/spi-uclass.o
  CC      drivers/spi/atmel_spi.o
  LD      drivers/spi/built-in.o
  CC      drivers/usb/common/common.o
  LD      drivers/usb/common/built-in.o
  LD      drivers/usb/dwc3/built-in.o
  LD      drivers/usb/emul/built-in.o
  LD      drivers/usb/eth/built-in.o
  CC      drivers/usb/gadget/epautoconf.o
  CC      drivers/usb/gadget/config.o
  CC      drivers/usb/gadget/usbstring.o
  CC      drivers/usb/gadget/atmel_usba_udc.o
  LD      drivers/usb/gadget/built-in.o
  LD      drivers/usb/gadget/udc/built-in.o
  CC      drivers/usb/host/usb-uclass.o
  CC      drivers/usb/host/ehci-hcd.o
  CC      drivers/usb/host/ehci-atmel.o
  LD      drivers/usb/host/built-in.o
  LD      drivers/usb/musb-new/built-in.o
  LD      drivers/usb/musb/built-in.o
  LD      drivers/usb/phy/built-in.o
  LD      drivers/usb/ulpi/built-in.o
  CC      fs/fs.o
  CC      fs/fat/fat_write.o
  CC      fs/fat/file.o
  LD      fs/fat/built-in.o
  LD      fs/built-in.o
  CC      lib/at91/at91.o
  LD      lib/at91/built-in.o
  CC      lib/efi_loader/efi_image_loader.o
  CC      lib/efi_loader/efi_boottime.o
  CC      lib/efi_loader/efi_runtime.o
  CC      lib/efi_loader/efi_console.o
  CC      lib/efi_loader/efi_memory.o
  CC      lib/efi_loader/efi_disk.o
  CC      lib/efi_loader/efi_net.o
  CC      lib/efi_loader/efi_smbios.o
  LD      lib/efi_loader/built-in.o
  CC      lib/efi_loader/helloworld.o
  LD      lib/efi_loader/helloworld.so
  OBJCOPY lib/efi_loader/helloworld.efi
  CC      lib/libfdt/fdt.o
  CC      lib/libfdt/fdt_ro.o
  CC      lib/libfdt/fdt_rw.o
  CC      lib/libfdt/fdt_strerror.o
  CC      lib/libfdt/fdt_sw.o
  CC      lib/libfdt/fdt_wip.o
  CC      lib/libfdt/fdt_empty_tree.o
  CC      lib/libfdt/fdt_addresses.o
  CC      lib/libfdt/fdt_region.o
  LD      lib/libfdt/built-in.o
  CC      lib/zlib/zlib.o
  LD      lib/zlib/built-in.o
  CC      lib/crc7.o
  CC      lib/crc8.o
  CC      lib/crc16.o
  CC      lib/fdtdec_common.o
  CC      lib/gunzip.o
  CC      lib/smbios.o
  CC      lib/initcall.o
  CC      lib/lmb.o
  CC      lib/ldiv.o
  CC      lib/md5.o
  CC      lib/net_utils.o
  CC      lib/qsort.o
  CC      lib/rc4.o
  CC      lib/list_sort.o
  CC      lib/sha1.o
  CC      lib/sha256.o
  CC      lib/fdtdec.o
  CC      lib/hashtable.o
  CC      lib/errno.o
  CC      lib/display_options.o
  CC      lib/crc32.o
  CC      lib/ctype.o
  CC      lib/div64.o
  CC      lib/hang.o
  CC      lib/linux_compat.o
  CC      lib/linux_string.o
  CC      lib/membuff.o
  CC      lib/slre.o
  CC      lib/string.o
  CC      lib/tables_csum.o
  CC      lib/time.o
  CC      lib/vsprintf.o
  CC      lib/panic.o
  CC      lib/strto.o
  CC      lib/strmhz.o
  LD      lib/built-in.o
  CC      net/checksum.o
  CC      net/arp.o
  CC      net/bootp.o
  CC      net/eth-uclass.o
  CC      net/eth_common.o
  CC      net/net.o
  CC      net/nfs.o
  CC      net/ping.o
  CC      net/tftp.o
  LD      net/built-in.o
  LD      test/built-in.o
  CC      test/dm/cmd_dm.o
  LD      test/dm/built-in.o
  CC      examples/standalone/stubs.o
  LD      examples/standalone/libstubs.o
  CC      examples/standalone/hello_world.o
  LD      examples/standalone/hello_world
  CC      examples/standalone/atmel_df_pow2.o
  LD      examples/standalone/atmel_df_pow2
  OBJCOPY examples/standalone/hello_world.srec
  OBJCOPY examples/standalone/atmel_df_pow2.srec
  OBJCOPY examples/standalone/hello_world.bin
  OBJCOPY examples/standalone/atmel_df_pow2.bin
  LDS     u-boot.lds
  LD      u-boot
  OBJCOPY u-boot-nodtb.bin
  DTC     arch/arm/dts/at91sam9260-smartweb.dtb
  DTC     arch/arm/dts/at91sam9g20-taurus.dtb
  DTC     arch/arm/dts/at91sam9g45-corvus.dtb
  DTC     arch/arm/dts/at91sam9g45-gurnard.dtb
  DTC     arch/arm/dts/at91-sama5d4_xplained.dtb
  SHIPPED dts/dt.dtb
  CAT     u-boot-dtb.bin
  COPY    u-boot.bin
  MKIMAGE u-boot.img
  OBJCOPY u-boot.srec
  SYM     u-boot.sym
  AS      spl/arch/arm/mach-at91/bootparams_atmel.o
  CC      spl/arch/arm/mach-at91/mpddrc.o
  CC      spl/arch/arm/mach-at91/spl_atmel.o
  CC      spl/arch/arm/mach-at91/matrix.o
  CC      spl/arch/arm/mach-at91/atmel_sfr.o
  CC      spl/arch/arm/mach-at91/spl.o
  CC      spl/arch/arm/mach-at91/clock.o
  CC      spl/arch/arm/mach-at91/armv7/sama5d4_devices.o
  CC      spl/arch/arm/mach-at91/armv7/clock.o
  CC      spl/arch/arm/mach-at91/armv7/cpu.o
  CC      spl/arch/arm/mach-at91/armv7/reset.o
  CC      spl/arch/arm/mach-at91/armv7/timer.o
  LD      spl/arch/arm/mach-at91/armv7/built-in.o
  LD      spl/arch/arm/mach-at91/built-in.o
  CC      spl/arch/arm/cpu/armv7/cache_v7.o
  AS      spl/arch/arm/cpu/armv7/cache_v7_asm.o
  CC      spl/arch/arm/cpu/armv7/cpu.o
  CC      spl/arch/arm/cpu/armv7/cp15.o
  CC      spl/arch/arm/cpu/armv7/syslib.o
  AS      spl/arch/arm/cpu/armv7/lowlevel_init.o
  LD      spl/arch/arm/cpu/armv7/built-in.o
  AS      spl/arch/arm/cpu/armv7/start.o
  LD      spl/arch/arm/cpu/built-in.o
  AS      spl/arch/arm/lib/vectors.o
  AS      spl/arch/arm/lib/crt0.o
  CC      spl/arch/arm/lib/spl.o
  CC      spl/arch/arm/lib/zimage.o
  AS      spl/arch/arm/lib/memset.o
  AS      spl/arch/arm/lib/memcpy.o
  CC      spl/arch/arm/lib/sections.o
  CC      spl/arch/arm/lib/stack.o
  CC      spl/arch/arm/lib/interrupts.o
  CC      spl/arch/arm/lib/reset.o
  CC      spl/arch/arm/lib/cache.o
  CC      spl/arch/arm/lib/cache-cp15.o
  CC      spl/arch/arm/lib/psci-dt.o
  LD      spl/arch/arm/lib/built-in.o
  AS      spl/arch/arm/lib/ashldi3.o
  AS      spl/arch/arm/lib/ashrdi3.o
  CC      spl/arch/arm/lib/div0.o
  AS      spl/arch/arm/lib/div64.o
  AS      spl/arch/arm/lib/lib1funcs.o
  AS      spl/arch/arm/lib/lshrdi3.o
  AS      spl/arch/arm/lib/muldi3.o
  AS      spl/arch/arm/lib/uldivmod.o
  AR      spl/arch/arm/lib/lib.a
  CC      spl/arch/arm/lib/eabi_compat.o
  AS      spl/arch/arm/lib/crt0_arm_efi.o
  CC      spl/arch/arm/lib/reloc_arm_efi.o
  CC      spl/board/atmel/sama5d4_xplained/sama5d4_xplained.o
  LD      spl/board/atmel/sama5d4_xplained/built-in.o
  CC      spl/common/spl/spl.o
  CC      spl/common/spl/spl_mmc.o
  CC      spl/common/spl/spl_fat.o
  LD      spl/common/spl/built-in.o
  CC      spl/common/init/board_init.o
  LD      spl/common/init/built-in.o
  CC      spl/common/env_common.o
  CC      spl/common/console.o
  CC      spl/common/dlmalloc.o
  CC      spl/common/malloc_simple.o
  CC      spl/common/image.o
  CC      spl/common/image-fdt.o
  CC      spl/common/memsize.o
  CC      spl/common/stdio.o
  CC      spl/common/cli_simple.o
  CC      spl/common/cli.o
  CC      spl/common/cli_readline.o
  CC      spl/common/command.o
  CC      spl/common/s_record.o
  CC      spl/common/xyzModem.o
  LD      spl/common/built-in.o
  CC      spl/cmd/nvedit.o
  LD      spl/cmd/built-in.o
  CC      spl/lib/libfdt/fdt.o
  CC      spl/lib/libfdt/fdt_ro.o
  CC      spl/lib/libfdt/fdt_rw.o
  CC      spl/lib/libfdt/fdt_strerror.o
  CC      spl/lib/libfdt/fdt_sw.o
  CC      spl/lib/libfdt/fdt_wip.o
  CC      spl/lib/libfdt/fdt_empty_tree.o
  CC      spl/lib/libfdt/fdt_addresses.o
  CC      spl/lib/libfdt/fdt_region.o
  LD      spl/lib/libfdt/built-in.o
  CC      spl/lib/fdtdec_common.o
  CC      spl/lib/fdtdec.o
  CC      spl/lib/hashtable.o
  CC      spl/lib/errno.o
  CC      spl/lib/display_options.o
  CC      spl/lib/crc32.o
  CC      spl/lib/ctype.o
  CC      spl/lib/div64.o
  CC      spl/lib/hang.o
  CC      spl/lib/linux_compat.o
  CC      spl/lib/linux_string.o
  CC      spl/lib/membuff.o
  CC      spl/lib/slre.o
  CC      spl/lib/string.o
  CC      spl/lib/tables_csum.o
  CC      spl/lib/time.o
  CC      spl/lib/vsprintf.o
  CC      spl/lib/panic.o
  CC      spl/lib/strto.o
  CC      spl/lib/strmhz.o
  LD      spl/lib/built-in.o
  CC      spl/disk/part.o
  CC      spl/disk/part_dos.o
  LD      spl/disk/built-in.o
  CC      spl/drivers/block/blk-uclass.o
  LD      spl/drivers/block/built-in.o
  CC      spl/drivers/clk/clk-uclass.o
  CC      spl/drivers/clk/clk_fixed_rate.o
  CC      spl/drivers/clk/at91/pmc.o
  CC      spl/drivers/clk/at91/sckc.o
  CC      spl/drivers/clk/at91/clk-slow.o
  CC      spl/drivers/clk/at91/clk-main.o
  CC      spl/drivers/clk/at91/clk-plla.o
  CC      spl/drivers/clk/at91/clk-master.o
  CC      spl/drivers/clk/at91/clk-system.o
  CC      spl/drivers/clk/at91/clk-peripheral.o
  CC      spl/drivers/clk/at91/clk-utmi.o
  CC      spl/drivers/clk/at91/clk-h32mx.o
  LD      spl/drivers/clk/at91/built-in.o
  LD      spl/drivers/clk/tegra/built-in.o
  LD      spl/drivers/clk/built-in.o
  CC      spl/drivers/core/device.o
  CC      spl/drivers/core/lists.o
  CC      spl/drivers/core/root.o
  CC      spl/drivers/core/uclass.o
  CC      spl/drivers/core/util.o
  CC      spl/drivers/core/simple-bus.o
  CC      spl/drivers/core/dump.o
  CC      spl/drivers/core/regmap.o
  CC      spl/drivers/core/syscon-uclass.o
  LD      spl/drivers/core/built-in.o
  CC      spl/drivers/gpio/gpio-uclass.o
  CC      spl/drivers/gpio/at91_gpio.o
  LD      spl/drivers/gpio/built-in.o
  CC      spl/drivers/misc/misc-uclass.o
  LD      spl/drivers/misc/built-in.o
  CC      spl/drivers/mmc/mmc-uclass.o
  CC      spl/drivers/mmc/mmc.o
  CC      spl/drivers/mmc/gen_atmel_mci.o
  LD      spl/drivers/mmc/built-in.o
  CC      spl/drivers/pinctrl/pinctrl-uclass.o
  CC      spl/drivers/pinctrl/pinctrl-generic.o
  CC      spl/drivers/pinctrl/pinctrl-at91.o
  LD      spl/drivers/pinctrl/nxp/built-in.o
  LD      spl/drivers/pinctrl/built-in.o
  CC      spl/drivers/serial/serial-uclass.o
  CC      spl/drivers/serial/atmel_usart.o
  LD      spl/drivers/serial/built-in.o
  LD      spl/drivers/sysreset/built-in.o
  LD      spl/drivers/built-in.o
  LD      spl/dts/built-in.o
  CC      spl/fs/fat/fat_write.o
  LD      spl/fs/fat/built-in.o
  LD      spl/fs/built-in.o
  LDS     spl/u-boot-spl.lds
  LD      spl/u-boot-spl
  OBJCOPY spl/u-boot-spl-nodtb.bin
  FDTGREP spl/u-boot-spl.dtb
  CAT     spl/u-boot-spl-dtb.bin
  COPY    spl/u-boot-spl.bin
  MKIMAGE boot.bin
  COPY    u-boot.dtb
  MKIMAGE u-boot-dtb.img
  CFGCHK  u-boot.cfg
lukas@BlackMesa:~/Documents/Embedded_Projects/u-boot-at91-master$ 
blue_z
Location: USA
Posts: 1550
Joined: Thu Apr 19, 2007 10:15 pm

Re: How to flash SAMA5D4 Xplained usb bare metal examples?

Wed Oct 25, 2017 1:16 am

Now that you've posted logs of what you did, you've finally revealed the gcc version that you're using. That is the next thing to replace, because I'm running out of ideas. Back in the day these boot programs used to be sensitive to the compiler version, which is why you'll see a list of tested toolchains in the AT91Bootstrap's README.txt.

So instead of using gcc v6.3.0, try using the Linaro v4.9 toolchain, as mentioned in Setup ARM Cross Compiler .
However keep CROSS_COMPILE simple as

Code: Select all

    export CROSS_COMPILE=arm-linux-gnueabi-  
and add the directory of the toolchain to the first entry of your PATH:

Code: Select all

 wget -c https://releases.linaro.org/components/toolchain/binaries/4.9-2017.01/arm-linux-gnueabi/gcc-linaro-4.9.4-2017.01-i686_arm-linux-gnueabi.tar.xz  
 tar xf gcc-linaro-4.9.4-2017.01-i686_arm-linux-gnueabi.tar.xz   
 echo $PATH  
 export PATH=`pwd`/gcc-linaro-4.9.4-2017.01-i686_arm-linux-gnueabi/bin:$PATH  
 echo $PATH 
The /opt directory is a typical place for such packages, whereas using your Documents directory for development is strange.

Regards
User avatar
BlackMesa
Location: Vilnius
Posts: 9
Joined: Thu Oct 05, 2017 2:02 pm

Re: How to flash SAMA5D4 Xplained usb bare metal examples?

Wed Oct 25, 2017 3:20 pm

I can't believe we made it!!! :D :D :D
So instead of using gcc v6.3.0, try using the Linaro v4.9 toolchain, as mentioned in Setup ARM Cross Compiler .
You was right, blue_z, there was the problem. Now board boots from SD card and NAND flash also. Thank you very much for your help, it was a difficult time for me to run this board, I tried for about 2 month :D

I installed Linaro 5.4.1 and now everything compiles and works as it should. I was unable to run Linaro 4.9.4 using command as mentioned here linux4sam/bin/view/Linux4SAM/Sama5d4Xpl ... s_Compiler, because I use 32-bit linux, so I had to download x86 (i686) Linaro version. gcc-linaro-5.4.1-2017.05-i686_arm-linux-gnueabi.tar.xz works fine: https://releases.linaro.org/components/ ... x-gnueabi/
Hope this will be helpful for somebody :)
blue_z
Location: USA
Posts: 1550
Joined: Thu Apr 19, 2007 10:15 pm

Re: How to flash SAMA5D4 Xplained usb bare metal examples?

Wed Oct 25, 2017 8:04 pm

BlackMesa wrote:I was unable to run Linaro 4.9.4 using command as mentioned here linux4sam/bin/view/Linux4SAM/Sama5d4Xpl ... s_Compiler, because I use 32-bit linux, so I had to download x86 (i686) Linaro version. gcc-linaro-5.4.1-2017.05-i686_arm-linux-gnueabi.tar.xz works fine:
If you had read my post carefully, then you might have noticed that I had already provided the commands to download a 32-bit toolchain as an alternate to the 64-bit version of the web page.

Regards

Return to “SAMA5 Xplained”

Who is online

Users browsing this forum: No registered users and 1 guest