LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 03-03-2017, 04:10 AM   #1
edo1080
LQ Newbie
 
Registered: Mar 2017
Posts: 1

Rep: Reputation: Disabled
Please help me to identify this ramdisk format


I've a question about an embedded Linux ramdisk.image for virtex4 with 405 PPC, I read the ramdisk is usually a CPIO archive, but when trying to unpack it with CPIO and get the inner files I have an error, also the header of the partition doesn't look to be a CPIO one. I've also attached the kernel if necessary, but I'm only interested to know which king of ramdisk image it is and how to properly extract all of the files. I'm also interested to unterstand which is the structure for such a partion and how it has been created.

here's the link to the zipped archive with the image and kernel https://www.sendspace.com/file/0se934

Thanks in advance
 
Old 03-03-2017, 09:05 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

I downloaded the zip and tried to open it in Libre Office and all I had was a blank white page.

Maybe paste on pastebin or tiny paste.
http://pastebin.com/
 
Old 03-03-2017, 09:12 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Hello and welcome to LQ.

Wonder if it has been zipped? The FreeRTOS comes in either a windows self extracting zip or a plain zip format.

I forget the command that might help. Think it is "file" to help id the file properties.
 
1 members found this post helpful.
Old 03-03-2017, 10:18 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Just downloaded and tried again.

Code:
bash-4.3$ unzip upl.zip
Archive:  upl.zip
  inflating: upl/gzipped-kernel.bin  
  inflating: upl/gzippedramdisk.bin  
bash-4.3$
Looking at the properties and the permission's of upl/gzipped-kernel.bin & upl/gzippedramdisk.bin they are read only.

Still can't open them.
Okular can't find a plugin to open it. Libre Office opens to a blank page.
Ark opens them and shows that it's uncompressed but won't open it so I can read it.

What am I missing jefro?
 
Old 03-04-2017, 03:23 AM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
$ file file.bin

You might also try hexedit to see what the headers / meta data looks like.
 
Old 03-04-2017, 11:12 AM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Code:
bash-4.3$ ls
gzipped-kernel.bin  gzippedramdisk.bin
bash-4.3$ unzip gzippe-kernel.bin
unzip:  cannot find or open gzippe-kernel.bin, gzippe-kernel.bin.zip or gzippe-kernel.bin.ZIP.
bash-4.3$ unzip gzipped-kernel.bin 
Archive:  gzipped-kernel.bin
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of gzipped-kernel.bin or
        gzipped-kernel.bin.zip, and cannot find gzipped-kernel.bin.ZIP, period.
bash-4.3$
Gave it my best try:-
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I identify what format payload is in? Question on content encodings. vxc69 Programming 3 09-01-2014 10:13 AM
How to identify whether the script is in Unix format or not ? kalpeer Linux - General 5 07-04-2012 04:05 AM
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 03:08 PM
kernel 2.6.26fc+ ISOFS: Unable to identify CD-ROM format" alok.rhct Linux - Hardware 4 04-21-2009 08:09 AM
Fedora 8 installation fail due to ISOFS: Unable to identify CD-ROM format centguy Linux - Hardware 14 12-27-2008 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration