[meta-xilinx] linux-xlnx.inc: Use kernel defconfig for ZynqMP

Nathan Rossi nathan at nathanrossi.com
Wed May 4 03:57:37 PDT 2016


On Wed, May 4, 2016 at 8:45 AM, Manjukumar Matha
<manjukumar.harthikote-matha at xilinx.com> wrote:
> Use Xilinx kernel defconfig for ZynqMP boards. This will enable all the
> supported Xilinx drivers.
>
> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha at xilinx.com>
> ---
>  recipes-kernel/linux/linux-xlnx.inc | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/recipes-kernel/linux/linux-xlnx.inc b/recipes-kernel/linux/linux-xlnx.inc
> index fe0a2ad..3536715 100644
> --- a/recipes-kernel/linux/linux-xlnx.inc
> +++ b/recipes-kernel/linux/linux-xlnx.inc
> @@ -22,6 +22,9 @@ DESCRIPTION = "Xilinx Kernel"
>  require linux-xilinx-configs.inc
>  require linux-xilinx-machines.inc
>
> +KBUILD_DEFCONFIG_zynqmp = "xilinx_zynqmp_defconfig"
> +KCONFIG_MODE_zynqmp = "--alldefconfig"

With this config the ep108-zynqmp running on QEMU (mainline one built
by meta-xilinx) is broken, see logbuf below (but it is currently
working fine with the config fragments). Do you know whether this is a
known issue, and if there is a solution? it looks like it is related
to PM, and or lack of PM firmware?

If not I don't think it is worth trying to resolve it at this point,
making the most straight forward way to proceed is to only set this
defconfig for the zcu102 (which I believe is your goal no?). And try
to work out the issues with the defconfig for other machines later?

Regards,
Nathan

logbuf output:

-- [snip] --
[     4392374.352] io scheduler noop registered
[     4392467.296] io scheduler deadline registered
[     4392789.296] io scheduler cfq registered (default)
[     4408530.112] swapper/0[1]: undefined instruction: pc=ffffffc000451624
[     4408661.200] Code: a94363f7 a8c47bfd d65f03c0 aa0303f2 (d4000003)
[     4408844.512] Internal error: Oops - undefined instruction: 0
[#1] PREEMPT SMP
[     4408942.928] Modules linked in:
[     4409132.784] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.4.0-xilinx #2
[     4409191.328] Hardware name: ZynqMP EP108 (DT)
[     4409273.200] task: ffffffc03287eb80 ti: ffffffc032880000
task.ti: ffffffc032880000
[     4409371.904] PC is at do_fw_call_smc+0x4/0x58
[     4409429.104] LR is at zynqmp_pm_get_api_version.part.0+0x30/0x80
[     4409485.104] pc : [<ffffffc000451624>] lr : [<ffffffc000451b18>]
pstate: 40000045
[     4409549.776] sp : ffffffc032883c00
[     4409598.416] x29: ffffffc032883c00 x28: 0000000000000000
[     4409677.648] x27: ffffffc000aef910 x26: ffffffc000ab3250
[     4409738.592] x25: ffffffc000ae5588 x24: ffffffc000aa76b0
[     4409798.320] x23: 0000000000000000 x22: ffffffc000b4db78
[     4409857.728] x21: ffffffc032a14a70 x20: ffffffc00081e000
[     4409917.088] x19: ffffffc000be7110 x18: ffffffc032883c28
[     4409976.272] x17: 0000000000000007 x16: 0000000000000009
[     4410035.488] x15: ffffffc0320c1173 x14: ffffffffffffffff
[     4410094.480] x13: 0000000000000018 x12: 0101010101010101
[     4410153.744] x11: 0000000000000018 x10: 0101010101010101
[     4410228.016] x9 : 7f7f7f7f7f7f7f7f x8 : 7f7f7f7f7f7f7f7f
[     4410288.560] x7 : fefefefeff626c72 x6 : 0000008080808082
[     4410347.424] x5 : 0200000000000000 x4 : ffffffc000451620
[     4410406.144] x3 : ffffffc032883c28 x2 : 0000000000000000
[     4410464.512] x1 : 0000000000000000 x0 : 00000000c2000001
[     4410525.584]
[     4410575.152] Process swapper/0 (pid: 1, stack limit = 0xffffffc032880020)
[     4410660.384] Stack: (0xffffffc032883c00 to 0xffffffc032884000)
[     4410778.752] 3c00: ffffffc032883c40 ffffffc000451c78
ffffffc000be7108 ffffffc0000baffc
[     4410862.480] 3c20: ffffffc032883c40 ffffffc000451bd0
ffffffc000b4db50 ffffffc032a14a10
[     4410933.520] 3c40: ffffffc032883c70 ffffffc0004cff30
ffffffc000b4db50 ffffffc032a14a10
[     4411003.136] 3c60: ffffffc037fdf990 ffffffbffa800d10
ffffffc032883c90 ffffffc0004ce6d8
[     4411072.960] 3c80: ffffffc032a14a10 ffffffc000bea000
ffffffc032883cd0 ffffffc0004ce87c
[     4411142.416] 3ca0: ffffffc032a14a10 ffffffc000b4db78
ffffffc032a14a70 ffffffc000b584d0
[     4411211.872] 3cc0: ffffffc000b58000 ffffffc0004cc934
ffffffc032883d00 ffffffc0004cc928
[     4411281.200] 3ce0: 0000000000000000 ffffffc000b4db78
ffffffc0004ce7d8 ffffffc0007a9458
[     4411350.992] 3d00: ffffffc032883d40 ffffffc0004ce090
ffffffc000b4db78 ffffffc03211a200
[     4411421.504] 3d20: 0000000000000000 ffffffc0007a2080
ffffffc032865ca8 ffffffc032a3b668
[     4411491.360] 3d40: ffffffc032883d50 ffffffc0004cdce8
ffffffc032883d90 ffffffc0004cee28
[     4411560.960] 3d60: ffffffc000b4db78 ffffffc000b1b4a0
ffffffc032a80700 ffffffc000aceecc
[     4411630.480] 3d80: 0000000000000000 ffffffc00016a6f4
ffffffc032883db0 ffffffc0004cfef0
[     4411700.064] 3da0: ffffffc000b1b4a0 ffffffc000b1b4a0
ffffffc032883dc0 ffffffc000aceee4
[     4411769.392] 3dc0: ffffffc032883dd0 ffffffc000081190
ffffffc032883e50 ffffffc000ab3ab4
[     4411838.912] 3de0: 0000000000000116 ffffffc000b93000
ffffffc000ae5620 0000000000000006
[     4411908.368] 3e00: ffffffc000b93000 ffffffc000ab3250
ffffffc000aef500 0000000000000000
[     4411977.952] 3e20: ffffffc000b93000 ffffffc00099f2a8
0000000600000006 0000000000000000
[     4412047.552] 3e40: 0000000000000000 ffffffc000aa76b0
ffffffc032883eb0 ffffffc0007a32a0
[     4412116.656] 3e60: ffffffc0007a3290 0000000000000000
0000000000000000 0000000000000000
[     4412186.544] 3e80: 0000000000000000 0000000000000000
0000000000000000 0000000000000000
[     4412261.424] 3ea0: 0000000000000000 ffffffc0000ba940
0000000000000000 ffffffc000084450
[     4412331.808] 3ec0: ffffffc0007a3290 0000000000000000
0000000000000000 0000000000000000
[     4412401.008] 3ee0: 0000000000000000 0000000000000000
0000000000000000 0000000000000000
[     4412470.288] 3f00: 0000000000000000 0000000000000000
0000000000000000 0000000000000000
[     4412539.440] 3f20: 0000000000000000 0000000000000000
0000000000000000 0000000000000000
[     4412608.528] 3f40: 0000000000000000 0000000000000000
0000000000000000 0000000000000000
[     4412677.616] 3f60: 0000000000000000 0000000000000000
0000000000000000 0000000000000000
[     4412746.976] 3f80: 0000000000000000 0000000000000000
0000000000000000 0000000000000000
[     4412816.048] 3fa0: 0000000000000000 0000000000000000
0000000000000000 0000000000000000
[     4412885.056] 3fc0: 0000000000000000 0000000000000000
0000000000000000 0000000000000005
[     4412955.072] 3fe0: 0000000000000000 0000000000000000
0000000000000000 0000000000000000
[     4413044.976] Call trace:
[     4413107.520] [<ffffffc000451624>] do_fw_call_smc+0x4/0x58
[     4413198.976] [<ffffffc000451c78>] zynqmp_pm_probe+0xd0/0x160
[     4413257.440] [<ffffffc0004cff30>] platform_drv_probe+0x38/0x88
[     4413311.680] [<ffffffc0004ce6d8>] really_probe+0x198/0x298
[     4413362.688] [<ffffffc0004ce87c>] __driver_attach+0xa4/0xa8
[     4413415.104] [<ffffffc0004cc928>] bus_for_each_dev+0x60/0xa0
[     4413468.112] [<ffffffc0004ce090>] driver_attach+0x20/0x28
[     4413518.672] [<ffffffc0004cdce8>] bus_add_driver+0x1d0/0x238
[     4413569.696] [<ffffffc0004cee28>] driver_register+0x60/0xf8
[     4413622.528] [<ffffffc0004cfef0>] __platform_driver_register+0x40/0x48
[     4413679.904] [<ffffffc000aceee4>] zynqmp_pm_platform_driver_init+0x18/0x20
[     4413739.072] [<ffffffc000081190>] do_one_initcall+0x90/0x1a0
[     4413794.256] [<ffffffc000ab3ab4>] kernel_init_freeable+0x150/0x1f0
[     4413851.904] [<ffffffc0007a32a0>] kernel_init+0x10/0xe0
[     4413905.552] [<ffffffc000084450>] ret_from_fork+0x10/0x40
[     4413972.400] Code: a94363f7 a8c47bfd d65f03c0 aa0303f2 (d4000003)
[     4414177.984] ---[ end trace 854c33020debcb6f ]---
[     4414625.520] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x0000000b

[     4414818.240] CPU2: stopping
[     4415032.752] CPU: 2 PID: 28 Comm: kworker/u8:2 Tainted: G      D
        4.4.0-xilinx #2
[     4415120.640] Hardware name: ZynqMP EP108 (DT)
[     4415319.776] Workqueue: events_unbound call_usermodehelper_exec_work
[     4415424.784] Call trace:
[     4415487.440] [<ffffffc000087e58>] dump_backtrace+0x0/0x118
[     4415559.248] [<ffffffc000087f84>] show_stack+0x14/0x20
[     4415631.072] [<ffffffc0003ab7d4>] dump_stack+0x8c/0xd0
[     4415700.576] [<ffffffc00008cfe0>] handle_IPI+0x170/0x180
[     4415768.896] [<ffffffc000080d20>] gic_handle_irq+0xa0/0xc0
[     4415839.984] Exception stack(0xffffffc0329bbaa0 to 0xffffffc0329bbbc0)
[     4415915.408] baa0: ffffffc03239b800 ffffffc000b12000
ffffffc0329bbbf0 ffffffc0007a99d0
[     4416007.808] bac0: 0000000020000145 0000000000008000
ffffffc000b12180 0000000000000001
[     4416100.640] bae0: ffffffc0329b8000 ffffffc032bea900
ffffffc03239b808 00fffcf7c97a0dce
[     4416192.656] bb00: 0000000000000000 ffffffc03239b820
0000000000000040 ffffffc000b94000
[     4416289.504] bb20: ffffffffffffffff ffffffffffffffff
0000000000000c4d 0000000000000c4d
[     4416380.480] bb40: 00000000000c8000 0000000000000002
00000000ffffff80 0000000000000001
[     4416471.200] bb60: ffffffbe00af9920 ffffffc03239b800
ffffffc000b12000 0000000000000000
[     4416562.032] bb80: ffffffc000b21000 ffffffc032beacd0
0000000000008000 ffffffc000b93600
[     4416652.816] bba0: ffffffc032bea900 ffffffc032beac50
0000000000000000 ffffffc0329bbbf0
[     4416749.056] [<ffffffc000083da8>] el1_irq+0x68/0xd8
[     4416824.640] [<ffffffc0000963d0>] copy_process.isra.8+0xcc8/0x1350
[     4416898.752] [<ffffffc000096b84>] _do_fork+0x74/0x2c0
[     4416967.088] [<ffffffc000096e18>] kernel_thread+0x30/0x38
[     4417038.768] [<ffffffc0000aaa4c>] call_usermodehelper_exec_work+0x2c/0xe0
[     4417114.704] [<ffffffc0000ad708>] process_one_work+0x138/0x378
[     4417186.064] [<ffffffc0000ada6c>] worker_thread+0x124/0x498
[     4417256.992] [<ffffffc0000b3314>] kthread+0xdc/0xf0
[     4417324.528] [<ffffffc000084450>] ret_from_fork+0x10/0x40
[     4417428.960] CPU3: stopping
[     4417501.264] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G      D
    4.4.0-xilinx #2
[     4417583.824] Hardware name: ZynqMP EP108 (DT)
[     4417637.216] Call trace:
[     4417697.536] [<ffffffc000087e58>] dump_backtrace+0x0/0x118
[     4417768.176] [<ffffffc000087f84>] show_stack+0x14/0x20
[     4417839.360] [<ffffffc0003ab7d4>] dump_stack+0x8c/0xd0
[     4417908.528] [<ffffffc00008cfe0>] handle_IPI+0x170/0x180
[     4417977.840] [<ffffffc000080d20>] gic_handle_irq+0xa0/0xc0
[     4418043.232] Exception stack(0xffffffc0328dfdf0 to 0xffffffc0328dff10)
[     4418112.928] fde0:
ffffffc0328dc000 ffffffc000b12000
[     4418204.000] fe00: ffffffc0328dff40 ffffffc000084dc4
0000000060000045 ffffffc0328dff60
[     4418295.104] fe20: 0000000000000003 ffffffc0009d0148
ffffffc0328dc000 0000000000000001
[     4418385.648] fe40: ffffffc000baa000 0000000000000017
0001c9c380000000 0000000106940190
[     4418475.952] fe60: ffffffc0328d9610 ffffffc0328dfec0
0000000000000730 0000000000000003
[     4418565.872] fe80: 0000000000000001 0000000000000000
00000000000c8000 0000000000000002
[     4418656.048] fea0: 00000000ffffff80 0000000000000006
ffffffbe00af7460 ffffffc0328dc000
[     4418746.304] fec0: ffffffc000b12000 ffffffc0007b4000
ffffffc000af09c0 ffffffc000af3cf8
[     4418836.432] fee0: ffffffc0328dff60 ffffffc000997000
ffffffc000b90000 0000000000000000
[     4418922.560] ff00: 0000000000000000 ffffffc0328dff40
[     4418987.200] [<ffffffc000083da8>] el1_irq+0x68/0xd8
[     4419056.512] [<ffffffc0000cc92c>] default_idle_call+0x1c/0x38
[     4419128.448] [<ffffffc0000cca80>] cpu_startup_entry+0x138/0x230
[     4419201.392] [<ffffffc00008cad0>] secondary_start_kernel+0x128/0x150
[     4419329.104] [<000000000008103c>] 0x8103c
[     4419393.616] CPU0: stopping
[     4419466.336] CPU: 0 PID: 6 Comm: kworker/u8:0 Tainted: G      D
       4.4.0-xilinx #2
[     4419551.280] Hardware name: ZynqMP EP108 (DT)
[     4419620.656] Workqueue: events_unbound call_usermodehelper_exec_work
[     4419697.456] Call trace:
[     4419757.376] [<ffffffc000087e58>] dump_backtrace+0x0/0x118
[     4419828.672] [<ffffffc000087f84>] show_stack+0x14/0x20
[     4419900.128] [<ffffffc0003ab7d4>] dump_stack+0x8c/0xd0
[     4419969.440] [<ffffffc00008cfe0>] handle_IPI+0x170/0x180
[     4420038.416] [<ffffffc000080d20>] gic_handle_irq+0xa0/0xc0
[     4420103.600] Exception stack(0xffffffc0328b3aa0 to 0xffffffc0328b3bc0)
[     4420177.024] 3aa0: ffffffc031c19700 ffffffc000b12000
ffffffc0328b3bf0 ffffffc0007a99d0
[     4420273.968] 3ac0: 0000000020000245 0000000000008000
ffffffc000b12180 0000000000000001
[     4420365.536] 3ae0: ffffffc0328b0000 ffffffc032264980
ffffffc031c19708 00fffcf7c9760dcf
[     4420456.592] 3b00: 0000000000000000 ffffffc031c19720
0000000000000040 ffffffc000b94000
[     4420548.192] 3b20: ffffffffffffffff ffffffffffffffff
0000000000000c4d 0000000000000c4d
[     4420641.088] 3b40: 00000000000c8000 0000000000000002
00000000ffffff80 0000000000000001
[     4420732.656] 3b60: ffffffbe00af0d20 ffffffc031c19700
ffffffc000b12000 0000000000000000
[     4420823.424] 3b80: ffffffc000b21000 ffffffc032264d50
0000000000008000 ffffffc000b93600
[     4420914.208] 3ba0: ffffffc032264980 ffffffc032264cd0
0000000000000000 ffffffc0328b3bf0
[     4421005.360] [<ffffffc000083da8>] el1_irq+0x68/0xd8
[     4421073.264] [<ffffffc0000963d0>] copy_process.isra.8+0xcc8/0x1350
[     4421146.528] [<ffffffc000096b84>] _do_fork+0x74/0x2c0
[     4421214.896] [<ffffffc000096e18>] kernel_thread+0x30/0x38
[     4421285.712] [<ffffffc0000aaa4c>] call_usermodehelper_exec_work+0x2c/0xe0
[     4421361.296] [<ffffffc0000ad708>] process_one_work+0x138/0x378
[     4421432.368] [<ffffffc0000ada6c>] worker_thread+0x124/0x498
[     4421503.104] [<ffffffc0000b3314>] kthread+0xdc/0xf0
[     4421570.576] [<ffffffc000084450>] ret_from_fork+0x10/0x40
[     4421698.512] ---[ end Kernel panic - not syncing: Attempted to
kill init! exitcode=0x0000000b

> +
>  KERNEL_FEATURES_append = " bsp/xilinx/soc/linux-xlnx/drivers/xilinx.scc"
>  KERNEL_FEATURES_append_zynq = " bsp/xilinx/soc/linux-xlnx/drivers/zynq7.scc"
>  KERNEL_FEATURES_append_zynqmp = " bsp/xilinx/soc/linux-xlnx/drivers/zynqmp.scc"
> --
> 2.1.4
>
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx



More information about the meta-xilinx mailing list