From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VpvKU-0005qU-9M for barebox@lists.infradead.org; Mon, 09 Dec 2013 07:32:35 +0000 Received: by mail-we0-f176.google.com with SMTP id w62so2959123wes.7 for ; Sun, 08 Dec 2013 23:32:11 -0800 (PST) Date: Mon, 9 Dec 2013 08:32:05 +0100 From: Alexander Aring Message-ID: <20131209073204.GA1714@omega> References: <002001cef299$a8f06d10$fad14730$@gmail.com> <1386344776.713139290@f428.i.mail.ru> <002501cef29e$f44aa410$dcdfec30$@gmail.com> <20131209072438.GH24559@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20131209072438.GH24559@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: How much ram is needed to run barebox by default config? To: Sascha Hauer Cc: barebox@lists.infradead.org On Mon, Dec 09, 2013 at 08:24:39AM +0100, Sascha Hauer wrote: > On Sat, Dec 07, 2013 at 12:19:31AM +0800, Kevin Du Huanpeng wrote: > > I am porting barebox to my router, ar9331 MIPS 24kc 400MHz, 32MB RAM, 4MB Flash. > > I don't know what is the proper size to set the stack and malloc. > > 8MiB for malloc space should be fine. > > > - - - > > initcall-> 0x80068168 > > INITCALL-> > > initcall-> 0x80063f0c > > malloc space: 0x80020000 -> 0x8005ffff (size 2147876864.134217718 EiB) > > INITCALL-> > > initcall-> 0x800640d8 > > INITCALL-> > > - - - > > Look at the LINE 4, it's strange. > > This is indeed strange. size_human_readable takes an unsigned long long > argument, but it is passed an unsigned long argument. It looks like you > have garbage in the upper 32bits. I have no idea what happens there, > this should normally work. > ack, this should normally work. Maybe Kevin could change the type of msize to 'unsigned long long' and see what happens... but it should work with unsigned long of course. - Alex _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox