This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

getting error with assembling compressed/head.S

Other Parts Discussed in Thread: AM3517, AM3505

hi all

2818.head.S

when I added a #define DEBUG on top of the compressed/head.S, I'm getting these errors:

  AS      arch/arm/boot/compressed/head.o                                                                                                    
arch/arm/boot/compressed/head.S: Assembler messages:                                                                                         
arch/arm/boot/compressed/head.S:381: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:469: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:490: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:509: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:517: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:805: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:844: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:845: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:890: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:897: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:905: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:916: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:930: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:962: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:964: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:965: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:972: Warning: (null)                                                                                         
arch/arm/boot/compressed/head.S:1004: Warning: (null)                                                                                        
  GZIP    arch/arm/boot/compressed/piggy.gzip                                                                                                
  AS      arch/arm/boot/compressed/piggy.gzip.o                                                                                              
  CC      arch/arm/boot/compressed/misc.o                                                                                                    
  CC      arch/arm/boot/compressed/decompress.o                                                                                              
  SHIPPED arch/arm/boot/compressed/lib1funcs.S                                                                                               
  AS      arch/arm/boot/compressed/lib1funcs.o                                                                                               
  LD      arch/arm/boot/compressed/vmlinux                                                                                                   
`.data' referenced in section `.text' of arch/arm/boot/compressed/head.o: defined in discarded section `.data' of arch/arm/boot/compressed/he
ad.o                                                                                                                                         
`.data' referenced in section `.text' of arch/arm/boot/compressed/head.o: defined in discarded section `.data' of arch/arm/boot/compressed/he
ad.o                                                                                                                                         
make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1                                                                                      
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2                                                   

I'm using linux-2.6.37-psp04.02.00.07 and the target build is am3517_evm_defconfig.

has anyone seen this before? how do i resolve this?

thx

Eric

  • Hi Eric,

    This issue is due to problem with your ARM cross compiler only due to this , You cant boot your kernel image, (hangs at starting kernel)


    Pleas change your cross compiler to some other like  arm-none-linux-gnueabi- or arm-eabi- & try

  • Hi,

    I'm using linux-2.6.37-psp04.02.00.07 and the target build is am3517_evm_defconfig.

    has anyone seen this before? how do i resolve this?

     

    myself faced same issue & i got fixed in AM3517 custom board.

    The cross compiler version have some issues which is released with new PSP 4.02 & plz try old PSP re-lease's cross compiler (ti-sdk-am3517-evm-05.07.00.00-Linux-x86-Install)

    OR

    apply patch from below link & re build kernel and boot

    http://lkml.org/lkml/2013/1/21/754

     

    when I added a #define DEBUG on top of the compressed/head.S, I'm getting these errors:

    What are you trying to do really ?

    If you have not added #DEBUG line, then how about result?

  • thanks for your answer.

    i am trying to boot the kernel from a custom am3505 board. without the #define DEBUG, the board does not boot.  i want to get some debug message.

    where can i find ti-sdk-am3517-evm-05.07.00.00-Linux-x86-Install? do you know which particular line in the head.S causing this problem?

  • I;ve followed the patch to modify the files, but i got whole lot of error message saying using ARM instruction on Thumb only processor. I've then tried another approach. I removed all the non-armv7 subroutine. all the "null" messages seems to be gone. it now leaves these error messages only:

    `.data' referenced in section `.text' of arch/arm/boot/compressed/head.o: defined in discarded section `.data' of arch/arm/boot/compressed/head.o                                                                                 
    `.data' referenced in section `.text' of arch/arm/boot/compressed/head.o: defined in discarded section `.data' of arch/arm/boot/compressed/head.o                                                                                 
    make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1                                                          
    make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2                                                          

  • Hi,

    i am trying to boot the kernel from a custom am3505 board. without the #define DEBUG, the board does not boot.  i want to get some debug message.

    1) Then Simple, Use/apply the patches and dont add DEBUG support & it get compiled successfully.

    If you want debug message, "Enable low level debug" option in kernel hacking from menuconfig,

    `.data' referenced in section `.text' of arch/arm/boot/compressed/head.o: defined in discarded section `.data' of arch/arm/boot/compressed/head.o                                                                                 
    `.data' referenced in section `.text' of arch/arm/boot/compressed/head.o: defined in discarded section `.data' of arch/arm/boot/compressed/head.o                                                                                 
    make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1                                                          
    make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2       

    DEBUG definition in the decompresser breaks the build on OMAP
     this is bcz of "DEBUG" definition so plz remove & try

    where can i find ti-sdk-am3517-evm-05.07.00.00-Linux-x86-Install? do you know which particular line in the head.S causing this problem?

    2) No problem,  Use "arm-eabi-gcc (GCC) 4.4.3" tool chain from below link (cross compiler)

    Don't apply patches & use below tool chain for building (check, Are you getting any compilation error?, if not it ll boot well).

    https://github.com/AdiPat/Android_Toolchains/archive/master.zip

     

  • Hi,

    Refer this link,

    http://www.spinics.net/lists/linux-omap/msg43479.html

    http://permalink.gmane.org/gmane.linux.ports.arm.omap/49677

    http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/148128.html

  • great. the kernel is now built successfully. i will load it to the board and try next monday. thank you.

  • fyi, i followed this link: http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/148128.html to remove the pushsection and popsection directive. it's now built.

  • Hi Eric,

    Nice to hear this from you,

    please let me know if board boots well.