2010-03-31 03:55:58     uImage.initramfs - romfs not included?

Document created by Aaronwu Employee on Aug 21, 2013
Version 1Show Document
  • View in full screen mode

2010-03-31 03:55:58     uImage.initramfs - romfs not included?

Jan Pohanka (CZECH REPUBLIC)

Message: 87905   

 

Hello,

 

I'm trying to compile ucLinux for my custom board. Using the last svn version I got uImage.initramfs of noticably small size (~935kB). It looks like the romfs system isn't included. I checked the settings for initramfs but can't find any solution. The 2009R1 works fine.

 

greetings Jan

QuoteReplyEditDelete

 

 

2010-03-31 04:08:13     Re: uImage.initramfs - romfs not included?

Mike Frysinger (UNITED STATES)

Message: 87906   

 

verify you didnt disable the config options.  they're under General setup.

 

[*] Initial RAM filesystem and RAM disk (initramfs/initrd) support

[*]   Support initial ramdisks compressed using gzip

QuoteReplyEditDelete

 

 

2010-03-31 04:29:18     Re: uImage.initramfs - romfs not included?

Jan Pohanka (CZECH REPUBLIC)

Message: 87907   

 

I have these settings ok. Also the settings in MTD device are ok, i hope.

 

Nevertheless the following files are generated

 

lrwxrwxrwx 1 pohanj1 k13138 18 2010-03-31 10:28 linux -> linux.initramfs.gz

-rwxr-xr-x 1 pohanj1 k13138 2343830 2010-03-31 10:28 linux.initramfs

-rwxr-xr-x 1 pohanj1 k13138 2343830 2010-03-31 10:28 linux.initramfs.gz

-rw-r--r-- 1 pohanj1 k13138 8388608 2010-03-31 10:28 rootfs.ext2

-rw-r--r-- 1 pohanj1 k13138 4493312 2010-03-31 10:28 rootfs.initramfs

-rw-r--r-- 1 pohanj1 k13138 17574 2010-03-31 10:28 rootfs.initramfs.contents

-rw-r--r-- 1 pohanj1 k13138 2345774 2010-03-31 10:28 rootfs.initramfs.gz

-rw-r--r-- 1 pohanj1 k13138 537071 2010-03-31 10:28 System.map.initramfs

-rw-r--r-- 1 pohanj1 k13138 537071 2010-03-31 10:28 System.map.initramfs.gz

lrwxrwxrwx 1 pohanj1 k13138 16 2010-03-31 10:28 uImage -> uImage.initramfs

-rw-r--r-- 1 pohanj1 k13138 958375 2010-03-31 10:28 uImage.initramfs

-rw-r--r-- 1 pohanj1 k13138 958375 2010-03-31 10:28 uImage.initramfs.gz

-rw-r--r-- 1 pohanj1 k13138 957770 2010-03-31 10:28 vmImage

-rwxr-xr-x 1 pohanj1 k13138 2343734 2010-03-31 10:28 vmlinux

 

 

QuoteReplyEditDelete

 

 

2010-03-31 04:50:40     Re: uImage.initramfs - romfs not included?

Mike Frysinger (UNITED STATES)

Message: 87908   

 

post the full log as an attachment from doing `make`

QuoteReplyEditDelete

 

 

2010-03-31 05:23:25     Re: uImage.initramfs - romfs not included?

Jan Pohanka (CZECH REPUBLIC)

Message: 87909   

 

Here's the make log ...

 

make.log

QuoteReplyEditDelete

 

 

2010-03-31 05:29:14     Re: uImage.initramfs - romfs not included?

Mike Frysinger (UNITED STATES)

Message: 87911   

 

your board makefile is out of date.  you really should be sourcing the ADI build files instead of copying & pasting things.

QuoteReplyEditDelete

 

 

2010-03-31 05:31:04     Re: uImage.initramfs - romfs not included?

Jan Pohanka (CZECH REPUBLIC)

Message: 87912   

 

Thank you for advice, I'll check it.

QuoteReplyEditDelete

 

 

2010-03-31 06:55:28     Re: uImage.initramfs - romfs not included?

Jan Pohanka (CZECH REPUBLIC)

Message: 87915   

 

Thank you again. It helped.

 

One more question. Where is the settings for cpio archive? I got only uImage.gz.initramfs.

QuoteReplyEditDelete

 

 

2010-03-31 07:00:36     Re: uImage.initramfs - romfs not included?

Mike Frysinger (UNITED STATES)

Message: 87916   

 

the ADI .mk file builds images that your kernel supports.  so if you only selected gzip initramfs, then you only get gzipped initramfs.

QuoteReplyEditDelete

 

 

2010-03-31 07:19:44     Re: uImage.initramfs - romfs not included?

Jan Pohanka (CZECH REPUBLIC)

Message: 87917   

 

I understand, but where to select the cpio archive? I have only these possibilities...

 

 

x x [*] Initial RAM filesystem and RAM disk (initramfs/initrd) support x x

x x () Initramfs source file(s) x x

x x [*] Support initial ramdisks compressed using gzip x x

x x [ ] Support initial ramdisks compressed using bzip2 x x

x x [ ] Support initial ramdisks compressed using LZMA x x

x x [ ] Support initial ramdisks compressed using LZO x x

 

 

 

 

QuoteReplyEditDelete

 

 

2010-03-31 07:37:11     Re: uImage.initramfs - romfs not included?

Mike Frysinger (UNITED STATES)

Message: 87918   

 

i have no idea what you're asking about then

QuoteReplyEditDelete

 

 

2010-03-31 07:42:33     Re: uImage.initramfs - romfs not included?

Jan Pohanka (CZECH REPUBLIC)

Message: 87919   

 

I'm sorry if my questions are weird. I'm still newbie here.

 

In previous versions I used the file uImage.initramfs. I thought it's kernel with included romfs cpio archive. I suspect the file uImage.gz.initramfs is the same but compressed by gzip. Make don't generate uncompressed version.

QuoteReplyEditDelete

 

 

2010-03-31 08:05:31     Re: uImage.initramfs - romfs not included?

Mike Frysinger (UNITED STATES)

Message: 87920   

 

you're reading the file names wrong.  it is uImage.gz.initramfs, not uImage.initramfs.gz.  the final image itself is gzipped, not just the rootfs.

 

a uImage.gz.initramfs.gz doesnt make much sense -- you're wasting time/resources doubly decompressing things.

Attachments

Outcomes