Chromebook image - install fails
Torfinn Ingolfsen
torfinn.ingolfsen at getmail.no
Sun Jan 4 22:43:54 UTC 2015
Continuation of this[1] thread.
Thanks to Ian Lepore, I now have built world an kernel for my Chromebook 2, using r276666 of -current.
Now I'm trying to install it, by following instructions here[2]. and I'm still using Ian's script[3].
When I try to install world, it fails:
tingo at kg-core1$ ./mk DESTDIR=/mnt installworld distribution
+ kernel=CB2
+ MAX_JOBS=4
+ [ -r config/CB2 ]
+ ln -fs ../../../../config/CB2 src/sys/arm/conf/CB2
+ pwd
+ srcconf=/home/tingo/work/chromebook/cb2/config/src.conf
+ pwd
+ makeconf=/home/tingo/work/chromebook/cb2/config/make.conf
+ pwd
+ objdir=/home/tingo/work/chromebook/cb2/obj
+ pwd
+ tobjdir=/home/tingo/work/chromebook/cb2/obj/arm.armv6//home/tingo/work/chromebook/cb2/src
+ kobjdir=/home/tingo/work/chromebook/cb2/obj/arm.armv6//home/tingo/work/chromebook/cb2/src/sys/CB2
+ export MAKEOBJDIRPREFIX=/home/tingo/work/chromebook/cb2/obj
+ cd ./src
+ time nice -15 sudo make -j 4 TARGET_ARCH=armv6 DESTDIR= __MAKE_CONF=/home/tingo/work/chromebook/cb2/config/make.conf SRCCONF=/home/tingo/work/chromebook/cb2/config/src.conf KERNCONF=CB2 DESTDIR=/mnt installworld distribution
Password:
cd /zs/tingo/work/chromebook/cb2/src/etc; MAKEOBJDIRPREFIX=/usr/obj/arm.armv6 MACHINE_ARCH=armv6 MACHINE=arm CPUTYPE= GROFF_BIN_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/sbin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/games:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/sbin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin make METALOG= distribution
mkdir -p /tmp/install.QTdUhm6l
progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown date echo egrep find grep id install ln lockf make mkdir mtree mv pwd_mkdb rm sed services_mkdb sh strip sysctl test true uname wc zic tzsetup makewhatis; do if progpath=`which $prog`; then echo $progpath; else echo "Required tool $prog not found in PATH." >&2; exit 1; fi; done); libs=$(ldd -f "%o %p\n" -f "%o %p\n" $progs 2>/dev/null | sort -u | while read line; do $line; if [ "$2 $3" != "not found" ]; then echo $2; else echo "Required library $1 not found." >&2; exit 1; fi; done); cp $libs $progs /tmp/install.QTdUhm6l
cd /zs/tingo/work/chromebook/cb2/src/etc; install -o root -g wheel -m 644 auto_master crontab devd.conf devfs.conf ddb.conf dhclient.conf disktab fbtab ftpusers gettytab group hosts hosts.allow hosts.equiv inetd.conf libalias.conf libmap.conf login.access login.conf mac.conf motd netconfig network.subr networks newsyslog.conf nsswitch.conf phones profile protocols rc rc.bsdextended rc.firewall rc.initdiskless rc.sendmail rc.shutdown rc.subr remote rpc services shells sysctl.conf syslog.conf termcap.small etc.arm/ttys amd.map apmd.conf snmpd.config freebsd-update.conf /zs/tingo/work/chromebook/cb2/src/etc/../usr.bin/locate/locate/locate.rc hosts.lpd printcap /zs/tingo/work/chromebook/cb2/src/etc/../usr.bin/mail/misc/mail.rc ntp.conf nscd.conf portsnap.conf pf.os csh.cshrc csh.login csh.logout regdomain.xml /mnt/etc; cap_mkdb -l /mnt/etc/login.conf; install -o root -g wheel -m 755 netstart pccard_ether rc.suspend rc.resume /mnt/etc; insta
ll -o root -g wheel -m 600 master.passwd nsmb.conf opieaccess /mnt/etc;
install: target directory `/mnt/etc' does not exist
usage: install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner]
[-M log] [-D dest] [-h hash] [-T tags]
[-B suffix] [-l linkflags] [-N dbdir]
file1 file2
install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner]
[-M log] [-D dest] [-h hash] [-T tags]
[-B suffix] [-l linkflags] [-N dbdir]
file1 ... fileN directory
install -dU [-vU] [-g group] [-m mode] [-N dbdir] [-o owner]
[-M log] [-D dest] [-h hash] [-T tags]
directory ...
*** [distribution] Error code 64
1 error
*** [distribution] Error code 2
1 error
*** [distribution] Error code 2
cp -R ${PATH_LOCALE:-"/usr/share/locale"} /tmp/install.QTdUhm6l/locale
cd /zs/tingo/work/chromebook/cb2/src; MAKEOBJDIRPREFIX=/usr/obj/arm.armv6 MACHINE_ARCH=armv6 MACHINE=arm CPUTYPE= GROFF_BIN_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/sbin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/games:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/sbin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/games:/tmp/install.QTdUhm6l LD_LIBRARY_PATH=/tmp/install.QTdUhm6l PATH_LOCALE=/tmp/install.QTdUhm6l/locale make -f Makefile.i
nc1 __MAKE_SHELL=/tmp/install.QTdUhm6l/sh reinstall; MAKEOBJDIRPREFIX=/usr/obj/arm.armv6 MACHINE_ARCH=armv6 MACHINE=arm CPUTYPE= GROFF_BIN_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/sbin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/usr/games:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/legacy/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/sbin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/bin:/usr/obj/arm.armv6/zs/tingo/work/chromebook/cb2/src/tmp/usr/games:/tmp/install.QTdUhm6l LD_LIBRARY_PATH=/tmp/install.QTdUhm6l PATH_LOCALE=/tmp/install.QTdUhm6l/local
e rm -rf /tmp/install.QTdUhm6l
"/zs/tingo/work/chromebook/cb2/src/share/mk/bsd.compiler.mk", line 42: Unable to determine compiler type for cc. Consider setting COMPILER_TYPE.
*** [installworld] Error code 1
1 error
*** [installworld] Error code 2
2 errors
5.51 real 0.11 user 0.15 sys
even if I set compiler type it fails:
tingo at kg-core1$ grep COMPILER_TYPE config/make.conf
COMPILER_TYPE=clang
tingo at kg-core1$ ./mk DESTDIR=/mnt installworld distribution
[...]
install -l s usr/src/sys /mnt/sys
cd /mnt/usr/share/man; for mandir in man*; do install -l s ../$mandir /mnt/usr/share/man/en.ISO8859-1/; install -l s ../$mandir /mnt/usr/share/man/en.UTF-8/; done
cd /mnt/usr/share/openssl/man; for mandir in man*; do install -l s ../$mandir /mnt/usr/share/openssl/man/en.ISO8859-1/; done
`grep "^[a-zA-Z]" /zs/tingo/work/chromebook/cb2/src/etc/man.alias`; while [ $# -gt 0 ] ; do install -l s "$2" "/mnt/usr/share/man/$1"; install -l s "$2" "/mnt/usr/share/openssl/man/$1"; shift; shift; done
--------------------------------------------------------------
>>> Installing everything
--------------------------------------------------------------
cd /zs/tingo/work/chromebook/cb2/src; make -f Makefile.inc1 install
===> share/info (install)
install -o root -g wheel -m 644 dir-tmpl /mnt/usr/share/info/dir
===> lib (install)
===> lib/csu/arm (install)
install -o root -g wheel -m 444 crt1.o crti.o crtn.o Scrt1.o gcrt1.o /mnt/usr/lib
install: crt1.o: No such file or directory
*** [realinstall] Error code 71
1 error
*** [_sub.realinstall] Error code 2
1 error
*** [_sub.realinstall] Error code 2
1 error
*** [reinstall] Error code 2
1 error
*** [installworld] Error code 2
1 error
*** [installworld] Error code 2
2 errors
4.79 real 0.25 user 0.31 sys
I'm afraid I am going to need more hints / help.
References:
1) http://lists.freebsd.org/pipermail/freebsd-arm/2015-January/009907.html
2) https://wiki.freebsd.org/FreeBSD/arm/Chromebook
3) http://lists.freebsd.org/pipermail/freebsd-arm/2014-January/007249.html
--
Torfinn Ingolfsen <torfinn.ingolfsen at getmail.no>
More information about the freebsd-arm
mailing list