Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
May 22, 2012, 04:34:54 AM
News: Welcome to GLomation peer support forum
Pages: [1]
Topic Tools  
Read March 02, 2009, 10:31:17 PM #0
Rahim Pardhan

Random KP

Hi,

I've been having a lot of kernel panics on the 9260 when I try to install packages using apt-get. here is an example:

Code:
GESBC:/# apt-get install v4l-conf                                               
Reading package lists... Done                                                   
Building dependency tree... Done                                               
The following extra packages will be installed:                                 
  defoma fontconfig-config libfontconfig1 libfreetype6 libice6 libsm6 libx11-6 
  libx11-data libxau6 libxaw7 libxdmcp6 libxext6 libxft2 libxinerama1 libxmu6   
  libxpm4 libxrandr2 libxrender1 libxt6 libxv1 libxxf86dga1 libxxf86vm1         
  ttf-dejavu ucf x11-common                                                     
Suggested packages:                                                             
  defoma-doc psfontmgr x-ttcidfont-conf dfontmgr libfreetype6-dev               
Recommended packages:                                                           
  libft-perl debconf-utils                                                     
The following NEW packages will be installed:                                   
  defoma fontconfig-config libfontconfig1 libfreetype6 libice6 libsm6 libx11-6 
  libx11-data libxau6 libxaw7 libxdmcp6 libxext6 libxft2 libxinerama1 libxmu6   
  libxpm4 libxrandr2 libxrender1 libxt6 libxv1 libxxf86dga1 libxxf86vm1         
  ttf-dejavu ucf v4l-conf x11-common                                           
0 upgraded, 26 newly installed, 0 to remove and 15 not upgraded.               
Need to get 6043kB of archives.                                                 
After unpacking 14.5MB of additional disk space will be used.                   
Do you want to continue [Y/n]? y                                             
Get:1 http://ftp.us.debian.org etch/main x11-common 1:7.1.0-19 [338kB]         
Get:2 http://ftp.us.debian.org etch/main libxau6 1:1.0.1-2 [6980B]             
Get:3 http://ftp.us.debian.org etch/main libxdmcp6 1:1.0.1-2 [10.4kB]           
Get:4 http://ftp.us.debian.org etch/main libx11-data 2:1.0.3-7 [157kB]         
Get:5 http://ftp.us.debian.org etch/main libx11-6 2:1.0.3-7 [560kB]             
Get:6 http://ftp.us.debian.org etch/main libfreetype6 2.2.1-5+etch3 [334kB]     
Get:7 http://ftp.us.debian.org etch/main ucf 2.0020 [57.7kB]                   
Get:8 http://ftp.us.debian.org etch/main defoma 0.11.10-0.1 [100kB]             
Get:9 http://ftp.us.debian.org etch/main ttf-dejavu 2.15-1 [3488kB]             
59% [9 ttf-dejavu 2002674/3488kB 57%]                              88.4kB/s 27s!
Unable to handle kernel NULL pointer dereference at virtual address 00000000   
pgd = c0004000                                                                 
[00000000] *pgd=00000000                                                       
Internal error: Oops: 817 [#1]                                                 
Modules linked in:                                                             
CPU: 0    Not tainted  (2.6.25 #5)                                             
PC is at __bug+0x20/0x2c                                                       
LR is at __resched_task+0x1c/0x20                                               
pc : [<c002a870>]    lr : [<c0037594>]    psr: 60000093                         
sp : c02d1e68  ip : c02d6494  fp : c02d1e74                                     
r10: 00000000  r9 : c02ec3f0  r8 : c7c3385c                                     
r7 : c7d63260  r6 : c7d63260  r5 : a0000013  r4 : 27e070e3                     
r3 : 00000000  r2 : 00000000  r1 : 00000001  r0 : 00000020                     
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel           
Control: 0005317f  Table: 27e54000  DAC: 00000017                               
Process swapper (pid: 0, stack limit = 0xc02d0268)                             
Stack: (0xc02d1e68 to 0xc02d2000)                                               
1e60:                   c02d1e94 c02d1e78 c00808d4 c002a860 c02d1e94 27e070e3   
1e80: 00000017 00000000 c02d1ec4 c02d1e98 c002c2a4 c0080868 00000000 c7c275c0   
1ea0: c7d2fe5c 00008008 00000009 2002118c 41069265 20021158 c02d1ee4 c02d1ec8   
1ec0: c01c2e7c c002c0f4 c02f164c c7d5fe00 00000000 00000000 c02d1f04 c02d1ee8   
1ee0: c005f158 c01c2c60 c02d80d0 00000009 00000000 c02ec308 c02d1f1c c02d1f08   
1f00: c0060a40 c005f124 00000009 c02d80d0 c02d1f3c c02d1f20 c0026048 c006097c   
1f20: c02d1f44 ffffffff fefff000 00000009 c02d1f94 c02d1f40 c0026594 c0026010   
1f40: 00000000 0005317f 0005217f 60000013 c0027fa4 c02d0000 c0027fa4 c02ec308   
1f60: 2002118c 41069265 20021158 c02d1f94 600000d3 c02d1f88 c0027fe8 c0027ff4   
1f80: 60000013 ffffffff c02d1fb4 c02d1f98 c0027e80 c0027fb4 c02f4034 c02ebec8   
1fa0: c0022f28 c02d3d68 c02d1fc4 c02d1fb8 c02338a8 c0027e54 c02d1ff4 c02d1fc8   
1fc0: c0008bc0 c0233868 c00083a4 00000000 00000000 c0022f28 00000000 00053175   
1fe0: c02ec36c c002332c 00000000 c02d1ff8 20008034 c0008958 00000000 00000000   
Backtrace:                                                                     
[<c002a850>] (__bug+0x0/0x2c) from [<c00808d4>] (kfree+0x7c/0xcc)               
[<c0080858>] (kfree+0x0/0xcc) from [<c002c2a4>] (dma_free_coherent+0x1c0/0x218)
 r6:00000000 r5:00000017 r4:27e070e3                                           
[<c002c0e4>] (dma_free_coherent+0x0/0x218) from [<c01c2e7c>] (at91_mci_irq+0x22)
[<c01c2c50>] (at91_mci_irq+0x0/0x2a8) from [<c005f158>] (handle_IRQ_event+0x44/)
 r6:00000000 r5:00000000 r4:c7d5fe00                                           
[<c005f114>] (handle_IRQ_event+0x0/0x84) from [<c0060a40>] (handle_level_irq+0x)
 r7:c02ec308 r6:00000000 r5:00000009 r4:c02d80d0                               
[<c006096c>] (handle_level_irq+0x0/0xf0) from [<c0026048>] (asm_do_IRQ+0x48/0x7)
 r5:c02d80d0 r4:00000009                                                       
[<c0026000>] (asm_do_IRQ+0x0/0x70) from [<c0026594>] (__irq_svc+0x34/0x60)     
Exception stack(0xc02d1f40 to 0xc02d1f88)                                       
1f40: 00000000 0005317f 0005217f 60000013 c0027fa4 c02d0000 c0027fa4 c02ec308   
1f60: 2002118c 41069265 20021158 c02d1f94 600000d3 c02d1f88 c0027fe8 c0027ff4   
1f80: 60000013 ffffffff                                                         
 r6:00000009 r5:fefff000 r4:ffffffff                                           
[<c0027fa4>] (default_idle+0x0/0x58) from [<c0027e80>] (cpu_idle+0x3c/0x58)     
[<c0027e44>] (cpu_idle+0x0/0x58) from [<c02338a8>] (rest_init+0x50/0x60)       
 r7:c02d3d68 r6:c0022f28 r5:c02ebec8 r4:c02f4034                               
[<c0233858>] (rest_init+0x0/0x60) from [<c0008bc0>] (start_kernel+0x278/0x2e4) 
[<c0008948>] (start_kernel+0x0/0x2e4) from [<20008034>] (0x20008034)           
Code: e1a01000 e59f000c eb004aac e3a03000 (e5833000)                           
Kernel panic - not syncing: Fatal exception in interrupt                       

I've read that NULL pointer deref is caused when I'm out of memory; however I have 128mb on a 9260. Any help is appreciated.

Thanks,
« Last Edit: March 02, 2009, 11:21:01 PM by Rahim Pardhan »
 
Read March 03, 2009, 10:59:06 AM #1
admin

Re: Random KP

The standard GESBC-9260 has 64MB SDRAM.  The NAND FLASH is 128MB which is used as file storgae.  Please check your file system size if you have Debian installed in the on-board NAND FLASH.  If you use the tmpfs JFFS2 work around for Debian apt-get it will use SDRAM as cache so it could exhaust your system memory.
 
Read March 03, 2009, 11:14:12 PM #2
Rahim Pardhan

Re: Random KP

Hi,

I got the 9260 configured with 128MB SDRAM (I paid extra) I have debian installed on a 2.0GB SD Card and am booting off it. The filesystem on the SD card is ext2. I have the kernel in the NAND.

Thanks,

Rahim
 
Read March 04, 2009, 11:04:49 AM #3
admin

Re: Random KP

What is the version of the kernel?  Attached is 2.6.27.4.  You can give it a try to see if it fixes your problem.

* uImage (1447.56 KB - downloaded 51 times.)
 
Read March 04, 2009, 11:03:21 PM #4
Rahim Pardhan

Re: Random KP

Also I am trying to get V4L2 with the GSPCA_ZC3XX driver working on the 9260. The newest kernel 2.6.28 supports this (offers this as a module compile option), and would greatly simplify my life. Can you please provide the patch and the config file for this kernel?

I have established that the driver does not exist in the 2.6.27 mainline, but IS rolled into 2.6.28.

Thanks,

Rahim
« Last Edit: March 05, 2009, 12:00:40 AM by Rahim Pardhan »
 
Read March 05, 2009, 08:20:36 AM #5
admin

Re: Random KP

Patches can be found at http://maxim.org.za/at91_26.html
 
Read March 05, 2009, 10:07:41 AM #6
Rahim Pardhan

Re: Random KP

Thanks,

What about the config file?
 
Read March 05, 2009, 10:13:54 AM #7
admin

Re: Random KP

The patched kernel source should have the default configuration file for AT91SAM9260-EK.
 
Read March 05, 2009, 02:00:01 PM #8
Rahim Pardhan

Re: Random KP

Hi,

I'm trying to cross compile this using the cross compiler posted in the Building Kernel thread. I'm compiling this on ubuntu. I'm getting an error "make: arm-unknown-linux-gnu-gcc: Command not found" Please see attached code

Thanks

Code:
rahim@rahim-laptop:~/Desktop/linux-2.6.28$ export PATH=$PATH:/home/rahim/Desktop/usr/local/arm/gcc-4.2.3-glibc-2.3.3/arm-unknown-linux-gnu/arm-unknown-linux-gnu/bin/
rahim@rahim-laptop:~/Desktop/linux-2.6.28$ sudo make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu-
make: arm-unknown-linux-gnu-gcc: Command not found
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CC      kernel/bounds.s
/bin/sh: arm-unknown-linux-gnu-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
rahim@rahim-laptop:~/Desktop/linux-2.6.28$

EDIT: I fixed my path to the cross compileer and it is now compiling...
« Last Edit: March 05, 2009, 03:00:20 PM by Rahim Pardhan »
 
Read March 05, 2009, 07:57:33 PM #9
Rahim Pardhan

Re: Random KP

I have downloaded the patch file and patched the kernel. Then I enabled V4L and GSPCA in the kernel menu config. I compiled the kernel using the provided cross compiler. When I flash the kernel to the board and reboot it hangs at "Starting Kernel..."

Is it okay to use the default menuconfig options from the vanilla 2.6.28 kernel? Is there no specific config file required? I remember there was a special config file for 2.6.25 posted. Is it at all possible to use that 2.6.25 config for the 2.6.28 kernel (I suspect not, but what's the best way to get this going?)

Any help is GREATLY appreciated.

Thanks,

Rahim
 
Read March 06, 2009, 09:20:11 AM #10
admin

Re: Random KP

You can  use the default configuration for AT91SAM9260-ek or use the 2.6.25 kernel configuration posted in the forum.  The kernel configuration process will ask for your selection for new configuration items when you use the configuration file for an older version of kernel.

 
Read March 06, 2009, 09:49:22 AM #11
Rahim Pardhan

Re: Random KP

You can  use the default configuration for AT91SAM9260-ek or use the 2.6.25 kernel configuration posted in the forum.  The kernel configuration process will ask for your selection for new configuration items when you use the configuration file for an older version of kernel.

To do this, do I just apply the patch posted at http://maxim.org.za/at91_26.html Will that give me the config I need? OR do I have to download a .config from somewhere?

Thanks,

Rahim
 
Read March 06, 2009, 09:54:54 AM #12
admin

Re: Random KP

As mentioned before the mianline kernel source already have a configuration file for AT91SAM9260-ek.  You only need to patch the mainline kernel with the patch from the posted website and use the AT91SAM9260-ek configuration as your starting point.
 
Pages: [1]
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re