How do you compile an initrd for a custom kernel?
I don't want to install it, I just want to compile it to a specific directory. the kernel is located in a specific directory as well.
initrd for custom kernel
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
initrd for custom kernel
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
Um....yeah....I used the word "compile" because I was tired and I couldn't think of another word.....sorry.....
create an initrd..... help?
create an initrd..... help?
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
Well I guess you could
But that's just off the top of my head so I've probably forgotten something...
Regards,
John.
Code: Select all
dd if=/dev/zero of=initrd bs=1k count=initrd_size
mk(filesystem of choice)fs initrd
mount -t filesystem -o loop,rw initrd /mnt
cd /mnt
cp all_my_files .
cd /
umount /mnt
and even gzip it if you're feeling clever
Regards,
John.
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
I'm not sure I get what you mean... will you be mounting this "ramdisk" image via your kernel? You'll have to write support code for that..
As for "creating" the actual image... Create it like any other disk image, You can use the dd command and then setup a vnode/loopback device to create a file system (FFS/Ext2.. or FAT if you must..)
http://www.osdev.org/wiki/Loopback_Device
Have fun![Wink :wink:](./images/smilies/icon_wink.gif)
(Dang.. jnc100 replied first...
)
As for "creating" the actual image... Create it like any other disk image, You can use the dd command and then setup a vnode/loopback device to create a file system (FFS/Ext2.. or FAT if you must..)
http://www.osdev.org/wiki/Loopback_Device
Have fun
![Wink :wink:](./images/smilies/icon_wink.gif)
(Dang.. jnc100 replied first...
![Laughing :lol:](./images/smilies/icon_lol.gif)
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
thanks guys!!!!!!
![Razz :P](./images/smilies/icon_razz.gif)
![Razz :P](./images/smilies/icon_razz.gif)
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io