LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 12-03-2008, 06:01 AM   #1
zahidul
LQ Newbie
 
Registered: Sep 2008
Posts: 21

Rep: Reputation: 15
Smile kmalloc is failing and kernel is hanging


I have an ARM PXA-255 board with an LCD support. I have ported kernel 2.6.26.3 on it and am trying to make frame buffer driver up for my board. I m able to able to get the backlight on tho LCD panel. In pxafb.c file, the function pxafb_probe is calling pxafb_init_fbinfo function. This pxafb_init_fbinfo is then allocating some memory by calling kmalloc. The kmalloc fails here and my kernel hangs.

I am able to able to figure out the problem as kmalloc as returning a valid address to the variable fbi. I also tried with GFP_ATOMIC flag in kmalloc but still the problem exists.
Any help to solve this problem will be highly appreciated.
 
Old 12-04-2008, 09:04 PM   #2
bapigoo9
Member
 
Registered: Aug 2008
Posts: 107

Rep: Reputation: 16
Others are getting kernel panic problems with compiling routines for that ARM processor. A quick search on Google will find many of them. Here is one:

http://www.infradead.org/pipermail/l...ay/015433.html

What does the "fbi" variable do?
How much memory are you allocating "allocating some memory"? Post your allocation code here.
 
Old 12-18-2008, 11:04 PM   #3
Rekha.sm
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Hi,

I very new to linux porting please help me.As you are already ported Linux on PXA255 arm proceesor I felt u are the right guy to help me because even I am trying to port linux 2.6.26.3 on my PXA255 ARM processor board.and I am using Uboot as boot loader.
I configured and compile the code and while booting i am getting the kernal panic.Below is my booting sequenc ,please chek this and guide me in this regard.

$ bootm 0xa2000000

## Booting image at a2000000 ...

Image Name: Linux-2.6.27-smp

Created: 2008-12-15 5:42:11 UTC

Image Type: ARM Linux Kernel Image (uncompressed)

Data Size: 1258716 Bytes = 1.2 MB

Load Address: a0008000

Entry Point: a0008000

Verifying Checksum ... OK

OK



Starting kernel ...



linux cleanedUncompressing Linux................................................

................................... done, booting the kernel.

<3>ohoo linux<5>Linux version 2.6.27-smp (root@linux-6orh) (gcc version 4.3.2 (S

ourcery G++ Lite 2008q3-41) ) #7 Mon Dec 15 11:12:03 IST 2008

CPU: XScale-PXA255 [69052d06] revision 6 (ARMv5TE), cr=0000397f

Machine: <NULL>

<4>Ignoring unrecognised tag 0x54410008

Memory policy: ECC disabled, Data cache writeback

<1>bootmem alloc of 4096 bytes failed!

<0>Kernel panic - not syncing: Out of memory

Thnaks &Regards,
Rekha
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to find kernel headers such as kmalloc.h manish.ym Linux - Kernel 2 06-16-2010 11:00 AM
5.10 k7 kernel hanging on startup davidsrsb Ubuntu 2 01-10-2006 08:25 PM
Kernel 2.6 hanging decompressing DuuhMojo Linux - Newbie 4 06-09-2005 12:17 PM
kmalloc returning overlapped address dipakn Linux - General 4 10-29-2003 11:29 PM
Kmalloc returns null iannou Linux - General 0 06-28-2003 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 10:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration