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: 
Highlighted
Participant 365972698@qq.com
Participant
8,332 Views
Registered: ‎08-09-2015

uramdisk.image.gz can not be decompressed

Jump to solution

   I want to make my own ramdisk image based on the  2015.2-release.tar.xz (http://www.wiki.xilinx.com/Zynq+2015.2+Release) , but when I decompress the uramdisk.image.gz, it seems never to work,the file was not damaged:

 

root@ubuntu:/work/ramdisk/2015.2-release# ll
total 19840
drwxr-xr-x 5 root  root     4096 Aug 27 20:40 ./
drwxr-xr-x 6 root  root     4096 Aug 27 20:42 ../
-rw-r--r-- 1 root  root 10622952 Aug 27 20:22 2015.2-release.tar.xz
drwxr-xr-x 2 root  root     4096 Aug 27 20:24 tmp_mount/
-rw-r--r-- 1 11562  300  3478648 Jul 30 14:08 uImage
-rw-r--r-- 1 11562  300  6186958 Jul 30 14:08 uramdisk.image.gz
drwxr-xr-x 4 root  root     4096 Aug 27 20:22 zc70x/
drwxr-xr-x 2 root  root     4096 Aug 27 20:22 zed/
root@ubuntu:/work/ramdisk/2015.2-release# gunzip uramdisk.image.gz 

gzip: uramdisk.image.gz: not in gzip format
root@ubuntu:/work/ramdisk/2015.2-release# tar -zxf uramdisk.image.gz 

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
root@ubuntu:/work/ramdisk/2015.2-release# file  uramdisk.image.gz 
uramdisk.image.gz: u-boot legacy uImage, , Linux/ARM, RAMDisk Image (gzip), 6186894 bytes, Thu Jul 30 14:08:02 2015, Load Address: 0x00000000, Entry Point: 0x00000000, Header CRC: 0x36C5DF9E, Data CRC: 0xDCD49C9

Is there any solution for me ?

TONNY
0 Kudos
1 Solution

Accepted Solutions
Scholar rfs613
Scholar
15,565 Views
Registered: ‎05-28-2013

Re: uramdisk.image.gz can not be decompressed

Jump to solution
Also the "u" in uramdisk implies that there is a u-boot header present. This 64-byte header would need to be removed before you can work with the remaining cpio archive.

Seems the SSL key for wiki.xilinx.com has expired, so I cannot access any of the content there (Firefox won't even let me add an exception)
0 Kudos
6 Replies
Xilinx Employee
Xilinx Employee
8,326 Views
Registered: ‎08-01-2008

Re: uramdisk.image.gz can not be decompressed

Jump to solution

check with ubuntu

http://askubuntu.com/questions/291221/error-with-tar-commad-cannot-open-no-such-file-or-directory

Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Participant 365972698@qq.com
Participant
8,316 Views
Registered: ‎08-09-2015

Re: uramdisk.image.gz can not be decompressed

Jump to solution

Hi:

    Thanks for your repley!

    But i am confused by the link you give me. It seems that I have a different problem with that.

    I have the right directory, undamaged file, the root user . 

    Or ,is the file "uramdisk.image.gz" in the "2015.2-release.tar.xz"  can not be decompressed ?

 

   My same operation on the  arm_ramdisk.image.gz(http://www.wiki.xilinx.com/Build+and+Modify+a+Rootfs) works    normally. Is there any difference between the two files?

 

 

 

 

 

 

    

   

    

    

TONNY
0 Kudos
Xilinx Employee
Xilinx Employee
8,292 Views
Registered: ‎09-10-2008

Re: uramdisk.image.gz can not be decompressed

Jump to solution

Hi,

 

A long time ago we were using an initrd ramdisk but now it is an initramfs ramdisk.  These are not tar based files but cpio based.

 

https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt

 

So there is a different process to alter the ramdisk image.

 

I hope that helps,

John

0 Kudos
Scholar rfs613
Scholar
15,566 Views
Registered: ‎05-28-2013

Re: uramdisk.image.gz can not be decompressed

Jump to solution
Also the "u" in uramdisk implies that there is a u-boot header present. This 64-byte header would need to be removed before you can work with the remaining cpio archive.

Seems the SSL key for wiki.xilinx.com has expired, so I cannot access any of the content there (Firefox won't even let me add an exception)
0 Kudos
Participant 365972698@qq.com
Participant
8,240 Views
Registered: ‎08-09-2015

Re: uramdisk.image.gz can not be decompressed

Jump to solution

HI:

 

    Thanks,the file can be decompressed when I remove the 64 byte header.

    I can see the whole files  in it's mounted directory :

   2.png

   

   But  when I boot ZYNQ to the file system ,I can't see any of them .Seems  like that it is empty:

   

    root@zynq:~# ls
    root@zynq:~# 

    root@zynq:~# 

 

   I dont understand, someone get the reason?

 

     

TONNY
0 Kudos
Participant 365972698@qq.com
Participant
8,227 Views
Registered: ‎08-09-2015

Re: uramdisk.image.gz can not be decompressed

Jump to solution

Sorry, I was in the wrong directory. The default directory is in the home dirctory while the file systerm is mount on /root .

TONNY
0 Kudos