Skip to contentSkip to conversation

uclibc support for x86

DISCUSSION Mikael Rosbacke 3 participants 4 messages Nov 25, 2008 – Nov 26, 2008

lore
Share & tools
lore
#0 lore raw

Hello!

Seems I'm the only one crazy enough to try to run a uClibc based distribution on x86. (I can see the response, What's the point?)

Anyway, it turns out uClibc is currently lacking support for x86. I've added the folder openembedded/packages/uclibc/uclibc-0.9.30/x86 and created the file uClibc.machine in this folder. (See attachment)

Is there some way to get this into the git tree? Should I file a bug report or could some maintainer give feedback on things to fix before inclusion? I've tried to keep the config file in style with similar config files for other machines.

Thanks in advance,

--- Mikael Rosbacke

#
# Automatically generated make config: don't edit
# Version: 0.9.30
# Tue Nov 25 12:58:02 2008
#
# TARGET_alpha is not set
# TARGET_arm is not set
# TARGET_avr32 is not set
# TARGET_bfin is not set
# TARGET_cris is not set
# TARGET_e1 is not set
# TARGET_frv is not set
# TARGET_h8300 is not set
# TARGET_hppa is not set
TARGET_i386=y
# TARGET_i960 is not set
# TARGET_ia64 is not set
# TARGET_m68k is not set
# TARGET_microblaze is not set
# TARGET_mips is not set
# TARGET_nios is not set
# TARGET_nios2 is not set
# TARGET_powerpc is not set
# TARGET_sh is not set
# TARGET_sh64 is not set
# TARGET_sparc is not set
# TARGET_v850 is not set
# TARGET_vax is not set
# TARGET_x86_64 is not set
# TARGET_xtensa is not set

#
# Target Architecture Features and Options
#
TARGET_ARCH="i386"
FORCE_OPTIONS_FOR_ARCH=y
CONFIG_GENERIC_386=y
# CONFIG_386 is not set
# CONFIG_486 is not set
# CONFIG_586 is not set
# CONFIG_586MMX is not set
# CONFIG_686 is not set
# CONFIG_PENTIUMII is not set
# CONFIG_PENTIUMIII is not set
# CONFIG_PENTIUM4 is not set
# CONFIG_K6 is not set
# CONFIG_K7 is not set
# CONFIG_ELAN is not set
# CONFIG_CRUSOE is not set
# CONFIG_WINCHIPC6 is not set
# CONFIG_WINCHIP2 is not set
# CONFIG_CYRIXIII is not set
# CONFIG_NEHEMIAH is not set
TARGET_SUBARCH=""

#
# Using ELF file format
#
ARCH_LITTLE_ENDIAN=y

#
# Using Little Endian
#
ARCH_HAS_MMU=y
ARCH_USE_MMU=y
UCLIBC_HAS_FLOATS=y
UCLIBC_HAS_FPU=y
# DO_C99_MATH is not set
# UCLIBC_HAS_FENV is not set
KERNEL_HEADERS="/usr/include"
HAVE_DOT_CONFIG=y

#1 lore raw

Looks sane to me. Have you tried to build a distro with this change ?

Thx

-Khem

Quoted 25 lines · Mikael Rosbacke

Hello!

Seems I'm the only one crazy enough to try to run a uClibc based distribution on x86. (I can see the response, What's the point?)

Anyway, it turns out uClibc is currently lacking support for x86. I've added the folder openembedded/packages/uclibc/uclibc-0.9.30/x86 and created the file uClibc.machine in this folder. (See attachment)

Is there some way to get this into the git tree? Should I file a bug report or could some maintainer give feedback on things to fix before inclusion? I've tried to keep the config file in style with similar config files for other machines.

Thanks in advance,

--- Mikael Rosbacke

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw

I did:

rm -rf tmp
bitbake console-image

with this in my local.conf:

BBFILES = "/home/mikaelr/oe/openembedded/packages/*/*.bb" CCACHE=""
DISTRO = "angstrom-2008.1"
MACHINE = "x86"
ANGSTROM_MODE = "uclibc"
BB_NUMBER_THREADS = "3"
IMAGE_FSTYPES += "tar.bz2"

There was 1 additional issue, as reported before. I had to insert:
'#include <limits.h>' in:

tmp/work/x86-angstrom-linux-uclibc/linux-2.6.21-r12/linux-2.6.21/scripts/mod/sumversion.c

and restart the build process. This is the same for a glibc build and should be unrelated to the uclibc change.

After the build finished, I made a bootable CF card and booted a SiS550 based system (x86 compatible). I got to the Angstrom login prompt.

With my initial test ucLibc seems to work so far.

tnx,

--- Mikael R

tis 2008-11-25 klockan 15:52 -0800 skrev Khem Raj:

Quoted 37 lines

Looks sane to me. Have you tried to build a distro with this change ?

Thx

-Khem

Quoted 17 lines · Mikael Rosbacke

Hello!

Seems I'm the only one crazy enough to try to run a uClibc based distribution on x86. (I can see the response, What's the point?)

Anyway, it turns out uClibc is currently lacking support for x86. I've added the folder openembedded/packages/uclibc/uclibc-0.9.30/x86 and created the file uClibc.machine in this folder. (See attachment)

Is there some way to get this into the git tree? Should I file a bug report or could some maintainer give feedback on things to fix before inclusion? I've tried to keep the config file in style with similar config files for other machines.

Thanks in advance,

Quoted 8 lines

--- Mikael Rosbacke

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw
In reply to Mikael Rosbacke

Hello Mikael,

Quoted 3 lines · Mikael Rosbacke

Seems I'm the only one crazy enough to try to run a uClibc based distribution on x86. (I can see the response, What's the point?)

No, very good:

- Adding more x86 support allows OE to be remain more clean and architecture-independent.
- Not everything is ARM.
- We have seen adding powerpc support fix some generic OE issues, adding more x86 support will fix additional issues I'm sure.
- Although x86 might not always be resource limited platforms, it doesn't mean you shouldn't use OE, or uclibc.

Kudos,

Signature · 1 line
Leon