Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
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.


  Search this Thread
Old 10-07-2012, 04:57 PM   #1
LQ Newbie
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
Question How to create an initrd.gz for an ARMEABI target?

I have built a custom-patched version of a Linux v3.4 kernel on a Debian amd64 host for an Intel iop32x + Redboot target. This has created a zImage file which I can upload to the target.

I also need to create an initrd.gz to upload as well so that the target will have an initramfs to boot from.

My question is how can this target file be created on the host?

I have been searching for an answer to this for many months so I'm hoping someone here will be able to help.

Old 10-08-2012, 04:42 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
There are at least two common init ramdisk formats. The one I tend to use is the older flavor; a compressed cpio archive. A Google search for 'compressed cpio archive initrd' turns up lots of useful hits, including 'How to View, Modify and Recreate initrd.img', which seems to have most of the critical details.
If your question is about how to actually build the filesystem content, then I suggest that you use, or at least start with, a buildroot-based product. Once you've got a cross toolchain, Buildroot is fairly painless to use to build your root filesystem.

It may be that you require an initramfs style root filesystem, and I believe Buildroot can also create those. The difference is primarily in how the filesystem image is formatted.

--- rod.

Last edited by theNbomr; 10-08-2012 at 04:45 PM.
1 members found this post helpful.
Old 10-08-2012, 05:05 PM   #3
LQ Newbie
Registered: Oct 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Many thanks for that. It's an initrd style I need and I'll check out buildroot.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Create an initrd hoshangi Linux - Software 2 09-29-2008 08:02 AM
How to create new initrd.gz (or initrd.img) file? kkpal Programming 2 12-10-2007 09:38 AM
Create initrd namit Linux - Software 8 08-12-2007 06:50 PM
failed to create initrd gunnix Debian 1 01-05-2007 08:01 PM
create initrd alaios Debian 5 01-19-2005 10:54 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 05:47 AM.

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