Good news and bad news. Let’s start with good ones.
Daisuke Aoyama tracked down what causes “Unrecognized filesystem type” error with some SD cards. It is U-Boot using High Speed mode. Root cause is still unknown but as a workaround I just disabled HS mode for SD card in u-boot and updated freebsd-uboot-20121129.tar.gz. Or alternatively you can get uboot-nohs.img and use it to replace uboot.img on your SD card.
Bad news are: installworld for cross-compiled FreeBSD is broken unless you’re doing it on the latest HEAD. The reason is utility called mtree(8). It is used to ensure that target filesystem permissions and owners/groups are correct. Owners and groups are described as usernames and group names, not as numeric UIDs/GUIDs and mtree uses getpwXXX family of routines to convert names to numeric values. See the problem already? If new system user is added to latest HEAD and you use old trusty FreeBSD 9.0, there is no way mtree would know about this user. NetBSD solved this problem by introducing -N command-line option that lets you point mtree to the target system’s master.passwd and groups. So we need to port this feature to FreeBSD in order to get proper cross-compilation environment. And that’s my plan for next few days.
So if you see something like this:
mtree -eU -f /src/FreeBSD/head/etc/mtree/BSD.var.dist -p /mnt/var mtree: line 22: unknown user auditdistd *** [distrib-dirs] Error code 1
Either update to latest HEAD, use mergemaster -p or wait couple of days.
Hiccup is spelled ‘hiccup’.
Fixed. Thanks. I should use spellchecker
hmmm, its broken for latest HEAD too.
ERROR: Required auditstd user is missing, see /usr/src/UPDATING
Thank you. Loaded.
I use the “GENERIC USB Ethernet Card” it creates a virtual Ethernet interface.
To do this, you want to include in the kernel option: “device cdce”, how to rebuild the kernel in the assembly Freebsd-RPI?
Just replace /boot/kernel/kernel file on SD card with new one. That should do the trick
#> kldload: can’t load if_cdce: Exec format error
Please help to get properly compiled kernel file if_cdce.ko for rpi
You can either add this option and use this script to rebuild the whole kernel or do something like this:
#!/bin/sh
set -e
export TARGET=arm
export TARGET_ARCH=armv6
export SRCROOT=/src/FreeBSD/head
export MAKEOBJDIRPREFIX=/src/FreeBSD/objexport KERNCONF=VERSATILEPBexport MAKESYSPATH=$SRCROOT/share/mkbuildenv=`make -C $SRCROOT buildenvvars`eval $buildenv make -C $SRCROOT/sys/modules/usb/cdce
cd /usr/rpi/
git clone git://github.com/gonzoua/freebsd-pi.git
cd freebsd-pi
git checkout rpi
&&
#!/bin/sh
set -e
export TARGET=arm
export TARGET_ARCH=arm
export SRCROOT=/usr/rpi/freebsd-pi
export MAKEOBJDIRPREFIX=/usr/rpi/module KERNCONF=VERSATILEPBexport MAKESYSPATH=$SRCROOT/share/mkbuildenv=`make -C $SRCROOT buildenvvars`eval $buildenv make -C $SRCROOT/sys/modules/usb/cdce
Module to collect only Freebsd 10?
I got the git ://github.com/gonzoua/freebsd-pi.git
Tried on (freebsd 8.2 i386) collect mobule for rpi I got:
export: 8.2-RELEASE: bad variable name.
How to compile the module cdce on freebsd 8.2?
freebsd-pi is obsolete, do not use it. Use http://svn.freebsd.org/base/head
I haven’t tried building on 8.2 only 9.0. Let me find running system and try.
Please make the assembled image: http://svn.freebsd.org/base/head/
To quickly deploy sd card. Thank you very much
Hi, I compiled the whole userland and kernel from a freebsd 9.0-release system and i have the auditdistd issue, how can i use mergemaster -p to fix this? I cant seem to make my pi boot with the resulting image, it says ” Can’t load ‘kernel’ “
I am using the latest SVN codebase for the /usr/src and modified my build script to point to the svn code.
# cd /usr/src
# mergemaster -p
Please, be careful and make sure you know what you’re doing. Because this command will modify your host system’s /etc/master.passwd and /etc/group
Hi, I got this error:
Mounting from ufs:/dev/mmcsd0s2 failed with error 19.
Do you have any clue on this? Thanks
Btw I am using the latest freebsd-uboot-20121129.tar.gz and HEAD r243944 with default Kernel config RPI-B.
I confirm there is nothing wrong with the sdcard since I can run your image http://people.freebsd.org/~gonzo/arm/rpi/freebsd-pi-r243694.img.gz
I think root should be ufs:/dev/mmcsd0s2a. PArtitioning layout has changed
Hi,
Still same issue. Error 19.
I have tried Daisuke’s img too, still error 19
http://www.peach.ne.jp/archives/rpi/freebsd-pi-clang-20121209.img.gz
http://www.peach.ne.jp/archives/rpi/freebsd-pi-20121204.img.gz
Could you share whole boot log?
sure, but is there any way to fetch the boot log if I have no network access and serial cable?
I just tried recompile r243694 and it works!
Something goes wrong after r243694