AGL Fails to Boot on Raspberry Pi 2
Description
Environment
relates to
Activity
Leon Anavi June 23, 2017 at 4:44 PM
The fix has been merged in master.
Best regards,
Leon
Leon Anavi June 15, 2017 at 11:33 AM
Hi,
After further examination I found out that this issue is similar as the issues described in https://lf-automotivelinux.atlassian.net/browse/SPEC-410#icft=SPEC-410 and https://lf-automotivelinux.atlassian.net/browse/SPEC-469#icft=SPEC-469 for Raspberry Pi 3. I have applied the same fix and scaled back the GPU to 255 in Change 9741 to avoid error like this:
[ 9.436219] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[ 9.445510] vc4-drm soc:gpu: failed to bind 3f902000.hdmi (ops vc4_hdmi_ops): -517
[ 9.454709] vc4-drm soc:gpu: master bind failed: -517
[ 9.471154] bcm2708_i2c 3f805000.i2c: BSC2 Controller at 0x3f805000 (irq 83) (baudrate 100000)
[ 9.492881] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops)
[ 9.499317] vc4_dsi 3f700000.dsi: DSI not set up by firmware.
[ 9.505289] vc4-drm soc:gpu: bound 3f700000.dsi (ops vc4_dsi_ops)
[ 9.515906] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops)
[ 9.523885] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops)
[ 9.532219] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops)
[ 9.540817] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops)
[ 9.548243] [drm:vc4_v3d_bind] *ERROR* V3D requires that the CMA area (0x1f000000 - 0x3cc00000) not span a 256MB boundary, or memory corruption would happen.
[ 9.562584] vc4-drm soc:gpu: failed to bind 3fc00000.v3d (ops vc4_v3d_ops): -22
[ 9.570566] Unable to handle kernel NULL pointer dereference at virtual address 00000010
[ 9.578896] pgd = 80004000
[ 9.581657] [00000010] *pgd=00000000
[ 9.585461] Internal error: Oops: 5 [#1] SMP ARM
Best regards,
Leon
Jan-Simon Moeller June 13, 2017 at 8:27 PM
can you attach a full log, the dump in the description above is too short unfortunately.
Leon Anavi June 13, 2017 at 8:03 PM
Following the fix for https://lf-automotivelinux.atlassian.net/browse/SPEC-649#icft=SPEC-649 and https://lf-automotivelinux.atlassian.net/browse/SPEC-650#icft=SPEC-650, there is serial console output on Raspberry Pi 2 but the same issue as in the description of this report appears.
Best regards,
Leon
Leon Anavi May 26, 2017 at 1:21 PM
I will investigate further this issues after ALS because I am busy preparing demos for the event right now.
Best regards, Leon
Hi,
Following the discussion during the AGL weekly call I did a test and indeed agl-demo-platform (using the master branch) fails to boot on Raspberry Pi 2:
[ 8.909785] [<80400738>] (driver_probe_device) from [<80400958>] (__device_attach_driver+0x94/0xbc) [ 8.909803] [<80400958>] (__device_attach_driver) from [<803fe8f0>] (bus_for_each_drv+0x70/0xa4) [ 8.909819] [<803fe8f0>] (bus_for_each_drv) from [<80400478>] (__device_attach+0xc0/0x124) [ 8.909836] [<80400478>] (__device_attach) from [<804009dc>] (device_initial_probe+0x1c/0x20) [ 8.909853] [<804009dc>] (device_initial_probe) from [<803ff90c>] (bus_probe_device+0x94/0x9c) [ 8.909870] [<803ff90c>] (bus_probe_device) from [<803ffd64>] (deferred_probe_work_func+0x64/0x90) [ 8.909889] [<803ffd64>] (deferred_probe_work_func) from [<8003c8f8>] (process_one_work+0x21c/0x510) [ 8.909908] [<8003c8f8>] (process_one_work) from [<8003d84c>] (worker_thread+0x54/0x574) [ 8.909923] [<8003d84c>] (worker_thread) from [<80042ec8>] (kthread+0xec/0x104) [ 8.909940] [<80042ec8>] (kthread) from [<8000fb68>] (ret_from_fork+0x14/0x2c) [ 8.909952] Code: e24cb004 e52de004 e8bd4000 e59032b8 (e5130014) [ 8.909961] ---[ end trace 15f62fff79b3b0da ]--- [ 8.909966] Fixing recursive fault but reboot is needed!
As proposed by Jan-Simon I will try reducing the GPU_MEM and add feature agl-medium-arm-compiler in an attempt to boot it.
Best regards,
Leon