zfs on arm

Matthieu Kraus matthieu.kraus at s2008.tu-chemnitz.de
Wed Feb 20 22:25:08 UTC 2013


> I am not sure what you are telling me to do to get the kernel to
> build.  I agree that it should work better than in the 7.x days.  I
> have brought up zfs on x86 with 512M already and gotten it stable.
>
> -Brett

make sure your kernel config contains something along the lines of  
this (you'll need opensolaris and zlib in addition to zfs as it  
depends on those):

makeoptions    MODULES_OVERRIDE="zfs opensolaris zlib"

if it still refuses to build, this patch may help as a quick hack (a  
proper fix may be more appropriate):

Index: sys/cddl/compat/opensolaris/sys/cpuvar.h
===================================================================
--- sys/cddl/compat/opensolaris/sys/cpuvar.h    (revision 244033)
+++ sys/cddl/compat/opensolaris/sys/cpuvar.h    (working copy)
@@ -50,6 +50,9 @@

  /* Some code may choose to redefine this if pcpu_t would be more useful. */
  #define cpu_t  solaris_cpu_t
+#ifdef cpu_id
+#undef cpu_id
+#endif
  #define        cpu_id  cpuid

  extern solaris_cpu_t    solaris_cpu[];




More information about the freebsd-arm mailing list