From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PBl0R-0001FL-P0 for barebox@lists.infradead.org; Fri, 29 Oct 2010 09:12:16 +0000 Message-ID: <4CCA8FE0.3080006@pengutronix.de> Date: Fri, 29 Oct 2010 11:12:00 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 References: <201010291904.16717.marc@cpdesign.com.au> <20101029083451.GB21232@tarshish> <4CCA8ADF.2020209@pengutronix.de> In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0303292373==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: command bootu to start kernel To: Belisko Marek Cc: barebox@lists.infradead.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============0303292373== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4C61552C3471A816AA398EC0" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4C61552C3471A816AA398EC0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10/29/2010 11:04 AM, Belisko Marek wrote: > On Fri, Oct 29, 2010 at 10:50 AM, Marc Kleine-Budde wrote: >> On 10/29/2010 10:45 AM, Belisko Marek wrote: >>> HI Baruch, >>> >>> On Fri, Oct 29, 2010 at 10:34 AM, Baruch Siach wr= ote: >>>> Hi Belisko, >>>> >>>> On Fri, Oct 29, 2010 at 10:20:46AM +0200, Belisko Marek wrote: >>>>> I have 2.6.32 kernel but early_printk isn't available and I enable >>>>> lowlevel debugging but >>>>> don't get nothing else on console. Anyway thanks. >>>> >>>> Try this patch to see the low level console output: >>>> >>>> commit 5c31454464ed655401c31c68c895b16eafd2bde5 >>>> Author: Baruch Siach >>>> Date: Mon Jan 19 10:41:47 2009 +0200 >>>> >>>> arm, printk: the famous printascii() hack >>>> >>>> diff --git a/kernel/printk.c b/kernel/printk.c >>>> index 5052b54..d685f8a 100644 >>>> --- a/kernel/printk.c >>>> +++ b/kernel/printk.c >>>> @@ -685,6 +685,10 @@ asmlinkage int vprintk(const char *fmt, va_list= args) >>>> /* Emit the output into the temporary buffer */ >>>> printed_len +=3D vscnprintf(printk_buf + printed_len, >>>> sizeof(printk_buf) - printed_len, f= mt, args); >>>> + { >>>> + extern void printascii(const char *); >>>> + printascii(printk_buf); >>>> + } >>>> >>>> >>>> /* >>>> >>>> -- >>>> ~. .~ Tk Open = Systems >>>> =3D}------------------------------------------------ooO--U--Ooo-----= -------{=3D >>>> - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il = - >>>> >>> Patch works like charm. Output from my kernel startup: >>> >>> <5>Linux version 2.6.32-rc8 (open-nandra@linux) (gcc version 4.3.5 >>> (Buildroot 2010.08-rc1) ) #14 Fri Oct 29 10:40:20 CEST 2010 >>> CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=3Dc0007177 >>> CPU: VIVT data cache, VIVT instruction cache >>> Machine: MINI2440 >>> Memory policy: ECC disabled, Data cache writeback >>> <7>On node 0 totalpages: 0 >>> <1>bootmem alloc of 32768 bytes failed! >>> <0>Kernel panic - not syncing: Out of memory >> >> do you have a "MEM=3D32" on your command line? > Well I add it but same result: BTW: It must be "mem=3D", in lowercase, but you did this. What I was meant to ask was, if you forget to add the "M" to "32". Because with mem=3D32 you tell Linux just to use 32 bytes of memory. Mayb= e your ATAGs are broken, Linux might not see the whole RAM or any if it. Cheers, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --------------enig4C61552C3471A816AA398EC0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzKj+UACgkQjTAFq1RaXHMEGQCfZXwatKy05A0C1+b/4VWlr8Nw gRYAn3nZdQ5I3+PowIn6LSWttjhkPSA2 =yXHT -----END PGP SIGNATURE----- --------------enig4C61552C3471A816AA398EC0-- --===============0303292373== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============0303292373==--