@@ -4,3 +4,63 @@ The plan is to get opam running. To start with I think I will have to compile
4
4
everything from scratch, however, I would like to set up binaries of opam
5
5
and a compiler (similar to 4.01.0+bin-ocp) so this is much faster on
6
6
subsequent installs.
7
+
8
+ # Ports
9
+
10
+ There are no binary packages for FreeBSD at the moment (perhaps some user
11
+ maintained ones, but I have not found one). So, we need to compile stuff
12
+ from source. For that we need the ports tree but its not been installed
13
+ by default (and it is pretty huge while I have limited space on the
14
+ SD card image - I should expand this).
15
+
16
+ ```
17
+ $ portsnap fetch
18
+ ```
19
+
20
+ This grabs all the ports (approx 68 MB) then extracts them to
21
+ ` /var/db/portsnap ` (approx 136 MB). _ Note; the verification step takes
22
+ forever...._
23
+
24
+ ```
25
+ $ portsnap extract
26
+ ```
27
+
28
+ will extract the whole ports tree (>800Mb). You can also extract a subsets
29
+
30
+ ```
31
+ $ portsnap extract <pattern>
32
+ ```
33
+
34
+ This is causing me problems as (1) its shockingly slow and (2) its filling
35
+ my SD card up and Im running out of space (aside; I tried building 4gb
36
+ or slightly below 4gb images and they wouldnt boot, so I have settled on
37
+ 2gb for now - should be enough to build and install the stuff I need).
38
+
39
+ So....
40
+
41
+ # NFS
42
+
43
+ [ Setting up NFS] ( http://www.freebsd.org/doc/handbook/network-nfs.html ) went
44
+ pretty smoothly except I also added
45
+
46
+ ```
47
+ mountd_enable="YES"
48
+ ```
49
+
50
+ To the server. My ` /etc/exports ` looks like
51
+
52
+ ```
53
+ /usr/home/andyman/dev/github/mirage-fpga/rpi/freebsd/fs/ports -maproot=root 192.168.1.85
54
+ ```
55
+
56
+ and I used portsnap to extract a copy of ports on the server and put them
57
+ in ` /.../freebsd/fs/ports ` .
58
+
59
+ As root on the rpi do
60
+
61
+ ```
62
+ mkdir /usr/ports
63
+ mount <ip_addr_of_server>:/home/.../freebsd/fs/ports /var/ports
64
+ ```
65
+
66
+
0 commit comments