[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Petalinux: slab.c error
Lancer Evo wrote:
> I'm always trying to build petalinux for my spartan 3 sb ( 1 MB of
> ram, no flash).
> http://img228.imageshack.us/my.php?image=errorehi6.png
> The image.bin I've obtained is 785K, I've created a ramdisk of 64K (it
> says 72K free...), but it return this error:
> "kernel BUG at slab.c:1021!"
>
> But is ...../uClinux-2.4.x/mmnommu/slab.c or ...../uClinux-2.4.x/mm/slab.c?
It's the nommu version.
> And why this error?
Just a guess - you are still short of memory. check the referred line
in slab.c and see what condition causes the BUG() call.
You really need to get your kernel code into flash, and execute it from
there, if you want to get much further with this.
I'll try to write up some doco on running kernels from flash - it may
not be this week as it's already looking pretty hectic.
Basically select the "rom" memory model from the menucnfig->kernel
settings -> processor options. Enter the address and size of your flash
memory.
Then somehow get the resulting image.bin into the flash memory at that
location - you can use u-boot for this.
We may need to tweak u-boot a bit to let it boot a kernel directly from
flash.
Regards,
John
___________________________
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/