Adding a new Machine question
Hi!
I have problem with configs for new x86_64 machine.
How I read in manual I need set next vasiables
1. TARGET_ARCH
TARGET_ARCH = "x86_64"
2. MACHINE_FEATURESMACHINE_FEATURES = "kernel26 screen keyboard pci usbhost acpi ext2 x86" MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
3. PREFERRED_PROVIDER_virtual/kernel PREFERRED_PROVIDER_virtual/kernel = "linux"
And now when I build helloworld-image all is ok i get my RFS image. But when I try build bootstrap-image I got error
" no such directory asm-x86" but I see dir with name "asm-generic" and name of machine conf file is x86_64-generic.conf.
So, I don't understand what I do wrong?
x86_64-generic.conf
# Released under the MIT license (see packages/COPYING) #@TYPE: Machine
#@NAME: x86_64
#@DESCRIPTION: Machine configuration for a generic x86_64 machine
TARGET_ARCH = "x86_64"
#PREFERRED_PROVIDER_virtual/kernel = "linux"PREFERRED_VERSION_gcc = "4.4.2"KERNEL_IMAGETYPE = "bzImage"GLIBC_ADDONS = "nptl"GLIBC_EXTRA_OECONF = "--with-tls"
IMAGE_FSTYPES ?= "ext2.gz"IMAGE_DEVICE_TABLES = " \
files/device_table-minimal.txt \
files/device_table_add-loop.txt \
files/device_table_add-scsi.txt \
"MACHINE_FEATURES = "kernel26 screen keyboard pci usbhost acpi ext2" MACHINE_EXTRA_RRECOMMENDS = " kernel-modules" TARGET_CC_ARCH = "-m64"BASE_PACKAGE_ARCH = "x86_64"FEED_ARCH = "x86_64"
#PACKAGE_EXTRA_ARCHS += "x86 i386 i486 i586 i686"
--
Thank you.
Perepelica Alexander
Quoted 7 lines · Perepelica Alexander
Hi!
I have problem with configs for newx86_64machine.
How I read in manual I need set next vasiables
1.TARGET_ARCH
TARGET_ARCH= "x86_64"
2.MACHINE_FEATURESMACHINE_FEATURES= "kernel26 screen keyboard pci usbhost acpi ext2 x86"
Quoted 9 lines
MACHINE_EXTRA_RRECOMMENDS= " kernel-modules"
3. PREFERRED_PROVIDER_virtual/kernel PREFERRED_PROVIDER_virtual/kernel = "linux"
And now when I build helloworld-image all is ok i get my RFS image. But when I try build bootstrap-image I got error
" no such directory asm-x86" but I see dir with name "asm-generic" and name of machine conf file is x86_64-generic.conf.
So, I don't understand what I do wrong?
I think I had this problem as well when compiling for a i586-generic (infact i686-generic and x86 as well).
All the kernel bitbake files contain DEFAULT_PREFERENCE = "-1" and the bitbake file for the newest kernel (linux_2.6.32+2.6.33-rc3.bb
<http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/linux/linux_2.6.32+2.6.33-rc3.bb>
I think) was failing for x86.
I modified linux_2.6.32.bb
<http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/linux/linux_2.6.32.bb>
from:
|DEFAULT_PREFERENCE = "-1"
|
to:
|DEFAULT_PREFERENCE = "1"
|
and was able to build (though I haven't got around to testing the resulting kernel yet...)
Martyn
Signature · 4 lines
Martyn Welch (Principal Software Engineer) | Registered in England and GE Intelligent Platforms | Wales (3828642) at 100 T +44(0)127322748 | Barbirolli Square, Manchester, E [email protected] | M2 3AB VAT:GB 927559189