From: Yegor Yefremov <yegorslists@googlemail.com>
To: barebox <barebox@lists.infradead.org>
Subject: am335x: load a kernel with integrated initramfs
Date: Fri, 20 Mar 2020 09:29:04 +0100 [thread overview]
Message-ID: <CAGm1_kssX7T6KHNp7pp2dbfSUXSH4_RtOB3jo+6Ldwi11rB5YA@mail.gmail.com> (raw)
I get an "handler failed with: Out of memory" message when trying to
load my 22MB large kernel-fit.itb. Below you can see the related log:
mounted /dev/nand0.UBI.ubi.kernel on /mnt/nand0.UBI.ubi.kernel
YY: bootm_boot
YY: read file 0, size 22661672, PAGE_SIZE 4096
YY: fit_open
FIT: Opened FIT image: Simple image with single Linux kernel and FDT blob
FIT: configuration 'conf221@1': Boot Linux kernel with FDT blob (221)
FIT: image 'kernel@1': 'Vanilla Linux kernel'
FIT: /images/kernel@1/hash@1: hash OK
Loading open firmware Device Tree flattened Binary
'/mnt/nand0.UBI.ubi.kernel/kernel-fit.itb'
OS image not yet relocated
Passing control to FIT image handler
YY: do_bootm_linux
YY: before bootm_load_os
YY: bootm_load_os
YY: kernel size 22484352
YY: for each memory bank: size 22484352
__request_region: 0x86b37000:0x880a857f conflicts with 0x87efe860:0x8fdfd0bf
YY: almost at the end
handler failed with: Out of memory
System information:
barebox> / meminfo
used: 1057928
free: 132057980
barebox> / iomem
0x00000000 - 0xffffffff (size 0x00000000) iomem
0x44e07000 - 0x44e07fff (size 0x00001000) 44e07000.gpio@0.of
0x44e09000 - 0x44e09fff (size 0x00001000) 44e09000.serial@0.of
0x44e10620 - 0x44e1062f (size 0x00000010) 44e10620.control@620.of
0x44e10648 - 0x44e1064b (size 0x00000004) 44e10620.control@620.of
0x44e10800 - 0x44e10a37 (size 0x00000238) 44e10800.pinmux@800.of
0x47401000 - 0x474011ff (size 0x00000200) 47401400.usb@1400.of
0x47401300 - 0x474013ff (size 0x00000100) 47401300.usb-phy@1300.of
0x47401400 - 0x474017ff (size 0x00000400) 47401400.usb@1400.of
0x47401800 - 0x474019ff (size 0x00000200) 47401c00.usb@1800.of
0x47401b00 - 0x47401bff (size 0x00000100) 47401b00.usb-phy@1b00.of
0x47401c00 - 0x47401fff (size 0x00000400) 47401c00.usb@1800.of
0x47810000 - 0x47810fff (size 0x00001000) 47810000.mmc@0.of
0x4802a000 - 0x4802afff (size 0x00001000) 4802a000.i2c@0.of
0x48040000 - 0x480403ff (size 0x00000400) 48040000.timer@0.of
0x4804c000 - 0x4804cfff (size 0x00001000) 4804c000.gpio@0.of
0x48060000 - 0x48060fff (size 0x00001000) 48060000.mmc@0.of
0x481ac000 - 0x481acfff (size 0x00001000) 481ac000.gpio@0.of
0x481ae000 - 0x481aefff (size 0x00001000) 481ae000.gpio@0.of
0x4a100000 - 0x4a1007ff (size 0x00000800) 4a100000.ethernet@0.of
0x4a101000 - 0x4a1010ff (size 0x00000100) 4a101000.mdio@1000.of
0x50000000 - 0x50000fff (size 0x00001000) gpmc_nand0
0x80000000 - 0x8fffffff (size 0x10000000) ram0
0x87efe860 - 0x8fdfd0bf (size 0x07efe860) malloc space
0x8fdfd0c0 - 0x8fdffffa (size 0x00002f3b) board data
0x8fe00000 - 0x8fe8a6af (size 0x0008a6b0) barebox
0x8fe8a6b0 - 0x8fea3427 (size 0x00018d78) barebox data
0x8fea3428 - 0x8fea97d3 (size 0x000063ac) bss
0x8ffe4000 - 0x8ffe7fff (size 0x00004000) ttb
0x8ffe8000 - 0x8ffeffff (size 0x00008000) stack
My defconfig [1].
What can I tweak? In the future I'll need to load even bigger images.
[1] https://github.com/visionsystemsgmbh/onrisc_br_bsp/blob/master/board/vscom/baltos/barebox/am335x_baltos_defconfig
Yegor
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2020-03-20 8:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-20 8:29 Yegor Yefremov [this message]
2020-03-23 8:30 ` Sascha Hauer
2020-03-23 12:22 ` Yegor Yefremov
2020-03-24 7:35 ` Sascha Hauer
2020-03-24 16:21 ` Yegor Yefremov
2020-03-25 9:58 ` Sascha Hauer
2020-03-25 15:35 ` Yegor Yefremov
2020-03-25 15:36 ` Yegor Yefremov
2020-04-08 17:17 ` Yegor Yefremov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGm1_kssX7T6KHNp7pp2dbfSUXSH4_RtOB3jo+6Ldwi11rB5YA@mail.gmail.com \
--to=yegorslists@googlemail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox