David Brownlee | 2 Oct 20:16 2011

Anyone considered a port to the HTC Dream (G1)

ARM11 CPU, 192MB RAM, 512M flash &qwerty keyboard.
Seems like quite a reasonable spec when compared to various embedded arm boards.

Available quite reasonably on eBay & I have a spare... :)

http://wiki.cyanogenmod.com/index.php?title=HTC_Magic

netbsdfr.lbj | 12 Oct 21:59 2011

cross-compiling various packages for ARM [GishPuppy]

Dear all,

I've been playing with a SheevaPlug. I was able to have a fully functional system. However, now I'd like to
add different "packages", like wget, zsh, etc. I cannot compile these packages directly on the Sheeva,
it's damn too slow, so I tried to cross-compile, without success. Here is what I did for wget:

*********************************************************

> ls
ABOUT-NLS   ChangeLog         configure     GNUmakefile  MAILING-LIST  Makefile.in  README
aclocal.m4  ChangeLog.README  configure.ac  INSTALL      maint.mk      msdos        src
AUTHORS     config.log        COPYING       lib          Makefile      NEWS         tests
build-aux   config.status     doc           m4           Makefile.am   po           util

> export CC=/home/floofy/netbsd3/src/obj/tooldir.Linux-2.6.38-8-generic-i686/bin/arm--netbsde^Melf-gcc

> export CFLAGS="-nostdlib -I/home/floofy/netbsd3/src/obj/destdir.evbarm/usr/include"

> export LDFLAGS="-L/home/floofy/netbsd3/src/obj/destdir.evbarm/usr/lib/"

> ./configure --host=arm --without-ssl

configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
configure: configuring for GNU Wget 1.13.4
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
[...]

*********************************************************
(Continue reading)

Ken Hornstein | 12 Oct 22:14 2011
X-Face
Picon

Re: cross-compiling various packages for ARM [GishPuppy]

>I've been playing with a SheevaPlug. I was able to have a fully functional
>system. However, now I'd like to add different "packages", like wget, zsh,
>etc. I cannot compile these packages directly on the Sheeva, it's damn too
>slow, so I tried to cross-compile, without success. Here is what I did
>for wget:

I can't claim to be a cross-compiling expert either, but here's what
I use successfully for cross-compiling on my NetBSD ARM system (a
TS-7200).  I extracted these from the cross-compilation environment
that NetBSD itself uses:

./configure '--host' 'arm--netbsdelf'
'LDFLAGS=-B/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/lib  -Wl,-nostdlib   
-Wl,--fatal-warnings -L/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/lib  
-Wl,-rpath-link,/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/lib 
-L/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/lib
-Wl,-rpath-link,/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/lib 
-L/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/lib' 'CPPFLAGS=-isystem /Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/include'

I have arm--netbsdelf-gcc in my path, and configure picks that up.  Right
off the bat I think using -isystem instead of -nostdlib might help you out.
And you're going to need a lot more things in LDFLAGS than what you've got
right now.

-Ken

Valeriy E. Ushakov | 12 Oct 22:48 2011
Picon

Re: cross-compiling various packages for ARM [GishPuppy]

On Wed, Oct 12, 2011 at 16:14:57 -0400, Ken Hornstein wrote:

> I can't claim to be a cross-compiling expert either, but here's what
> I use successfully for cross-compiling on my NetBSD ARM system (a
> TS-7200).  I extracted these from the cross-compilation environment
> that NetBSD itself uses:
> 
> ./configure '--host' 'arm--netbsdelf'
'LDFLAGS=-B/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/lib  -Wl,-nostdlib   
-Wl,--fatal-warnings -L/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/lib  
-Wl,-rpath-link,/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/lib 
-L/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/lib
-Wl,-rpath-link,/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/lib 
-L/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/lib' 'CPPFLAGS=-isystem /Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/include'
> 
> I have arm--netbsdelf-gcc in my path, and configure picks that up.  Right
> off the bat I think using -isystem instead of -nostdlib might help you out.
> And you're going to need a lot more things in LDFLAGS than what you've got
> right now.

Jut use a bit of symlinking in TOOLDIR and you can avoid ~all those
extra -ifoo and -nofoo flags.  I have an old write up about that at
http://www.stderr.spb.ru/~uwe/netbsd/cross.html

-uwe

idatum | 13 Oct 00:07 2011
Picon
Picon

Re: cross-compiling various packages for ARM [GishPuppy]

Another option is distcc. I've successfully cross compiled packages (e.g. 
python2.6) using distcc on my TS7200 (evbarm).   There's a how-to you can 
read in the pkgsrc/doc dir:
HOWTO-crosscompile

It does mean you need to have pkgsrc and compiler tools on the device 
though.

- Joel

-----Original Message----- 
From: netbsdfr.lbj <at> gishpuppy.com
Sent: Wednesday, October 12, 2011 12:59
To: port-arm <at> NetBSD.org
Subject: cross-compiling various packages for ARM [GishPuppy]

Dear all,

I've been playing with a SheevaPlug. I was able to have a fully functional 
system. However, now I'd like to add different "packages", like wget, zsh, 
etc. I cannot compile these packages directly on the Sheeva, it's damn too 
slow, so I tried to cross-compile, without success. Here is what I did for 
wget:

*********************************************************

> ls
ABOUT-NLS   ChangeLog         configure     GNUmakefile  MAILING-LIST 
Makefile.in  README
aclocal.m4  ChangeLog.README  configure.ac  INSTALL      maint.mk      msdos 
(Continue reading)

Ken Hornstein | 13 Oct 02:18 2011
X-Face
Picon

Re: cross-compiling various packages for ARM [GishPuppy]

>Another option is distcc. I've successfully cross compiled packages (e.g. 
>python2.6) using distcc on my TS7200 (evbarm).   There's a how-to you can 
>read in the pkgsrc/doc dir:
>HOWTO-crosscompile

While I've done that too, I've found that running configure on those
devices can take seemingly forever even with distcc.  And distcc
does speed up builds, no doubt about it, but in my experience a true
crosscompile is faster.

--Ken

Sad Clouds | 13 Oct 06:56 2011

Beagleboard

Hi, does NetBSD run on Beagleboard? If yes, then what works and what doesn't?

Wim Lewis | 14 Oct 00:28 2011

Re: Beagleboard


On Oct 12, 2011, at 9:56 PM, Sad Clouds wrote:
> Hi, does NetBSD run on Beagleboard? If yes, then what works and  
> what doesn't?

Well, there is a kernel config file for it:
    http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/evbarm/conf/ 
BEAGLEBOARD
with a commit message from last year mentioning "Test booted to root  
device prompt on a Beagleboard." But its peripherals support doesn't  
look very comprehensive.


Gmane