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  [ 58 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Wed Dec 03, 2008 11:39 am 
Offline

Joined: Mon Jul 07, 2008 6:16 pm
Posts: 53
Location: France
Gasty, do you know if in the kernel 2.6.27 there is pcmcia/CF support pour the sam9260 ?

And where have you found the AT91 patch for this kernel ?


Top
 Profile  
 
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Wed Dec 03, 2008 1:28 pm 
Offline

Joined: Fri Nov 28, 2008 3:41 pm
Posts: 22
Location: Argentina
Hi
Quote:
Gasty, do you know if in the kernel 2.6.27 there is pcmcia/CF support pour the sam9260 ?

And where have you found the AT91 patch for this kernel ?

Take a look here:
http://maxim.org.za/at91_26.html

Quote:
I also have a lot of script to write, I have 2 modems on the board and I need to manadge GPRS connexion, PPP client/server connexions, etc... :?

For this kind of works I hope tcl and expect should be very useful.


Top
 Profile  
 
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Wed Dec 03, 2008 1:50 pm 
Offline

Joined: Mon Jul 07, 2008 6:16 pm
Posts: 53
Location: France
gasty wrote:

Yes thanks, finally I found this page alone ;)
Now I will work on the 2.6.27 kernel only (I configured it and the compilation is in progress...) because this kernel with associated AT91 patches have PCMCIA/CF support for the 9260 and it's very good for me ! There is also the driver for my wifi module "Marvell Libertas 8385 CompactFlash 802.11b/g cards" 8)

Quote:
Quote:
I also have a lot of script to write, I have 2 modems on the board and I need to manadge GPRS connexion, PPP client/server connexions, etc... :?

For this kind of works I hope tcl and expect should be very useful.

I never worked with tcl, I thought to use bash ou sh shell scripting language, but I am not a specialist :?

Another question for you : What kind of ECC do you use ? Yesterday I tried Hardware ECC and the jffs image doesn't work, there are ECC errors !! It only works with sotfware ECC in my case, in your case too ? It will be better to use Hardware ECC than software ECC I think :?


Top
 Profile  
 
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Wed Dec 03, 2008 2:13 pm 
Offline

Joined: Fri Nov 28, 2008 3:41 pm
Posts: 22
Location: Argentina
Quote:
Another question for you : What kind of ECC do you use ? Yesterday I tried Hardware ECC and the jffs image doesn't work, there are ECC errors !! It only works with sotfware ECC in my case, in your case too ? It will be better to use Hardware ECC than software ECC I think :?

I use software ECC, at least it says here:
Code:
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks


There is a related thread, and hardware ecc seems to be problematic:
viewtopic.php?f=12&t=4972&p=14813&hilit=Hardware+ECC#p14813

Please report your results with the 2.6.27 kernel. Do you use the buildroot toolchain or some other?


Top
 Profile  
 
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Wed Dec 03, 2008 2:39 pm 
Offline

Joined: Mon Jul 07, 2008 6:16 pm
Posts: 53
Location: France
Today I work at home and I have not the board with me to test the 2.6.27 kernel.

I built it independently of buildroot. I just use buildroot to build the filesystem.

Ok for ECC, for now I stay with software ECC.


Top
 Profile  
 
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Wed Dec 03, 2008 2:44 pm 
Offline

Joined: Fri Nov 28, 2008 3:41 pm
Posts: 22
Location: Argentina
I search a little in the web about HW and SW ECC for at91sam9260 board:
http://article.gmane.org/gmane.linux.po ... rnel/39237
http://www.nabble.com/Re:-AT91-NAND-om- ... 57083.html

If I don't misunderstood the problem is that u-boot and samba uses SW ECC and the bytes of OOB (out of bounds) touched are different that the used by the HW ECC controller. Maybe editing u-boot code the issue can be fixed.
Another workaround can be mount a filesystem in an usb key with the jffs2 image in it. Then we can boot linux and copy the image to the nand. I don´t know if is possible or not. I can try this, but for now I keep using SW ECC until all the other details are tuned.


Top
 Profile  
 
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Wed Dec 03, 2008 2:46 pm 
Offline

Joined: Mon Jul 07, 2008 6:16 pm
Posts: 53
Location: France
gasty wrote:
I can try this, but for now I keep using SW ECC until all the other details are tuned.

Me too.....


Top
 Profile  
 
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Thu Dec 04, 2008 4:57 pm 
Offline

Joined: Mon Jul 07, 2008 6:16 pm
Posts: 53
Location: France
hi gasty !

Today I tried the 2.6.27.
Works very well 8)
Everything is OK, nand, filesystem, dp83848, USB host (I can mount successfully mass storage devices).

Even my compact flash wifi module seems to work out of the box, I love linux ! 8)

Quote:
[...]
at91_cf: irqs det #64, io #81
[...]
pccard: PCMCIA card inserted into slot 0
pcmcia: registering new device pcmcia0.0
firmware: requesting libertas_cs_helper.fw


Top
 Profile  
 
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Thu Dec 04, 2008 5:56 pm 
Offline

Joined: Fri Nov 28, 2008 3:41 pm
Posts: 22
Location: Argentina
Congratulations!

* What about the software modules built with buildroot?
I still thinking that distros like debian/arm or angstrom (or maybe emdebian) should be good ways to make a base system with the chance of add new software packages when they are needed (without erase and write the nand flash again). I will try some of these options...

* However I need to make a lot of work with kernel drivers at first. Since our board can be reconfigured, I want to make the kernel easily adaptable to the changes in the hardware. I need to find a solution with a trade off between good performance with few kernel changes.

For a few days I need to put in standby this project to make other works. But if you make progress or you have questions do not hesitate in post here!
Good luck.


Top
 Profile  
 
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Thu Dec 04, 2008 6:11 pm 
Offline

Joined: Mon Jul 07, 2008 6:16 pm
Posts: 53
Location: France
I have problem with the wifi card, it is detected correctly, but I can't load the firmware in it. The kernel freeze after some call to the ioread8() function done in the wifi card driver.

What kind of reconfiguration there will be on your board ? It's just for some specific peripheral ? If yes, I advise you to have the same kernel for all boards configuration, and implement your specific hardware management with kernel modules, which can be easily built out of the linux kernel source tree.

After you just have to load the good module in the good board configuration.

I work like this nd I think it's a good solution.


Top
 Profile  
 
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Thu Dec 04, 2008 7:05 pm 
Offline

Joined: Fri Nov 28, 2008 3:41 pm
Posts: 22
Location: Argentina
For wifi support I thought use in my board an usb wireless card in the usb host port A. I'm using the 208-pin package, so I have only one usb host port. Maybe this can be more easy to setup than the pcmcia card.

Quote:
What kind of reconfiguration there will be on your board ?

Our goal is make a generic board with linux and high level interfaces to several devices (wireless card, usb key, sd card, ethernet cable, etc) that can be adapted to different situations. The board have several expansion slots, and also we have an fpga in the board to resolve specific low level tasks, and they need to be accessible from linux. For this I need to write a kernel driver that can make reads and writes operations from/to the fpga.

Quote:
If yes, I advise you to have the same kernel for all boards configuration, and implement your specific hardware management with kernel modules, which can be easily built out of the linux kernel source tree.

Ok, thanks. This is my first project with linux and it's a big challenge!


Top
 Profile  
 
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Thu Dec 04, 2008 7:22 pm 
Offline

Joined: Mon Jul 07, 2008 6:16 pm
Posts: 53
Location: France
gasty wrote:
Quote:
If yes, I advise you to have the same kernel for all boards configuration, and implement your specific hardware management with kernel modules, which can be easily built out of the linux kernel source tree.

Ok, thanks. This is my first project with linux and it's a big challenge!

It will not be the last ;)


Top
 Profile  
 
 Post subject: Re: Questions / problems with custom board and AT91SAM9260
PostPosted: Sat Apr 14, 2012 3:23 pm 
Offline

Joined: Sat Oct 16, 2010 11:50 am
Posts: 3
hi
I also build a at91sam9260 board.
I follow instruction in linux4sam and change RAM parameters for my borad(I use 32M ram from Firdelx).
however u-boot and bootstrap work fine.
I download linux 2.6.30 and compile it by my cross compiler arm-linux-gcc version 4.2.4.
I load it to dataflash and it load carefully.
now i want to use buildroot to make rootfs.
1.I follow linux4sam
http://www.at91.com/linux4sam/bin/view/ ... _buildroot
but when make 2>&1 | tee at91sam9.log
it goes to download reqirements and cannot find linux-2.6.26.2.tar.gz

can you give me instruction for buildrootfs?
2.I have arm-linux-gcc.is it necessary to download toolchain with buildrootfs?
3.is it necessary to download linux-2.6.26.2.tar.gz?
4.gasty said it may require change this:
BR2_TARGET_ROOTFS_JFFS2_PAGESIZE=0x800
BR2_TARGET_ROOTFS_JFFS2_EBSIZE=0x40000

is it necessary? my flash pagesize=(2K+64)Byte and Blocksize=(128K+4K)byte
5.nlc said he change write address of rootfs in nand:
"I write the root filesystem from u-boot, thus I write him at 0x40000 address"
is it ok?
tnx alot


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users 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: