Raspberry Pi

Hello,

I downloaded the last Raspberry Pi image from:
http://www.db.net/downloads/

Everything boots and works fine, except that the firewall PF is not installed, I have an error message about /dev/pf not existing, and it cannot be loaded with kldstat. File pf.conf is created, rc.conf references
Code:
pf="YES"
but to no avail.

Is it a know issue? Or am I missing an obvious command to load it?

Regards,
gkbsd.
 
Indeed, that is what I have in the configuration file, I did just write the post by memory, sorry. The fact remains that PF does not load and gives an error message. I will write again the last image on my SD card, type various commands, and will post the outputs here.

Regards,
gkbsd.
 
I installed the last image from http://www.db.net/downloads/. Below is the results of some commands:

Code:
# uname -a
FreeBSD raspberry-pi 10.0-CURRENT FreeBSD 10.0-CURRENT #66 r250580M: Sun May 12 18:08:27 EDT 2013     root@odyssey:/home/db/FreeBSD/obj/arm.armv6/home/db/svn/system/head/sys/RPI-B  arm

Code:
# cat /etc/rc.conf
hostname="raspberry-pi"
ifconfig_ue0="DHCP"
sshd_enable="YES"

pf_enable="YES"
pf_rules="/etc/pf.conf"

devd_enable="YES"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

Code:
# pfctl -f /etc/pf.conf
pfctl: /dev/pf: No such file or directory

Code:
# kldstat
Id Refs Address    Size     Name
 1    1 0xc0100000 4a256c   kernel
# kldload pf
kldload: can't load pf: No such file or directory

And finally:
Code:
# /etc/rc.d/pf start
kldload: can't load pf: No such file or directory
/etc/rc.d/pf: WARNING: Unable to load kernel module pf

Could it be because in the snapshot I loaded pf is disabled for whatever reason?

Regards,
gkbsd.
 
Hello @gkbsd.

The newest image at that link (bsd-pi-250580M.img.xz) is about 60 MB. So probably it does not contain kernel modules. What's the output of ls /boot/kernel? If that directory is empty, it means that the image does not contain kernel modules (or some of kernel modules) and in this case you should build your own image. @gonzo@ posted a blog entry a while ago, it contains a script to automatically generate FreeBSD images for Raspberry Pi. You need -CURRENT branch to build your image:

# svn co [url=https://svn0.us-west.FreeBSD.org/base/head]https://svn0.us-west.FreeBSD.org/base/head[/url] /usr/src

Then use the script to generate your own image. It's very simple, at the very least, you need to change these variables in the script:


Code:
[CMD]export SRCROOT=/src/FreeBSD/head[/CMD]              # path to source tree
[CMD]export MAKEOBJDIRPREFIX=/src/FreeBSD/obj[/CMD]      # path to obj directory
[CMD]export IMG=/src/FreeBSD/obj/bsd-pi.img[/CMD]        # the image will be saved here
 
Last edited by a moderator:
Hello,

Below the result from the command you requested:

# ls /boot/kernel/
Code:
kernel          kernel.gz.tramp kernel.symbols

Thanks for the information, I will definitely try to make my own image as soon as I have the time to, I am very interested by building my own image. I will keep you informed :)

Regards,
gkbsd.
 
Kind of a silly question but my google-fu failed to get the answer. I'm testing a model B (256MB RAM) running a -CURRENT pre-built image from http://www.db.net/downloads/.

How do I know if the kernel and binaries are using OABI or EABI? How do I extract that information? Is the method bellow correct?

Code:
root@dorothy:~ # objdump --full-contents /bin/ls | grep abi
 8e78 5f5f6165 6162695f 72656164 5f747000  __aeabi_read_tp.
 0000 411d0000 00616561 62690001 13000000  A....aeabi......

Thanks.
 
SSH into headless RPi with FreeBSD snapshot image

Aloha,

I downloaded a FreeBSD snapshot (bsd-pi-249280M.img.xz) for the RPi from (http://www.db.net/downloads/) and wrote it to a flash drive.

I have no monitor for the Pi and would like to SSH into it, but don't know the default root password. I can't get into the image because my OS does not support UFS.

Could someone tell me the default root password for this image?

Mahalo,
Jason
 
Back
Top