View previous topic :: View next topic |
Author |
Message |
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Sat Feb 28, 2015 10:43 pm Post subject: [HOWTO] Creating ZFS kernel modules for SystemRescueCD |
|
|
[HOWTO] Creating ZFS kernel modules for SystemRescueCD
Hi guys,
this article is WIP [work in progress/process]
since I don't have access to gmail via SystemRescueCD right now (midori keeps on crashing when trying to log in; the gmail draft functionality is quite handy sometimes),
I'm pasting the preliminary raw data here and will add more later to make more sense of it - for some of you it might already be enough
Kernel Configuration:
(currently for 4.5.1)
alternate kernel amd64 config:
http://pastebin.com/p9n2SdW8
3.18.5-alt451-amd64 x86_64
default kernel amd64 config:
http://pastebin.com/qCX0uc2c
3.14.31-std451-amd64 x86_64
fixme:
Remove the first line (zcat /proc/config.gz)
from the pasted kernel config file
Toolchain:
fixme:
BEFORE building kernel modules switch toolchain
ld.bfd
binutils 2.23.2
gcc 4.8.3
fixme:
AFTER building kernel modules switch toolchain
CFLAGS for kernel modules:
fixme:
BEFORE building kernel modules switch CFLAGS
for (almost) universal compatibility
Code: | -march=nocona -mtune=generic |
fixme:
AFTER building kernel modules switch CFLAGS
Build Tools:
bliss-initramfs 1.8.1 specifically is needed, since that version includes support for buildling the SRM kernel modules
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.3.0-r3/bliss-initramfs/1.8.1
SystemRescueCD USB-Stick Setup:
http://www.sysresccd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick#E.29_Manual_installation_from_Linux_using_cp_.28deprecated.29
I prefer to follow the manual installation steps and learned to distrust scripts (latest example is Steam for Linux where moving it into a different directy deletes all your home directory content !)
in addition to step "Step 3: Copy files from the CD-ROM"
/mnt/usbstick/boot/grub/grub-451.cfg needs to be modified
to replace
and
with
and
Caching with Alternate Kernel, 64bit:
if you're lazy/productive like me and would like to have an option to pre-cache all files of SysRescueCD with the Alternate Kernel option,
you can add
Code: | menuentry "SystemRescueCd (64bit, alternative kernel cache all files in memory)" {
set gfxpayload=keep
linux /syslinux/altker64 docache
initrd /syslinux/initram.igz
} |
to
/mnt/usbstick/boot/grub/grub-451.cfg _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004
Last edited by kernelOfTruth on Sat Oct 17, 2015 11:42 pm; edited 3 times in total |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Sun Mar 01, 2015 9:45 pm Post subject: |
|
|
Good one, KoT; keep it up. :-) |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|