Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on Atmel ARM arch?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
mattwood2000
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 146

PostPosted: Tue Oct 10, 2006 8:20 pm    Post subject: Gentoo on Atmel ARM arch? Reply with quote

Anyone have any experience with Gentoo (or any linux for that matter) and the Atmel ARM architecture? I'm specifically interested in the AT91SAM92xx series and the AT91RM92xx series. Although any Atmel ARM experience I would like to hear about. Thanks. Matt.
Back to top
View user's profile Send private message
soth
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 207

PostPosted: Tue Oct 09, 2007 12:15 pm    Post subject: Reply with quote

Second that 8)
Got myself a starter kit here AT91SAM9263...
_________________
- Never argue with an idiot. They just drag you down to your level and beat you with experience.

Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Yukimura
Apprentice
Apprentice


Joined: 25 Aug 2006
Posts: 161
Location: Slovenia

PostPosted: Tue Oct 09, 2007 12:24 pm    Post subject: Reply with quote

Don't know about linux on AT but my friend writes things for Atmel's in C. Have a look at his site.
Back to top
View user's profile Send private message
mattwood2000
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 146

PostPosted: Tue Oct 09, 2007 3:35 pm    Post subject: Reply with quote

Wow...almost exactly a year to the date...thanks guys!!! :) Since I posted this I've been able to get some experience with Linux on the ARM platform and I completely forgot I had posted this here. Below is a scrip file that will download and invoke buildroot which will build the kernel, RFS, and apps for the Atmel ARM9 cores. Its not Gentoo, but it does work. Just comment out the boards you don't need in the function make_all_boards() function. Most of the questions I've found answers to on www.at91.com in the forum. Hope this helps some people.

Regards, Matt.

Code:

#!/bin/bash
# All previous patches was applied to vanilla buildroot from May 31st.
# Most, if not all suggestions from other people have been applied, - thanks!
# Also updated the u-boot-1.2.0-atmel.tar.bz2 so you need to delete this
# from your download directory (default /usr/local/install/downloads)
# --------------
# Updated 2006-06-07: FIx mkimage path problem
# /Ulf

TOPDIR=`pwd`


BUILDROOT=buildroot-atmel
BUILDROOT_VER=2007-06-07

IPADDR=172.18.250.31
SERVERIP=172.18.250.2
GATEWAYIP=172.18.250.1

BUILDROOT_SOURCE=${BUILDROOT}-${BUILDROOT_VER}.cpio.bz2
BUILDROOT_SITE=ftp://at91dist:distrib@81.80.104.162/AT91_Third_Party_Design_Flow/Linux_Host/Source
DL_DIR=${TOPDIR}/Source
UNZIP=bzcat

function prepare_directories()
{
mkdir -p /tftpboot
mkdir -p /usr/local/arm
mkdir -p /usr/local/install/downloads
}

function get_buildroot()
{
if ! [ -d ${BUILDROOT} ] ; then
mkdir -p ${DL_DIR}
wget -P ${DL_DIR} ${BUILDROOT_SITE}/${BUILDROOT_SOURCE}
${UNZIP} ${DL_DIR}/${BUILDROOT_SOURCE} | cpio -idv
fi
}



function set_ipaddresses()
{
cd ${BUILDROOT}
echo "configuring ip addresses"
./netcfg.sh ${IPADDR} ${SERVERIP} ${GATEWAYIP}
cd ${TOPDIR}
}


function make_board()
{
cd ${BUILDROOT}
echo "building board $1"
make B=$1 board
make $2
make saveconfig
cd ${TOPDIR}
}

function make_all_boards()
{
make_board at91rm9200df $1
make_board at91sam9260dfc $1
make_board at91sam9261ek $1
make_board at91sam9263ek $1
}


prepare_directories
get_buildroot
set_ipaddresses
make -C ${BUILDROOT} menuconfig
make_all_boards source
make_all_boards
Back to top
View user's profile Send private message
OmSai
l33t
l33t


Joined: 30 Sep 2007
Posts: 604
Location: Manchester, CT, USA

PostPosted: Thu Nov 29, 2007 12:03 pm    Post subject: Reply with quote

mattwood2000 wrote:
I've been able to get some experience with Linux on the ARM platform ... Its not Gentoo, but it does work.

From your experience how has uClinux been holding up?
EDIT: Specifically did you have trouble with it assuming your host was an RPM distro (= Fedora, Redhat)

Would porting Gentoo to the AT91SAM92XX be a case of reinventing the wheel then?
Back to top
View user's profile Send private message
soth
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 207

PostPosted: Thu Nov 29, 2007 12:40 pm    Post subject: Reply with quote

uClinux doesn't have and MMU, does it? (Yes it's a question.)
I'm currently running a vanilla kernel 2.6.23 with the atmel patches and the
armv4lstage3 2005.1 on the at91sam9263, which makes it mostly gentoo ;-)
Edit: ...and about buildroot: It's not bad creating a basic system for you and
great for creating the crosscompiler but when you want to do more it becomes very difficult.
_________________
- Never argue with an idiot. They just drag you down to your level and beat you with experience.

Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
OmSai
l33t
l33t


Joined: 30 Sep 2007
Posts: 604
Location: Manchester, CT, USA

PostPosted: Thu Nov 29, 2007 7:14 pm    Post subject: Reply with quote

soth wrote:
uClinux doesn't have MMU, does it? (Yes it's a question.)
Oooh, of course...
uClinux-vs-Gentoo are like apples-vs-oranges then.
Just to clarify though uClinux doesn't depend on physical MMU, as such hardware tends to be expensive. It does without it.
That doesn't mean it can't run on a fully MMU enabled system (with both memory protection and virtual memory)... but that wouldn't pointless because uClinux was developed for MMU-less micros.

Thanks soth :)

soth wrote:
and about buildroot: It's not bad creating a basic system for you and
great for creating the crosscompiler but when you want to do more it becomes very difficult
Can't say either way since I've never tried it, but it is extensible.
From How uClinux provides MMU-less processors with an alternative -
Embedded.com wrote:
The C library used in uClinux, uClibc, is a smaller implementation than those which ship with most modern Linux distributions. The library has been designed to provide most of the calls that UNIX-like C programs will use. If an application requires a feature that is not implemented in uClibc, the feature may be added to uClibc, it may me linked in as a separate library, or it may be added to the application itself.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum