All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Adding a new Machine question
@ 2010-01-13 16:10 Perepelica Alexander
  2010-01-14  8:59 ` Martyn Welch
  0 siblings, 1 reply; 11+ messages in thread
From: Perepelica Alexander @ 2010-01-13 16:10 UTC (permalink / raw)
  To: openembedded-devel

Thank you, Martyn!
I remove my changes from linux_2.6.32+2.6.33-rc3.bb and I build was 
successful but don't boot with image :(  - all hangs

Perepelica Alexander wrote:
> 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_FEATURES
> MACHINE_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?
>

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


--
Martyn Welch (Principal Software Engineer)   |   Registered in England
and
GE Intelligent Platforms                     |   Wales (3828642) at 100
T +44(0)127322748                            |   Barbirolli Square,
Manchester,
E martyn.welch@gefanuc.com                   |   M2 3AB  VAT:GB
927559189


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



^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Adding a new Machine question
@ 2010-01-13 15:38 Perepelica Alexander
  0 siblings, 0 replies; 11+ messages in thread
From: Perepelica Alexander @ 2010-01-13 15:38 UTC (permalink / raw)
  To: openembedded-devel

Hello Martin!
I set DEFAULT_PREFERENCE = "1" but this don't helped
here is my changes

diff --git a/recipes/linux/linux_2.6.32+2.6.33-rc3.bb 
b/recipes/linux/linux_2.6.32+2.6.33-rc3.bb
index c459312..eb688a5 100644
--- a/recipes/linux/linux_2.6.32+2.6.33-rc3.bb
+++ b/recipes/linux/linux_2.6.32+2.6.33-rc3.bb
@@ -8,7 +8,7 @@ PR = "r1"
 S = "${WORKDIR}/linux-${OLD_KERNEL_RELEASE}"

 # Mark archs/machines that this kernel supports
-DEFAULT_PREFERENCE = "-1"
+DEFAULT_PREFERENCE = "1"
 DEFAULT_PREFERENCE_simone = "-1"
 DEFAULT_PREFERENCE_akita = "-1"
 DEFAULT_PREFERENCE_c7x0 = "-1"
diff --git a/recipes/linux/linux_2.6.32.bb 
b/recipes/linux/linux_2.6.32.bb
index 6a97f1b..46388bc 100644
--- a/recipes/linux/linux_2.6.32.bb
+++ b/recipes/linux/linux_2.6.32.bb
@@ -5,7 +5,7 @@ PR = "r3"
 S = "${WORKDIR}/linux-${PV}"

 # Mark archs/machines that this kernel supports
-DEFAULT_PREFERENCE = "-1"
+DEFAULT_PREFERENCE = "1"
 DEFAULT_PREFERENCE_ion = "1"
 DEFAULT_PREFERENCE_simone = "1"





^ permalink raw reply related	[flat|nested] 11+ messages in thread
* Adding a new Machine question
@ 2010-01-13 12:55 Perepelica Alexander
  2010-01-13 13:26 ` Martyn Welch
  0 siblings, 1 reply; 11+ messages in thread
From: Perepelica Alexander @ 2010-01-13 12:55 UTC (permalink / raw)
  To: openembedded-devel

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



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

end of thread, other threads:[~2010-01-15  6:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 16:10 Adding a new Machine question Perepelica Alexander
2010-01-14  8:59 ` Martyn Welch
2010-01-14  9:24   ` Perepelica Alexander
2010-01-14  9:43     ` Andrea Adami
2010-01-14  9:45     ` Martyn Welch
2010-01-14 20:25       ` Khem Raj
2010-01-14 21:05         ` Perepelica Alexander
2010-01-15  6:50           ` Khem Raj
  -- strict thread matches above, loose matches on Subject: below --
2010-01-13 15:38 Perepelica Alexander
2010-01-13 12:55 Perepelica Alexander
2010-01-13 13:26 ` Martyn Welch

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.