All of lore.kernel.org
 help / color / mirror / Atom feed
* bring mipsel support (little endian mode)
@ 2012-06-27  6:25 Dennis.Yxun
  2012-06-27  6:40   ` Khem Raj
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Dennis.Yxun @ 2012-06-27  6:25 UTC (permalink / raw)
  To: openembedded-core, yocto

[-- Attachment #1: Type: text/plain, Size: 1463 bytes --]

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

[-- Attachment #2: build_log.txt --]
[-- Type: text/plain, Size: 11505 bytes --]

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.

[-- Attachment #3: 0001-eglibc-support-mipsel-little-endian-filter-out-march.patch --]
[-- Type: application/octet-stream, Size: 1384 bytes --]

From a425167c0edce046aebc2307e4e50f1dc7c947ad Mon Sep 17 00:00:00 2001
From: Dennis Lan <dennis.yxun@gmail.com>
Date: Wed, 27 Jun 2012 13:25:50 +0800
Subject: [PATCH] eglibc: support mipsel little endian, filter out
 -march=mips32

Quote for eglibc source:
 for mips eglibc now builds syscall tables for all abi's
 so we make sure that we choose right march option which is
 compatible with o32,n32 and n64 abi's
 e.g. -march=mips32 is not compatible with n32 and n64 therefore
 we filter it out in such case -march=from-abi which will be
 mips1 when using o32 and mips3 when using n32/n64

Signed-off-by: Dennis Lan <dennis.yxun@gmail.com>
---
 meta/recipes-core/eglibc/eglibc_2.15.bb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-core/eglibc/eglibc_2.15.bb b/meta/recipes-core/eglibc/eglibc_2.15.bb
index e57a112..b2922b4 100644
--- a/meta/recipes-core/eglibc/eglibc_2.15.bb
+++ b/meta/recipes-core/eglibc/eglibc_2.15.bb
@@ -101,6 +101,7 @@ do_patch_append() {
 # mips1 when using o32 and mips3 when using n32/n64
 
 TUNE_CCARGS_mips := "${@oe_filter_out('-march=mips32', '${TUNE_CCARGS}', d)}"
+TUNE_CCARGS_mipsel := "${@oe_filter_out('-march=mips32', '${TUNE_CCARGS}', d)}"
 
 # We need to ensure that all of the i386 and x86_64 headers are identical
 # to support the multilib case.  We do this by copying headers from x86_64
-- 
1.7.8.6


[-- Attachment #4: 0002-qemu-attempt-to-add-mipsel-little-endian-support-but.patch --]
[-- Type: application/octet-stream, Size: 1754 bytes --]

From b7225858d99d9e308aaa700c818d192a0bc831c8 Mon Sep 17 00:00:00 2001
From: Dennis Lan <dennis.yxun@gmail.com>
Date: Wed, 27 Jun 2012 13:32:26 +0800
Subject: [PATCH 2/2] qemu: attempt to add mipsel little endian support, but
 unfortunately fail

Signed-off-by: Dennis Lan <dennis.yxun@gmail.com>
---
 meta/recipes-kernel/linux/linux-yocto_3.4.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-yocto_3.4.bb b/meta/recipes-kernel/linux/linux-yocto_3.4.bb
index eb5e888..7662a10 100644
--- a/meta/recipes-kernel/linux/linux-yocto_3.4.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_3.4.bb
@@ -6,12 +6,14 @@ KBRANCH_qemux86  = "standard/common-pc/base"
 KBRANCH_qemux86-64  = "standard/common-pc-64/base"
 KBRANCH_qemuppc  = "standard/qemuppc"
 KBRANCH_qemumips = "standard/mti-malta32"
+KBRANCH_qemumipsel = "standard/mti-malta32"
 KBRANCH_qemumips64 = "standard/mti-malta64"
 KBRANCH_qemumips64el = "standard/mti-malta64"
 KBRANCH_qemuarm  = "standard/arm-versatile-926ejs"
 
 SRCREV_machine_qemuarm ?= "1b83eb1b99e937b67dafa4dedba9440d596cbd9f"
 SRCREV_machine_qemumips ?= "c6104a63aae262ff4238b45905ab1c57145334bc"
+SRCREV_machine_qemumipsel ?= "c6104a63aae262ff4238b45905ab1c57145334bc"
 SRCREV_machine_qemuppc ?= "4988a7e34bccd531b511c57f93358de9fcc672a0"
 SRCREV_machine_qemux86 ?= "a8291fa6f723b0182d2b7033b5d59f412ba7cf72"
 SRCREV_machine_qemux86-64 ?= "a8291fa6f723b0182d2b7033b5d59f412ba7cf72"
@@ -27,7 +29,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
 
 KMETA = "meta"
 
-COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)"
+COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemumipsel|qemux86-64)"
 
 # Functionality flags
 KERNEL_REVISION_CHECKING=""
-- 
1.7.8.6


[-- Attachment #5: log.do_package --]
[-- Type: application/octet-stream, Size: 3978 bytes --]

DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function do_package
DEBUG: Executing python function package_get_auto_pr
DEBUG: Python function package_get_auto_pr finished
DEBUG: Executing python function perform_packagecopy
DEBUG: Python function perform_packagecopy finished
DEBUG: Executing shell function kernel_package_preprocess
DEBUG: Shell function kernel_package_preprocess finished
DEBUG: Executing python function package_do_split_locales
DEBUG: No locale files in this package
DEBUG: Python function package_do_split_locales finished
DEBUG: Executing python function split_and_strip_files
DEBUG: Python function split_and_strip_files finished
DEBUG: Executing python function fixup_perms
DEBUG: Python function fixup_perms finished
DEBUG: Executing python function populate_packages
ERROR: could not open directory /home/dennis/oe/oe-core/build/tmp-eglibc/work/qemumipsel-oe-linux/linux-yocto-3.4.1+git1+aa226dcc5a1351fae49da40d77b718c4c3a76e7c_1+c6104a63aae262ff4238b45905ab1c57145334bc-r0/package/lib/modules/3.4.1-yocto-standard: No such file or directory
FATAL: could not search modules: No such file or directory
DEBUG: Executing python function package_name_hook
DEBUG: Executing python function debian_package_name_hook
DEBUG: LIBNAMES: pkg kernel-vmlinux libs 0 bins 0 sonames []
DEBUG: LIBNAMES: pkg kernel-modules libs 0 bins 0 sonames []
DEBUG: LIBNAMES: pkg kernel-misc libs 0 bins 0 sonames []
DEBUG: LIBNAMES: pkg kernel-image libs 0 bins 0 sonames []
DEBUG: LIBNAMES: pkg kernel-dev libs 0 bins 0 sonames []
DEBUG: LIBNAMES: pkg kernel-base libs 0 bins 0 sonames []
DEBUG: LIBNAMES: pkg kernel libs 0 bins 0 sonames []
DEBUG: Python function debian_package_name_hook finished
DEBUG: Python function package_name_hook finished
DEBUG: Python function populate_packages finished
DEBUG: Executing python function package_do_filedeps
DEBUG: Python function package_do_filedeps finished
DEBUG: Executing python function package_do_shlibs
DEBUG: calculating shlib provides for kernel
DEBUG: calculating shlib provides for kernel-base
DEBUG: calculating shlib provides for kernel-vmlinux
DEBUG: calculating shlib provides for kernel-image
DEBUG: calculating shlib provides for kernel-dev
DEBUG: calculating shlib provides for kernel-misc
DEBUG: calculating shlib provides for kernel-modules
DEBUG: calculating shlib requirements for kernel
DEBUG: calculating shlib requirements for kernel-base
DEBUG: calculating shlib requirements for kernel-vmlinux
DEBUG: calculating shlib requirements for kernel-image
DEBUG: calculating shlib requirements for kernel-dev
DEBUG: calculating shlib requirements for kernel-misc
DEBUG: calculating shlib requirements for kernel-modules
DEBUG: Python function package_do_shlibs finished
DEBUG: Executing python function package_do_pkgconfig
DEBUG: Python function package_do_pkgconfig finished
DEBUG: Executing python function read_shlibdeps
DEBUG: Python function read_shlibdeps finished
DEBUG: Executing python function package_depchains
DEBUG: Python function package_depchains finished
DEBUG: Executing python function emit_pkgdata
DEBUG: Python function emit_pkgdata finished
DEBUG: Executing python function do_package_qa
NOTE: DO PACKAGE QA
NOTE: Checking Package: kernel
NOTE: Checking Package: kernel-base
NOTE: Checking Package: kernel-vmlinux
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
NOTE: Checking Package: kernel-image
NOTE: Checking Package: kernel-dev
NOTE: Checking Package: kernel-misc
NOTE: Checking Package: kernel-modules
ERROR: QA run found fatal errors. Please consider fixing them.
DEBUG: Python function do_package_qa finished
DEBUG: Python function do_package finished
ERROR: Function failed: do_package_qa

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

* Re: [OE-core] bring mipsel support (little endian mode)
  2012-06-27  6:25 bring mipsel support (little endian mode) Dennis.Yxun
@ 2012-06-27  6:40   ` Khem Raj
  2012-06-27  7:09 ` Phil Blundell
  2012-06-27 15:17 ` Bruce Ashfield
  2 siblings, 0 replies; 11+ messages in thread
From: Khem Raj @ 2012-06-27  6:40 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: yocto

On Tue, Jun 26, 2012 at 11:25 PM, Dennis.Yxun <dennis.yxun@gmail.com> wrote:
> 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

This patch is appropriate for OE-Core, I will add it to my tree.

> [b] 0002-qemu-attempt-to-add-mipsel-little-endian-support-but.patch

This looks good to me but I will leave it to Bruce to decide.

> [c] build_log.txt
> [d] log.do_package
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>


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

* Re: bring mipsel support (little endian mode)
@ 2012-06-27  6:40   ` Khem Raj
  0 siblings, 0 replies; 11+ messages in thread
From: Khem Raj @ 2012-06-27  6:40 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: yocto

On Tue, Jun 26, 2012 at 11:25 PM, Dennis.Yxun <dennis.yxun@gmail.com> wrote:
> 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

This patch is appropriate for OE-Core, I will add it to my tree.

> [b] 0002-qemu-attempt-to-add-mipsel-little-endian-support-but.patch

This looks good to me but I will leave it to Bruce to decide.

> [c] build_log.txt
> [d] log.do_package
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>



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

* Re: [OE-core] bring mipsel support (little endian mode)
  2012-06-27  6:40   ` Khem Raj
@ 2012-06-27  7:00     ` Dennis.Yxun
  -1 siblings, 0 replies; 11+ messages in thread
From: Dennis.Yxun @ 2012-06-27  7:00 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto, Patches and discussions about the oe-core layer

hi Raj:

On Wed, Jun 27, 2012 at 2:40 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On Tue, Jun 26, 2012 at 11:25 PM, Dennis.Yxun <dennis.yxun@gmail.com> wrote:
>> 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
>
> This patch is appropriate for OE-Core, I will add it to my tree.
>
>> [b] 0002-qemu-attempt-to-add-mipsel-little-endian-support-but.patch
>
> This looks good to me but I will leave it to Bruce to decide.
>
>> [c] build_log.txt
>> [d] log.do_package
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

I'm quite confident with patch [a], but not sure with patch [b], since
it should point to a sanity SRCREV which works for "qemumipsel" -
little endian side, but here I'm simply duplicate from qemumips (the
big endian port). should confirm?!


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

* Re: [yocto] bring mipsel support (little endian mode)
@ 2012-06-27  7:00     ` Dennis.Yxun
  0 siblings, 0 replies; 11+ messages in thread
From: Dennis.Yxun @ 2012-06-27  7:00 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto, Patches and discussions about the oe-core layer

hi Raj:

On Wed, Jun 27, 2012 at 2:40 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On Tue, Jun 26, 2012 at 11:25 PM, Dennis.Yxun <dennis.yxun@gmail.com> wrote:
>> 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
>
> This patch is appropriate for OE-Core, I will add it to my tree.
>
>> [b] 0002-qemu-attempt-to-add-mipsel-little-endian-support-but.patch
>
> This looks good to me but I will leave it to Bruce to decide.
>
>> [c] build_log.txt
>> [d] log.do_package
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

I'm quite confident with patch [a], but not sure with patch [b], since
it should point to a sanity SRCREV which works for "qemumipsel" -
little endian side, but here I'm simply duplicate from qemumips (the
big endian port). should confirm?!



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

* Re: bring mipsel support (little endian mode)
  2012-06-27  6:25 bring mipsel support (little endian mode) Dennis.Yxun
  2012-06-27  6:40   ` Khem Raj
@ 2012-06-27  7:09 ` Phil Blundell
  2012-06-27 15:41   ` Khem Raj
  2012-06-27 15:17 ` Bruce Ashfield
  2 siblings, 1 reply; 11+ messages in thread
From: Phil Blundell @ 2012-06-27  7:09 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2012-06-27 at 14:25 +0800, Dennis.Yxun wrote:
>    for mipsel we also have to filter out -march=mips32, previously we
> only handle mips (the big endian?)

Why isn't mipsel getting the mips overrides?  I believe it's meant to.
For what it's worth, mipsel (generically; I haven't tried qemu
specifically) does seem to work fine for me without this patch.

p.





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

* Re: [OE-core] bring mipsel support (little endian mode)
  2012-06-27  6:40   ` Khem Raj
@ 2012-06-27 12:49     ` Bruce Ashfield
  -1 siblings, 0 replies; 11+ messages in thread
From: Bruce Ashfield @ 2012-06-27 12:49 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto, Patches and discussions about the oe-core layer

On Wed, Jun 27, 2012 at 2:40 AM, Khem Raj <raj.khem@gmail.com> wrote:
> On Tue, Jun 26, 2012 at 11:25 PM, Dennis.Yxun <dennis.yxun@gmail.com> wrote:
>> 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
>
> This patch is appropriate for OE-Core, I will add it to my tree.
>
>> [b] 0002-qemu-attempt-to-add-mipsel-little-endian-support-but.patch
>
> This looks good to me but I will leave it to Bruce to decide.

I've always had latent support for mipsel in the kernel tree, since it is
just a minor switch to the configs for the mti.

We'd also sent the KMACHINE to mti-malta32-le to pickup the le
configuration switches from the kernel .. or alternatively, I'll just update
the description to match on qemumipsel.

I'd want to do some build and boot testing myself first though, Phil seemed
to indicate that patch a) wasn't required. I'll start my own build and see if
my results match.

So if there's a desire to get this into oe-core, I can take care of the kernel
tweaks (and then carry it), but I'd expect Richard has an opinion on this, since
it really should be something that we then build and minimally test
on a regular basis.

Cheers,

Bruce

>
>> [c] build_log.txt
>> [d] log.do_package
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


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

* Re: [yocto] bring mipsel support (little endian mode)
@ 2012-06-27 12:49     ` Bruce Ashfield
  0 siblings, 0 replies; 11+ messages in thread
From: Bruce Ashfield @ 2012-06-27 12:49 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto, Patches and discussions about the oe-core layer

On Wed, Jun 27, 2012 at 2:40 AM, Khem Raj <raj.khem@gmail.com> wrote:
> On Tue, Jun 26, 2012 at 11:25 PM, Dennis.Yxun <dennis.yxun@gmail.com> wrote:
>> 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
>
> This patch is appropriate for OE-Core, I will add it to my tree.
>
>> [b] 0002-qemu-attempt-to-add-mipsel-little-endian-support-but.patch
>
> This looks good to me but I will leave it to Bruce to decide.

I've always had latent support for mipsel in the kernel tree, since it is
just a minor switch to the configs for the mti.

We'd also sent the KMACHINE to mti-malta32-le to pickup the le
configuration switches from the kernel .. or alternatively, I'll just update
the description to match on qemumipsel.

I'd want to do some build and boot testing myself first though, Phil seemed
to indicate that patch a) wasn't required. I'll start my own build and see if
my results match.

So if there's a desire to get this into oe-core, I can take care of the kernel
tweaks (and then carry it), but I'd expect Richard has an opinion on this, since
it really should be something that we then build and minimally test
on a regular basis.

Cheers,

Bruce

>
>> [c] build_log.txt
>> [d] log.do_package
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"



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

* Re: bring mipsel support (little endian mode)
  2012-06-27  6:25 bring mipsel support (little endian mode) Dennis.Yxun
  2012-06-27  6:40   ` Khem Raj
  2012-06-27  7:09 ` Phil Blundell
@ 2012-06-27 15:17 ` Bruce Ashfield
  2012-06-27 19:52   ` Dennis.Yxun
  2 siblings, 1 reply; 11+ messages in thread
From: Bruce Ashfield @ 2012-06-27 15:17 UTC (permalink / raw)
  To: Dennis.Yxun; +Cc: yocto, openembedded-core

On 12-06-27 02:25 AM, Dennis.Yxun wrote:
> 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.

Since it was easy enough to do, and doesn't imply any sort of full
support (since I can't declare that), I did the tweak to the mips
board descriptions and qemumipsel works without any machine mapping
in the linux-yocto recipes.

I pushed the change to the linux-yocto-3.4 meta branch, and staged a
commit for it locally.

You can see that commit here:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=zedd/mipsel

  .. stacked on top of my other pending 3.4 commits.

Note: I didn't update machine compatibility in that commit on purpose,
and I wasn't able to complete a full core-image-minimal build due to
QA issues. I'm probably just not building with a complete machine.conf ..
since I grabbed one quickly this morning to check the kernel parts.

Cheers,

Bruce

>
>     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



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

* Re: bring mipsel support (little endian mode)
  2012-06-27  7:09 ` Phil Blundell
@ 2012-06-27 15:41   ` Khem Raj
  0 siblings, 0 replies; 11+ messages in thread
From: Khem Raj @ 2012-06-27 15:41 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, Jun 27, 2012 at 12:09 AM, Phil Blundell <philb@gnu.org> wrote:
> On Wed, 2012-06-27 at 14:25 +0800, Dennis.Yxun wrote:
>>    for mipsel we also have to filter out -march=mips32, previously we
>> only handle mips (the big endian?)
>
> Why isn't mipsel getting the mips overrides?  I believe it's meant to.
> For what it's worth, mipsel (generically; I haven't tried qemu
> specifically) does seem to work fine for me without this patch.

if you are using 2.15 it uses the compiler to generate syscalls for all abi's
and you should get errors. TARGET_ARCH is in overrides and for mipsel
its set to mipsel and for big endian its mips therefore mips should
not appear in OVERRIDE lists.
I and curious how it worked for you

>
> p.
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



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

* Re: bring mipsel support (little endian mode)
  2012-06-27 15:17 ` Bruce Ashfield
@ 2012-06-27 19:52   ` Dennis.Yxun
  0 siblings, 0 replies; 11+ messages in thread
From: Dennis.Yxun @ 2012-06-27 19:52 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: yocto, Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 2679 bytes --]

hi  bruce:
   i'm cherry-pick your commit, and it seems compile successfully, though
will do a run-time check later, thanks

at 2012-6-27 pm11:17,"Bruce Ashfield" <bruce.ashfield@windriver.com>written:
>
> On 12-06-27 02:25 AM, Dennis.Yxun wrote:
>>
>> 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.
>
>
> Since it was easy enough to do, and doesn't imply any sort of full
> support (since I can't declare that), I did the tweak to the mips
> board descriptions and qemumipsel works without any machine mapping
> in the linux-yocto recipes.
>
> I pushed the change to the linux-yocto-3.4 meta branch, and staged a
> commit for it locally.
>
> You can see that commit here:
>
> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=zedd/mipsel
>
>  .. stacked on top of my other pending 3.4 commits.
>
> Note: I didn't update machine compatibility in that commit on purpose,
> and I wasn't able to complete a full core-image-minimal build due to
> QA issues. I'm probably just not building with a complete machine.conf ..
> since I grabbed one quickly this morning to check the kernel parts.
>
> Cheers,
>
> Bruce
>
>
>>
>>    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
>
>

[-- Attachment #2: Type: text/html, Size: 3476 bytes --]

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

end of thread, other threads:[~2012-06-27 19:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-27  6:25 bring mipsel support (little endian mode) Dennis.Yxun
2012-06-27  6:40 ` [OE-core] " Khem Raj
2012-06-27  6:40   ` Khem Raj
2012-06-27  7:00   ` [OE-core] " Dennis.Yxun
2012-06-27  7:00     ` [yocto] " Dennis.Yxun
2012-06-27 12:49   ` [OE-core] " Bruce Ashfield
2012-06-27 12:49     ` [yocto] " Bruce Ashfield
2012-06-27  7:09 ` Phil Blundell
2012-06-27 15:41   ` Khem Raj
2012-06-27 15:17 ` Bruce Ashfield
2012-06-27 19:52   ` Dennis.Yxun

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.