Editing Modifying initrd image
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 98: | Line 98: | ||
We can see that init tries to load modules <code>mptbase.ko</code> and <code>mptscsih.ko</code>. | We can see that init tries to load modules <code>mptbase.ko</code> and <code>mptscsih.ko</code>. | ||
− | Check for | + | Check for presense of these modules on initrd image: |
<pre> | <pre> | ||
$ ls -1 ./lib/ | $ ls -1 ./lib/ | ||
Line 106: | Line 106: | ||
So they are here... But on the [[Hardware Node|node]] in question there is a device supported by driver in another module: | So they are here... But on the [[Hardware Node|node]] in question there is a device supported by driver in another module: | ||
− | <code> | + | <code>mtpspi.ko</code>! After adding it to the image and into init script everything should work. |
==Creating initrd== | ==Creating initrd== | ||
We just have to cpio and gzip directory cpio: | We just have to cpio and gzip directory cpio: | ||
<pre> | <pre> | ||
− | $ find ./ | cpio | + | $ find ./ | cpio -o > /boot/new-initrd.cpio |
1354 blocks | 1354 blocks | ||
$ cd /boot | $ cd /boot |