Re: Question on initrd and initramfs

2012-10-06 Thread Mulyadi Santosa
Hi man :) On Sat, Oct 6, 2012 at 2:25 AM, Ezequiel Garcia elezegar...@gmail.com wrote: Just wanted to add something fresh. I'm reading through ramfs sources: $ wc -l fs/ramfs/*.c 55 fs/ramfs/file-mmu.c 267 fs/ramfs/file-nommu.c 289 fs/ramfs/inode.c 611 total 600 lines! This is

Re: Question on initrd and initramfs

2012-10-05 Thread Ezequiel Garcia
Hello, On Sun, Sep 30, 2012 at 5:01 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi Tobi... On Sun, Sep 30, 2012 at 1:10 AM, Tobias Boege tob...@gambas-buch.de wrote: Have you read Documentation/filesystems/ramfs-rootfs-initramfs.txt? I didn't but there are some eye-catching

Re: Question on initrd and initramfs

2012-09-30 Thread Mulyadi Santosa
Hi Tobi... On Sun, Sep 30, 2012 at 1:10 AM, Tobias Boege tob...@gambas-buch.de wrote: Have you read Documentation/filesystems/ramfs-rootfs-initramfs.txt? I didn't but there are some eye-catching statements: 1. initramfs becomes a rootfs (l. 86) 2. rootfs is a special instance of ramfs (l.

Re: Question on initrd and initramfs

2012-09-29 Thread Ezequiel Garcia
Hey Mulyadi, On Sat, Sep 29, 2012 at 2:27 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi... On Fri, Sep 28, 2012 at 5:56 PM, Ezequiel Garcia elezegar...@gmail.com wrote: Please note that the image you give qemu (or bootloader) to use as initrd is *not* formatted using any mkfs.

Re: Question on initrd and initramfs

2012-09-29 Thread Tobias Boege
On Sun, 30 Sep 2012, Mulyadi Santosa wrote: Hi... On Fri, Sep 28, 2012 at 5:56 PM, Ezequiel Garcia elezegar...@gmail.com wrote: Please note that the image you give qemu (or bootloader) to use as initrd is *not* formatted using any mkfs. It's just created with: $ find . | cpio -H

Re: Question on initrd and initramfs

2012-09-28 Thread Ezequiel Garcia
On Thu, Sep 27, 2012 at 2:43 PM, Autif Khan autif.ml...@gmail.com wrote: On Thu, Sep 27, 2012 at 12:57 PM, Ezequiel Garcia elezegar...@gmail.com wrote: Now to my first question: The kernel is compiled WITHOUT any fs driver... So how the f@#ck did he mounted initramfs? How are the files

Re: Question on initrd and initramfs

2012-09-28 Thread Ezequiel Garcia
On Fri, Sep 28, 2012 at 7:53 AM, Ezequiel Garcia elezegar...@gmail.com wrote: On Thu, Sep 27, 2012 at 2:43 PM, Autif Khan autif.ml...@gmail.com wrote: On Thu, Sep 27, 2012 at 12:57 PM, Ezequiel Garcia elezegar...@gmail.com wrote: Now to my first question: The kernel is compiled WITHOUT any

Re: Question on initrd and initramfs

2012-09-28 Thread Ezequiel Garcia
Hi Mulyadi, On Thu, Sep 27, 2012 at 9:58 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi... On Thu, Sep 27, 2012 at 11:57 PM, Ezequiel Garcia elezegar...@gmail.com wrote: Now to my first question: The kernel is compiled WITHOUT any fs driver... So how the f@#ck did he mounted

Question on initrd and initramfs

2012-09-27 Thread Ezequiel Garcia
Hi, This is *not* another question about initrd vs initramfs (I already read Documentation/...). That said, I'm doing some experiments with: * qemu * a very small kernel * busybox static-linked rootfs I can create an initramfs using this: $ cd initramfs $ find . | cpio -H newc -o

Re: Question on initrd and initramfs

2012-09-27 Thread Autif Khan
On Thu, Sep 27, 2012 at 12:57 PM, Ezequiel Garcia elezegar...@gmail.com wrote: Now to my first question: The kernel is compiled WITHOUT any fs driver... So how the f@#ck did he mounted initramfs? How are the files formatted? It would help if you post the kernel config in its entirety

Re: Question on initrd and initramfs

2012-09-27 Thread Ezequiel Garcia
On Thu, Sep 27, 2012 at 2:43 PM, Autif Khan autif.ml...@gmail.com wrote: On Thu, Sep 27, 2012 at 12:57 PM, Ezequiel Garcia elezegar...@gmail.com wrote: Now to my first question: The kernel is compiled WITHOUT any fs driver... So how the f@#ck did he mounted initramfs? How are the files

Re: Question on initrd and initramfs

2012-09-27 Thread Mulyadi Santosa
Hi... On Thu, Sep 27, 2012 at 11:57 PM, Ezequiel Garcia elezegar...@gmail.com wrote: Now to my first question: The kernel is compiled WITHOUT any fs driver... So how the f@#ck did he mounted initramfs? How are the files formatted? I think it's using any kind of RAM based fs, like ramfs or