5 Replies Latest reply on Jun 8, 2016 2:45 PM by Intel Corporation

    Building 64 bit kernel image with Yocto

    mwkl

      i can build a 32 bit version.

      Now i am trying build 64 bit kernel, but got some issues:
      After run “bitbake virtual/kernel -c menuconfig”
      i choose [*]64 bit kernel and save
      then copy the configuration file to the Edison build directory
      then run “bitbake edison-image” again, but i get an error.

      i find the log under /out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/temp/log.do_compile.6126 :
      ————————————————————————————-
      DEBUG: Executing shell function do_compile
      NOTE: make -j 4 bzImage CC=i586-poky-linux-gcc LD=i586-poky-linux-ld.bfd
      GEN /home/marcus/src/edison/edison-src/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux-edison-standard-build/Makefile
      scripts/kconfig/conf –silentoldconfig Kconfig
      SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
      SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
      SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
      SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
      SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_32_ia32.h
      SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_64_x32.h
      SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_64.h
      GEN /home/marcus/src/edison/edison-src/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux-edison-standard-build/Makefile
      CHK include/generated/uapi/linux/version.h
      CHK include/generated/utsrelease.h
      CC scripts/mod/empty.o
      HOSTCC scripts/selinux/genheaders/genheaders
      /home/marcus/src/edison/edison-src/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux/scripts/mod/empty.c:1:0: error: code model ‘kernel’ not supported in the 32 bit mode
      /* empty file to figure out endianness / word size */
      ^
      /home/marcus/src/edison/edison-src/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/linux/scripts/mod/empty.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
      make[3]: *** [scripts/mod/empty.o] Error 1
      make[2]: *** [scripts/mod] Error 2
      make[2]: *** Waiting for unfinished jobs….
      HOSTCC scripts/selinux/mdp/mdp
      make[1]: *** [scripts] Error 2
      make[1]: *** Waiting for unfinished jobs….
      make: *** [sub-make] Error 2
      ERROR: oe_runmake failed
      WARNING: exit code 1 from a shell command.
      ERROR: Function failed: do_compile (log file is located at /home/marcus/src/edison/edison-src/out/linux64/build/tmp/work/edison-poky-linux/linux-yocto/3.10.17-r0/temp/log.do_compile.6126)
      ————————————————————————————————–

      Any idea about the issues ? Thanks~