Issue in building RAM based u-boot.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue in building RAM based u-boot.

1,339 Views
chandrashekhar
Contributor III


Hi,

I am trying to build RAM based u-boot image as mentioned in document T1040RDBQS.pdf section 9. I added below mentioned settings in boards.cfg

Active powerpc mpc85xx - freescale t104xrdb T1040RDB_RAM T1040RDB:PPC_T1040, RAMBOOT_PBL, SPIFLASH,SYS_TEXT_BASE=0x11000000,RESET_VECTOR_ADDRESS=0x110bfffc

But it results in below error

/sysroots/ppce5500-fsl_networking-linux/usr/lib/powerpc-fsl_networking-linux/4.7.3 -lgcc -Map u-boot.map -o u-boot

powerpc-fsl_networking-linux-objcopy --gap-fill=0xff -O srec u-boot u-boot.srec

powerpc-fsl_networking-linux-objcopy:u-boot.srec: No space left on device

make[1]: *** [u-boot.srec] Error 1

make[1]: Leaving directory `/ws/chanmish-bgl/asr907/trunk/u-boot/git'

make: *** [T1040RDB_RAM] Error 2

Thanks,

Tags (1)
7 Replies

742 Views
addiyi
NXP Employee
NXP Employee

The error indicate is "No space left on device". Before do anything else, please check the space on your PC.

Adrian

0 Kudos

742 Views
chandrashekhar
Contributor III

Hi Adrian,

My PC where I am compiling this code has 2GB free space. So, it should not be the workstation space issue.

Chandra

0 Kudos

742 Views
chandrashekhar
Contributor III


Hi Adrian,

In fact you are right that there is a space issue. I could see the generated u-boot file size is of 4G. How come it can generate such a huge elf file? Is there any configuration issue?

Chandra

0 Kudos

742 Views
addiyi
NXP Employee
NXP Employee

Hi Chandra,

The u-boot file size will be just 512KB in size, but during  u-boot compilation is necessary more space available.

Adrian

0 Kudos

742 Views
scottwood
NXP Employee
NXP Employee

U-Boot does not require 4G of free disk space to build, and even if it did that would not result in a 4G final image.  There is most likely a problem with the way the image is being linked.

0 Kudos

742 Views
chandrashekhar
Contributor III

Hi Adrian,

I freed about 8 GB of space in PC, but still I see the same error.

powerpc-fsl_networking-linux-objcopy --gap-fill=0xff -O srec u-boot u-boot.srec                                                     

powerpc-fsl_networking-linux-objcopy:u-boot.srec: No space left on device                                                           

make[1]: *** [u-boot.srec] Error 1      

bash-4.1$ df -h

bgl11-netapp05a:/vol/wslocal5/chanmish                                                                                              

                       32G   24G  8.2G  75% /ws/chanmish-bgl                                                                        

bash-4.1$ ls -lh

......

drwxr-xr-x  13 chanmish eng 8.0K May 17 13:25 tools

-rwxr-xr-x   1 chanmish eng 4.0G May 17 13:25 u-boot

-rw-r--r--   1 chanmish eng 1.4K May 17 13:25 u-boot.lds

-rw-r--r--   1 chanmish eng 321K May 17 13:25 u-boot.map

bash-4.1$

Chandra

0 Kudos

742 Views
Wlodek_D_
Senior Contributor II

Hello,

Thank you for your post, however please consider moving it to the right community place (e.g. QorIQ Processors ) to get it visible for active members.

For details please see general advice Where to post a Discussion? (https://community.freescale.com/docs/DOC-99909 )

Thank you for using Freescale Community.