Hi.
I'm trying to build a diskless server which once booted,
should not need to reboot using bios.
Is this setup too far away from the original intentions for kexec ?
I do:
boot system using Production grade kernel
load capture kernel (kexec -p)
Trigger a crash dump
# echo c > /proc/sysrq-trigger
SysRq : Trigger a crashdump
When capture kernel is booted I do
# dd if=/proc/vmcore of=/dev/null bs=1024
981504+1 records in
981504+1 records out
Prepare to get back to Production grade kernel
#/usr/sbin/kexec -l /vmlinuz --initrd=/initrd --append="rw
root=/dev/ram0 panic=1 oops=panic console=tty0 console=ttyS0,38400n8r
loglevel=7 [EMAIL PROTECTED] splash=0 acpi=off ide0=noprobe ide1=noprobe"
Invalid memory segment 0x100000 - 0x20dfff
# cat /proc/iomem
00000000-0009ffff : System RAM
00000000-00000000 : Crash kernel
000a0000-000bffff : Video RAM area
000c0000-000cbfff : Video ROM
000cc000-000cd7ff : Adapter ROM
000f0000-000fffff : System ROM
01000000-012e7fff : System RAM
01000000-01193083 : Kernel code
01193084-01236e27 : Kernel data
01388400-04ffffff : System RAM
10000000-1003ffff : 0000:00:0c.0
e8000000-efffffff : 0000:00:00.0
e8000000-efffffff : aperture
f0000000-f7ffffff : PCI Bus #01
f0000000-f7ffffff : 0000:01:00.0
f8000000-f80fffff : PCI Bus #01
f8000000-f801ffff : 0000:01:00.0
f8020000-f802ffff : 0000:01:00.0
f8100000-f813ffff : 0000:00:0c.0
f8100000-f813ffff : e1000
f8180000-f819ffff : 0000:00:0c.1
f8180000-f819ffff : e1000
f81a0000-f81bffff : 0000:00:0c.0
f81a0000-f81bffff : e1000
f81c0000-f81c00ff : 0000:00:07.0
f81c1000-f81c10ff : 0000:00:10.4
f81c2000-f81c27ff : 0000:00:08.0
I would like to use kexec -e to get back into my Production grade kernel
because of BIOS issues.
As I understand the captured memory is stored in the same region into
which I would like to
store my Production kernel (again). However after I've made the dump,
this memory region should be
available again - i.e safe to reuse, or have I missed something ?
./Preben
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot