kexec works well with "dash l" but not working with "dash p"

os user gnusercn at gmail.com
Thu Jun 11 06:22:43 PDT 2015


Hi experts,

I have a problem when using kexec-tools on freescale powerpc P1014E.

I have 256MB memory and reserved 78MB for crashkernel.
The cmdline for production kernel is,

bver=0.0.10 root=/dev/ram rw console=ttyS0,115200 crashkernel=78M


I used below command to load crash kernel into memory.
/mnt/uspace/abc/kexec -d -l /mnt/uspace/abc/vmlinux.z.img \
--initrd=/mnt/uspace/abc/ramdisk.img.gz \
--append="root=/dev/ram1 rw console=ttyS0,115200 1 maxcpus=1
noirqdistrib reset_devices"

Then I used "kexec -e" to execute the crash kernel.
The crash kernel works *well* and I can enter busybox after the crash
kernel is up.


But when I used below command to load crash kernel into memory for
panic catching,
/mnt/uspace/abc/kexec -d -p /mnt/uspace/abc/vmlinux.z.img \
--initrd=/mnt/uspace/abc/ramdisk.img.gz \
--append="root=/dev/ram1 rw console=ttyS0,115200 1 maxcpus=1
noirqdistrib reset_devices"

and tried to trigger panic by "echo c > /proc/sysrq",

system hung after "Bye!" was printed to console.

I attached the debug output of "kexec -d -l" and "kexec -d -p".

Can someone please help here or point me a correct place to post the question?

Thanks.

BR



More information about the kexec mailing list