View previous topic :: View next topic |
Author |
Message |
mattwood2000 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 13 Apr 2005 Posts: 146
|
Posted: Tue Oct 10, 2006 8:20 pm Post subject: Gentoo on Atmel ARM arch? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
soth Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/24132714940608f4dbd810.jpg)
Joined: 12 Sep 2003 Posts: 207
|
Posted: Tue Oct 09, 2007 12:15 pm Post subject: |
|
|
Second that
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 |
|
![](templates/gentoo/images/spacer.gif) |
Yukimura Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/210140885344ef727d2fe27.jpg)
Joined: 25 Aug 2006 Posts: 163 Location: Slovenia
|
Posted: Tue Oct 09, 2007 12:24 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mattwood2000 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 13 Apr 2005 Posts: 146
|
Posted: Tue Oct 09, 2007 3:35 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
OmSai l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/12114701764e99df50b7ec1.png)
Joined: 30 Sep 2007 Posts: 605 Location: Manchester, CT, USA
|
Posted: Thu Nov 29, 2007 12:03 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
soth Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/24132714940608f4dbd810.jpg)
Joined: 12 Sep 2003 Posts: 207
|
Posted: Thu Nov 29, 2007 12:40 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
OmSai l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/12114701764e99df50b7ec1.png)
Joined: 30 Sep 2007 Posts: 605 Location: Manchester, CT, USA
|
Posted: Thu Nov 29, 2007 7:14 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|