initial_boot_params is causing Kernel Freeze in 3.14.28 Kernel

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

initial_boot_params is causing Kernel Freeze in 3.14.28 Kernel

5,495件の閲覧回数
dilshad_alam
Senior Contributor II

Trying to Bring up Kernel from Git repo.

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_3.14.28_1.0.0_ga

In start_kernel  -> setup_arch -> setup_machine_fdt:-> of_flat_dt_match_machine -> of_get_flat_dt_root

unsigned long p = ((unsigned long)initial_boot_params) + be32_to_cpu(initial_boot_params->off_dt_struct);  // Accessing initial_boot_params was causing Kernel to Freeze because in new Kernel initial_boot_params was not getting Initialized.

To fix this issue I Ported drivers/of/fdt.c and arch/arm/kernel/devtree.c from working 3.10 kernel. Now Kernel is booting till

[ 0.000000] Memory: 252116K/262144K available (3975K kernel code, 303K rwdata, 1452K rodata, 317K init, 502K bss, 10028K reserved)

Could you please suggest if any patch I am missing for Device tree support in 3.14.28 Kernel

ラベル(2)
0 件の賞賛
返信
5 返答(返信)

5,087件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Dilshad

there is no need to change for freescale reference boards, one needs

to choose correct board files, like imx6q-sabresd.dtb. Example is

described on

Linux on the i.MX6 sabre sd platform in a few commands

Freescale Yocto Project main page

i.MX Yocto Project: Frequently Asked Questions

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

5,087件の閲覧回数
dilshad_alam
Senior Contributor II

Hi Igor,

I am using different dts file for my Board.With that dts file and 3.10 Kernel its working fine.

But with New kernel 3.14.28 its not working. Thats the reason i ported back drivers/of/fdt.c and arch/arm/kernel/devtree.c files from 3.10 kernel.

Let me know if anything i need to change in my dts file. I have attached my dts files.

Thanks for your time.

0 件の賞賛
返信

5,085件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Dilshad

for custom board one can follow attached Freescale_Yocto_Project_User's_Guide.pdf

sect.7 Creating a Custom Board Configuration and BSP_Porting_Guide, in particular

Chapter 2 Configuring the IOMUX Controller

~igor

0 件の賞賛
返信

5,085件の閲覧回数
dilshad_alam
Senior Contributor II

Hi Igor,

Thanks for your reply. It would be great if you can answer one question.

Where does initial_boot_params field gets populated in 3.14.28 kernel. It would be helpful if you answer to specific queries.

0 件の賞賛
返信

5,085件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Dilshad

this is specific linux kernel question -

please post it to kernel.org

Best regards

igor

0 件の賞賛
返信