mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* malloc Out of memory after ubiattach operation
@ 2012-10-15 14:27 Madhu koriginja
  2012-10-15 14:33 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Madhu koriginja @ 2012-10-15 14:27 UTC (permalink / raw)
  To: barebox


[-- Attachment #1.1: Type: text/plain, Size: 1576 bytes --]

After barebox up, I erased the /dev/nand0.rootfs.bb using erase command.
kernel is already present in the /dev/nand0.kernel.
After ubiattach command, if I try the boot I am getting the below error.
Actually my aim is to boot the kernel and it should mount to ubifs, to
simplify the problem and reproduce the same I am just trying the boot after
ubiattach instead of preparing the ubi0 device.
Barebox >/ubiattach /dev/nand0.rootfs
UBI: attaching mtd0 to ubi0
UBI: physical eraseblock size:   1048576 bytes (1024 KiB)
UBI: logical eraseblock size:    1044480 bytes
UBI: smallest flash I/O unit:    4096
UBI: sub-page size:              1024
UBI: VID header offset:          1024 (aligned 1024)
UBI: data offset:                4096
UBI: empty MTD device detected
UBI: create volume table (copy #1)
UBI: create volume table (copy #2)
registering /dev/ubi0
UBI: attached mtd0 to ubi0
UBI: MTD device name:            "nand0.rootfs"
UBI: MTD device size:            16 MiB
UBI: number of good PEBs:        16
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     0
UBI: available PEBs:             10
UBI: total number of reserved PEBs: 6
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 1/0

Barebox >/ boot
booting kernel of type uimage from /dev/nand0.kernel.bb
bootm /dev/nand0.kernel.bb
requesting xmalloc size: 2456544
ERROR: out of memory

Please somebody suggest me some pointer to solve this issue.

Thanks,
Madhu

[-- Attachment #1.2: Type: text/html, Size: 2150 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: malloc Out of memory after ubiattach operation
  2012-10-15 14:27 malloc Out of memory after ubiattach operation Madhu koriginja
@ 2012-10-15 14:33 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2012-10-15 14:33 UTC (permalink / raw)
  To: Madhu koriginja; +Cc: barebox

Hi,

On Mon, Oct 15, 2012 at 07:57:09PM +0530, Madhu koriginja wrote:
> After barebox up, I erased the /dev/nand0.rootfs.bb using erase command.
> kernel is already present in the /dev/nand0.kernel.
> After ubiattach command, if I try the boot I am getting the below error.
> Actually my aim is to boot the kernel and it should mount to ubifs, to
> simplify the problem and reproduce the same I am just trying the boot after
> ubiattach instead of preparing the ubi0 device.
> Barebox >/ubiattach /dev/nand0.rootfs
> UBI: attaching mtd0 to ubi0
> UBI: physical eraseblock size:   1048576 bytes (1024 KiB)
> UBI: logical eraseblock size:    1044480 bytes
> UBI: smallest flash I/O unit:    4096
> UBI: sub-page size:              1024
> UBI: VID header offset:          1024 (aligned 1024)
> UBI: data offset:                4096
> UBI: empty MTD device detected
> UBI: create volume table (copy #1)
> UBI: create volume table (copy #2)
> registering /dev/ubi0
> UBI: attached mtd0 to ubi0
> UBI: MTD device name:            "nand0.rootfs"
> UBI: MTD device size:            16 MiB
> UBI: number of good PEBs:        16
> UBI: number of bad PEBs:         0
> UBI: max. allowed volumes:       128
> UBI: wear-leveling threshold:    4096
> UBI: number of internal volumes: 1
> UBI: number of user volumes:     0
> UBI: available PEBs:             10
> UBI: total number of reserved PEBs: 6
> UBI: number of PEBs reserved for bad PEB handling: 2
> UBI: max/mean erase counter: 1/0
> 
> Barebox >/ boot
> booting kernel of type uimage from /dev/nand0.kernel.bb
> bootm /dev/nand0.kernel.bb
> requesting xmalloc size: 2456544
> ERROR: out of memory

Try a make menuconfig and increase CONFIG_MALLOC_SIZE to whatever you
can spare.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-10-15 14:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-15 14:27 malloc Out of memory after ubiattach operation Madhu koriginja
2012-10-15 14:33 ` Sascha Hauer

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