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: 
Observer pritya
Observer
803 Views
Registered: ‎10-13-2017

Uncompressing is not happening with zImage while booting up with u-boot

 

I am working on microzed 7010 board, I have manualy compiled kernel, u-boot, fsbl, and .bit (vivado). Board is booting well with all setup (without using petalinux). But i have noticed that kernel is not Uncompressing kernel... with zImage nor uImage. whereas i can see bootlogs with that of petalinux's images.

INPUT :

1 . zImage env is

zImage=tftpboot 0x3000000 zImage && tftpboot 0x2A00000 system.dtb && bootz 0x3000000 - 0x2A00000

2 . Boot log is =>

Zynq> run zImage
[2017-10-25 15:57:11
ethernet@e000b000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
[2017-10-25 15:57:15
Zynq> run zImage 
[2017-10-25 15:57:22
Using ethernet@e000b000 device
TFTP from server 172.16.9.187; our IP address is 172.16.9.25
Filename 'zImage'.
Load address: 0x3000000
    Loading:#####################################################################################################################################################################################################################################

3.9 MiB/s
    done
Bytes transferred = 3913840 (3bb870 hex)
    Using ethernet@e000b000 device
    TFTP from server 172.16.9.187; our IP address is 172.16.9.25
    Filename 'system.dtb'.
    Load address: 0x2a00000
    Loading: #
    3.3 MiB/s
    done
Bytes transferred = 13644 (354c hex)
    Kernel image @ 0x3000000 [ 0x000000 - 0x3bb870 ]
## Flattened Device Tree blob at 02a00000
    Booting using the fdt blob at 0x2a00000
    Loading Device Tree to 1fff9000, end 1ffff54b ... OK

    Starting kernel ...

    Booting Linux on physical CPU 0x0
    Linux version 4.6.0-xilinx-00003-g2762bc9 (pritam@pritam) (gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2) ) #3 SMP PREEMPT Wed Oct 25 10:28:387
    [2017-10-25 15:57:24
    CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d

3 . In u-boot I have given bootz support

4 . uImage is formed by

mkimage -A arm -O linux -T kernel -C none -a 0x10000000 -e 0x10000000 -n "Linux kernel" -d arch/arm/boot/zImage uImage                                                             

What causing it not to uncompress kernel ? Is u-boot compressing the kernel and booting ?

Any help will be appreciated.

Thanks and regards, Pritam

0 Kudos
2 Replies
Voyager
Voyager
755 Views
Registered: ‎06-24-2013

Re: Uncompressing is not happening with zImage while booting up with u-boot

Hey Pritam,

 

i have noticed that kernel is not Uncompressing kernel...

This message is generated by the Linux Kernel decompressor after u-boot handed off control to the kernel and it depends on the kernel config itself (CONFIG_*_COMPRESS, CONFIG_*_DECOMPRESS) which if enabled, also selects the compressor and decompressor.

 

What causing it not to uncompress kernel?

Is u-boot compressing the kernel and booting?

The image created for u-boot has '-C none' which means that there will be no compression applied to the u-boot image. This can be changed to available compressions (see -h for details).

 

Hope this clarifies,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
Observer pritya
Observer
728 Views
Registered: ‎10-13-2017

Re: Uncompressing is not happening with zImage while booting up with u-boot

Thanks for your reply.

0 Kudos