[yocto] bring mipsel support (little endian mode)

Dennis.Yxun dennis.yxun at gmail.com
Tue Jun 26 23:25:41 PDT 2012


HI ALL:
   Sorry for crossing post, but I'm quite new here, so if I did
something wrong, please point me the right direction. thanks
   I'm using oe-core, and notice that mipsel support(o32, little
endian mode) is missing (current available choose is: qemumips,
qemumips64, qemumips64el).
   So, here I'm trying to bring up qemumipsel support . My first
attempt would just make qemumipsel work,
further would make it running on real board, thus maybe mips4kec,
mips24k, mips74k chips.
   What I achieved here current:
  1) toolchain/basic libs, utilities should works ,only one changes,
see my patch [a]
   for mipsel we also have to filter out -march=mips32, previously we
only handle mips (the big endian?)
   don't have the error message now, but if you request, I can provide.
  2) attempt to  compile kernel to support qemumipsel, unfortunately it fail.
The point here is linux-yocto doesn't support qemumipsel, but merely
support those other three mips arches,
So here is my attempt patch [b], and the fail log [c], complied out
binary still big endian.

   Could my patch [a] be accepted? or should I send with another mail
for better review?
   Is it better to request a ticket in yocto's bugzilla? or just
report here, I'm not quite sure.

Dennis

[a] 0001-eglibc-support-mipsel-little-endian-filter-out-march.patch
[b] 0002-qemu-attempt-to-add-mipsel-little-endian-support-but.patch
[c] build_log.txt
[d] log.do_package
-------------- next part --------------
Loading cache...done.
Loaded 1123 entries from dependency cache.

Build Configuration:
BB_VERSION        = "1.15.2"
TARGET_ARCH       = "mipsel"
TARGET_OS         = "linux"
MACHINE           = "qemumipsel"
DISTRO_VERSION    = "oe-core.0"
TUNE_FEATURES     = "o32 fpu-hard mips32"
TARGET_FPU        = ""
meta              = "master:b7225858d99d9e308aaa700c818d192a0bc831c8"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Running setscene task 197 of 325 (/home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_populate_sysroot_setscene)
NOTE: Running setscene task 198 of 325 (/home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_deploy_setscene)
NOTE: Running setscene task 199 of 325 (/home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_populate_lic_setscene)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_populate_sysroot_setscene: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_deploy_setscene: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_populate_lic_setscene: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_deploy_setscene: Succeeded
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_populate_lic_setscene: Succeeded
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_populate_sysroot_setscene: Succeeded
NOTE: Executing RunQueue Tasks
NOTE: Running task 294 of 916 (ID: 6, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_fetch)
NOTE: Running task 803 of 916 (ID: 538, /home/dennis/oe/oe-core/meta/recipes-devtools/perl/perl_5.14.2.bb, do_package_write_ipk)
NOTE: Running task 820 of 916 (ID: 439, /home/dennis/oe/oe-core/meta/recipes-core/eglibc/eglibc_2.15.bb, do_package_write_ipk)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_fetch: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_fetch: Succeeded
NOTE: Running task 895 of 916 (ID: 2, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_unpack)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_unpack: Started
NOTE: package perl-5.14.2-r7: task do_package_write_ipk: Started
NOTE: package eglibc-2.15-r12+svnr17386: task do_package_write_ipk: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_unpack: Succeeded
NOTE: Running task 896 of 916 (ID: 1, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_kernel_checkout)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_kernel_checkout: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_kernel_checkout: Succeeded
NOTE: Running task 897 of 916 (ID: 0, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_validate_branches)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_validate_branches: Started
NOTE: package eglibc-2.15-r12+svnr17386: task do_package_write_ipk: Succeeded
NOTE: Running noexec task 898 of 916 (ID: 436, /home/dennis/oe/oe-core/meta/recipes-core/eglibc/eglibc_2.15.bb, do_package_write)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_validate_branches: Succeeded
NOTE: Running task 899 of 916 (ID: 3, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_patch)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_patch: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_patch: Succeeded
NOTE: Running task 900 of 916 (ID: 8, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_kernel_configme)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_kernel_configme: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_kernel_configme: Succeeded
NOTE: Running task 902 of 916 (ID: 9, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_configure)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_configure: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_configure: Succeeded
NOTE: Running task 903 of 916 (ID: 10, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_kernel_configcheck)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_kernel_configcheck: Started
NOTE: validating kernel configuration
WARNING: Can't find any BSP hardware or required configuration fragments.
WARNING: Looked at /home/dennis/oe/oe-core/build/tmp-eglibc/work/qemumipsel-oe-linux/linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0/linux/meta/cfg/standard/mti-malta32/hdw_frags.txt and /home/dennis/oe/oe-core/build/tmp-eglibc/work/qemumipsel-oe-linux/linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0/linux/meta/cfg/standard/mti-malta32/required_frags.txt in directory: /home/dennis/oe/oe-core/build/tmp-eglibc/work/qemumipsel-oe-linux/linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0/linux/meta/cfg/standard/mti-malta32
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_kernel_configcheck: Succeeded
NOTE: Running task 904 of 916 (ID: 11, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_compile)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_compile: Started
NOTE: package perl-5.14.2-r7: task do_package_write_ipk: Succeeded
NOTE: Running noexec task 905 of 916 (ID: 535, /home/dennis/oe/oe-core/meta/recipes-devtools/perl/perl_5.14.2.bb, do_package_write)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_compile: Succeeded
NOTE: Running task 906 of 916 (ID: 15, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_compile_kernelmodules)
NOTE: Running task 907 of 916 (ID: 14, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_sizecheck)
NOTE: Running task 908 of 916 (ID: 13, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_uboot_mkimage)
NOTE: Running task 909 of 916 (ID: 12, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_kernel_link_vmlinux)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_compile_kernelmodules: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_sizecheck: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_uboot_mkimage: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_compile_kernelmodules: Succeeded
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_sizecheck: Succeeded
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_uboot_mkimage: Succeeded
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_kernel_link_vmlinux: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_kernel_link_vmlinux: Succeeded
NOTE: Running task 910 of 916 (ID: 4, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_install)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_install: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_install: Succeeded
NOTE: Running task 911 of 916 (ID: 18, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_package)
NOTE: Running task 913 of 916 (ID: 5, /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_populate_sysroot)
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_package: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_populate_sysroot: Started
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_populate_sysroot: Succeeded
ERROR: QA Issue: Endiannes did not match (1 to 0) on /work/qemumipsel-oe-linux/linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0/packages-split/kernel-vmlinux/boot/vmlinux-3.4.1-yocto-standard
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/dennis/oe/oe-core/build/tmp-eglibc/work/qemumipsel-oe-linux/linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0/temp/log.do_package.464
NOTE: package linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0: task do_package: Failed
ERROR: Task 18 (/home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 913 tasks of which 893 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/dennis/oe/oe-core/meta/recipes-kernel/linux/linux-yocto_3.4.bb, do_package
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-eglibc-support-mipsel-little-endian-filter-out-march.patch
Type: application/octet-stream
Size: 1383 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120627/12be30bd/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-qemu-attempt-to-add-mipsel-little-endian-support-but.patch
Type: application/octet-stream
Size: 1753 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120627/12be30bd/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.do_package
Type: application/octet-stream
Size: 3977 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120627/12be30bd/attachment-0002.obj>


More information about the yocto mailing list