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  [ 5 posts ] 
Author Message
 Post subject: ioremap error occured
PostPosted: Thu Dec 16, 2010 5:43 am 
Offline

Joined: Thu Dec 16, 2010 4:58 am
Posts: 3
Hi, all.
I've developed linux driver for AT91SAM9g20-EK based system.
I've accessed external memory with pointer that ioremap() returns, but following message was shown and failed to get pointer.

vmap allocation for size XXXXXXXX failed: use vmalloc=<size> to increase
size.

I increased VMALLOC_END in /arc/arm/mach-at91/include/mach/vmalloc.h and rebuild kernel, and kernel didn't boot...

How do I increase vmalloc size?


Top
 Profile  
 
 Post subject: Re: ioremap error occured
PostPosted: Thu Dec 16, 2010 7:25 am 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
Isn't vmalloc=xxx a kernel boot parameter, try setting it in the uboot environment to pass into the kernel.


Top
 Profile  
 
 Post subject: Re: ioremap error occured
PostPosted: Thu Dec 16, 2010 9:02 am 
Offline

Joined: Thu Dec 16, 2010 4:58 am
Posts: 3
Thank you for kindly advice!

I have added "vmalloc=xx" to bootargs parameter in u-boot environment , but unfortunately the issue has not fixed yet.

I have increased vmalloc size to 10G, but VmallocTotal size , cat /proc/meminfo shows, didn't increase.

This procedure is not correct ?


Top
 Profile  
 
 Post subject: Re: ioremap error occured
PostPosted: Thu Dec 16, 2010 4:48 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
>>I have increased vmalloc size to 10G, but VmallocTotal size , cat /proc/meminfo shows, didn't increase.

10GB, just how big is the ioremap() supposed to be?


Top
 Profile  
 
 Post subject: Re: ioremap error occured
PostPosted: Fri Dec 17, 2010 2:17 am 
Offline

Joined: Thu Dec 16, 2010 4:58 am
Posts: 3
I agree that 10G is too big size.
I tried to set 1G, 2G before 10G, but the issue had not fixed.
So, as a trial, I set 10G.

Could you show me how to get maximum settable size of vmalloc?
The size depends on memory size? (i.e. SAM9g20-EK has 64MB SDRAM)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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: