Hello,<br>I  am trying to boot a custom linux-2.6.37 port, but I am stuck at the point where the kernel launches /init executable (since the initial filesystem was mounted with initramfs support).<br><br>After investigations, it appears that a problem occurs during prepare_binprm() function.<br>
This function is responsible for copying the 128 bytes header of the executable to bprm-&gt;buf.<br><br>However in my case, bprm-&gt;buf is filled with zeroes after this step.<br><br>The kernel_read() function receives bprm-&gt;buf and bprm-&gt;file as operand.<br>
<br>So the address in memory (in the initramfs) of the executable should be accessible from bprm-&gt;file (file object of /init).<br><br>My question is:<br>How can I manually (e.g. in the debugger) access the contents of the /init file (stored in memory, in the initramfs), from the bprm-&gt;file structure? <br>
(I&#39;d like to check the data structures are in good shape and correctly point to the /init contents).<br><br>Thanks in advance for your help.<br><br><br><br>