[yocto] Bundling initramfs with uImage

Crast, Nicholas Nicholas.Crast at saabsensis.com
Mon Aug 25 12:33:44 PDT 2014


Thanks,

This seems like a clean way to do what I want to do. So this means whenever I do a build, it will 

1.) Build the kernel
2.) Build the filesystem (initramfs)
3.) Rebuild the kernel with the bundled intramfs

Correct?

-Nick

----------------------------------------
Nick Crast
Associate Software Engineer
Saab Sensis Corporation
Phone: 315-445-5703
Email: Nicholas.Crast at saabsensis.com


-----Original Message-----
From: Khem Raj [mailto:raj.khem at gmail.com] 
Sent: Monday, August 25, 2014 1:32 AM
To: Crast, Nicholas
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] Bundling initramfs with uImage

On 14-08-21 20:18:41, Crast, Nicholas wrote:
> All,
> 
> I am currently working in an embedded environment, struggling to get the entire system running in RAM, so that everything is fresh after a reboot. I can currently use the initramfs-live-boot functionality to generate a .cpio.gz file, but I am lost on how to get this to 'bundle' with the uImage. The uImage will be stored on an SD card and we are using u-boot.
> 
> I see mentions of the CONFIG_INITRAMFS_SOURCE kernel option, but I am unsure if I need to change this.
> 
> Can someone help me? I've been googling all day and haven't gotten much further.

if you add 

INITRAMFS_IMAGE_BUNDLE = "1"
INITRAMFS_IMAGE = "<name of your initramfs-image>"

in you local.conf that should help it to create uImage with everything in it.

-Khem

-
This message is intended only for the addressee and may contain information that is company confidential or privileged.  Any technical data in this message may be exported only in accordance with the U.S. International Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 CFR Parts 730-774). Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message. If you have received this email in error, please delete it, and advise the sender immediately. 
-          


More information about the yocto mailing list