Solved FreeBSD ISO bootable?

wblock@ => Perfect, perfect, perfect many thanks.

Huh, if it continues like that, I will fall totally in love with FreeBSD.

Fre;D
 
Hello.
I try to use mfsBSD.

First with that:
make iso CUSTOM=1 BUILDWORLD=1 BUILDKERNEL=1
Code:
=> Building world ...make[1]: don't know how to make buildworld. Stop

Then with this (ISO downloaded from mfsBSD-site) :
make iso BASE=/media/MFSBSD
Code:
=> Installing configuration scripts and files ...install: /usr/home/fred/mfsbsd/tmp/mfs/etc/motd: No such file or directory
*** Error code 71

I have added manually the directory /motd but there are a lot of others to add too and finally it does not work.

What is wrong ?

PS: Doing all that as root did not help.

Thanks.

Fred.
 
Re-hello.

This does the trick =>
sudo svnlite co svn://svn.freebsd.org/base/head /usr/src

Then =>
make iso CUSTOM=1 BUILDWORLD=1 BUILDKERNEL=1

Huh, already 1 hour compiling ... write you later...

Thanks.

Fre;D
 
Aaaargh =>
Code:
Installing pkgng ...pkg-static not found at: tools/pkg-static
make: exec(exit) failed (No such file or directory)
*** Error code 1

What must I do?

Thanks.
 
Start by building a bootable system without additional packages. Once that works, start adding things.
 
Re-hello (and sorry to monopolize the forum)

That solve the thing => copy /usr/local/sbin/pkg-static into /mfsbsd/tools/pkg-static

Huh are you sure that mfsBSD is working "out of the box" ?

But there are good news :
Code:
sudo make iso BASE=/media/MFSBSD/10.1-RELEASE-amd64
Installing pkgng ... done
Compressing usr ... done
Creating and compressing mfsroot ... done
Creating ISO image ... done
-rw-r--r--  1 root  wheel  41445376 Jul 21 05:08 mfsbsd-10.1-RELEASE-amd64.iso

;-)

FreD

PS: ISO not tested yet, have to sleep, write you later.
 
Re-re-re-re-hello.

It works -) => ISO boots OK.

Now, add packages, make a custom graphic installer (with fpc + fpGUI), configure FreeBSD to load that installer after boot (how ?), following advice from here, make a Jail to transform FreeBSD into a real multiarch OS and... it is done.

What packages are needed to have X11 working ? (only X11, not desktop like mate or gnome or KDE,....=> this is for later) ?

And how can I add executables and some files into the new distro with mfsBSD ?

PS: I promise to do a nice wiki "How to use mfsBSD".

Many many thanks.

Fre;D
 
Hello.

In readme.txt =>
Code:
Additional packages and files
  If you want any packages installed, copy the .tbz files that should be
  automatically installed into the packages/ directory.

  Add any additional files into the customfiles/ directory. These will be copied
  recursively into the root of the boot image.
=> What are the packages/ directory and customfiles/ directory ?
Must those directories be in .../mfsbsd, or in .../mfsbsd/config/ or somewhere else ?
Because those directories do not exist in original /mfsbsd/.

Thanks.

Fre;D
 
Look at the Makefile. The packages directory is relative to the current directory, the same as config. So create those directories if needed.

I do not see any mention of customfiles in there. There is FILESDIR=files, but it is not used later. Like most things, it is probably a work in progress.
 
Hello wblock and thanks to take care.

Added into /mfsbsd/customfiles a test file (44 megas).

When doing :
sudo make iso BASE=/media/MFSBSD/10.1-RELEASE-amd64
=>
Code:
Extracting base and kernel ... done
Removing selected files from distribution ... done
Installing configuration scripts and files ... done
Generating SSH host keys ... done
Copying user files ...
customfiles/ -> /usr/home/fred/mfsbsd/tmp/mfs
customfiles/fpc264.tar.gz -> /usr/home/fred/mfsbsd/tmp/mfs/fpc264.tar.gz
done
Configuring boot environment ... done
Installing pkgng ... done
Compressing usr ... done
Creating and compressing mfsroot ...makefs: `/usr/home/fred/mfsbsd/tmp/mfs' size of 118652928 is larger than the maxsize of 67108864.
*** Error code 1

PS: Without adding /customfiles/ => it works (idem, works if packages added in /packages)
Have try, (like you proposed), adding files into /files/ => ignored.

Aaaargh, without adding custom-files, the distro is not very useful.

Any idea (or a other way) ?

Thanks.

Fred
 
Code:
BUILD says that larger files require a kernel with NKPT adjusted.
What is a kernel with NKPT adjusted and how to compile it ?

PS: Using custom kernel takes lot of time to compil (4 hours with my pc), not very easy to try...

Thanks.
 
Re-hello.
I am not sure that the problem comes from the kernel.
It seems that the error message comes from makefs.
=>
Code:
Creating and compressing mfsroot ...makefs: `/usr/home/fred/mfsbsd/tmp/mfs' size of 118652928 is larger than the maxsize of 67108864.
*** Error code 1
 
Re-re-re-....-re-Hello.

Have changed in Makefile =>
Code:
MFSROOT_MAXSIZE?=64m
With =>
Code:
MFSROOT_MAXSIZE?=2500m
And use that command (not creating a custom kernel) =>
sudo make iso BASE=/media/MFSBSD/10.1-RELEASE-amd64
=>
Now, the iso is created, without error, with custom-files added in root directory. ;-)
Have try to run-boot that iso and... it works ;-)

Is there a reason why MFSROOT_MAXSIZE was limited to 64m ?
Will my netbook burn or explode if using MFSROOT_MAXSIZE > 64 megas?

Huh, step by step, the dream comes true.

Thanks.

Fre;D
 
BUILD says that larger files require a kernel with NKPT adjusted.

Indeed, it seems that if ISO > 200 megas, it does not boot...
How can iI adjust NKPT ?
In Makefille, it uses that to compile a new kernel =>
Code:
${_v}cd ${SRC_DIR} && make buildkernel KERNCONF=${KERNCONF} TARGET=${TARGET}

Do you have a idea what to add to that command to have NKPT=200 (or what needed for a ISO > 2 gigas) ?

Thanks.

Fre;D
 
OK, iI think iI find how to do.
=> Makefile use "Generic" for KERNCON => added in /usr/src/sys/amd64/conf/GENERIC =>
Code:
 options    NKPT=200
(not sure 200 is the right number)

Then

sudo make iso CUSTOM=1 BUILDWORLD=1 BUILDKERNEL=1

Now it is compiling, have 4 hours free.
Hope it will work.

PS: If iI monopolize too much the forum, please say it (and excuse me).

Fre;D
 
As long as it stays on-topic, it's fine. (At least a couple of the moderators would really be happy if you capitalized "I". :))

I don't know what values to use for NKPT. I tried to build an i386 USB memory stick image with mfsBSD a few weeks back, using 10-STABLE, and the kernel would panic on boot. There might have been changes since then, but I have not had time to try it again.
 
Hello Wblock.

Thanks for your good feeling.
Huh, the kernel is... still compiling. (Already 6 hours 30 minutes !).
It is done one a 4 cores 64 bit, from Linux Mint 64 4 gigas ram, => VirtualBox with GhostBSD ( 2 gigas allowed with virtualizer).

I hope that the compiling will be finish today, so I can give you news.

When the compiling will be done, would it be always the same time of compiling if using ? =>
sudo make iso CUSTOM=1 BUILDWORLD=1 BUILDKERNEL=1

Or, maybe, there is a trick to save parts of the already compiled kernel ?

Thanks.

Fre;D
 
At least a couple of the moderators would really be happy if you capitalized "I". :))

OK, I will (try to) do it.
By the way, I never understood why, in English, "I" must be capitalized.
I find it a little pretentious to use a big I for myself.
And why not use then "You" ?
But this is off topic.

Fre;D
 
World and kernel build time can be saved by using the -DNO_CLEAN option. Otherwise, it removes /usr/obj and starts over each time.

(Not really sure the history of capital "I", maybe it's like a name. There are lots of things we do in English that have no real reason. Much like programming.)
 
Back
Top