Compiling the SDK

Compiling the SDK

This question is not answered

Hi all,

I'm trying to compile the SDK i've got from:

https://source.ridgerun.net/svn/leopardboarddm365/sdk/trunk.

I've downloaded all the repository and the toolchain, I can run the "make config" to configure features, but when I'm trying to run "make", I get an error:

"

Processing kernel...

Generating include/asm-arm/mach-types.h

<stdin>:1351:2: warning: #warning syscall migrate_pages not implemented

as: unrecognized option: '-EL' 

make[4]: *** [scripts/mod/empty.o] Error 1

make[3]: *** [scripts/mod] Error 2

make[2]: *** [scripts] Error 2

make[1]: *** [build] Error 2

make: *** [kernel_build] Error 2

"

Please help me to solve this.

Thank in advance.

All Replies
  • Please run

    make VERBOSE=1

    and post the output

  • after I run "make VERBOSE=1", it execute some procedures, but then I get the same errors:

    "

    as: unrecognized option: '-EL'  

    make[4]: *** [scripts/mod/empty.o] Error 1

    make[3]: *** [scripts/mod] Error 2

    make[2]: *** [scripts] Error 2

    make[2]: Leaving directory '/leo365/kernel/linux-2.6.32'

    make[1]: *** [build] Error 2

    make[2]: Leaving directory '/leo365/kernel/'

    make: *** [kernel_build] Error 2

    "

  • What happens right before the error (say previous 20 lines of make VERBOSE=1  output).  I don't have enough information yet to help you.

  • mkdir -p kernel/

    mkdir -p arch/arm/kernel/

    make -f scripts/Makefile.build obj=. missing-syscalls

     /bin/sh scripts/checksyscalls.sh arm-linux-gnueabi-gcc -Wp,-MD,./.missing-syscalls.d  -nostdinc -isystem /opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/4.2.4/include -Iinclude  -I/leo365/kernel/linux-2.6.32/arch/arm/include -include include/linux/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-davinci/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv4t -mtune=arm9tdmi -msoft-float -Uarm -fno-omit-frame-pointer -fno-optimize-sibling-calls  -DCONFIG_BSP_ARCH_SDRAM_BASE=0x80000000 -DCONFIG_BSP_ARCH_SDRAM_SIZE=0x08000000 -DPHYS_OFFSET=0x80000000 -DBSP_ARCH_KERNEL_ATAGS_ADDRESS=0x80000100 -DBOARD_BOOT_FROM_NAND=1 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(missing_syscalls)"  -D"KBUILD_MODNAME=KBUILD_STR(missing_syscalls)"

    <stdin>:1351:2: warning: #warning syscall migrate_pages not implemented

    make -f scripts/Makefile.build obj=scripts

    make -f scripts/Makefile.build obj=scripts/genksyms

    (cat /dev/null; ) > scripts/genksyms/modules.order

    make -f scripts/Makefile.build obj=scripts/mod

    (cat /dev/null; ) > scripts/mod/modules.order

     arm-linux-gnueabi-gcc -Wp,-MD,scripts/mod/.empty.o.d  -nostdinc -isystem /opt/arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/4.2.4/include -Iinclude  -I/leo365/kernel/linux-2.6.32/arch/arm/include -include include/linux/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-davinci/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -D__LINUX_ARM_ARCH__=5 -march=armv4t -mtune=arm9tdmi -msoft-float -Uarm -fno-omit-frame-pointer -fno-optimize-sibling-calls  -DCONFIG_BSP_ARCH_SDRAM_BASE=0x80000000 -DCONFIG_BSP_ARCH_SDRAM_SIZE=0x08000000 -DPHYS_OFFSET=0x80000000 -DBSP_ARCH_KERNEL_ATAGS_ADDRESS=0x80000100 -DBOARD_BOOT_FROM_NAND=1 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)"  -D"KBUILD_MODNAME=KBUILD_STR(empty)"  -c -o scripts/mod/.tmp_empty.o scripts/mod/empty.c

    as: unrecognized option '-EL'

    make[4]: *** [scripts/mod/empty.o] Error 1

    make[3]: *** [scripts/mod] Error 2

    make[2]: *** [scripts] Error 2

    make[2]: Leaving directory `/leo365/kernel/linux-2.6.32'

    make[1]: *** [build] Error 2

    make[1]: Leaving directory `/leo365/kernel'

    make: *** [kernel_build] Error 2

  • Something is very wrong.  Maybe part of the kernel was compiled with the host toolchain (this happens if you issue an unadorned make in the $DEVDIR/kernel/linux-* directory)

    Lets clean up the kernel and then try building again.

    cd $DEVDIR/kernel

    make clean

    cd  $DEVDIR

    make kernel

    If that doesn't work, you can install a fresh SDK into a different directory and see if that solves the problem.

    Todd

  • nothing helps :(

    I even defined a new user, downloaded the repository once again to this user to make sure the environment is clear, but the results of the compilation still the same.

  • With such a vague problem description the best I can give you is a vague answer.

    Please list the commands you ran after did the SVN check out.

    I will do the same and see if I can reproduce your issue.

    Todd

  • good news.

    I'd downloaded and installed the toolchain once more, and now it looks ok.

    Thank you Todd for your time.

  • Hello again,

    I have another problem during the SDK compilation.

    After the compilation process was running about 50 minutes, it asked to install dvsdk_3_10_00_19 before it may continue.

    I'd downloaded the dvsdk_3_10_00_19 pachkage and installed it.

    Then I activated the "make VERBOSE=1" again.

    After a while, i got:

    Checking dependencies for dvsdk_3_10_00

         Compiling and installing dvsdk_3_10_00...

    make[3]: Entering directory `/home/user/leo365/proprietary/dvsdk_3_10_00'

    mv dvsdk_3_10_00_19/Rules.make dvsdk_3_10_00_19/Rules.make.orig

    mv: cannot stat `dvsdk_3_10_00_19/Rules.make': No such file or directory

    make[3]: *** [patched] Error 1

    make[3]: Leaving directory `/home/user/leo365/proprietary/dvsdk_3_10_00'

    Error building dvsdk_3_10_00

    make[2]: *** [dependency_build] Error 1

    make[2]: Leaving directory `/home/user/leo365/proprietary'

    make[1]: *** [proprietary_src_build] Error 1

    make[1]: Leaving directory `/home/user/leo365/fs'

    make: *** [fs_build] Error 2

    Should I copy the Rules.make from /dvsdk/dvsdk_3_10_00_19/ (where I'd installed the dvsdk) to /home/user/leo365/proprietary/dvsdk_3_10_00/dvsdk_3_10_00_19/ ?

  • Thanks for the more detailed output.

    try

    cd $DEVDIR/proprietary/dvsdk_3_10_00

    make clean

    cd $DEVDIR

    make fs

    and see if that resolves the issue.

    Todd

  • Thanks Todd,

    The compilation passed.

    Now, the only thing seems strange to me is that "/images/fsimage" file is 0 (zero) bytes long. Is it normal?

  • What is your configuration for a target file system.  If you are using root NFS for the target file system, then $DEVDIR/images directory shouldn't have a fs image.

  • Yes, it was defined "root NFS".

    I'd changed it to romfs, and now it's ok.

    Thanks again.