FreeBSD bugmaster | 5 May 2008 13:07
Picon
Favicon

freebsd-embedded@...

Current FreeBSD problem reports
Critical problems
Serious problems
Non-critical problems

S Tracker      Resp.      Description
--------------------------------------------------------------------------------
o misc/15876   embedded   [picobsd] PicoBSD message of the day problems
o misc/28255   embedded   [picobsd] picobsd documentation still references old .
o kern/42728   embedded   [picobsd] many problems in src/usr.sbin/ppp/*  after c
o misc/52256   embedded   [picobsd] picobsd build script does not read in user/s
o kern/101228  embedded   [nanobsd] [patch] Two more entries for FlashDevice.sub

5 problems total.

FreeBSD bugmaster | 12 May 2008 13:06
Picon
Favicon

freebsd-embedded@...

Current FreeBSD problem reports
Critical problems
Serious problems
Non-critical problems

S Tracker      Resp.      Description
--------------------------------------------------------------------------------
o misc/15876   embedded   [picobsd] PicoBSD message of the day problems
o misc/28255   embedded   [picobsd] picobsd documentation still references old .
o kern/42728   embedded   [picobsd] many problems in src/usr.sbin/ppp/*  after c
o misc/52256   embedded   [picobsd] picobsd build script does not read in user/s
o kern/101228  embedded   [nanobsd] [patch] Two more entries for FlashDevice.sub

5 problems total.

FreeBSD bugmaster | 19 May 2008 13:06
Picon
Favicon

freebsd-embedded@...

Current FreeBSD problem reports
Critical problems
Serious problems
Non-critical problems

S Tracker      Resp.      Description
--------------------------------------------------------------------------------
o misc/15876   embedded   [picobsd] PicoBSD message of the day problems
o misc/28255   embedded   [picobsd] picobsd documentation still references old .
o kern/42728   embedded   [picobsd] many problems in src/usr.sbin/ppp/*  after c
o misc/52256   embedded   [picobsd] picobsd build script does not read in user/s
o kern/101228  embedded   [nanobsd] [patch] Two more entries for FlashDevice.sub

5 problems total.

FreeBSD bugmaster | 26 May 2008 13:06
Picon
Favicon

freebsd-embedded@...

Current FreeBSD problem reports
Critical problems
Serious problems
Non-critical problems

S Tracker      Resp.      Description
--------------------------------------------------------------------------------
o misc/15876   embedded   [picobsd] PicoBSD message of the day problems
o misc/28255   embedded   [picobsd] picobsd documentation still references old .
o kern/42728   embedded   [picobsd] many problems in src/usr.sbin/ppp/*  after c
o misc/52256   embedded   [picobsd] picobsd build script does not read in user/s
o kern/101228  embedded   [nanobsd] [patch] Two more entries for FlashDevice.sub

5 problems total.

Bruce M Simpson | 27 May 2008 01:57
Favicon
Gravatar

Cross-compiling for embedded FreeBSD using NetBSD pkgsrc

Just for a laugh, I decided to try cross-compiling some binaries using 
NetBSD pkgsrc, for a FreeBSD target.

I found I needed to do the following:

1. Build a FreeBSD cross-compiler for the target (in this example, arm):
   cd /usr/src && make TARGET_ARCH=arm toolchain

2. Grab a pkgsrc-current.tar.gz tarball from a NetBSD FTP mirror [1]

3. Untar it, cd into bootstrap, and as per instructions [2]
   mkdir -p /var/db/pkgsrc && run ./bootstrap --pkgdb=/var/db/pkgsrc

4. Replace pkgsrc/mk/tools/tools.FreeBSD.mk with the attached file.

4. Add the following to /usr/pkg/etc/mk.conf:

%%%
USE_CROSS_COMPILE=      yes

.if defined(USE_CROSS_COMPILE) && !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
USE_DESTDIR=            full
DEPENDS_TARGET=         package-install

TOOLDIR=                /usr/obj/arm/usr/src/tmp
CROSS_DESTDIR=          ${TOOLDIR}

TARGET_ARCH=            arm
MACHINE_PLATFORM=               FreeBSD-7.0-arm
MACHINE_GNU_PLATFORM=           arm-unknown-freebsd
(Continue reading)

Bruce M Simpson | 27 May 2008 03:46
Favicon
Gravatar

Freecom FSG-3 Storage Gateway

Hi,

It looks as though most, but not all, of the low level board support 
needed for this device was done for AVILA (thanks guys!).

Here I attach configs for those who wish to try. I haven't tried booting 
this yet, a kernel builds OK using KERNCONF=FSG3 and 7.0-RELEASE sources.

The main issue is going to be the IXP's NPE queues. The PHY indexes used 
are different on the FSG3 and it's not immediately obvious to me how to 
reprogram those PHY indexes in the IXP.

There are a couple of devices such as the real-time clock which live on 
the I2C bus which would need small drivers written. There is an Ethernet 
switch ASIC which probably hangs off the GPIO pins.

A pending Linux git import with the FSG stuff is here:

http://www.linux.org.uk/pub/armlinux/source/kernel-patches/git-cur/arm:devel.diff

cheers
BMS
# FSG3 -- Freecom FSG-3 Storage Gateway
# kernel configuration file for FreeBSD/arm
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
(Continue reading)

M. Warner Losh | 27 May 2008 04:23

Re: Cross-compiling for embedded FreeBSD using NetBSD pkgsrc

In message: <483B4E74.1090902@...>
            Bruce M Simpson <bms@...> writes:
: CROSS_DESTDIR *has* to point to the staging area containing the base 
: system headers/libraries. I didn't do a full world build, so I pointed 
: at the intermediate stage built by "make toolchain" in src.

I don't suppose you tried to install the 'real' cross building
binaries and symlinks?  It is called 'xdev'.  However, looking more
closely, it appears that I never committed it to head.  I'll do that
now.  It is only in the perforce branch for arm development....

Warner
Bruce M Simpson | 27 May 2008 22:19
Favicon
Gravatar

Linksys NSLU2 attempt

Hi,

I tried booting a FreeBSD/arm kernel (from 7.0-RELEASE sources) on a 
friend's NSLU2.
We appear to have drivers for everything except the Intersil X1205 
real-time clock on iic0.

No dice yet.  Configs attached.

The RedBoot implementation on this board is somewhat cut down. 
"ip_address -b" and "fconfig" commands are not supported, so assigning 
an IP has to be done manually.
IP addresses therefore need manual config, I suggest putting an alias of 
192.168.0.2/24 on your development machine. Also, the ROM+RAM build is 
in use, so RedBoot will relocate itself into low memory on boot.

RedBoot wants ELF kernels, it doesn't need the kernel.bin magic from the 
ldscript:

RedBoot> load -h 192.168.0.2 /kernel.bin
Using default protocol (TFTP)
Unrecognized image type: 0xe28f7028

It also needs to be told that the ELF kernel it is loading needs to be 
loaded at a physical address:

RedBoot> load -h 192.168.0.2 /kernel
Using default protocol (TFTP)
*** Abort! Attempt to load ELF data to address: 0xc02000b4 which is not 
in RAM
(Continue reading)

M. Warner Losh | 27 May 2008 22:41

Re: Linksys NSLU2 attempt

The configs that I have in my p4 tree work on NSLU2.  However, I've
not committed them because they are also taking a stab at cleaning up
the std.* and files.* stuff.  It boots and works well enough to build
world over NFS...

Warner
Bruce M Simpson | 28 May 2008 06:40
Favicon
Gravatar

Re: Linksys NSLU2 attempt

M. Warner Losh wrote:
> The configs that I have in my p4 tree work on NSLU2.  However, I've
> not committed them because they are also taking a stab at cleaning up
> the std.* and files.* stuff.  It boots and works well enough to build
> world over NFS...
>   

Can you point at this stuff? I had a look in freebsd-imp and arm but 
didn't see anything that jumped out at me.

It would be very cool to get stuff up on this NSLU2 because then I can 
start to think about things like MTD, flash, etc.

Gmane