cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
232 Views
Registered: ‎08-02-2016

Download kernel image to EMMC error

hi, experts,

I've met a problem when downloading kernel to EMMC on ZYNQ7030.

Our system is ZYNQ7030+spi flash+eMMC. The programming process is as followed:

  1. First we write BOOT.bin and image.ub(only for system startup, small size) into SPI flash.
  2. Then after operation system started, set ip address.
  3. Download formal image.ub into eMMC thru FTP.
  4. Write formal BOOT.bin into SPI flash and replace the small one.

Problem occurred during step 3, and reported error as below:

Built with PetaLinux v2015.4 (Yocto 1.8) zynq_proto_2 /dev/ttyPS0
zynq_proto_2 login: root
Password:
root@zynq_proto_2:~# BUG: scheduling while atomic: kworker/0:1/245/0x00000002
Modules linked in: ipv6
CPU: 0 PID: 245 Comm: kworker/0:1 Not tainted 4.0.0-xilinx #8
Hardware name: Xilinx Zynq Platform
Workqueue: events macb_tx_error_task
[<c001490c>] (unwind_backtrace) from [<c0010e4c>] (show_stack+0x10/0x14)
[<c0010e4c>] (show_stack) from [<c047e4c0>] (dump_stack+0x80/0xcc)
[<c047e4c0>] (dump_stack) from [<c047c510>] (__schedule_bug+0x48/0x64)
[<c047c510>] (__schedule_bug) from [<c047ee34>] (__schedule+0x74/0x484)
[<c047ee34>] (__schedule) from [<c047f2e4>] (schedule+0xa0/0xb0)
[<c047f2e4>] (schedule) from [<c0481b74>] (schedule_hrtimeout_range_clock+0xd0/0x10c)
[<c0481b74>] (schedule_hrtimeout_range_clock) from [<c005a914>] (usleep_range+0x44/0x4c)
[<c005a914>] (usleep_range) from [<c02cbfd8>] (macb_tx_error_task+0xa8/0x25c)
[<c02cbfd8>] (macb_tx_error_task) from [<c00323b8>] (process_one_work+0x13c/0x228)
[<c00323b8>] (process_one_work) from [<c0032878>] (worker_thread+0x188/0x288)
[<c0032878>] (worker_thread) from [<c00361b0>] (kthread+0xd8/0xec)
[<c00361b0>] (kthread) from [<c000de40>] (ret_from_fork+0x14/0x34)

Anyone know what cause this error ? Thanks! 

0 Kudos
1 Reply
Highlighted
Xilinx Employee
Xilinx Employee
189 Views
Registered: ‎04-15-2011

回复: Download kernel image to EMMC error

@mcggoal 

It looks like this is a gem driver issue. You Petalinux version is old. Is it possible to use latest Petalinux?

Or you can try below patch.

https://github.com/Xilinx/linux-xlnx/commit/16fe10cf92783ed9ceb182d6ea2b8adf5e8ec1b8

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos