LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   How to create an initrd.gz for an ARMEABI target? (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/how-to-create-an-initrd-gz-for-an-armeabi-target-4175431007/)

winstonian 10-07-2012 03:57 PM

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.

Thanks
Chris

theNbomr 10-08-2012 03:42 PM

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.

winstonian 10-08-2012 04:05 PM

Many thanks for that. It's an initrd style I need and I'll check out buildroot.

Chris


All times are GMT -5. The time now is 08:42 AM.