P1010 platform kexec feature support

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

P1010 platform kexec feature support

2,236 次查看
qingshanli
Contributor I

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.

0 项奖励
回复
6 回复数

2,053 次查看
scottwood
NXP Employee
NXP Employee

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.

0 项奖励
回复

2,053 次查看
qingshanli
Contributor I

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?

0 项奖励
回复

2,053 次查看
scottwood
NXP Employee
NXP Employee

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.

0 项奖励
回复

2,054 次查看
qingshanli
Contributor I

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?

0 项奖励
回复

2,054 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Qingshan,

Please also provide Kernel configuration files for both original Kernel and dump capture Kernel.

Thanks,

Yiping

0 项奖励
回复

2,050 次查看
qingshanli
Contributor I

hi yiping

both kernel use the same config file

0 项奖励
回复