Re: [yocto] qemux86 Image won't boot from CF

2012-06-13 Thread Jürgen Messerer
Thanks a lot for the tips. 
I will check them.

Best regards

Juergen


-Original Message-
From: Andrea Adami [mailto:andrea.ad...@gmail.com] 
Sent: Dienstag, 12. Juni 2012 14:08
To: Jürgen Messerer
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] qemux86 Image won't boot from CF

On Tue, Jun 12, 2012 at 2:04 PM, Andrea Adami andrea.ad...@gmail.com wrote:
 On Tue, Jun 12, 2012 at 1:07 PM, Jürgen Messerer 
 juergen.messe...@bbv.ch wrote:
 Hi everybody.



 The following problem occurs when I try to start a x86 linux system 
 from CF-Card.



 I have generate a qemux86 core-image-minimal  image with the latest pokey.

 After that I have copied everything on a CF including 
 bzImage-3.2.1-yocto-standard

 Grub was already installed from an old linux version.



 I configured grubs menu.lst.

 Ther kernel starts perfectly util it like to finde the rootfs.

 Only one ext2 partion exist on the CF-Card.

 If have tried hda1 hdb1 hdc1 sda1 sdb1 sdc1 for the to root option. 
 Same problem.


 Surely it is /dev/sdX since 2.6.3x
 Do you have all the necessary config options set for boot from CF?
 You need the block (pcmcia, pata, ..) devices and the filesystems 
 built in kernel.


Ah, pls. add 'rootwait' to cmdline when booting from those kind of removable 
media.

Cheers

Andrea


 Cheers

 Andrea

 I also tried initrd. Same problem.

 I also tried rootfs from narcissus. Same problem.



 I appreciate any help.



 Thanks.



 Regards



 Juergen



 

 Menu.lst :

 

 serial --unit=0 --speed=57600

 terminal --timeout=1 serial console

 default 0



 # tell grub to find the kernel on /dev/hda1

 root (hd0,0)

 savedefault



 # start menu entry with title

 title OpenEmbedded GNU/Linux



 title New OE serial console

 root (hd0,0)

 kernel /boot/bzImage-3.2.11-yocto-standard serialconsole 
 root=/dev/hdb1 init=/sbin/init console=tty0 console=ttyS0,57600n8

 savedefault





 

 KERNEL Output:

 

   Booting 'New OE serial console'



 root (hd0,0)

 Filesystem type is ext2fs, partition type 0x83

 kernel /boot/bzImage-3.2.11-yocto-standard serialconsole 
 root=/dev/hdb1 init=/s

 bin/init console=tty0 console=ttyS0,57600n8

    [Linux-bzImage, setup=0x3a00, size=0x441020]

 savedefault



 Initializing cgroup subsys cpuset

 Initializing cgroup subsys cpu

 Linux version 3.2.11-yocto-standard (blabla@blabla-virtual-machine) 
 (gcc version 4.6.4 20120303 (prerelea2

 BIOS-provided physical RAM map:

 BIOS-e820:  - 0009e000 (usable)

 BIOS-e820: 0009e000 - 000a (reserved)

 BIOS-e820: 000f - 0010 (reserved)

 BIOS-e820: 0010 - 0f7c (usable)

 BIOS-e820:  - 0001 (reserved)

 Notice: NX (Execute Disable) protection missing in CPU!

 DMI 2.2 present.

 last_pfn = 0xf7c0 max_arch_pfn = 0x10

 init_memory_mapping: -0f7c

 ACPI Error: A valid RSDP was not found (20110623/tbxfroot-219)

 0MB HIGHMEM available.

 247MB LOWMEM available.

   mapped low ram: 0 - 0f7c

   low ram: 0 - 0f7c

 Zone PFN ranges:

   DMA  0x0010 - 0x1000

   Normal   0x1000 - 0xf7c0

   HighMem  empty

 Movable zone start PFN for each node

 early_node_map[2] active PFN ranges

     0: 0x0010 - 0x009e

     0: 0x0100 - 0xf7c0

 Using APIC driver default

 SMP: Allowing 1 CPUs, 0 hotplug CPUs

 No local APIC present or hardware disabled

 APIC: disable apic facility

 APIC: switched to apic NOOP

 Allocating PCI resources starting at f7c (gap: f7c:f083)

 setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1

 PERCPU: Embedded 13 pages/cpu @cf00 s29056 r0 d24192 u4194304

 Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 
 62814

 Kernel command line: serialconsole root=/dev/hdb1 init=/sbin/init
 console=tty0 console=ttyS0,57600n8

 PID hash table entries: 1024 (order: 0, 4096 bytes)

 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)

 Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)

 Initializing CPU#0

 allocated 1014528 bytes of page_cgroup

 please try 'cgroup_disable=memory' option if you don't want memory 
 cgroups

 Initializing HighMem for node 0 (:)

 Memory: 241100k/253696k available (5440k kernel code, 12140k 
 reserved, 2458k data, 492k init, 0k highmem)

 virtual kernel memory layout:

     fixmap  : 0xfff17000 - 0xf000   ( 928 kB)

     pkmap   : 0xff80 - 0xffc0   (4096 kB)

     vmalloc : 0xcffc - 0xff7fe000   ( 760 MB)

     lowmem  : 0xc000 - 0xcf7c   ( 247 MB)

   .init : 0xc17b7000 - 0xc1832000   ( 492 kB)

   .data : 0xc1550219 - 0xc17b6a80   (2458 kB)

   .text : 0xc100 - 0xc1550219   (5440 kB)

 Checking if this processor honours the WP bit even in supervisor mode

Re: [yocto] qemux86 Image won't boot from CF

2012-06-13 Thread Jürgen Messerer
Thanks Darren for the tips.

Meanwhile I realized that to that the PCMCIA is missing .
I will follow your suggestion about writing an own machine config file.

Best regards

Juergen
 

-Original Message-
From: Darren Hart [mailto:dvh...@linux.intel.com] 
Sent: Mittwoch, 13. Juni 2012 17:56
To: Jürgen Messerer
Cc: yocto@yoctoproject.org; Andrea Adami
Subject: Re: [yocto] qemux86 Image won't boot from CF



On 06/12/2012 04:07 AM, Jürgen Messerer wrote:
 Hi everybody.
 
  
 
 The following problem occurs when I try to start a x86 linux system 
 from CF-Card.
 
  
 
 I have generate a qemux86 core-image-minimal  image with the latest pokey.
 

...

 VFS: Unable to mount root fs via NFS, trying floppy.
 
 VFS: Cannot open root device hdb1 or unknown-block(2,0)
 
 Please append a correct root= boot option; here are the available
 partitions:
 
 VFS: Unable to mount root fs on unknown-block(2,0)

The kernel should list the known block devices. It isn't finding any. So either 
you don't have the driver for it installed, or it is a removable device. As 
Andrea pointed out, rootwait can help with the latter.

However, it should be noted that the qemux86 machine is intended to be booted 
under emulation, and has the drivers required for that scenario.
If you want to boot on real hardware, you really should be creating a machine 
config and a kernel bbappend with whatever drivers you need for your hardware 
in a config fragment.

--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] qemux86 Image won't boot from CF

2012-06-12 Thread Jürgen Messerer
Hi everybody.

The following problem occurs when I try to start a x86 linux system from 
CF-Card.

I have generate a qemux86 core-image-minimal  image with the latest pokey.
After that I have copied everything on a CF including 
bzImage-3.2.1-yocto-standard
Grub was already installed from an old linux version.

I configured grubs menu.lst.
Ther kernel starts perfectly util it like to finde the rootfs.
Only one ext2 partion exist on the CF-Card.
If have tried hda1 hdb1 hdc1 sda1 sdb1 sdc1 for the to root option. Same 
problem.
I also tried initrd. Same problem.
I also tried rootfs from narcissus. Same problem.

I appreciate any help.

Thanks.

Regards

Juergen


Menu.lst :

serial --unit=0 --speed=57600
terminal --timeout=1 serial console
default 0

# tell grub to find the kernel on /dev/hda1
root (hd0,0)
savedefault

# start menu entry with title
title OpenEmbedded GNU/Linux

title New OE serial console
root (hd0,0)
kernel /boot/bzImage-3.2.11-yocto-standard serialconsole root=/dev/hdb1 
init=/sbin/init console=tty0 console=ttyS0,57600n8
savedefault



KERNEL Output:

  Booting 'New OE serial console'

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/bzImage-3.2.11-yocto-standard serialconsole root=/dev/hdb1 init=/s
bin/init console=tty0 console=ttyS0,57600n8
   [Linux-bzImage, setup=0x3a00, size=0x441020]
savedefault

Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 3.2.11-yocto-standard (blabla@blabla-virtual-machine) (gcc 
version 4.6.4 20120303 (prerelea2
BIOS-provided physical RAM map:
BIOS-e820:  - 0009e000 (usable)
BIOS-e820: 0009e000 - 000a (reserved)
BIOS-e820: 000f - 0010 (reserved)
BIOS-e820: 0010 - 0f7c (usable)
BIOS-e820:  - 0001 (reserved)
Notice: NX (Execute Disable) protection missing in CPU!
DMI 2.2 present.
last_pfn = 0xf7c0 max_arch_pfn = 0x10
init_memory_mapping: -0f7c
ACPI Error: A valid RSDP was not found (20110623/tbxfroot-219)
0MB HIGHMEM available.
247MB LOWMEM available.
  mapped low ram: 0 - 0f7c
  low ram: 0 - 0f7c
Zone PFN ranges:
  DMA  0x0010 - 0x1000
  Normal   0x1000 - 0xf7c0
  HighMem  empty
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0x0010 - 0x009e
0: 0x0100 - 0xf7c0
Using APIC driver default
SMP: Allowing 1 CPUs, 0 hotplug CPUs
No local APIC present or hardware disabled
APIC: disable apic facility
APIC: switched to apic NOOP
Allocating PCI resources starting at f7c (gap: f7c:f083)
setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 13 pages/cpu @cf00 s29056 r0 d24192 u4194304
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 62814
Kernel command line: serialconsole root=/dev/hdb1 init=/sbin/init console=tty0 
console=ttyS0,57600n8
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Initializing CPU#0
allocated 1014528 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Initializing HighMem for node 0 (:)
Memory: 241100k/253696k available (5440k kernel code, 12140k reserved, 2458k 
data, 492k init, 0k highmem)
virtual kernel memory layout:
fixmap  : 0xfff17000 - 0xf000   ( 928 kB)
pkmap   : 0xff80 - 0xffc0   (4096 kB)
vmalloc : 0xcffc - 0xff7fe000   ( 760 MB)
lowmem  : 0xc000 - 0xcf7c   ( 247 MB)
  .init : 0xc17b7000 - 0xc1832000   ( 492 kB)
  .data : 0xc1550219 - 0xc17b6a80   (2458 kB)
  .text : 0xc100 - 0xc1550219   (5440 kB)
Checking if this processor honours the WP bit even in supervisor mode...Ok.
SLUB: Genslabs=15, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:2304 nr_irqs:256 16
Console: colour VGA+ 80x25
console [tty0] enabled
console [ttyS0] enabled
Fast TSC calibration using PIT
Detected 499.922 MHz processor.
Calibrating delay loop (skipped), value calculated using timer frequency.. 
999.84 BogoMIPS (lpj=1999688)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
Initializing cgroup subsys debug
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys blkio
SMP alternatives: switching to UP code
Freeing SMP alternatives: 20k freed
ftrace: allocating 22469 entries in 44 pages
weird, boot CPU (#0) not listed by the BIOS.
SMP motherboard not detected.
Local APIC not detected. Using dummy APIC emulation.
SMP disabled
Performance 

Re: [yocto] qemux86 Image won't boot from CF

2012-06-12 Thread Andrea Adami
On Tue, Jun 12, 2012 at 1:07 PM, Jürgen Messerer
juergen.messe...@bbv.ch wrote:
 Hi everybody.



 The following problem occurs when I try to start a x86 linux system from
 CF-Card.



 I have generate a qemux86 core-image-minimal  image with the latest pokey.

 After that I have copied everything on a CF including
 bzImage-3.2.1-yocto-standard

 Grub was already installed from an old linux version.



 I configured grubs menu.lst.

 Ther kernel starts perfectly util it like to finde the rootfs.

 Only one ext2 partion exist on the CF-Card.

 If have tried hda1 hdb1 hdc1 sda1 sdb1 sdc1 for the to root option. Same
 problem.


Surely it is /dev/sdX since 2.6.3x
Do you have all the necessary config options set for boot from CF?
You need the block (pcmcia, pata, ..) devices and the filesystems
built in kernel.

Cheers

Andrea

 I also tried initrd. Same problem.

 I also tried rootfs from narcissus. Same problem.



 I appreciate any help.



 Thanks.



 Regards



 Juergen



 

 Menu.lst :

 

 serial --unit=0 --speed=57600

 terminal --timeout=1 serial console

 default 0



 # tell grub to find the kernel on /dev/hda1

 root (hd0,0)

 savedefault



 # start menu entry with title

 title OpenEmbedded GNU/Linux



 title New OE serial console

 root (hd0,0)

 kernel /boot/bzImage-3.2.11-yocto-standard serialconsole root=/dev/hdb1
 init=/sbin/init console=tty0 console=ttyS0,57600n8

 savedefault





 

 KERNEL Output:

 

   Booting 'New OE serial console'



 root (hd0,0)

 Filesystem type is ext2fs, partition type 0x83

 kernel /boot/bzImage-3.2.11-yocto-standard serialconsole root=/dev/hdb1
 init=/s

 bin/init console=tty0 console=ttyS0,57600n8

    [Linux-bzImage, setup=0x3a00, size=0x441020]

 savedefault



 Initializing cgroup subsys cpuset

 Initializing cgroup subsys cpu

 Linux version 3.2.11-yocto-standard (blabla@blabla-virtual-machine) (gcc
 version 4.6.4 20120303 (prerelea2

 BIOS-provided physical RAM map:

 BIOS-e820:  - 0009e000 (usable)

 BIOS-e820: 0009e000 - 000a (reserved)

 BIOS-e820: 000f - 0010 (reserved)

 BIOS-e820: 0010 - 0f7c (usable)

 BIOS-e820:  - 0001 (reserved)

 Notice: NX (Execute Disable) protection missing in CPU!

 DMI 2.2 present.

 last_pfn = 0xf7c0 max_arch_pfn = 0x10

 init_memory_mapping: -0f7c

 ACPI Error: A valid RSDP was not found (20110623/tbxfroot-219)

 0MB HIGHMEM available.

 247MB LOWMEM available.

   mapped low ram: 0 - 0f7c

   low ram: 0 - 0f7c

 Zone PFN ranges:

   DMA  0x0010 - 0x1000

   Normal   0x1000 - 0xf7c0

   HighMem  empty

 Movable zone start PFN for each node

 early_node_map[2] active PFN ranges

     0: 0x0010 - 0x009e

     0: 0x0100 - 0xf7c0

 Using APIC driver default

 SMP: Allowing 1 CPUs, 0 hotplug CPUs

 No local APIC present or hardware disabled

 APIC: disable apic facility

 APIC: switched to apic NOOP

 Allocating PCI resources starting at f7c (gap: f7c:f083)

 setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1

 PERCPU: Embedded 13 pages/cpu @cf00 s29056 r0 d24192 u4194304

 Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 62814

 Kernel command line: serialconsole root=/dev/hdb1 init=/sbin/init
 console=tty0 console=ttyS0,57600n8

 PID hash table entries: 1024 (order: 0, 4096 bytes)

 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)

 Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)

 Initializing CPU#0

 allocated 1014528 bytes of page_cgroup

 please try 'cgroup_disable=memory' option if you don't want memory cgroups

 Initializing HighMem for node 0 (:)

 Memory: 241100k/253696k available (5440k kernel code, 12140k reserved, 2458k
 data, 492k init, 0k highmem)

 virtual kernel memory layout:

     fixmap  : 0xfff17000 - 0xf000   ( 928 kB)

     pkmap   : 0xff80 - 0xffc0   (4096 kB)

     vmalloc : 0xcffc - 0xff7fe000   ( 760 MB)

     lowmem  : 0xc000 - 0xcf7c   ( 247 MB)

   .init : 0xc17b7000 - 0xc1832000   ( 492 kB)

   .data : 0xc1550219 - 0xc17b6a80   (2458 kB)

   .text : 0xc100 - 0xc1550219   (5440 kB)

 Checking if this processor honours the WP bit even in supervisor mode...Ok.

 SLUB: Genslabs=15, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

 Preemptible hierarchical RCU implementation.

 NR_IRQS:2304 nr_irqs:256 16

 Console: colour VGA+ 80x25

 console [tty0] enabled

 console [ttyS0] enabled

 Fast TSC calibration using PIT

 Detected 499.922 MHz processor.

 Calibrating delay loop (skipped), value calculated using timer frequency..
 999.84 BogoMIPS (lpj=1999688)

 pid_max: default: 32768 minimum: 301

 Security Framework initialized

 

Re: [yocto] qemux86 Image won't boot from CF

2012-06-12 Thread Andrea Adami
On Tue, Jun 12, 2012 at 2:04 PM, Andrea Adami andrea.ad...@gmail.com wrote:
 On Tue, Jun 12, 2012 at 1:07 PM, Jürgen Messerer
 juergen.messe...@bbv.ch wrote:
 Hi everybody.



 The following problem occurs when I try to start a x86 linux system from
 CF-Card.



 I have generate a qemux86 core-image-minimal  image with the latest pokey.

 After that I have copied everything on a CF including
 bzImage-3.2.1-yocto-standard

 Grub was already installed from an old linux version.



 I configured grubs menu.lst.

 Ther kernel starts perfectly util it like to finde the rootfs.

 Only one ext2 partion exist on the CF-Card.

 If have tried hda1 hdb1 hdc1 sda1 sdb1 sdc1 for the to root option. Same
 problem.


 Surely it is /dev/sdX since 2.6.3x
 Do you have all the necessary config options set for boot from CF?
 You need the block (pcmcia, pata, ..) devices and the filesystems
 built in kernel.


Ah, pls. add 'rootwait' to cmdline when booting from those kind of
removable media.

Cheers

Andrea


 Cheers

 Andrea

 I also tried initrd. Same problem.

 I also tried rootfs from narcissus. Same problem.



 I appreciate any help.



 Thanks.



 Regards



 Juergen



 

 Menu.lst :

 

 serial --unit=0 --speed=57600

 terminal --timeout=1 serial console

 default 0



 # tell grub to find the kernel on /dev/hda1

 root (hd0,0)

 savedefault



 # start menu entry with title

 title OpenEmbedded GNU/Linux



 title New OE serial console

 root (hd0,0)

 kernel /boot/bzImage-3.2.11-yocto-standard serialconsole root=/dev/hdb1
 init=/sbin/init console=tty0 console=ttyS0,57600n8

 savedefault





 

 KERNEL Output:

 

   Booting 'New OE serial console'



 root (hd0,0)

 Filesystem type is ext2fs, partition type 0x83

 kernel /boot/bzImage-3.2.11-yocto-standard serialconsole root=/dev/hdb1
 init=/s

 bin/init console=tty0 console=ttyS0,57600n8

    [Linux-bzImage, setup=0x3a00, size=0x441020]

 savedefault



 Initializing cgroup subsys cpuset

 Initializing cgroup subsys cpu

 Linux version 3.2.11-yocto-standard (blabla@blabla-virtual-machine) (gcc
 version 4.6.4 20120303 (prerelea2

 BIOS-provided physical RAM map:

 BIOS-e820:  - 0009e000 (usable)

 BIOS-e820: 0009e000 - 000a (reserved)

 BIOS-e820: 000f - 0010 (reserved)

 BIOS-e820: 0010 - 0f7c (usable)

 BIOS-e820:  - 0001 (reserved)

 Notice: NX (Execute Disable) protection missing in CPU!

 DMI 2.2 present.

 last_pfn = 0xf7c0 max_arch_pfn = 0x10

 init_memory_mapping: -0f7c

 ACPI Error: A valid RSDP was not found (20110623/tbxfroot-219)

 0MB HIGHMEM available.

 247MB LOWMEM available.

   mapped low ram: 0 - 0f7c

   low ram: 0 - 0f7c

 Zone PFN ranges:

   DMA  0x0010 - 0x1000

   Normal   0x1000 - 0xf7c0

   HighMem  empty

 Movable zone start PFN for each node

 early_node_map[2] active PFN ranges

     0: 0x0010 - 0x009e

     0: 0x0100 - 0xf7c0

 Using APIC driver default

 SMP: Allowing 1 CPUs, 0 hotplug CPUs

 No local APIC present or hardware disabled

 APIC: disable apic facility

 APIC: switched to apic NOOP

 Allocating PCI resources starting at f7c (gap: f7c:f083)

 setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1

 PERCPU: Embedded 13 pages/cpu @cf00 s29056 r0 d24192 u4194304

 Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 62814

 Kernel command line: serialconsole root=/dev/hdb1 init=/sbin/init
 console=tty0 console=ttyS0,57600n8

 PID hash table entries: 1024 (order: 0, 4096 bytes)

 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)

 Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)

 Initializing CPU#0

 allocated 1014528 bytes of page_cgroup

 please try 'cgroup_disable=memory' option if you don't want memory cgroups

 Initializing HighMem for node 0 (:)

 Memory: 241100k/253696k available (5440k kernel code, 12140k reserved, 2458k
 data, 492k init, 0k highmem)

 virtual kernel memory layout:

     fixmap  : 0xfff17000 - 0xf000   ( 928 kB)

     pkmap   : 0xff80 - 0xffc0   (4096 kB)

     vmalloc : 0xcffc - 0xff7fe000   ( 760 MB)

     lowmem  : 0xc000 - 0xcf7c   ( 247 MB)

   .init : 0xc17b7000 - 0xc1832000   ( 492 kB)

   .data : 0xc1550219 - 0xc17b6a80   (2458 kB)

   .text : 0xc100 - 0xc1550219   (5440 kB)

 Checking if this processor honours the WP bit even in supervisor mode...Ok.

 SLUB: Genslabs=15, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

 Preemptible hierarchical RCU implementation.

 NR_IRQS:2304 nr_irqs:256 16

 Console: colour VGA+ 80x25

 console [tty0] enabled

 console [ttyS0] enabled

 Fast TSC calibration using PIT

 Detected 499.922 MHz processor.