Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Fri Jul 20, 2007 3:37 pm 
Offline

Joined: Wed Oct 12, 2005 6:17 pm
Posts: 51
Location: Montreal
Thanx again Ulf.

I have to find how my board is configurated. I use an Artila Cpu board and try to make my own build root and Kernel. But i have no idea how the memeory is mapped. I will try to get this information from them.

When i Compile only the kernel and upload it to the board, i get an error message from the kernel about a mismatch with the Machine ID. The machine Id is for a DK but i have compiled the kernel for a EK so this doesn't work.

I need to know exactly how the memory is mapped to continue with this board i think ?


regards.

Jonathan

_________________
micro controller developer
Pcb Designer
www.cimeq.qc.ca


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 21, 2007 1:28 am 
Offline

Joined: Wed Feb 18, 2004 5:53 pm
Posts: 132
Location: Sweden
If you use *my* u-boot, you can do
setenv machid <xxx>
and then magically, you can boot an AT91RM9200EK
kernel on an AT91RM9200DK U-boot.

Look in the u-boot file for the AT91RM9200DF.
You will have to set the SETENV configuration item.
(Don't remember its exact name off the top of my head)

_________________
Best Regards
Ulf Samuelsson


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 15, 2007 8:55 pm 
Offline

Joined: Wed Oct 12, 2005 6:17 pm
Posts: 51
Location: Montreal
Hi ulf,

Right now is not your u-boot in there. I have the one from Artila. I don'tk know it they make another ID for their build or not. I have to check on their FTP server to see if i find other information about this.

I think i will have to know if the boot is done from a df or standard flash to be able to build the rootfs for this board ?

regards

Jonathan

_________________
micro controller developer
Pcb Designer
www.cimeq.qc.ca


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 16, 2007 10:05 am 
Offline

Joined: Wed Feb 18, 2004 5:53 pm
Posts: 132
Location: Sweden
U-Boot and the Linux kernel needs to agree on the Machine Id,
but the root fs is not involved.

You can build a root fs for a dataflash based board
and use it on a parallel flash based board up to a point.

Everything in $(TARGET_DIR) is generic
but when you make a file system like JFFS2, then
you need to specify erase block size etc,
which differs between dataflash and parallel flash.

_________________
Best Regards
Ulf Samuelsson


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 16, 2007 2:44 pm 
Offline

Joined: Wed Oct 12, 2005 6:17 pm
Posts: 51
Location: Montreal
hi Ulf,

the U-boot that is used, is 1.1.5. I have access now to their compiled rootfs and filsystem, u-boot.

When i try to update the board with the last version (or any other version) of the kernel and the filsystem, the system hangs after writing:

Resetting ....
Starting M501.............
Starting kernel ...

Uncompressing Linux.............................................................
.................................. done, booting the kernel.

that it.

I will try to contact them to see if i can do something.

regards

Jonathan

_________________
micro controller developer
Pcb Designer
www.cimeq.qc.ca


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 16, 2007 10:15 pm 
Offline

Joined: Wed Oct 12, 2005 6:17 pm
Posts: 51
Location: Montreal
Hi,

I have found the flash chip that is used on my board. IT,s an intel Strataflash of 128Mbits

It a 128P30 (P30 family). Now i want to know what is the parameter that i need to put in the kernel to configure the right memory type, page size and erase block size.

here the link to the datasheet. I think the Erase block size is 0x8000 but for the rest i don't know realy.

http://download.intel.com/design/flcomp ... 666608.pdf

regards

jonathan

_________________
micro controller developer
Pcb Designer
www.cimeq.qc.ca


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 17, 2007 3:43 pm 
Offline

Joined: Wed Oct 12, 2005 6:17 pm
Posts: 51
Location: Montreal
dumarjo wrote:
hi Ulf,

the U-boot that is used, is 1.1.5. I have access now to their compiled rootfs and filsystem, u-boot.

When i try to update the board with the last version (or any other version) of the kernel and the filsystem, the system hangs after writing:

Resetting ....
Starting M501.............
Starting kernel ...

Uncompressing Linux.............................................................
.................................. done, booting the kernel.

that it.

I will try to contact them to see if i can do something.

regards

Jonathan


Ok I found the problem, The console is disabled by default.

Jonathan

_________________
micro controller developer
Pcb Designer
www.cimeq.qc.ca


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 19, 2007 8:52 pm 
Offline

Joined: Sat Aug 25, 2007 9:19 pm
Posts: 1
Location: Virginia
I'm working with an AT91SAM9260 EK from Atmel. I used the buildroot script commenting out all the boards but AT91SAM9260dfc. I didn't realize (and correct me if I'm wrong) that dfc means running off a Dataflash card, i.e., not the data flash already on the board. So the AT91 Bootloader would hang I guess looking for a flash card I didn't have.

I switched it to EK reran the script and with the resulting build I was able to get into U-boot from the built in flash. However, I can't seem to get past UBoot. For one thing, the UBoot that builds with buildroot shows the dataflash as 1 big area. The UBoot from the Atmel Linux demo shows 4 areas. Another problem is that I get a "bad CRC, using default environment" every time I run and it doesn't remember any of the environment changes I make using savenv. I can boot the kernel but it never finds the rootfs (I'm trying to use a jffs2 filesystem on the flash).

Is the 9260EK supported or do I have to run off a dataflash card? I've ordered one anyway, but I wonder if I'm doing something wrong. Although I have plenty of linux experience I've never worked with it in an embedded environment.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 4:31 pm 
Offline

Joined: Mon Apr 16, 2007 6:34 pm
Posts: 41
Location: Fargo, ND, USA
rsepulve:

You can get the board booting off of DataFlash. The easy way around your current problem is to just use the U-Boot binary that comes with the board. For a real fix, the only thing you need to change is which chip select U-Boot uses for DataFlash (it is CS1 on the -ek). I made a few posts in the previous buildroot thread about some things I needed to tweak.

I also use a gzipped ext2 fs in RAM.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 12, 2007 8:44 am 
Offline

Joined: Fri Sep 28, 2007 1:07 pm
Posts: 29
Hello,

It seems fakeroot has moved on to 1.8.1.
I changed the $buildroot_root/buildroot-atmel/package/fakeroot/fakeroot.mk
file to read FAKEROOT_VERSION:=1.8.1, reran the script and it finished.
I didn't try to load the files onto the board yet because I have some problems with SAM-BA and reseting the interrupt vectors, but are we able to submit patches to buildroot?
Edit: N/M I send it to buildroot mailing list =)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 11, 2007 12:26 pm 
Offline

Joined: Fri May 04, 2007 11:02 am
Posts: 23
On Debian host I must change fakeroot version to 1.5.10

http://packages.debian.org/fakeroot


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron