Skip to contentSkip to conversation

"newc additions on runtime" feature?

DISCUSSION Shea Levy 2 participants 2 messages Jan 29, 2016

lore
Share & tools
lore

Shea Levy

author
#0 lore raw

Hi all,

Commit 92750e4c ("Add ability to generate newc additions on runtime.") introduced special handling of initrd names starting with "newc:". I can't find any documentation for this feature nor any example of it actually in use; what are its semantics? Is there any chance this functionality can be removed?

I ask because I am writing a new loader for android bootimgs and have to bypass the normal 'initrd' command.

Thanks,
Shea

#1 lore raw

29.01.2016 18:18, Shea Levy пишет:

Quoted 11 lines

Hi all,

Commit 92750e4c ("Add ability to generate newc additions on runtime.") introduced special handling of initrd names starting with "newc:". I can't find any documentation for this feature nor any example of it actually in use; what are its semantics? Is there any chance this functionality can be removed?

I ask because I am writing a new loader for android bootimgs and have to bypass the normal 'initrd' command.

Just ignore it. It is used to build cpio archive from directory on the fly, but you have single initrd with known size. Just allocate and initialize initrd_ctx directly and pass it to common code.