[leaf-devel] X64_32 init problem

2012-12-30 Thread KP Kirchdoerfer
Hi all;

there is a problem that X86_64 runs into an error:

[0.220661] Kernel panic - not syncing: No init found.  Try passing
init= option to kernel. See Linux Documentation/init.txt for guidance.
[0.221976] Pid: 1, comm: swapper/0 Not tainted 3.2.33-x86_64 #1
[0.222625] Call Trace:
[0.222904]  [] ? panic+0x95/0x198
[0.223448]  [] ? init_post+0xb8/0xb8
[0.223986]  [] ? kernel_init+0x11e/0x11e
[0.224597]  [] ? kernel_thread_helper+0x4/0x10
[0.225278]  [] ? start_kernel+0x344/0x344
[0.225860]  [] ? gs_change+0xb/0xb

I compiled everything from scratch and ran

fakeroot ./buildimage.pl --kernel-arch=x86_64 --image-type=isolinux
--variant=vga --release 5.0-alpha2


Then I tested the new image with qemu:
qemu-system-x86_64 --cdrom
image/Bering-uClibc_5.0-alpha2_x86_64_isolinux_vga.iso

which results in the error above.

I'll attach the output from kernel boot (where you can see that the
commandline looks ok - it shows a 3.2.33 kernel, I recompiled with that
kernel version to be shure the pb is not related to the latest kernel
update, the result is the same with a 3.2.35 kernel).

Maybe someone will see an error I've made, or does have an idea what
went wrong.

kp
[0.00] Linux version 3.2.33-x86_64 (kapeka@stalker) (gcc version 4.6.3 
(GCC) ) #1 SMP Sun Dec 30 15:30:27 CET 2012
[0.00] Command line: reboot=bios KMODULES=floppy,i2c-core 
BOOT_IMAGE=/isolinux/linux initrd=/initrd.lrp,/initmod.lrp console=ttyS0 
LEAFCFG=/dev/fd0:vfat,/dev/sda1:vfat,/dev/sr0:iso9660
[0.00] KERNEL supported cpus:
[0.00]   Intel GenuineIntel
[0.00]   AMD AuthenticAMD
[0.00] BIOS-provided physical RAM map:
[0.00]  BIOS-e820:  - 0009f400 (usable)
[0.00]  BIOS-e820: 0009f400 - 000a (reserved)
[0.00]  BIOS-e820: 000f - 0010 (reserved)
[0.00]  BIOS-e820: 0010 - 17ffd000 (usable)
[0.00]  BIOS-e820: 17ffd000 - 1800 (reserved)
[0.00]  BIOS-e820: feffc000 - ff00 (reserved)
[0.00]  BIOS-e820: fffc - 0001 (reserved)
[0.00] NX (Execute Disable) protection: active
[0.00] DMI 2.4 present.
[0.00] No AGP bridge found
[0.00] last_pfn = 0x17ffd max_arch_pfn = 0x4
[0.00] x86 PAT enabled: cpu 0, old 0x70406, new 0x7010600070106
[0.00] found SMP MP-table at [880fdb00] fdb00
[0.00] init_memory_mapping: -17ffd000
[0.00] RAMDISK: 17eaf000 - 17fdd000
[0.00] ACPI: RSDP 000fd9a0 00014 (v00 BOCHS )
[0.00] ACPI: RSDT 17ffd7b0 00034 (v01 BOCHS  BXPCRSDT 0001 
BXPC 0001)
[0.00] ACPI: FACP 1780 00074 (v01 BOCHS  BXPCFACP 0001 
BXPC 0001)
[0.00] ACPI: DSDT 17ffd9b0 02589 (v01   BXPC   BXDSDT 0001 
INTL 20100528)
[0.00] ACPI: FACS 1740 00040
[0.00] ACPI: SSDT 17ffd910 0009E (v01 BOCHS  BXPCSSDT 0001 
BXPC 0001)
[0.00] ACPI: APIC 17ffd830 00072 (v01 BOCHS  BXPCAPIC 0001 
BXPC 0001)
[0.00] ACPI: HPET 17ffd7f0 00038 (v01 BOCHS  BXPCHPET 0001 
BXPC 0001)
[0.00] Zone PFN ranges:
[0.00]   DMA320x0010 -> 0x0010
[0.00]   Normal   empty
[0.00] Movable zone start PFN for each node
[0.00] early_node_map[2] active PFN ranges
[0.00] 0: 0x0010 -> 0x009f
[0.00] 0: 0x0100 -> 0x00017ffd
[0.00] ACPI: PM-Timer IO Port: 0xb008
[0.00] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[0.00] ACPI: IOAPIC (id[0x01] address[0xfec0] gsi_base[0])
[0.00] IOAPIC[0]: apic_id 1, version 17, address 0xfec0, GSI 0-23
[0.00] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[0.00] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[0.00] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[0.00] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[0.00] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[0.00] Using ACPI (MADT) for SMP configuration information
[0.00] ACPI: HPET id: 0x8086a201 base: 0xfed0
[0.00] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[0.00] Allocating PCI resources starting at 1800 (gap: 
1800:e6ffc000)
[0.00] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 
nr_node_ids:1
[0.00] PERCPU: Embedded 25 pages/cpu @880017c0 s70656 r8192 
d23552 u2097152
[0.00] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 96650
[0.00] Kernel command line: reboot=bios KMODULES=floppy,i2c-core 
BOOT_IMAGE=/isolinux/linux initrd=/initrd.lrp,/initmod.lrp console=ttyS0 
LEAFCFG=/dev/fd0:vfat,/dev/sda1:vfat,/dev/sr0:iso9660

Re: [leaf-devel] X64_32 init problem

2012-12-30 Thread Yves Blusseau

Le 30 déc. 2012 à 17:32, KP Kirchdoerfer  a écrit 
:

> Hi all;
> 
> there is a problem that X86_64 runs into an error:
> 
> [0.220661] Kernel panic - not syncing: No init found.  Try passing
> init= option to kernel. See Linux Documentation/init.txt for guidance.
> [0.221976] Pid: 1, comm: swapper/0 Not tainted 3.2.33-x86_64 #1
> [0.222625] Call Trace:
> [0.222904]  [] ? panic+0x95/0x198
> [0.223448]  [] ? init_post+0xb8/0xb8
> [0.223986]  [] ? kernel_init+0x11e/0x11e
> [0.224597]  [] ? kernel_thread_helper+0x4/0x10
> [0.225278]  [] ? start_kernel+0x344/0x344
> [0.225860]  [] ? gs_change+0xb/0xb
> 

Hi Kp,

can you check that the initrd.lrp package contain the link to the init script 
with command like:

gzip -dc initrd.lrp | cpio -tv

This is what i have:
lrwxrwxrwx   1 root root   26 Dec 30 17:41 init -> 
var/lib/lrpkg/root.linuxrc
-rwxr-xr-x   1 root root 9884 Dec 30 17:41 
var/lib/lrpkg/root.linuxrc

Also you can try to force the init script passing init= option to kernel: 
init=/var/lib/lrpkg/root.linuxrc

I know that the root.linuxrc was changed by the zram support. Perhaps, it's the 
cause of the problem.

Yves

smime.p7s
Description: S/MIME cryptographic signature
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
___
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel


Re: [leaf-devel] X64_32 init problem

2012-12-30 Thread KP Kirchdoerfer

Hi Yves;

Am 30.12.2012 17:49, schrieb Yves Blusseau:
> 
> Le 30 déc. 2012 à 17:32, KP Kirchdoerfer  a 
> écrit :
> 
>> Hi all;
>> 
>> there is a problem that X86_64 runs into an error:
>> 
>> [0.220661] Kernel panic - not syncing: No init found.  Try passing
>> init= option to kernel. See Linux Documentation/init.txt for guidance.
>> [0.221976] Pid: 1, comm: swapper/0 Not tainted 3.2.33-x86_64 #1
>> [0.222625] Call Trace:
>> [0.222904]  [] ? panic+0x95/0x198
>> [0.223448]  [] ? init_post+0xb8/0xb8
>> [0.223986]  [] ? kernel_init+0x11e/0x11e
>> [0.224597]  [] ? kernel_thread_helper+0x4/0x10
>> [0.225278]  [] ? start_kernel+0x344/0x344
>> [0.225860]  [] ? gs_change+0xb/0xb
>> 
> 
> Hi Kp,
> 
> can you check that the initrd.lrp package contain the link to the init script 
> with command like:
> 
> gzip -dc initrd.lrp | cpio -tv

Doing a complete rebuild right now, I refer to initrd.lrp built this
morning; this one shows

lrwxrwxrwx 1 root  root  26 Dec 29 13:46 init -> var/lib/lrpkg/root.linuxrc
-rwxr-xr-x   1 root root  9884 Dec 29 13:46 var/lib/lrpkg/root.linuxrc


> This is what i have:
> lrwxrwxrwx   1 root root   26 Dec 30 17:41 init -> 
> var/lib/lrpkg/root.linuxrc
> -rwxr-xr-x   1 root root 9884 Dec 30 17:41 
> var/lib/lrpkg/root.linuxrc
> 
> Also you can try to force the init script passing init= option to kernel: 
> init=/var/lib/lrpkg/root.linuxrc
> 
> I know that the root.linuxrc was changed by the zram support. Perhaps, it's 
> the cause of the problem.

I'll try, once the build is ready, but note that the i686 image worked
with zram support enabled, whereas x86_64 failed.

kp

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012

___
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel