Jump to content
  • 0

CoraZ7s custom bit file, usbhid: USB HID core driver


rick chaney

Question

When a custom bit files is used the petalinux fails.

I am assuming the Petalinux build is expecting a PL XADC support?

Is the a way to exclude this from the Petalinux build?

 

Thanks Rick

Linux version 4.9.0-xilinx-v2017.4 (setup@usrd23715) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #1 SMP PREEMPT Thu Oct 11 15:36:08 EDT 2018

........

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

Unhandled fault: imprecise external abort (0x406) at 0x000bc834

pgd = c0004000

[000bc834] *pgd=00000000

Internal error: Oops - BUG: 406 [#1] PREEMPT SMP ARM

Modules linked in:

CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-xilinx-v2017.4 #1

Hardware name: Xilinx Zynq Platform

task: de44b640 task.stack: de44c000

PC is at xadc_axi_read_adc_reg+0x14/0x20

LR is at xadc_probe+0x430/0x6bc

.......

[<c04e6eac>] (xadc_axi_read_adc_reg) from [<c04e8108>] (xadc_probe+0x430/0x6bc)

[<c04e8108>] (xadc_probe) from [<c039dd38>] (platform_drv_probe+0x50/0x9c)

[<c039dd38>] (platform_drv_probe) from [<c039c7d4>] (driver_probe_device+0x1b0/0x274)

[<c039c7d4>] (driver_probe_device) from [<c039c914>] (__driver_attach+0x7c/0xa8)

[<c039c914>] (__driver_attach) from [<c039b044>] (bus_for_each_dev+0x7c/0x8c)

[<c039b044>] (bus_for_each_dev) from [<c039bf34>] (bus_add_driver+0x16c/0x1dc)

[<c039bf34>] (bus_add_driver) from [<c039d030>] (driver_register+0xa0/0xe0)

[<c039d030>] (driver_register) from [<c0101858>] (do_one_initcall+0x100/0x120)

[<c0101858>] (do_one_initcall) from [<c0900da4>] (kernel_init_freeable+0x190/0x1d8)

[<c0900da4>] (kernel_init_freeable) from [<c0603a98>] (kernel_init+0x8/0x10c)

[<c0603a98>] (kernel_init) from [<c0106d18>] (ret_from_fork+0x14/0x3c)

 

 

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

Hello,

How did you introduce this custom bit file into Petalinux?

What kind of changes did you make to the FPGA IP (contained in the bit file) compared to the original bit file? You may need to modify the device tree also to properly describe the resources available in your custom bit file.

Is it the kernel booting that is giving you the Unhandled Fault error?

Are you working with our reference Petalinux project for the Cora Z7?

Vicentiu

Link to comment
Share on other sites

I have developed a bit file for a standalone operation for the CoraZ7s.

Then attempted to the use the Digilent https://github.com/Digilent/Petalinux-Cora-Z7-07S/blob/master/README.md

I first ran the Petalinux with the supplied system_wrapper.bit. Work fine.

Then replaced the bit file in the /images/linux directory with my own bit file. Then ran the "petalinux-package --boot --force --fsbl images/linux/zynq_fsbl.elf --fpga images/linux/system_wrapper.bit --u-boot" command. And booted from SD card.

The error indications suggests there are some IP definitions required for this to run. From the error indicated above it appears there is a XADC ip core included in the Digilent bit file.

So I am left with 2 choices;

1. re-create my bit design -with the Digilent defined XADC interface.

2. modify the Petalinux build to remove the XADC(USB HID ) driver.

 

Any suggestions?

Thanks Rick

Link to comment
Share on other sites

On 10/12/2018 at 8:48 PM, rick chaney said:

zip file doesnt contain anyVivado Project files?

The Readme file is blank?

You need to run the script proj/create_project.tcl from within Vivado to create the project files.

We've noted to add a readme file to this repo.

thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...