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  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Updated Linux Patches
PostPosted: Wed Oct 13, 2010 8:33 pm 
Offline

Joined: Wed Jun 30, 2010 10:48 pm
Posts: 16
Location: Stow, Ohio, USA
I took the 2.6.33-at91 patch from http://maxim.org.za/at91_26.html and forward-ported it to 2.6.34 and 2.6.35. I hope these patches help somebody.

They are attached to this message.

Thanks,
-Chris


Attachments:
File comment: 2.6.35-at91.patch
2.6.35-at91.patch.bz2 [61.31 KiB]
Downloaded 199 times
File comment: 2.6.34-at91.patch
2.6.34-at91.patch.bz2 [62.22 KiB]
Downloaded 172 times
Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Wed Oct 27, 2010 4:03 am 
Offline

Joined: Wed Jun 30, 2010 10:48 pm
Posts: 16
Location: Stow, Ohio, USA
Adding at91 patch for 2.6.36.


Attachments:
File comment: 2.6.36-at91.patch
2.6.36-at91.patch.bz2 [61.22 KiB]
Downloaded 264 times
Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Tue Nov 16, 2010 5:24 pm 
Offline
User avatar

Joined: Mon Jul 19, 2010 8:47 pm
Posts: 59
Thanks-- I've now got 2.6.36 running. I appreciate the time you put in both porting and posting.

_________________
Brandon Stafford
Rascal Micro


Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Mon Dec 27, 2010 11:25 pm 
Offline

Joined: Thu Jun 25, 2009 4:19 pm
Posts: 11
Hello,

Thanks for the AT91 Linux patches. I am having an issue however. I don't know if it is related to the kernel patches or not. It has to do with the USB V4L GSPCA driver.

On version 2.6.32 everything works fine.

On version 2.6.34 and 2.6.35 when plugging in a USB camera the kernel crashes with this error.

gspca camera detected
kernel BUG at arch/arm/mm/dma-mapping.c:409!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
etc. etc.

I have googled around for "kernel BUG at arch/arm/mm/dma-mapping.c:409!" and found a few references to it but no apparent fix or reason why. I have searched the Linux TV.org forum for clues, but found nothing.

Has anyone encountered this error before? Can someone that is using the above patches try enabling the GSPCA drivers and then plugging in a USB web camera or other USB device for a test?

Thanks


Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Tue Dec 28, 2010 1:57 am 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 784
You have the sources, surely you can dig into it, or diff the respective source trees to understand what changed between releases.

__dma_free_buffer(dma_to_page(dev, handle), size);

My guess would be the dev, or handle value are wrong (ie NULL). Some upstream driver code looks to be initializing a structure to zero, but not initializing a pointer.

Sanity check the values of dev, handle, size and dma_to_page(dev, handle)


Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Fri Feb 04, 2011 11:37 pm 
Offline

Joined: Wed Jun 30, 2010 10:48 pm
Posts: 16
Location: Stow, Ohio, USA
Adding at91 patch for 2.6.37.


Attachments:
File comment: at91 patch for 2.6.37.
2.6.37-at91.patch.bz2 [58.99 KiB]
Downloaded 140 times
Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Wed Mar 16, 2011 8:41 pm 
Offline

Joined: Wed Jun 30, 2010 10:48 pm
Posts: 16
Location: Stow, Ohio, USA
Adding at91 patch for 2.6.38.


Attachments:
File comment: at91 patch for 2.6.38.
2.6.38-at91.patch.bz2 [59.01 KiB]
Downloaded 156 times
Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Mon Jun 13, 2011 7:49 pm 
Offline

Joined: Wed Jun 30, 2010 10:48 pm
Posts: 16
Location: Stow, Ohio, USA
Adding at91 patch for 2.6.39.


Attachments:
File comment: Adding at91 patch for 2.6.39.
2.6.39-at91.patch.bz2 [58.9 KiB]
Downloaded 172 times
Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Thu Sep 08, 2011 7:56 am 
Offline
User avatar

Joined: Mon Jul 25, 2005 2:22 pm
Posts: 52
Location: Germany
Some 3.0 Patches?


Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Wed Sep 14, 2011 4:38 pm 
Offline

Joined: Wed Jun 30, 2010 10:48 pm
Posts: 16
Location: Stow, Ohio, USA
Adding patch for v3.0.0.

Do these help anybody? I hope so. I cannot test any other platform than my own, so there may be a few issues with some other boards.

I'm wondering if it might be a good idea to split the board-specific stuff apart from the more core components in this patch... or at least prune off the dead/unmaintained boards. I can test the core stuff, but I can't test the board-specific stuff. As we move to kernel v3.1.0, there is a lot of changes going into the board-*.c files..

-Chris


Attachments:
3.0.0-at91.patch.bz2 [59.03 KiB]
Downloaded 107 times
Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Wed Sep 14, 2011 5:13 pm 
Offline

Joined: Wed Feb 14, 2007 11:17 am
Posts: 79
Chris,

I thank you for your continuous effort to port this patch to an up-to-date kernel.

I am sure that it is very useful to many people!

If you plan to submit little chunks of this patch to the upstream Linux kernel, I will be happy to integrate them in our effort to port the most of AT91 support to Mainline Linux. I know that the difficult part is to cut this big patch in single and self contained enhancements.

Best regards,
--
Nicolas Ferre


Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Mon Oct 31, 2011 3:38 pm 
Offline

Joined: Wed Jun 30, 2010 10:48 pm
Posts: 16
Location: Stow, Ohio, USA
Adding at91 patch for 3.1.0.


Attachments:
File comment: at91 patch for 3.1.0.
3.1.0-at91.patch.bz2 [58.57 KiB]
Downloaded 124 times
Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Fri Dec 09, 2011 11:55 pm 
Offline

Joined: Wed Jun 30, 2010 10:48 pm
Posts: 16
Location: Stow, Ohio, USA
File downloads appear to be broken here at at91.com. So, I have hosted the AT91 3.1 patch here:

https://coledd.com/software/linux/patch ... .patch.bz2

Thanks,
-Chris Cole
cole /at/ coledd.com


Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Wed Jan 04, 2012 4:55 pm 
Offline

Joined: Wed Jan 04, 2012 4:53 pm
Posts: 2
Hi, I wanted to know what's the difference between these patches and the ones that have been included in the upstream kernel since v2.6.30 (in kernel's gitweb you can see that a lot of the original patches have already been merged upstream).


Top
 Profile  
 
 Post subject: Re: Updated Linux Patches
PostPosted: Thu Jan 05, 2012 6:28 am 
Offline

Joined: Wed Jun 30, 2010 10:48 pm
Posts: 16
Location: Stow, Ohio, USA
These patches are the stuff that never yet got put into the mainline kernel. it is mostly extra boards support. Also contains some spi driver stuff and some macb driver mods, and a few pm mods. This patch does need broken out and some parts fed upstream, and perhaps some parts dropped. Feel free to help out if you have some spare time ;)


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

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: