hi
I am use p1010 cpu and SDK version is 1.5. Now i test kexec feature on this platform with below command:
kexec --load --initrd=/tmp/initrd --
append="console=ttyS0,115200" /tmp/kernel
umount -ar
kexec --exec
after commands execute finish, the console just print info:
Starting new kernel
Bye!
and then the cpu system looks like freeze,and console don't
have any information output.
I further debug source code and found "kexec --exec" final call
function default_machine_kexec
(arch/powerpc/kernel/machine_kexec_32.c)
, execute below codes
....
/* now call it */
62 rnk = (relocate_new_kernel_t) reboot_code_buffer;
63 (*rnk)(page_list, reboot_code_buffer_phys, image-
>start);
and then cpu looks like freeze.
I don't know how to debug it and please help confirm it
whether this situation is SDK bug.
P.S
/tmp/initrd is initrd file
/tmp/kernel is elf vmlinux file
in uboot mode i can use initrd and kernre file can bootup cpu
system, so the two file is correct.
While there is some code present for kexec, it's not currently a supported/tested feature of the SDK. If you need support for this, let your sales/FAE contact know.
hi scott
your reply mention "some codes present for kexec", whether you can offer those codes to me so i can test kexec feature on p1010 platform?
I'm referring to the code that is already in the kernel. What I'm saying is that somebody worked on it in the past, but I don't think it is currently expected to work.
hi Scott
I test kexec feature on 3.9.6 Kernel and found it works. But 3.9.6 kernel is not my favorite kernel version. I can merge some codes form 3.9.6 to 3.8.13 for 3.8.13 can support kexec feature but i don't know how to start it. Whether you can help me to achieve it?
Hello Qingshan,
Please also provide Kernel configuration files for both original Kernel and dump capture Kernel.
Thanks,
Yiping