ec0f FreeBSD embedded on Routerboard? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Non-i386 / amd64 > Embedded

Embedded Having questions related to ARM/MIPS devices which are not desktops and which usually serve a single purpose such as routers, switches, PDAs, etc?

Reply
 
Thread Tools Display Modes
  #1  
Old March 30th, 2012, 14:16
alissonx alissonx is offline
Junior Member
 
Join Date: Mar 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default FreeBSD embedded on Routerboard?

Hi!

I'm trying to run FreeBSD 9.0 on RouterBoard Arch powerpc, but it isn't working. I've installed FreeBSD 9.0, updated the src, compiled the kernel, and built the world. So I tried to cross-compile the kernel from amd64 to powerpc with the command:

make world KERNCONF=KERNEL ARCH_TARGET=powerpc DESTDR=/usr/powerpc

I somebody sing Freebsd FreeBSD on Routerboard?

Thank you!

Last edited by DutchDaemon; March 30th, 2012 at 20:33. Reason: READ THE RULES -> http://forums.freebsd.org/showthread.php?t=11799
Reply With Quote
  #2  
Old March 30th, 2012, 14:43
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,852
Thanks: 48
Thanked 2,061 Times in 1,890 Posts
Default

http://www.freebsd.org/platforms/ppc.html#hardware

http://wiki.freebsd.org/powerpc
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old March 30th, 2012, 15:31
alissonx alissonx is offline
Junior Member
 
Join Date: Mar 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK. And routerboard arch MIPS with freebsd FreeBSD. Is it possible?

Last edited by DutchDaemon; March 30th, 2012 at 20:33. Reason: READ THE RULES -> http://forums.freebsd.org/showthread.php?t=11799
Reply With Quote
  #4  
Old March 30th, 2012, 15:33
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,852
Thanks: 48
Thanked 2,061 Times in 1,890 Posts
Default

MIPS is a Tier 3 platform (PPC is Tier 2). Which means there's even less support.

http://www.freebsd.org/platforms/mips.html
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #5  
Old March 30th, 2012, 16:02
alissonx alissonx is offline
Junior Member
 
Join Date: Mar 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

But, how can I do a cross compile and put the files on the MIPS?

By flash card or micro SD?

Last edited by DutchDaemon; March 30th, 2012 at 20:33. Reason: READ THE RULES -> http://forums.freebsd.org/showthread.php?t=11799
Reply With Quote
  #6  
Old March 30th, 2012, 16:27
sossego's Avatar
sossego sossego is offline
Member
 
Join Date: Mar 2009
Location: qualquer na ontem da amanhã
Posts: 996
Thanks: 111
Thanked 76 Times in 58 Posts
Default

You will need to work closely with the the maintainers of the port of the board that you have. This means joining the mailing list for architecture blahblah.
__________________
Smiles and laughter are the medicines for tears and sadness.

Um humano, sou eu com culpa e dificuldades.

Stay a child with a child's view of the world and life is worth more every moment you live it.
Reply With Quote
  #7  
Old July 14th, 2012, 13:25
loos loos is offline
Junior Member
 
Join Date: Dec 2010
Posts: 10
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Generally speaking, you can't copy the cross compiled files to a USB stick and use it on MIPS, at least not for the RouterBoard (MIPS) case which are all big endian (while your i386/amd64 is little endian).

So the boot strap process usually goes thru netbooting the board and then populate your SD/USB stick from it.

You can also use the makefs(8) to create a big endian file system from a little endian host, but it has some limitations as its primary use is to build RO (or very simple) images - eg. you have to manually specify the number of free inodes on file system and so on.

All the MIPS RB are quite well supported, the only show stopper right now is the missing NAND drivers (as the FreeBSD NAND Framework is alredy in tree). This is kind of my fault, since i've these drivers for some time time but never found the time to finish, clean and push it to -head. I hope i can get over it soon =)

The MIPS port have evolved a lot recently and i don't think it is really a tier 3 arch anymore... The port is stable (yes, i'm a daily user of it) and reliable.

At this moment, AFAIK, there is only a limited support for PPC RBs, you can netboot some of then, but no NAND, no CF and (not sure about this, but looks like) no pci/pcie.

Code:
rspro-01# uptime
 9:10AM  up 25 days,  5:05, 1 user, load averages: 0.08, 0.02, 0.01
rspro-01# uname -a
FreeBSD rspro-01 9.0-CURRENT FreeBSD 9.0-CURRENT #135 r223874+2c57285-dirty: Thu Jul 14 16:46:47 BRT 2011
     root@devel.network.int.br:/data/git/mips-gpio/obj/mips.mipseb/data/git/mips-gpio/freebsd/sys/RSPRO  mips
As you can see i'm using a quite old -head on a RSPRO which is very close to the RB450G (the RB has more memory).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedded FreeBSD preventative maintenance codesweat Embedded 2 October 6th, 2011 18:01
hardening embedded device eyebone Installing & Upgrading 1 June 28th, 2010 15:16
Embedded x86/x86_64 hardware to buy? eyebone System Hardware 2 May 28th, 2010 14:43
Looking for embedded SATA2 and 4xGbit LAN Erratus Embedded 3 December 29th, 2009 00:44
FreeBSD 7.2 LiveCD, FreeBSD 7.2 embedded & GRUB2 for FreeBSD [logical partitions also Panarchy General 24 August 9th, 2009 19:06


All times are GMT +1. The time now is 20:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0