about btrfs in RPI


8 posts
by cheemer » Mon Nov 05, 2012 2:42 am
i try to use ssd and btrfs as root system boot my RPI.
finally,kernel panic,warning message is unknown block.
i think maybe btrfs not buid in cur kernel....
who can give me a definite answer?

thanks all.
Posts: 3
Joined: Mon Nov 05, 2012 2:31 am
by cheemer » Mon Nov 05, 2012 3:13 am
i see btrfs.ko not in https://github.com/raspberrypi/firmware ... es.builtin

i want know how to build a new kernel img.
Posts: 3
Joined: Mon Nov 05, 2012 2:31 am
by cheemer » Mon Nov 05, 2012 3:52 am
Posts: 3
Joined: Mon Nov 05, 2012 2:31 am
by menicary » Wed Feb 13, 2013 9:51 pm
Hi, I enabled the btrfs support and initrd support, compiled the kernel according to http://www.elinux.org/RPi_Kernel_Compilation, but I dont know, how to generate initrd.img without booting into raspbian.

Can you help me, please?
Posts: 3
Joined: Wed Feb 13, 2013 9:46 pm
by drgr33n » Thu Feb 14, 2013 12:50 am
You shouldn't need initrd just the kernel modules and kernel image. Why don't you build btrfs using dkms ?
Posts: 36
Joined: Tue Jan 22, 2013 2:55 am
Location: Norwich, Norfolk
by menicary » Fri Feb 15, 2013 12:34 am
drgr33n wrote:You shouldn't need initrd just the kernel modules and kernel image. Why don't you build btrfs using dkms ?


I want to use BTRFS for my root filesystem. To be able to mount the btrfs root file system, i need the btrfs driver. And when the driver is somewhere in /lib/modules, i can't mount root because i can't load the btrfs driver.

That is my idea. I am not sure whatever DKMS can help me. If i made some mistakes, please correct me, i am a kernel newbie...
Posts: 3
Joined: Wed Feb 13, 2013 9:46 pm
by menicary » Fri Feb 15, 2013 9:41 pm
or can you give me a concrete advice, how can i get btrfs root on RPI?
Posts: 3
Joined: Wed Feb 13, 2013 9:46 pm
by kdave » Sat Mar 23, 2013 10:21 pm
You can skip the initramdisk entirely and just compile btrfs support in (ie. not a module).

Either edit your .config file or run
./scripts/config -e CONFIG_BTRFS_FS

Additionally, it's needed to update the entry in /etc/fstab and change the rootfstype to btrfs in bootloader config.
Posts: 1
Joined: Sat Mar 23, 2013 10:11 pm