izmit escort escort ankara adana escort

 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: A problem about at91bootstrap-master
PostPosted: Thu Apr 13, 2017 8:53 am 
Offline

Joined: Thu Mar 16, 2017 12:30 pm
Posts: 23
hi,
When i make at91bootstrap-master, a problem occurs as flowing.
Code:
book@book-desktop:~/Desktop/Myfile/at91bootstrap-master$ make CROSS_COMPILE=arm-none-linux-gnueabi-                                                                           
CC                                                                                     
========                                                                               
arm-none-linux-gnueabi-gcc 4.3.3                                                       

as FLAGS
========
-g -Os -Wall -I/home/book/Desktop/Myfile/at91bootstrap-master/board/at91sam9m10g45ek -Iinclude -Icontrib/include -DJUMP_ADDR=0x73F00000 -DTOP_OF_MEMORY=0x30A000 -DMACH_TYPE=1830 -Dat91sam9m10g45ek -DMACH_TYPE=1830 -DTOP_OF_MEMORY=0x30A000 -DCRYSTAL_12_000MHZ -DAT91SAM9G45 -mcpu=arm926ej-s -mtune=arm926ej-s -mfloat-abi=soft -DCONFIG_THUMB -mthumb-interwork -DCONFIG_AT91SAM9M10G45EK

gcc FLAGS
=========
-nostdinc -isystem /usr/local/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include -ffunction-sections -g -Os -Wall -mno-unaligned-access -fno-stack-protector -fno-common -I/home/book/Desktop/Myfile/at91bootstrap-master/board/at91sam9m10g45ek -Icontrib/include -Iinclude -Ifs/include -I/home/book/Desktop/Myfile/at91bootstrap-master/config/at91bootstrap-config -DAT91BOOTSTRAP_VERSION="3.8.7" -DCOMPILE_TIME="Thu Apr 13 14:46:33 CST 2017" -DIMG_ADDRESS=0x00040000 -DIMG_SIZE=0x000a0000 -DJUMP_ADDR=0x73F00000 -DOF_OFFSET= -DOF_ADDRESS= -DMEM_BANK= -DMEM_SIZE= -DIMAGE_NAME="u-boot.bin" -DCMDLINE="" -DTOP_OF_MEMORY=0x30A000 -DMACH_TYPE=1830 -DCONFIG_DEBUG -DBANNER="\n\nAT91Bootstrap " AT91BOOTSTRAP_VERSION " (" COMPILE_TIME ")\n\n" -DCONFIG_HW_DISPLAY_BANNER -DCONFIG_HW_INIT -Dat91sam9m10g45ek -DMACH_TYPE=1830 -DTOP_OF_MEMORY=0x30A000 -DCRYSTAL_12_000MHZ -DAT91SAM9G45 -mcpu=arm926ej-s -mtune=arm926ej-s -mfloat-abi=soft -DCONFIG_THUMB -mthumb -mthumb-interwork -DCONFIG_SCLK -DCONFIG_CRYSTAL_12_000MHZ -DCONFIG_CPU_CLK_400MHZ -DCONFIG_BUS_SPEED_133MHZ -DCONFIG_AT91SAM9M10G45EK -DCONFIG_DDRC -DCONFIG_DDR2 -DCONFIG_RAM_64MB -DCONFIG_NANDFLASH -DCONFIG_ENABLE_SW_ECC -DCONFIG_NANDFLASH_RECOVERY -DCONFIG_ONFI_DETECT_SUPPORT -DCONFIG_USE_ON_DIE_ECC_SUPPORT -DBOOTSTRAP_DEBUG_LEVEL=DEBUG_INFO -DCONFIG_DISABLE_WATCHDOG -DCPU_HAS_HSMCI0

ld FLAGS
========
-nostartfiles -Map=/home/book/Desktop/Myfile/at91bootstrap-master/binaries/at91sam9m10g45ek-nandflashboot-uboot-3.8.7.map --cref -static -T elf32-littlearm.lds --gc-sections -Ttext 0x300000

  CC        /home/book/Desktop/Myfile/at91bootstrap-master/main.c
cc1: error: unrecognized command line option "-mno-unaligned-access"
make: *** [/home/book/Desktop/Myfile/at91bootstrap-master/main.o] Error 1


HW:SAMA5D2-Xplained
at91bootstrap-master configed as blow:
make mrproper
make sama5d2_xplaineddf_qspi_uboot_defconfig
make menuconfig
make CROSS_COMPILE=arm-none-linux-gnueabi-


Top
 Profile  
Reply with quote  
 Post subject: Re: A problem about at91bootstrap-master
PostPosted: Fri Apr 14, 2017 8:43 pm 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 1419
Location: USA
The cause of the build problem is that the toolchain that you're using is too old for recent versions of AT91Bootstrap (i.e. since v3.8.2).
Update your toolchain to at least gcc 5.2, or hack the Makefile and remove that -mno-unaligned-access option in order to continue using gcc 4.3.3.

Regards

Reference: https://github.com/linux4sam/at91bootstrap/commit/3c398e769391646ba2b646db4397360f3724fcd0


Last edited by blue_z on Tue Apr 18, 2017 8:51 pm, edited 1 time in total.
append reference


Top
 Profile  
Reply with quote  
 Post subject: Re: A problem about at91bootstrap-master
PostPosted: Sat Apr 15, 2017 1:44 am 
Offline

Joined: Thu Mar 16, 2017 12:30 pm
Posts: 23
blue_z wrote:
Update your toolchain to at least gcc 5.2, or hack the Makefile and remove that -mno-unaligned-access option in order to continue using gcc 4.3.3.
Regards

OK,thank you!It is the problem about arm-none-linux-gnueabi vision.I used arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.bz2 , it occured error.When i changed to arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2, it is OK.Just like the readme document as blow.
Code:
1 GNU ARM Toolchain
================================================================================

AT91Bootstrap has been compiled and tested under Linux using the following GNU
ARM Toolchain:
- gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-51)
- gcc version 4.2.3 (Sourcery G++ Lite 2008q1-126)
- gcc version 4.3.5 (Buildroot 2011.05)
- gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67)
- gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202)
- gcc version 4.5.2 (Sourcery G++ Lite 2011.03-41)
- gcc version 4.5.3 20110223 (prerelease) (GCC) (OE 2011.03)
- gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
- gcc version 4.7.2 (Sourcery CodeBench Lite 2012.09-64)
- gcc version 4.7.3 (Sourcery CodeBench Lite 2013.05-24)
- gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)


Top
 Profile  
Reply with quote  
 Post subject: Re: A problem about at91bootstrap-master
PostPosted: Tue Apr 18, 2017 8:53 pm 
Offline

Joined: Thu Apr 19, 2007 10:15 pm
Posts: 1419
Location: USA
xzp114 wrote:
[ust like the readme document as blow.
That list of toolchains contained within the README.txt file is probably out-of-date, since it was last updated on Oct 29, 2014.
Whereas the Makefile was changed on Jan 29, 2016 to add the -mno-unaligned-access flag.

Regards


Top
 Profile  
Reply with quote  
 Post subject: Re: A problem about at91bootstrap-master
PostPosted: Wed Apr 19, 2017 3:42 am 
Offline

Joined: Thu Mar 16, 2017 12:30 pm
Posts: 23
blue_z wrote:
That list of toolchains contained within the README.txt file is probably out-of-date, since it was last updated on Oct 29, 2014.
Whereas the Makefile was changed on Jan 29, 2016 to add the -mno-unaligned-access flag.

OK, i know, thank you!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: