[uClinux-dev] 2.4.10 kmalloc has bugs?

Thuys, Michiel michiel.thuys at intersil.com
Mon Nov 19 08:05:10 EST 2001


In setup_arch() in arch/armnommu/kernel/setup.c, the bootmemory is
initialized. This initialization reserves (reserve_bootmem call) the
part of memory where the kernel is located so that the kernel page
allocator knows where the free memory is. This is probably going wrong
in your case. The memory area where your initrd.img lies should be
reserved here so that the kernel cannot allocate it anymore.

Hope this helps.

Michiel

-----Original Message-----
From: kernig kovacs [mailto:kovacs_kernig at hotmail.com]
Sent: maandag 19 november 2001 13:14
To: uclinux-dev at uclinux.org
Subject: [uClinux-dev] 2.4.10 kmalloc has bugs?


Hi all

I use ARM7 no mmu asic, my compiler is 2.95.3.
I feed initrd.img to my kernel by it can run /dev/init?
......
EXT2-fs warning: maximal mount count reached, running e2fsck is
recommended
VFS: Mounted root (ext2 filesystem).
BINFMT_FLAT: Loading file: d17120
##binfmt_flat.c[535]->load_flat_binary()
do_mmap:
Process blocks 1: 00d1f10c: 00000000 -> 0013c800: 0013c780 (65536
@00e00000
#1).
##binfmt_flat.c[538]->load_flat_binary()
textpos =   e00000
##binfmt_flat.c[543]->load_flat_binary()
##binfmt_flat.c[569]->load_flat_binary()
kernel BUG at page_alloc.c:229!
kernel BUG at filemap.c:74!<2> - extra data = 00124780
kernel BUG at swap.c:93!
kernel BUG at page_alloc.c:229!
kernel BUG at filemap.c:74!<2> - extra data = 00124780
kernel BUG at swap.c:93!
kernel BUG at page_alloc.c:229!
kernel BUG at filemap.c:74!<2> - extra data = 00124780
kernel BUG at swap.c:93!
kernel BUG at page_alloc.c:229!
kernel BUG at filemap.c:74!<2> - extra data = 00124780
kernel BUG at page_alloc.c:229!
kernel BUG at filemap.c:74!<2> - extra data = 00124780
kernel BUG at swap.c:93!
kernel BUG at page_alloc.c:229!
kernel BUG at filemap.c:74!<2> - extra data = 00124780
kernel BUG at swap.c:93!
kernel BUG at page_alloc.c:229!
kernel BUG at filemap.c:74!<2> - extra data = 00124780
kernel BUG at swap.c:93!
kernel BUG at page_alloc.c:229!
kernel BUG at filemap.c:74!<2> - extra data = 00124780
kernel BUG at swap.c:93!
kernel BUG at page_alloc.c:229!
kernel BUG at filemap.c:74!<2> - extra data = 00124780
kernel BUG at swap.c:93!
##binfmt_flat.c[572]->load_flat_binary()
##binfmt_flat.c[579]->load_flat_binary()
##binfmt_flat.c[585]->load_flat_binary()
Mapping is e00000, Entry point is 40, data_start is 8200
Load /bin/init: TEXT=e00040-e08240 DATA=e08200-e09b90 BSS=e09b90-e0c6d0
........


Why I put initrd.img at address 0xe00000 and kmalloc() return 0xe00000
to
do_mmap(), which will reture a space of len memory to the relocation
application.

Doese there any body met the same problem?


Any suggestion will be appreciated!!

Regards,

  kovacs
This message resent by the uclinux-dev at uclinux.org list server
http://www.uClinux.org/
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/



More information about the uClinux-dev mailing list