public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot]  Hanging in kmalloc of nand_scan_tail() function
@ 2010-11-11 15:06 terry
  2010-11-11 19:49 ` Scott Wood
  0 siblings, 1 reply; 11+ messages in thread
From: terry @ 2010-11-11 15:06 UTC (permalink / raw)
  To: u-boot

Dear everyone,
I'm using u-boot-2010.09. After I download u-boot.bin to my boards(cpu
is s3c2410),the output from serial shows that cpu has exception, the
information list as following:
U-Boot 2010.09 (Nov 11 2010 - 21:55:07)

U-Boot code: 33F80000 -> 33FA0BDC  BSS: -> 33FA45EC
RAM Configuration:
Bank #0: 30000000 64 MiB
NAND:  data abort
pc : [<33f8fbb4>]          lr : [<33f85f70>]
sp : 33f07fac  ip : 00000000     fp : 00000000
r10: 00001298  r9 : ffffff7f     r8 : 33f4ffe0
r7 : 00000000  r6 : 33fa3b50     r5 : 33fa3c00  r4 : 33fa0274
r3 : 33f9ff54  r2 : 00000064     r1 : 00000001  r0 : cc33cc33
Flags: NzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

value of pc locate at <malloc> function, value of lr locate at
<nand_scan_tail>(/drivers/mtd/nand/nand_base.c).

I have seen that someone had this problem before, have you resolved it?
Can you give me some suggestions?

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [U-Boot] Hanging in kmalloc of nand_scan_tail() function
@ 2009-09-18  4:17 J.Hwan.Kim
  2009-09-18 17:52 ` Scott Wood
  0 siblings, 1 reply; 11+ messages in thread
From: J.Hwan.Kim @ 2009-09-18  4:17 UTC (permalink / raw)
  To: u-boot

Hi, everyone

I'm using U-boot 2009-03.
U-boot hangs in nand_init() function.
I found the routine kmalloc in nand_scan_tail() cause U-boot reset.


int nand_scan_tail(struct mtd_info *mtd)
{
    int i;
    struct nand_chip *chip = mtd->priv;

    if (!(chip->options & NAND_OWN_BUFFERS)) {
        chip->buffers = kmalloc(sizeof(*chip->buffers), GFP_KERNEL);   
    }

    if (!chip->buffers)
        return -ENOMEM;
              ........


U-boot displays message as follows :

NAND:  data abort
pc : [<31f902b4>]\0x09   lr : [<31fa084c>]
sp : 31f5bee0  ip : 00000076\0x09 fp : 00000000
r10: 00001188  r9 : 00020000\0x09 r8 : 31f5bfdc
r7 : 00000001  r6 : 00000000\0x09 r5 : 31fa42b8  r4 : 31fa4364
r3 : 31fa052c  r2 : 00000064\0x09 r1 : 00000063  r0 : ffffffff
Flags: NzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...


Where the malloc function is defined?
Why the kmalloc() hangs the u-boot?
Is there any configuation definition needed?

Thanks in advance.

Regards,
J.Hwan Kim

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-11-15 17:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-11 15:06 [U-Boot] Hanging in kmalloc of nand_scan_tail() function terry
2010-11-11 19:49 ` Scott Wood
2010-11-12 12:45   ` terry
2010-11-12 17:19     ` Scott Wood
2010-11-13  3:43       ` terry
2010-11-13 16:24         ` Kumar Gala
2010-11-14 13:18           ` terry
2010-11-15 15:05             ` Kumar Gala
2010-11-15 17:42         ` Scott Wood
  -- strict thread matches above, loose matches on Subject: below --
2009-09-18  4:17 J.Hwan.Kim
2009-09-18 17:52 ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox