Code Monkey home page Code Monkey logo

freebsd-erl-build's People

Contributors

cperciva avatar emaste avatar jornane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

freebsd-erl-build's Issues

makefs error

Ran into this error: makefs: `/home/vagrant/ERLBUILD.2y7e19vi/tree' size of 1120960512 is larger than the maxsize of 964689920.

vagrant@freebsd12current:~/freebsd-ERL-build % git rev-parse  HEAD
b0422d6725f30f3dc0895b2300585a4b3a4253ec

Diff to fix the issue.

vagrant@freebsd12current:~/freebsd-ERL-build % git diff
diff --git a/buildimg.sh b/buildimg.sh
index 517a589..4c9fe66 100644
--- a/buildimg.sh
+++ b/buildimg.sh
@@ -163,7 +163,7 @@ mdconfig -d -u ${mddev}

# Create UFS filesystem
echo "/dev/da0s2a / ufs rw 1 1" > ${WORKDIR}/tree/etc/fstab
-makefs -f 16384 -B big -s 920m ${WORKDIR}/UFS.img ${WORKDIR}/tree
+makefs -f 16384 -B big -s 2500m ${WORKDIR}/UFS.img ${WORKDIR}/tree

# Create complete disk image
mkimg -s mbr           \

I just randomly picked a large enough size and the build completed successfully. Haven't tried the image on hardware yet.

Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
Fetching packagesite.txz: 100%    3 MiB   3.3MB/s    00:01
Processing entries: 100%
FreeBSD repository update completed. 15503 packages processed.
All repositories are up to date.
The following 5 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        pkg: 1.10.1
        djbdns: 1.05_21,1
        isc-dhcp43-server: 4.3.5
        ucspi-tcp: 0.88_2
        daemontools: 0.76_18

Number of packages to be installed: 5

The process will require 20 MiB more space.
3 MiB to be downloaded.
[1/5] Fetching pkg-1.10.1.txz: 100%    2 MiB   2.0MB/s    00:01
[2/5] Fetching djbdns-1.05_21,1.txz: 100%  150 KiB 153.5kB/s    00:01
[3/5] Fetching isc-dhcp43-server-4.3.5.txz: 100%  889 KiB 910.8kB/s    00:01
[4/5] Fetching ucspi-tcp-0.88_2.txz: 100%   70 KiB  72.0kB/s    00:01
[5/5] Fetching daemontools-0.76_18.txz: 100%   59 KiB  60.3kB/s    00:01
Checking integrity... done (0 conflicting)
/home/vagrant/ERLBUILD.2y7e19vi/FAT32.img: 66512 sectors in 66512 FAT32 clusters (512 bytes/cluster)
BytesPerSec=512 SecPerClust=1 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=63 Heads=255 HiddenSecs=0 HugeSectors=67584 FATsecs=520 RootCluster=2 FSInfo=1 $
ackup=2
makefs: `/home/vagrant/ERLBUILD.2y7e19vi/tree' size of 1120960512 is larger than the maxsize of 964689920.

FreeBSD source info:

vagrant@freebsd12current:~/src % svnlite info
Path: .
Working Copy Root Path: /home/vagrant/src
URL: svn://svn.freebsd.org/base/head
Relative URL: ^/head
Repository Root: svn://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 316803
Node Kind: directory
Schedule: normal
Last Changed Author: cem
Last Changed Rev: 316803
Last Changed Date: 2017-04-14 00:45:09 +0000 (Fri, 14 Apr 2017)

trying to make 13-current image which is failing in a couple of places

First try errors here:

--------------------------------------------------------------
>>> Installing kernel ERL completed on Fri Oct 2 03:49:44 BST 2020
--------------------------------------------------------------
Invalid argument specified
Usage: pkg bootstrap [-f]

so looked at the script and noticed it used bootstrap -y, so amended it (ran again in a screen and hit y here):

The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y

`but now it fails after this, although it does make the FAT32.img:

Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:13:mips64/latest, please wait...
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
Installing pkg-1.15.4...
Extracting pkg-1.15.4: 100%
/bin/sh: /usr/sbin/service: not found
pkg-static: POST-INSTALL script failed
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
Fetching packagesite.txz: 100% 2 MiB 2.4MB/s 00:01
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Qemu unsupported ioctl: cmd=0xc0306365 dir=INOUT 'c' 101 48
Processing entries: 100%
FreeBSD repository update completed. 11974 packages processed.
All repositories are up to date.
Updating database digests format: 100%
The following 4 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
daemontools: 0.76_18
djbdns: 1.05_22,1
isc-dhcp44-server: 4.4.2_1
ucspi-tcp: 0.88_2

Number of packages to be installed: 4

The process will require 10 MiB more space.
2 MiB to be downloaded.
[1/4] Fetching djbdns-1.05_22,1.txz: 100% 157 KiB 160.3kB/s 00:01
[2/4] Fetching isc-dhcp44-server-4.4.2_1.txz: 100% 1 MiB 1.3MB/s 00:01
[3/4] Fetching ucspi-tcp-0.88_2.txz: 100% 69 KiB 70.7kB/s 00:01
[4/4] Fetching daemontools-0.76_18.txz: 100% 57 KiB 57.9kB/s 00:01
Checking integrity... done (0 conflicting)
[1/4] Installing ucspi-tcp-0.88_2...
[1/4] Extracting ucspi-tcp-0.88_2: 100%
[2/4] Installing daemontools-0.76_18...
[2/4] Extracting daemontools-0.76_18: 100%
[3/4] Installing djbdns-1.05_22,1...
[3/4] Extracting djbdns-1.05_22,1: 100%
[4/4] Installing isc-dhcp44-server-4.4.2_1...
===> Creating groups.
Creating group 'dhcpd' with gid '136'.
===> Creating users
Creating user 'dhcpd' with uid '136'.
[4/4] Extracting isc-dhcp44-server-4.4.2_1: 100%
=====
Message from ucspi-tcp-0.88_2:

--
===> NOTICE:

The ucspi-tcp port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
=====
Message from isc-dhcp44-server-4.4.2_1:

--
**** To setup dhcpd, please edit /usr/local/etc/dhcpd.conf.

**** This port installs the dhcp daemon, but doesn't invoke dhcpd by default.
If you want to invoke dhcpd at startup, add these lines to /etc/rc.conf:

dhcpd_enable="YES" # dhcpd enabled?
dhcpd_flags="-q" # command option(s)
dhcpd_conf="/usr/local/etc/dhcpd.conf" # configuration file
dhcpd_ifaces="" # ethernet interface(s)
dhcpd_withumask="022" # file creation mask

**** If compiled with paranoia support (the default), the following rc.conf
options are also supported:

dhcpd_chuser_enable="YES" # runs w/o privileges?
dhcpd_withuser="dhcpd" # user name to run as
dhcpd_withgroup="dhcpd" # group name to run as
dhcpd_chroot_enable="YES" # runs chrooted?
dhcpd_devfs_enable="YES" # use devfs if available?
dhcpd_rootdir="/var/db/dhcpd" # directory to run in
dhcpd_includedir="<some_dir>" # directory with config-
files to include

**** WARNING: never edit the chrooted or jailed dhcpd.conf file but
/usr/local/etc/dhcpd.conf instead which is always copied where
needed upon startup.
/root/erl3-mips64/freebsd-ERL-build/ERLBUILD.xjq0873Q/FAT32.img: 66512 sectors in 66512 FAT32 clusters (512 bytes/cluster)
BytesPerSec=512 SecPerClust=1 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=63 Heads=255 HiddenSecs=0 HugeSectors=67584 FATsecs=5
20 RootCluster=2 FSInfo=1 Backup=2
makefs: /root/erl3-mips64/freebsd-ERL-build/ERLBUILD.xjq0873Q/tree' size of 3054927872 is larger than the maxsize of 167772160 0.`

ls -lah FAT32.img
-rw-r--r-- 1 root wheel 33M Oct 2 23:12 FAT32.img

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.