[[advanced:target]]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
advanced:target [2018/10/05 13:26] – [Enable encryption, and create an encrypted dataset] danadvanced:target [2018/10/10 00:02] (current) – [Build ZFS on Linux] dan
Line 6: Line 6:
  
 Unfortunately, the Ubuntu 18.04 image uses a 32-bit kernel, and the available ZFS packages aren't compatible with a 32-bit kernel.  This means I'll need to compile the ZFS pieces myself, and they're not known to be stable with a 32-bit kernel in any event.  Updates to come. Unfortunately, the Ubuntu 18.04 image uses a 32-bit kernel, and the available ZFS packages aren't compatible with a 32-bit kernel.  This means I'll need to compile the ZFS pieces myself, and they're not known to be stable with a 32-bit kernel in any event.  Updates to come.
- +===== Create a non-privileged user with sudo capability ===== 
-===== Rebuild the kernel ===== +<code> 
-In order to build ZFS, you must have the headers for the running kernel installed on the system.  Since there does not appear to be a linux-headers package available matching the kernel version installed on the Odroid, this means you'll need to rebuild the kernel.  To do this, run the following commands (taken from the [[https://wiki.odroid.com/odroid-xu4/software/building_kernel#y|Hardkernel wiki]]):+adduser fred 
 +usermod -aG sudo fred 
 +</code> 
 +===== Install the kernel headers ===== 
 +In order to build ZFS, you must have the headers for the running kernel installed on the system.
 <code> <code>
-sudo apt update && sudo apt upgrade +wget http://deb.odroid.in/5422-s/pool/main/l/linux-source-4.14.73-136/linux-headers-4.14.73-136_20181001_armhf.deb 
-sudo apt install git gcc g++ build-essential +sudo dpkg -i linux-headers-4.14.73-136_20181001_armhf.deb
-git clone --depth 1 https://github.com/hardkernel/linux -b odroidxu4-4.14.+
-cd linux +
-make odroidxu4_defconfig +
-make -j8 +
-sudo make modules_install +
-sudo cp -f arch/arm/boot/zImage /media/boot +
-sudo cp -f arch/arm/boot/dts/exynos5422-odroidxu3.dtb /media/boot +
-sudo cp -f arch/arm/boot/dts/exynos5422-odroidxu4.dtb /media/boot +
-sudo cp -f arch/arm/boot/dts/exynos5422-odroidxu3-lite.dtb /media/boot +
-sudo cp .config /boot/config-`make kernelrelease` +
-sudo update-initramfs -c -k `make kernelrelease` +
-sudo mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n uInitrd -d /boot/initrd.img-`make kernelrelease` /boot/uInitrd-`make kernelrelease` +
-sudo cp /boot/uInitrd-`make kernelrelease` /media/boot/uInitrd +
-sync+
 </code> </code>
-Then reboot your system to start using the new kernel. 
  
 ===== Build ZFS on Linux ===== ===== Build ZFS on Linux =====
 These instructions are taken from the [[https://github.com/zfsonlinux/zfs/wiki/Building-ZFS|ZFSonLinux Wiki]].  First, install the necessary dependencies: These instructions are taken from the [[https://github.com/zfsonlinux/zfs/wiki/Building-ZFS|ZFSonLinux Wiki]].  First, install the necessary dependencies:
 <code> <code>
-sudo apt install autoconf libtool gawk alien fakeroot zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev parted lsscsi ksh libssl-dev libelf-dev+sudo apt install git build-essential autoconf libtool gawk alien fakeroot zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev parted lsscsi ksh libssl-dev libelf-dev
 </code> </code>
 Then download, build, and install the ZFS code: Then download, build, and install the ZFS code:
Line 81: Line 70:
 </code> </code>
 ===== Install Zerotier ===== ===== Install Zerotier =====
-Zerotier will create an encrypted virtual network connection between your Odroid and your FreeNAS box.  It's installed by default on FreeNAS, but you'll need to install it on the Odroid.  Run these commands:+[[https://zerotier.com/|Zerotier]] will create an encrypted virtual network connection between your Odroid and your FreeNAS box.  It's installed by default on FreeNAS, but you'll need to install it on the Odroid.  Run these commands:
 <code> <code>
 sudo apt install curl sudo apt install curl
 curl https://install.zerotier.com | sudo bash curl https://install.zerotier.com | sudo bash
 </code> </code>
  • advanced/target.1538746016.txt.gz
  • Last modified: 2018/10/05 13:26
  • by dan