All of lore.kernel.org
 help / color / mirror / Atom feed
* : Build error while building armeb image.
@ 2015-03-11 12:15 Prashant Purohit
  2015-03-11 15:07 ` Mark Hatle
  0 siblings, 1 reply; 2+ messages in thread
From: Prashant Purohit @ 2015-03-11 12:15 UTC (permalink / raw)
  To: yocto


[-- Attachment #1.1: Type: text/plain, Size: 528 bytes --]

Hi,

I am trying to boot kernel image for 'armv7ab' using QEMU.

To do the same, I have included the 'tune-arma7.inc'
(/meta/conf/machine/include/
arm/arch-armv7a.inc) and configured DEFAULTTUNE variable to 'armv7ab'.
But I am not able to build the image for it. I am getting error (compiled
for a little endian system and target is big endian) while compiling kernel
image.

The log for the same is attached with this mail.
Has anyone faced the same issue previously or has any inputs for it?

Thanks,
Prashant

[-- Attachment #1.2: Type: text/html, Size: 656 bytes --]

[-- Attachment #2: Error_armeb.log --]
[-- Type: text/x-log, Size: 3906 bytes --]

Log data follows:

| DEBUG: Executing shell function do_compile

| NOTE: make -j 40 zImage CC=armeb-poky-linux-gnueabi-gcc   LD=armeb-poky-linux-gnueabi-ld.bfd

|   GEN     /home/prashant/poky/build_arm/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto/3.14.29+gitAUTOINC+6eddbf4787_1a9f9edade-r0/linux-qemuarm-standard-build/Makefile

| scripts/kconfig/conf --silentoldconfig Kconfig

|   CHK     include/config/kernel.release

|   Using /home/prashant/poky/build_arm/tmp/work-shared/qemuarm/kernel-source as source for kernel

|   GEN     /home/prashant/poky/build_arm/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto/3.14.29+gitAUTOINC+6eddbf4787_1a9f9edade-r0/linux-qemuarm-standard-build/Makefile

|   CHK     include/generated/uapi/linux/version.h

|   CHK     include/generated/utsrelease.h

|   Generating include/generated/mach-types.h

|   CC      kernel/bounds.s

|   GEN     include/generated/bounds.h

|   CC      arch/arm/kernel/asm-offsets.s

|   GEN     include/generated/asm-offsets.h

|   CALL    /home/prashant/poky/build_arm/tmp/work-shared/qemuarm/kernel-source/scripts/checksyscalls.sh

|   HOSTCC  scripts/kallsyms

|   HOSTCC  scripts/bin2c

|   HOSTCC  scripts/conmakehash

|   HOSTCC  scripts/recordmcount

|   HOSTCC  scripts/sortextable

|   CC      scripts/mod/empty.o

|   HOSTCC  scripts/mod/mk_elfconfig

|   CC      scripts/mod/devicetable-offsets.s

|   MKELF   scripts/mod/elfconfig.h

|   GEN     scripts/mod/devicetable-offsets.h

|   HOSTCC  scripts/mod/modpost.o

|   HOSTCC  scripts/mod/sumversion.o

|   HOSTCC  scripts/mod/file2alias.o

|   HOSTLD  scripts/mod/modpost

|   CHK     include/generated/compile.h

|   CC      init/main.o

|   CC      init/do_mounts.o

|   CC      init/do_mounts_rd.o

|   CC      init/do_mounts_initrd.o

|   CC      init/do_mounts_md.o

|   CC      init/calibrate.o

|   CC      init/initramfs.o

|   CC      init/init_task.o

|   UPD     include/generated/compile.h

|   CC      init/version.o

|   LD      init/mounts.o

| armeb-poky-linux-gnueabi-ld.bfd: init/do_mounts.o: compiled for a little endian system and target is big endian

| armeb-poky-linux-gnueabi-ld.bfd: failed to merge target specific data of file init/do_mounts.o

| armeb-poky-linux-gnueabi-ld.bfd: init/do_mounts_rd.o: compiled for a little endian system and target is big endian

| armeb-poky-linux-gnueabi-ld.bfd: failed to merge target specific data of file init/do_mounts_rd.o

| armeb-poky-linux-gnueabi-ld.bfd: init/do_mounts_initrd.o: compiled for a little endian system and target is big endian

| armeb-poky-linux-gnueabi-ld.bfd: failed to merge target specific data of file init/do_mounts_initrd.o

| armeb-poky-linux-gnueabi-ld.bfd: init/do_mounts_md.o: compiled for a little endian system and target is big endian

| armeb-poky-linux-gnueabi-ld.bfd: failed to merge target specific data of file init/do_mounts_md.o

| /home/prashant/poky/build_arm/tmp/work-shared/qemuarm/kernel-source/scripts/Makefile.build:441: recipe for target 'init/mounts.o' failed

| make[3]: *** [init/mounts.o] Error 1

| /home/prashant/poky/build_arm/tmp/work-shared/qemuarm/kernel-source/Makefile:843: recipe for target 'init' failed

| make[2]: *** [init] Error 2

| Makefile:133: recipe for target 'sub-make' failed

| make[1]: *** [sub-make] Error 2

| Makefile:26: recipe for target 'all' failed

| make: *** [all] Error 2

| ERROR: oe_runmake failed

| WARNING: /home/prashant/poky/build_arm/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto/3.14.29+gitAUTOINC+6eddbf4787_1a9f9edade-r0/temp/run.do_compile.6731:1 exit 1 from

|   exit 1

| ERROR: Function failed: do_compile (log file is located at /home/prashant/poky/build_arm/tmp/work/qemuarm-poky-linux-gnueabi/linux-yocto/3.14.29+gitAUTOINC+6eddbf4787_1a9f9edade-r0/temp/log.do_compile.6731)

ERROR: Task 79 (/home/prashant/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb, do_compile) failed with exit code '1'

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: : Build error while building armeb image.
  2015-03-11 12:15 : Build error while building armeb image Prashant Purohit
@ 2015-03-11 15:07 ` Mark Hatle
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Hatle @ 2015-03-11 15:07 UTC (permalink / raw)
  To: yocto

On 3/11/15 7:15 AM, Prashant Purohit wrote:
> Hi,
> 
> I am trying to boot kernel image for 'armv7ab' using QEMU.
> 
> To do the same, I have included the 'tune-arma7.inc' (/meta/conf/machine/include/
> arm/arch-armv7a.inc) and configured DEFAULTTUNE variable to 'armv7ab'.
> But I am not able to build the image for it. I am getting error (compiled for a
> little endian system and target is big endian) while compiling kernel image.
> 
> The log for the same is attached with this mail.
> Has anyone faced the same issue previously or has any inputs for it?

Changing just the DEFAULTTUNE does not affect the kernel configuration (only
userspace compilation).  You will need to configure the kernel for the proper
big-endian target to resolve these types of items.  I've not done this on ARM
before, but most likely you'll need to define a new machine file, and associated
configuration fragment(s).

--Mark

> Thanks,
> Prashant
> 
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-11 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-11 12:15 : Build error while building armeb image Prashant Purohit
2015-03-11 15:07 ` Mark Hatle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.