To all, I recently received an older AMD Athlon 64 3400+ machine, 1 GB of RAM and 200 GB of SATA disk. I have installed the 64-bit amd64 version of FBSD 7.3-STABLE on this box and everything is running perfectly. I have several other smaller, far less powerful 32-bit i386 machines, which need to be built from the same version as the 64-bit amd64 machine. I was able to buildworld and buildkernel successfully by issuing these commands in this order: make TARGET=i386 buildworld make TARGET=i386 KERNCONF=machine-1 buildkernel But when I exported /usr/src and /usr/obj read-only from the AMD machine and mounted them through machine-1, and I tried to installkernel from machine-1, I kept running into errors right at the beginning of the process. Can someone tell me the canonical way of performing cross compilation and installation? Thank you, Simon Chang
on 22/10/2010 17:33 Simon Chang said the following:> But when I exported /usr/src and /usr/obj read-only from the AMD machine and > mounted them through machine-1, and I tried to installkernel from machine-1, > I kept running into errors right at the beginning of the process.Try the other way around - it's better to run install{kernel,world} on the same machine were you did the build. DESTDIR is your friend too. -- Andriy Gapon
On Sat, Oct 23, 2010 at 2:12 AM, Scot Hetzel <swhetzel@gmail.com> wrote:> On Fri, Oct 22, 2010 at 9:35 PM, Simon Chang <sector214@gmail.com> wrote: > > OK... except that this flies in the face of this part from the Handbook: > > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/small-lan.html > > > That part in the handbook only works when both the build machine and > the target machines are running the same O/S arch (i.e. i386). > > > Also, if you are right, where should I run mergemaster??? > > > You can run mergemaster from either the build machine or the target > machine. The target machine would need to have the /usr/src NFS > mounted. > > To use mergemaster on the build machine use: > > mergemaster -A i386 -D /path/to/nfs/mnt/ > > Scot >Great, thank you Scot and Andriy for your suggestions. While I am very comfortable with the build procedure for single arch/cputype, I am relatively new to cross compiling. I will put your advice to use and let you know if I run into problems. Cheers! SC