* 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
* Re: Adding a new Machine question
2010-01-13 12:55 Perepelica Alexander
@ 2010-01-13 13:26 ` Martyn Welch
0 siblings, 0 replies; 11+ messages in thread
From: Martyn Welch @ 2010-01-13 13:26 UTC (permalink / raw)
To: openembedded-devel
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
^ 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
* 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 16:10 Adding a new Machine question Perepelica Alexander
@ 2010-01-14 8:59 ` Martyn Welch
2010-01-14 9:24 ` Perepelica Alexander
0 siblings, 1 reply; 11+ messages in thread
From: Martyn Welch @ 2010-01-14 8:59 UTC (permalink / raw)
To: openembedded-devel
Perepelica Alexander wrote:
> 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
At what point does it hang?
At a guess (as you haven't provided any specifics) I'd guess that you
need to look at the kernel configuration.
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Adding a new Machine question
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
0 siblings, 2 replies; 11+ messages in thread
From: Perepelica Alexander @ 2010-01-14 9:24 UTC (permalink / raw)
To: openembedded-devel
When I try boot image in qemu I see
booting kernel ... and nothing.
14.01.2010 10:59, Martyn Welch пишет:
> Perepelica Alexander wrote:
>
>> 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
>>
> At what point does it hang?
>
> At a guess (as you haven't provided any specifics) I'd guess that you
> need to look at the kernel configuration.
>
> Martyn
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Adding a new Machine question
2010-01-14 9:24 ` Perepelica Alexander
@ 2010-01-14 9:43 ` Andrea Adami
2010-01-14 9:45 ` Martyn Welch
1 sibling, 0 replies; 11+ messages in thread
From: Andrea Adami @ 2010-01-14 9:43 UTC (permalink / raw)
To: openembedded-devel
Hello,
>> At a guess (as you haven't provided any specifics) I'd guess that you
>> need to look at the kernel configuration.
right
Setting DEFAULT_PREFERENCE_yourmachine = "1" is not enough: you have
to provide a specific defconfig for your machine, in a subdir of
linux-2.6.32+2.6.33-rc4
Actually only spitz machine has one...I suppose you are building using
default defconfig.
Regards
Andrea
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Adding a new Machine question
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
1 sibling, 1 reply; 11+ messages in thread
From: Martyn Welch @ 2010-01-14 9:45 UTC (permalink / raw)
To: openembedded-devel
Perepelica Alexander wrote:
> When I try boot image in qemu I see
> booting kernel ... and nothing.
>
I'm afraid I have no experience with using qemu, so I don't think I can
really make any suggestions at this point.
Martyn
>
> 14.01.2010 10:59, Martyn Welch пишет:
>> Perepelica Alexander wrote:
>>
>>> 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
>>>
>> At what point does it hang?
>>
>> At a guess (as you haven't provided any specifics) I'd guess that you
>> need to look at the kernel configuration.
>>
>> Martyn
>>
>>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Adding a new Machine question
2010-01-14 9:45 ` Martyn Welch
@ 2010-01-14 20:25 ` Khem Raj
2010-01-14 21:05 ` Perepelica Alexander
0 siblings, 1 reply; 11+ messages in thread
From: Khem Raj @ 2010-01-14 20:25 UTC (permalink / raw)
To: openembedded-devel
On (14/01/10 09:45), Martyn Welch wrote:
> Perepelica Alexander wrote:
> > When I try boot image in qemu I see
> > booting kernel ... and nothing.
> >
Did you set the console properly. i.e. -append "console=ttyS0" on qemu
invocation ?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Adding a new Machine question
2010-01-14 20:25 ` Khem Raj
@ 2010-01-14 21:05 ` Perepelica Alexander
2010-01-15 6:50 ` Khem Raj
0 siblings, 1 reply; 11+ messages in thread
From: Perepelica Alexander @ 2010-01-14 21:05 UTC (permalink / raw)
To: openembedded-devel
After some conf changes I get unknown device sda - but I look at kernel
config seems all is ok
* Khem Raj <raj.khem@gmail.com> [Thu, 14 Jan 2010 12:25:41 -0800]:
> On (14/01/10 09:45), Martyn Welch wrote:
> > Perepelica Alexander wrote:
> > > When I try boot image in qemu I see
> > > booting kernel ... and nothing.
> > >
>
> Did you set the console properly. i.e. -append "console=ttyS0" on qemu
> invocation ?
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
Thank you.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Adding a new Machine question
2010-01-14 21:05 ` Perepelica Alexander
@ 2010-01-15 6:50 ` Khem Raj
0 siblings, 0 replies; 11+ messages in thread
From: Khem Raj @ 2010-01-15 6:50 UTC (permalink / raw)
To: openembedded-devel
On Thu, Jan 14, 2010 at 1:05 PM, Perepelica Alexander
<alexondi@rambler.ru> wrote:
> After some conf changes I get unknown device sda - but I look at kernel
> config seems all is ok
try one of /dev/hda or dev/sda1 or /dev/hda1
>
> * Khem Raj <raj.khem@gmail.com> [Thu, 14 Jan 2010 12:25:41 -0800]:
>>
>> On (14/01/10 09:45), Martyn Welch wrote:
>> > Perepelica Alexander wrote:
>> > > When I try boot image in qemu I see
>> > > booting kernel ... and nothing.
>> > >
>>
>> Did you set the console properly. i.e. -append "console=ttyS0" on qemu
>> invocation ?
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
>
>
>
> --
> Thank you.
>
> _______________________________________________
> 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
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.