[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Unable to allocate RAM for process text/data



Hi Nicho,
To fix your problem, you need to use the SLAB memory allocator instead of using the SLOB allocator. The SLOB allocator does not work.

Under "Configure standard kernel features (for small systems)" submenu in make menuconfig, enable the "Use full SLAB allocator" option.

Cheers,
B.


Nicho Johns wrote:
Hello Duy-Ky,
Both images have the same behaviour.
this had to be checked.
Thanks,
Nicho
2007/9/10, Duy-Ky Nguyen <duykynguyen@xxxxxxxxxxx <mailto:duykynguyen@xxxxxxxxxxx>>:

    There are 2 images : (1) image.bin and (2) image.ub
One for raw boot, the other for u-boot. It's worth trying the other one. Duy-Ky

    *From:* owner-microblaze-uclinux@xxxxxxxxxxxxxx
    <mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx> [mailto:
    owner-microblaze-uclinux@xxxxxxxxxxxxxx
    <mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx>] *On Behalf Of
    *Nicho Johns
    *Sent:* Sunday, September 09, 2007 12:00 PM
    *To:* microblaze-uclinux@xxxxxxxxxxxxxx
    <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
    *Subject:* [microblaze-uclinux] Unable to allocate RAM for process
    text/data

Hi all, I'v the following kernel panic while running the OS from RAM
    I'm on RevD 3E500 SK and just moved memory from 0x22000000 to
    0x24000000 without changing its size.
    Should I try to reduce the OS size ?
Thanks, Nicho

    ## Starting application at 0x24000000
.. Found romfs @ 0x2420708c (0x00230000) #### klimit 2421f000 #### Moving 0x00230000 bytes from 0x2420708c to 0x2421e994 New klimit: 0x2444f000 Linux version 2.6.20-uc0 ( nichojohns @localhost.localdomain
    <mailto:nichojohns@xxxxxxxxxxxxxxxxxxxxx>) (gcc version 3.4.1 (
PetaLi
    nux 0.20 Build -rc1 050607 )) #4 Sun Sep 9 16:13:55 CEST
2007 setup_cpuinfo: initialising setup_cpuinfo: No PVR support in CPU. Using static compile-time info
    set_cpuinfo_static: Using static CPU
info. setup_memory: max_mapnr: 0x2 setup_memory: min_low_pfn: 0x24000 setup_memory: max_low_pfn: 0x2000 On node 0 totalpages: 8192 DMA zone: 64 pages used for memmap DMA zone: 0 pages reserved DMA zone: 8128 pages, LIFO batch:0 Normal zone: 0 pages used for memmap Built 1 zonelists. Total pages: 8128 Kernel command line: OPB INTC #0 at 0x41200000 PID hash table entries: 128 (order: 7, 512 bytes) Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory: 28068k/32768k av Calibrating delay loop... 24.72 BogoMIPS (lpj=123648) Mount-cache hash table entries: 512 NET: Registered protocol family 16 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 1024 (order: 0, 4096 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default)info.m default boot location.
    Image w
    xgpio0 #0 at 0x40000000 mapped to 0x40000000 device: 10,185 not
using IRQ setup_memory: max_mapnr: 0x25fff xgpio1 #1 at 0x40020000 mapped to 0x40020000 device: 10,186 not using IRQ 24000010: 0000000 setup_memory:
    uartlite.0 : ttyS0 at MMIO 0x40600000 (irq = 2) is a
uartlite On node 0 totalpages: 8192ne
    RAMDISK driver initialized: 16 RAM disks of 8192K size 1024
    blocksize for memmap5 78204175
746f7363 eth0: using fifo mode.========
    eth0: No PHY detected.  Assuming a PHY at address
0..ov eth0: Xilinx EMACLite #0 at 0x40E00000 mapped to 0x40E00000,
    irq=1(c) 2006
Peta physmap platform flash device: 01000000 at 21000000memmap PID ha
    erase region 0:
offset=0x0,size=0x20000,blocks=128
    RedBoot partition parsing not
available Dentry
    uclinux[mtd]: RAM probe address=0x2421e994
size=0x230000 Creating 1 MTD partitions on "RAM": Directional Button & Rotary Encoder Driver
    (c) 2007 PetaLogix
    TCP cubic registered
    NET: Registered protocol family 1
    VFS: Mounted root (cramfs filesystem) readonly.
    Freeing unused kernel memory: 84k freed
    Unable to allocate RAM for process text/data, errno 12
    Unable to allocate RAM for process text/data, errno 12
    Kernel panic - not syncing: No init found.  Try passing init=
    option to kernel.
     <0>Rebooting in 120 seconds..Machine restart...

    Stack:
      25ffbf20 00000000 00000000 00017a80 25ffa000 2401765c 241a6164
    0000000b
      0000000b 00000000 ffffcbd0 00000bd0 24008868 24115718 800000a4
    800000a4
      800000a4 00000000 00000001 24000390 241a6eb8 00000078 24209520
    00000000
    Call Trace:
    [<2401765c>] emergency_restart+0xc/0x20
    [<24008868>] panic+0x11c/0x14c
    [<24115718>] i8042_panic_blink+0x58/0x108
    [<24000390>] init+0x2c4/0x34c
    [<240011ac>] kernel_thread_helper+0x10/0x24
    [<2400119c>] kernel_thread_helper+0x0/0x24


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/