Hello,
Please provide more info. Given the missing info, it seem like the following
1) What payload are you using? I'm using FILO And creating 500Mb image =================== Create an empty disk image:
$ qemu-img create -f raw disk.img 500M
Format it:
$ mkfs.ext2 -F disk.img ====================
2) What did you do to initialize the image after creating the image? Did you install a Linux distro in the the image? ===== I don't understand with this question ?? I have done... Create a boot directory and copy your Linux kernel (vmlinuz) and initramfs (initrd) to it:
# mkdir /mnt/rootfs/boot # cp vmlinuz /mnt/rootfs/boot/vmlinuz # cp initrd /mnt/rootfs/boot/initrd
========================= Which vmlinuz and initrd should I use ?? Confuse..
Please provide any other info you think might be relevant.
Should I compile a new kernel or what should I do next after boot :
I include the message I got when running qemu... ======================= telebit:~/Project/Kantor/Thin_client/qemu-0.10.5/i386-softmmu # ./qemu -L ~ -hda /root/Project/Kantor/Thin_client/qemu-0.10.5/disk.img -nographic Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory
coreboot-2.0.0-r-GRUB2 Mon Jun 22 05:02:00 WIT 2009 starting... Uncompressing coreboot to RAM. Jumping to image. Check CBFS header at fffeffd0 magic is 4f524243 Found CBFS header at fffeffd0 Check normal/payload CBFS: follow chain: ffe00000 + 28 + 9626 + align -> ffe09650 Check normal/coreboot_ram Stage: load @ 16384/81920 bytes, enter @ 4000 Stage: done loading. Jumping to image. coreboot-2.0.0-r-GRUB2 Mon Jun 22 05:02:00 WIT 2009 booting... Enumerating buses... Show all devs...Before Phase 3. Root Device: enabled 1, 0 resources PCI_DOMAIN: 0000: enabled 1, 0 resources PCI: 00:00.0: enabled 1, 0 resources PCI: 00:01.0: enabled 1, 0 resources PCI: 00:01.1: enabled 1, 0 resources Compare with tree... Root Device: enabled 1, 0 resources PCI_DOMAIN: 0000: enabled 1, 0 resources PCI: 00:00.0: enabled 1, 0 resources PCI: 00:01.0: enabled 1, 0 resources PCI: 00:01.1: enabled 1, 0 resources scan_static_bus for Root Device Finding PCI configuration type. PCI: Using configuration type 1 PCI_DOMAIN: 0000 enabled PCI_DOMAIN: 0000 scanning... PCI: pci_scan_bus for bus 00 PCI: 00:00.0 [8086/1237] enabled PCI: 00:01.0 [8086/7000] bus ops PCI: 00:01.0 [8086/7000] enabled PCI: 00:01.1 [8086/7010] ops PCI: 00:01.1 [8086/7010] enabled PCI: 00:01.2, bad id 0xffffffff malloc Enter, size 1100, free_mem_ptr 00014000 malloc 00014000 PCI: 00:01.3 [8086/7113] bus ops PCI: 00:01.3 [8086/7113] enabled PCI: 00:01.4, bad id 0xffffffff PCI: 00:01.5, bad id 0xffffffff PCI: 00:01.6, bad id 0xffffffff PCI: 00:01.7, bad id 0xffffffff malloc Enter, size 1100, free_mem_ptr 0001444c malloc 0001444c PCI: 00:02.0 [1013/00b8] ops PCI: 00:02.0 [1013/00b8] enabled malloc Enter, size 1100, free_mem_ptr 00014898 malloc 00014898 PCI: 00:03.0 [10ec/8029] enabled malloc Enter, size 1100, free_mem_ptr 00014ce4 malloc 00014ce4 PCI: 00:04.0 [1af4/1002] enabled PCI: 00:05.0, bad id 0xffffffff PCI: 00:06.0, bad id 0xffffffff PCI: 00:07.0, bad id 0xffffffff PCI: 00:08.0, bad id 0xffffffff PCI: 00:09.0, bad id 0xffffffff PCI: 00:0a.0, bad id 0xffffffff PCI: 00:0b.0, bad id 0xffffffff PCI: 00:0c.0, bad id 0xffffffff PCI: 00:0d.0, bad id 0xffffffff PCI: 00:0e.0, bad id 0xffffffff PCI: 00:0f.0, bad id 0xffffffff PCI: 00:10.0, bad id 0xffffffff PCI: 00:11.0, bad id 0xffffffff PCI: 00:12.0, bad id 0xffffffff PCI: 00:13.0, bad id 0xffffffff PCI: 00:14.0, bad id 0xffffffff PCI: 00:15.0, bad id 0xffffffff PCI: 00:16.0, bad id 0xffffffff PCI: 00:17.0, bad id 0xffffffff PCI: 00:18.0, bad id 0xffffffff PCI: 00:19.0, bad id 0xffffffff PCI: 00:1a.0, bad id 0xffffffff PCI: 00:1b.0, bad id 0xffffffff PCI: 00:1c.0, bad id 0xffffffff PCI: 00:1d.0, bad id 0xffffffff PCI: 00:1e.0, bad id 0xffffffff PCI: 00:1f.0, bad id 0xffffffff scan_static_bus for PCI: 00:01.0 scan_static_bus for PCI: 00:01.0 done scan_static_bus for PCI: 00:01.3 scan_static_bus for PCI: 00:01.3 done PCI: pci_scan_bus returning with max=000 scan_static_bus for Root Device done done Allocating resources... Show resources in subtree (Root Device)...Original. Root Device links 1 child on link 0 Root Device PCI_DOMAIN: 0000 links 1 child on link 0 PCI_DOMAIN: 0000 PCI: 00:00.0 links 0 child on link 0 NULL PCI: 00:01.0 links 0 child on link 0 NULL PCI: 00:01.1 links 0 child on link 0 NULL PCI: 00:01.3 links 0 child on link 0 NULL PCI: 00:02.0 links 0 child on link 0 NULL PCI: 00:03.0 links 0 child on link 0 NULL PCI: 00:04.0 links 0 child on link 0 NULL Reading resources... Root Device compute_allocate_resource io: base: 00000400 size: 00000000 align: 0 gran: 0 Root Device read_resources bus 0 link: 0 PCI_DOMAIN: 0000 read_resources bus 0 link: 0 PCI_DOMAIN: 0000 read_resources bus 0 link: 0 done Root Device read_resources bus 0 link: 0 done PCI: 00:03.0 10 * [0x00000400 - 0x000004ff] io PCI: 00:04.0 10 * [0x00000800 - 0x0000081f] io PCI: 00:01.1 20 * [0x00000820 - 0x0000082f] io Root Device compute_allocate_resource io: base: 00000830 size: 00000430 align: 8 gran: 0 done Root Device compute_allocate_resource mem: base: 00000000 size: 00000000 align: 0 gran: 0 Root Device read_resources bus 0 link: 0 Root Device read_resources bus 0 link: 0 done PCI: 00:02.0 10 * [0x00000000 - 0x01ffffff] prefmem PCI: 00:02.0 14 * [0x02000000 - 0x02000fff] mem Root Device compute_allocate_resource mem: base: 02001000 size: 02001000 align: 25 gran: 0 done Done reading resources. Show resources in subtree (Root Device)...After reading. Root Device links 1 child on link 0 Root Device Root Device resource base 400 size 430 align 8 gran 0 limit ffff flags 100 index 0 Root Device resource base 0 size 2001000 align 25 gran 0 limit febfffff flags 200 index 1 PCI_DOMAIN: 0000 links 1 child on link 0 PCI_DOMAIN: 0000 PCI_DOMAIN: 0000 resource base 0 size 0 align 0 gran 0 limit ffff flags 40040100 index 10000000 PCI_DOMAIN: 0000 resource base 0 size 0 align 0 gran 0 limit ffffffff flags 40040200 index 10000100 PCI: 00:00.0 links 0 child on link 0 NULL PCI: 00:01.0 links 0 child on link 0 NULL PCI: 00:01.1 links 0 child on link 0 NULL PCI: 00:01.1 resource base 820 size 10 align 4 gran 4 limit ffff flags 40000100 index 20 PCI: 00:01.3 links 0 child on link 0 NULL PCI: 00:02.0 links 0 child on link 0 NULL PCI: 00:02.0 resource base 0 size 2000000 align 25 gran 25 limit ffffffff flags 40001200 index 10 PCI: 00:02.0 resource base 2000000 size 1000 align 12 gran 12 limit ffffffff flags 40000200 index 14 PCI: 00:03.0 links 0 child on link 0 NULL PCI: 00:03.0 resource base 400 size 100 align 8 gran 8 limit ffff flags 40000100 index 10 PCI: 00:04.0 links 0 child on link 0 NULL PCI: 00:04.0 resource base 800 size 20 align 5 gran 5 limit ffff flags 40000100 index 10 Setting resources... Root Device compute_allocate_resource io: base: 00001000 size: 00000430 align: 8 gran: 0 Root Device read_resources bus 0 link: 0 Root Device read_resources bus 0 link: 0 done PCI: 00:03.0 10 * [0x00001000 - 0x000010ff] io PCI: 00:04.0 10 * [0x00001400 - 0x0000141f] io PCI: 00:01.1 20 * [0x00001420 - 0x0000142f] io Root Device compute_allocate_resource io: base: 00001430 size: 00000430 align: 8 gran: 0 done Root Device compute_allocate_resource mem: base: fc000000 size: 02001000 align: 25 gran: 0 Root Device read_resources bus 0 link: 0 Root Device read_resources bus 0 link: 0 done PCI: 00:02.0 10 * [0xfc000000 - 0xfdffffff] prefmem PCI: 00:02.0 14 * [0xfe000000 - 0xfe000fff] mem Root Device compute_allocate_resource mem: base: fe001000 size: 02001000 align: 25 gran: 0 done Root Device assign_resources, bus 0 link: 0 RAM size config registers are empty; defaulting to 64 MBytes I would set ram size to 0x10000 Kbytes PCI_DOMAIN: 0000 assign_resources, bus 0 link: 0 PCI: 00:01.1 20 <- [0x0000001420 - 0x000000142f] size 0x00000010 gran 0x04 io PCI: 00:02.0 10 <- [0x00fc000000 - 0x00fdffffff] size 0x02000000 gran 0x19 prefmem PCI: 00:02.0 14 <- [0x00fe000000 - 0x00fe000fff] size 0x00001000 gran 0x0c mem PCI: 00:03.0 10 <- [0x0000001000 - 0x00000010ff] size 0x00000100 gran 0x08 io PCI: 00:04.0 10 <- [0x0000001400 - 0x000000141f] size 0x00000020 gran 0x05 io PCI_DOMAIN: 0000 assign_resources, bus 0 link: 0 Root Device assign_resources, bus 0 link: 0 Done setting resources. Show resources in subtree (Root Device)...After assigning values. Root Device links 1 child on link 0 Root Device Root Device resource base 1000 size 430 align 8 gran 0 limit ffff flags 40000100 index 0 Root Device resource base fc000000 size 2001000 align 25 gran 0 limit febfffff flags 40000200 index 1 PCI_DOMAIN: 0000 links 1 child on link 0 PCI_DOMAIN: 0000 PCI_DOMAIN: 0000 resource base 0 size 0 align 0 gran 0 limit ffff flags 40040100 index 10000000 PCI_DOMAIN: 0000 resource base 0 size 0 align 0 gran 0 limit ffffffff flags 40040200 index 10000100 PCI_DOMAIN: 0000 resource base 0 size a0000 align 0 gran 0 limit 0 flags e0004200 index a PCI_DOMAIN: 0000 resource base c0000 size 3f40000 align 0 gran 0 limit 0 flags e0004200 index b PCI: 00:00.0 links 0 child on link 0 NULL PCI: 00:01.0 links 0 child on link 0 NULL PCI: 00:01.1 links 0 child on link 0 NULL PCI: 00:01.1 resource base 1420 size 10 align 4 gran 4 limit ffff flags 60000100 index 20 PCI: 00:01.3 links 0 child on link 0 NULL PCI: 00:02.0 links 0 child on link 0 NULL PCI: 00:02.0 resource base fc000000 size 2000000 align 25 gran 25 limit ffffffff flags 60001200 index 10 PCI: 00:02.0 resource base fe000000 size 1000 align 12 gran 12 limit ffffffff flags 60000200 index 14 PCI: 00:03.0 links 0 child on link 0 NULL PCI: 00:03.0 resource base 1000 size 100 align 8 gran 8 limit ffff flags 60000100 index 10 PCI: 00:04.0 links 0 child on link 0 NULL PCI: 00:04.0 resource base 1400 size 20 align 5 gran 5 limit ffff flags 60000100 index 10 Done allocating resources. Enabling resources... PCI: 00:00.0 subsystem <- 00/00 PCI: 00:00.0 cmd <- 00 PCI: 00:01.0 cmd <- 07 PCI: 00:01.1 cmd <- 01 PCI: 00:01.3 cmd <- 00 PCI: 00:02.0 cmd <- 03 PCI: 00:03.0 cmd <- 01 PCI: 00:04.0 cmd <- 01 done. Initializing devices... Root Device init PCI: 00:00.0 init Check CBFS header at fffeffd0 magic is 4f524243 Found CBFS header at fffeffd0 Check normal/payload CBFS: follow chain: ffe00000 + 28 + 9626 + align -> ffe09650 Check normal/coreboot_ram CBFS: follow chain: ffe09650 + 38 + 6135 + align -> ffe0f7c0 Check CBFS: follow chain: ffe0f7c0 + 28 + 1e0808 + align -> fffefff0 CBFS: Could not find file pci8086,1237.rom In cbfs, rom address for PCI: 00:00.0 = 00000000 On mainboard, rom address for PCI: 00:00.0 = 0 PCI: 00:01.0 init RTC Init RTC: Checksum invalid zeroing cmos Invalid CMOS LB checksum PCI: 00:01.1 init IDE: Primary IDE interface: on IDE: Secondary IDE interface: on IDE: Access to legacy IDE ports: off PCI: 00:02.0 init Check CBFS header at fffeffd0 magic is 4f524243 Found CBFS header at fffeffd0 Check normal/payload CBFS: follow chain: ffe00000 + 28 + 9626 + align -> ffe09650 Check normal/coreboot_ram CBFS: follow chain: ffe09650 + 38 + 6135 + align -> ffe0f7c0 Check CBFS: follow chain: ffe0f7c0 + 28 + 1e0808 + align -> fffefff0 CBFS: Could not find file pci1013,00b8.rom In cbfs, rom address for PCI: 00:02.0 = 00000000 On mainboard, rom address for PCI: 00:02.0 = c0000 PCI Expansion ROM, signature 0xaa55, INIT size 0x8000, data ptr 0x736f PCI ROM Image, Vendor ffff, Device 0300, Device or Vendor ID mismatch Vendor ffff, Device 0300 Keyboard init... setting ethernet Assigning IRQ 11 to 0:3.0 Readback = 11 pci_level_irq: current ints are 0x0 pci_level_irq: try to set ints 0x800 PCI: 00:03.0 init Check CBFS header at fffeffd0 magic is 4f524243 Found CBFS header at fffeffd0 Check normal/payload CBFS: follow chain: ffe00000 + 28 + 9626 + align -> ffe09650 Check normal/coreboot_ram CBFS: follow chain: ffe09650 + 38 + 6135 + align -> ffe0f7c0 Check CBFS: follow chain: ffe0f7c0 + 28 + 1e0808 + align -> fffefff0 CBFS: Could not find file pci10ec,8029.rom In cbfs, rom address for PCI: 00:03.0 = 00000000 On card, rom address for PCI: 00:03.0 = 0 PCI: 00:04.0 init Check CBFS header at fffeffd0 magic is 4f524243 Found CBFS header at fffeffd0 Check normal/payload CBFS: follow chain: ffe00000 + 28 + 9626 + align -> ffe09650 Check normal/coreboot_ram CBFS: follow chain: ffe09650 + 38 + 6135 + align -> ffe0f7c0 Check CBFS: follow chain: ffe0f7c0 + 28 + 1e0808 + align -> fffefff0 CBFS: Could not find file pci1af4,1002.rom In cbfs, rom address for PCI: 00:04.0 = 00000000 On card, rom address for PCI: 00:04.0 = 0 Devices initialized Show all devs...After init. Root Device: enabled 1, 2 resources PCI_DOMAIN: 0000: enabled 1, 4 resources PCI: 00:00.0: enabled 1, 0 resources PCI: 00:01.0: enabled 1, 0 resources PCI: 00:01.1: enabled 1, 1 resources PCI: 00:01.3: enabled 1, 0 resources PCI: 00:02.0: enabled 1, 2 resources PCI: 00:03.0: enabled 1, 1 resources PCI: 00:04.0: enabled 1, 1 resources High Tables Base is 3ff0000. Copying Interrupt Routing Table to 0x000f0000... done. Copying Interrupt Routing Table to 0x03ff0000... done. Moving GDT to 0x3ff0400...ok Multiboot Information structure has been written. Writing high table forward entry at 0x00000500 Wrote coreboot table at: 00000500 - 00000518 checksum f3df New low_table_end: 0x00000518 Now going to write high coreboot table at 0x03ff0800 rom_table_end = 0x03ff0800 Adjust low_table_end from 0x00000518 to 0x00001000 Adjust rom_table_end from 0x03ff0800 to 0x04000000 Adding high table area Wrote coreboot table at: 03ff0800 - 03ff0e7c checksum 6720 Check CBFS header at fffeffd0 magic is 4f524243 Found CBFS header at fffeffd0 Check normal/payload Got a payload Segment ffe00028 data: malloc Enter, size 36, free_mem_ptr 00015130 malloc 00015130 New segment dstaddr 0x100000 memsize 0x235e0 srcaddr 0xffe0007c filesize 0x9548 (cleaned up) New segment addr 0x100000 size 0x235e0 offset 0xffe0007c filesize 0x9548 Segment ffe00044 data: malloc Enter, size 36, free_mem_ptr 00015154 malloc 00015154 New segment dstaddr 0x1235e0 memsize 0x48 srcaddr 0xffe095c4 filesize 0x48 (cleaned up) New segment addr 0x1235e0 size 0x48 offset 0xffe095c4 filesize 0x48 Segment ffe00060 Entry 001077c8 Loading Segment: addr: 0x0000000000100000 memsz: 0x00000000000235e0 filesz: 0x0000000000009548 lb: [0x0000000000004000, 0x0000000000018000) Post relocation: addr: 0x0000000000100000 memsz: 0x00000000000235e0 filesz: 0x0000000000009548 it's not compressed! [ 0x0000000000100000, 0000000000109548, 0x00000000001235e0) <- 00000000ffe0007c Clearing Segment: addr: 0x0000000000109548 memsz: 0x000000000001a098 Loading Segment: addr: 0x00000000001235e0 memsz: 0x0000000000000048 filesz: 0x0000000000000048 lb: [0x0000000000004000, 0x0000000000018000) Post relocation: addr: 0x00000000001235e0 memsz: 0x0000000000000048 filesz: 0x0000000000000048 it's not compressed! [ 0x00000000001235e0, 0000000000123628, 0x0000000000123628) <- 00000000ffe095c4 Loaded segments Jumping to boot code at 1077c8 entry = 0x001077c8 lb_start = 0x00004000 lb_size = 0x00014000 adjust = 0x03fc4000 buffer = 0x03fc8000 elf_boot_notes = 0x000109e0 adjusted_boot_notes = 0x03fd49e0 FILO version 0.4.2 (root@telebit) Mon Jun 22 04:20:39 WIT 2009 Can't get memory map from firmware. Using hardcoded default. Press <Enter> for default boot, or <Esc> for boot prompt... timed out boot: hda1:/vmlinuz root=/dev/hda1 console=tty0 console=ttyS0,115200 hda: LBA48 524MB: QEMU HARDDISK
===================
--- On Mon, 6/22/09, Warren Turkal wt@penguintechs.org wrote:
From: Warren Turkal wt@penguintechs.org Subject: Re: [coreboot] When I run... # ./qemu -L ~ -hda /root/Project/Kantor/Thin_client/qemu-0.10.5/disk.img -nographic To: "Rick Ant" rick_077@yahoo.com Cc: coreboot@coreboot.org Date: Monday, June 22, 2009, 10:22 AM
Please provide more info. Given the missing info, it seem like the following
1) What payload are you using? 2) What did you do to initialize the image after creating the image? Did you install a Linux distro in the the image?
Please provide any other info you think might be relevant.
Also, please keep this in one email thread. It'll help people find the info if they go searching for help later.
Thanks, wt
On Mon, Jun 22, 2009 at 2:11 AM, Rick Antrick_077@yahoo.com wrote:
When I run : # ./qemu -L ~ -hda /root/Project/Kantor/Thin_client/qemu-0.10.5/disk.img -nographic
I got : coreboot-2.0.0-r-GRUB2 Mon Jun 22 05:02:00 WIT 2009 starting... Uncompressing coreboot to RAM. Jumping to image. Check CBFS header at fffeffd0 magic is 4f524243 Found CBFS header at fffeffd0 Check normal/payload
. . . . . and last with : Unrecognized partitioning scheme boot: hda1:/vmlinuz root=/dev/hda1 console=tty0 console=ttyS0,115200
I can't do :
cp vmlinuz /mnt/rootfs/boot/vmlinuz cp initrd /mnt/rootfs/boot/initrd
why were those happen? What should i do?
Thanks
-- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
yes, the hda is usually not partitioned.
What I do to boot, e.g., hda-linux.img or whatever
root (hd0) kernel /vmlinuz root=/dev/hda
and then it is fine.
ron