UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor screamo
Visitor
5,740 Views
Registered: ‎08-18-2014

Failure to boot image.elf in both QEMU and real hardware.

Hello,

 

I am currently building a system in ZC706(Zynq) where MicroBlaze in PL is used as the main processor.

The onboard ARM processor is only used for bootloader(FSBL) that flashes the .bit file into the PL FPGA.

 

Using PlanAhead tool,(I prefer this over Vivado) I created a bit file that contains a MicroBlaze processor that

meets the minimum requirement for PetaLinux.

 

I successfully created Petalinux BSP that corresponds to my current hardware, and did exactly what the Petalinux document

says.

 

After I failed to get any message from STDIO(which is MicroBlaze debugging module JTAG UART) while loading and running image.elf, I tried to run it with petalinux qemu instead of the real hardware. The error message is as shown below:

 

INFO: Rerunning as root
QEMU_SERIAL ' --serial mon:stdio'
TCP PORT is free 9001 ip = 11
INFO: Found 0 Ethernet devices
unable to find MicroBlaze model.
Early console on uartlite at 0x83400000
bootconsole [earlyser0] enabled
Ramdisk addr 0x0000003f, FDT at 0x00b9f2b0
Linux version 3.6.0-dirty (kmkim@localhost.localdomain) (gcc version 4.6.4 20120924 (prerelease) (c
setup_cpuinfo: initialising
setup_cpuinfo: No PVR support. Using static CPU info from FDT
cache: wt_msr
setup_memory: max_mapnr: 0x30000
setup_memory: min_low_pfn: 0x0
setup_memory: max_low_pfn: 0x30000
setup_memory: max_pfn: 0x30000
Oops: kernel access of bad area, sig: 11
 Registers dump: mode=3E5D7C
 r1=00000000, r2=C02E2A70, r3=BFF00000, r4=BFF00000
 r5=00000FFF, r6=00000000, r7=00000FFF, r8=00000001
 r9=00000001, r10=00000001, r11=00000000, r12=40000000
 r13=408F8560, r14=00000000, r15=C030822C, r16=00000000
 r17=C01437F8, r18=00000000, r19=C0319888, r20=00000000
 r21=00000000, r22=BFF00000, r23=00001000, r24=00000000
 r25=00000000, r26=FFFFFFFF, r27=00030000, r28=00000001
 r29=01000000, r30=00000380, r31=C02EE2AC, rPC=C01437F8
 msr=000043A0, ear=BFF00000, esr=00000412, fsr=00000000
Kernel panic - not syncing: Attempted to kill the idle task!

 I have two questions.

 

1) Is the generated image.elf the coorect output of MicroBlaze linux? If yes, will running it be equivalent to running linux in MicroBlaze?

 

2) How can I resolve this problem and stop getting the error message as shown above?

 

Thank you very much in advance.

0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
5,704 Views
Registered: ‎07-01-2010

Re: Failure to boot image.elf in both QEMU and real hardware.

When you are using with PlanAhead or XPS you should make sure you are using the compatible petalinux version.

Refer to the below link for a similar discussion:http://forums.xilinx.com/t5/Embedded-Linux/petalinux-2014-2-kernel-panic/td-p/511951

Regards,
Achutha
---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------
0 Kudos
Visitor screamo
Visitor
5,694 Views
Registered: ‎08-18-2014

Re: Failure to boot image.elf in both QEMU and real hardware.

I will definitely check it right away. Thank you for the advice.

0 Kudos
Visitor screamo
Visitor
5,687 Views
Registered: ‎08-18-2014

Re: Failure to boot image.elf in both QEMU and real hardware.

The tool I have been using is ISE/PlanAhead 14.7, so I reinstalled Petalinux 2013.10 so that hardware tools and Petalinux SDK versions match.

 

After I did exactly what the manual suggests and built the kernel, the following message appears. (But it still manages to output image.elf and other stuff)

 

[kmkim@localhost SORLAB-02271258]$ petalinux-build 
INFO: Checking component...
INFO: Generating make files and build linux
INFO: Generating make files for the subcomponents of linux
INFO: Building linux
[INFO ] pre-build linux/rootfs/fwupgrade
[INFO ] pre-build linux/rootfs/peekpoke
[INFO ] pre-build linux/rootfs/uWeb
[INFO ] build system.dtb
[INFO ] build linux/kernel
[INFO ] update linux/u-boot source
[INFO ] generate linux/u-boot configuration files
[INFO ] build linux/u-boot
[INFO ] Setting up stage config
[INFO ] Setting up rootfs config
[INFO ] Updating for microblazeel-v8.30-bs-cmp-ml
[INFO ] Updating package manager
[INFO ] Expanding stagefs
[INFO ] build linux/rootfs/fwupgrade
[INFO ] build linux/rootfs/peekpoke
[INFO ] build linux/rootfs/uWeb
[INFO ] build kernel in-tree modules
[INFO ] modules linux/kernel
[INFO ] post-build linux/rootfs/fwupgrade
[INFO ] post-build linux/rootfs/peekpoke
[INFO ] post-build linux/rootfs/uWeb
[INFO ] pre-install linux/rootfs/fwupgrade
[INFO ] pre-install linux/rootfs/peekpoke
[INFO ] pre-install linux/rootfs/uWeb
[INFO ] install linux/kernel
[INFO ] install linux/u-boot
[INFO ] Setting up rootfs config
[INFO ] Setting up stage config
[INFO ] Updating for microblazeel-v8.30-bs-cmp-ml
[INFO ] Updating package manager
[INFO ] Expanding rootfs
[INFO ] install sys_init
[INFO ] install linux/rootfs/fwupgrade
[INFO ] install linux/rootfs/peekpoke
[INFO ] install linux/rootfs/uWeb
[INFO ] install kernel in-tree modules
[INFO ] modules_install linux/kernel
[INFO ] post-install linux/rootfs/fwupgrade
[INFO ] post-install linux/rootfs/peekpoke
[INFO ] post-install linux/rootfs/uWeb
[INFO ] package rootfs.cpio to /home/kmkim/2013.10/zc706/project_1/project_1.sdk/SDK/SDK_Export/petalinux_bsp_0/SORLAB-02271258/images/linux
[INFO ] Update and install vmlinux image
[INFO ] vmlinux linux/kernel
[INFO ] install linux/kernel
[INFO ] package simpleImage.mb
[INFO ] simpleImage.mb linux/kernel
[INFO ] install linux/kernel
[INFO ] package FIT image
[INFO ] Failed to copy images to TFTPBOOT /tftpboot

 Maybe the warning/error at the bottom has something to do with this problem?

 

and after I booted the image.elf with petalinux microblaze qemu, the following error appears, just like last time when I used a different version of Petalinux.

 

[kmkim@localhost SORLAB-02271258]$ petalinux-boot --qemu --image images/linux/image.elf 
QEMU_SERIAL ' --serial mon:stdio'
INFO: TCP PORT is free 9001 ip = 11
INFO: Found 0 Ethernet devices
unable to find MicroBlaze model.
Early console on uartlite at 0x83400000
bootconsole [earlyser0] enabled
Ramdisk addr 0x00000000, 
FDT at 0x00c23d8c
Linux version 3.8.11 (kmkim@localhost.localdomain) (gcc version 4.6.4 20120924 (prerelease) (crosstool-NG 1.18.0) ) #3 Fri Feb 27 13:04:56 KST 2015
setup_cpuinfo: initialising
setup_cpuinfo: No PVR support. Using static CPU info from FDT
wt_msr
setup_memory: max_mapnr: 0x30000
setup_memory: min_low_pfn: 0x0
setup_memory: max_low_pfn: 0x30000
setup_memory: max_pfn: 0x30000
Oops: kernel access of bad area, sig: 11
 Registers dump: mode=40BD9C
 r1=00000000, r2=C0308A7C, r3=BFF00000, r4=BFF00000
 r5=00000FFF, r6=00000000, r7=00000FFF, r8=00000001
 r9=00000001, r10=00000001, r11=00000000, r12=40000000
 r13=409705C0, r14=00000000, r15=C0330424, r16=00000000
 r17=C015093C, r18=00000000, r19=C033F3A8, r20=00000000
 r21=00000000, r22=BFF00000, r23=00001000, r24=00000000
 r25=00000000, r26=FFFFFFFF, r27=00030000, r28=00000001
 r29=01000000, r30=00000380, r31=C03142B0, rPC=C015093C
 msr=000043A0, ear=BFF00000, esr=00000412, fsr=00000000
Kernel panic - not syncing: Attempted to kill the idle task!

 Any ideas? I am quite desperate..

0 Kudos