From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-gw0-f49.google.com ([74.125.83.49]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O1xpF-0001fR-Hf for barebox@lists.infradead.org; Wed, 14 Apr 2010 08:19:59 +0000 Received: by gwb17 with SMTP id 17so3749136gwb.36 for ; Wed, 14 Apr 2010 01:19:55 -0700 (PDT) From: "Marc Reilly" Date: Wed, 14 Apr 2010 18:19:49 +1000 Message-ID: <001301cadbab$43091640$c91b42c0$@cpdesign.com.au> MIME-Version: 1.0 Content-Language: en-au Reply-To: marc@cpdesign.com.au List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0816738657==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: booting uImage for mx35 3stack To: barebox@lists.infradead.org This is a multipart message in MIME format. --===============0816738657== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0014_01CADBFF.14BC2B20" Content-Language: en-au This is a multipart message in MIME format. ------=_NextPart_000_0014_01CADBFF.14BC2B20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi All, I'm not having much luck booting a kernel on the mx35 3stack! Nothing happens after "done, booting the kernel" (boot snippet at end of email) Barebox and the kernel are in the NOR flash. I've successfully booted the exact uImage using u-boot v1, so I'm fairly confident it's OK. Any suggestions of what could be wrong? The machine arch # is correct. The tagged list looks correct (gdb mem dump just before calling theKernel()). Guessing something is not being inited as required. Or I've done something silly. I assume other people have booted successfully on this board. (Any known working kernel images would be great to test against!) Hints greatly appreciated. Cheers, Marc ---boot log, as far as it gets: barebox:/ boot Verifying Checksum ... OK Image Name: Angstrom/2.6.31/mx35pdk Created: 2010-04-14 0:24:42 UTC Data Size: 2216628 Bytes = 2.1 MB Load Address: 80008000 Entry Point: 80008000 OK commandline: console=ttymxc0,115200 video=mx3fb:CTP-CLAA070LC0ACW ip=:::::: root =/dev/mtdblock7 rootfstype=jffs2 mtdparts=\"physmap-flash.0:256k(barebox)ro,512k (bareboxenv),3M(kernel),-(root);mxc_nand:256k(barebox)ro,512k(bareboxenv),2M (ker nel),-(root)\" arch_number: 1645 Starting kernel ... Uncompressing Linux............................................................. ............................................................................ .... ..... done, booting the kernel. ------=_NextPart_000_0014_01CADBFF.14BC2B20 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi = All,

 

I’m not having much luck booting a kernel on the = mx35 3stack!

Nothing happens after = “done, booting the kernel” (boot snippet at end of = email)

Barebox and the kernel are in = the NOR flash.

 

I’ve = successfully booted the exact uImage using u-boot v1, so I’m = fairly confident it’s OK.

 

Any = suggestions of what could be wrong?

The machine arch # is correct. The tagged list looks = correct (gdb mem dump just before calling theKernel()).

 

Guessing = something is not being inited as required. Or I’ve done something = silly.

 

I assume other people have booted successfully on = this board. (Any known working kernel images would be great to test = against!)

 

Hints greatly appreciated.

 

Cheers,

Marc

 

---boot log, = as far as it gets:

 

barebox:/ = boot           &nb= sp;           &nbs= p;            = ;            =             &= nbsp;    

   Verifying Checksum ... = OK            = ;            =             &= nbsp;           &n= bsp;  

   Image Name:   = Angstrom/2.6.31/mx35pdk        &n= bsp;           &nb= sp;           &nbs= p;      

   Created:     = ; 2010-04-14   0:24:42 = UTC           &nbs= p;            = ;            =   

   Data = Size:    2216628 Bytes =3D  2.1 = MB            = ;            =             &= nbsp;  

   Load Address: = 80008000           = ;            =             &= nbsp;           &n= bsp;      

   Entry Point:  = 80008000           = ;            =             &= nbsp;           &n= bsp;      

OK         = ;            =             &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;       

commandline: console=3Dttymxc0,115200 = video=3Dmx3fb:CTP-CLAA070LC0ACW ip=3D:::::: root

=3D/dev/mtdblock7 rootfstype=3Djffs2 = mtdparts=3D\"physmap-flash.0:256k(barebox)ro,512k

(bareboxenv),3M(kernel),-(root);mxc_nand:256k(barebox)r= o,512k(bareboxenv),2M(ker

nel),-(root)\"      =             &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;           =

arch_number: = 1645           &nb= sp;          =             &= nbsp;           &n= bsp;           &nb= sp;    

         &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =           

Starting kernel = ...           &nbs= p;            = ;            =             &= nbsp;            =

         &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =           

Uncompressing = Linux.............................................................

.......................................................= .........................

..... done, = booting the kernel.   

------=_NextPart_000_0014_01CADBFF.14BC2B20-- --===============0816738657== 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 --===============0816738657==-- 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 bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1O1y5u-00055z-HL for barebox@lists.infradead.org; Wed, 14 Apr 2010 08:37:11 +0000 Date: Wed, 14 Apr 2010 10:37:07 +0200 From: Sascha Hauer Message-ID: <20100414083707.GJ7882@pengutronix.de> References: <001301cadbab$43091640$c91b42c0$@cpdesign.com.au> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <001301cadbab$43091640$c91b42c0$@cpdesign.com.au> 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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: booting uImage for mx35 3stack To: Marc Reilly Cc: barebox@lists.infradead.org Hi Marc, On Wed, Apr 14, 2010 at 06:19:49PM +1000, Marc Reilly wrote: > Hi All, > > > > I'm not having much luck booting a kernel on the mx35 3stack! > > Nothing happens after "done, booting the kernel" (boot snippet at end of > email) Newer kernels have earlyprintk support that could be of help here. Please apply commit-id 93fd03a8c6728b58879f8af20ffd55d9c32a778b to your kernel and add 'earlyprintk' to your kernel command line. Do you have MMU enabled? If yes you could try disabling it 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-gy0-f177.google.com ([209.85.160.177]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O2GJW-00049L-Sf for barebox@lists.infradead.org; Thu, 15 Apr 2010 04:04:28 +0000 Received: by gyb11 with SMTP id 11so524402gyb.36 for ; Wed, 14 Apr 2010 21:04:24 -0700 (PDT) From: "Marc Reilly" References: <001301cadbab$43091640$c91b42c0$@cpdesign.com.au> <20100414083707.GJ7882@pengutronix.de> In-Reply-To: <20100414083707.GJ7882@pengutronix.de> Date: Thu, 15 Apr 2010 14:04:16 +1000 Message-ID: <003401cadc50$ba662070$2f326150$@cpdesign.com.au> MIME-Version: 1.0 Content-Language: en-au Reply-To: marc@cpdesign.com.au 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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: RE: booting uImage for mx35 3stack To: 'Sascha Hauer' Cc: barebox@lists.infradead.org Hi Sascha, Thanks for all your help, and speedy responses. > > Nothing happens after "done, booting the kernel" (boot snippet at end > > of > > email) > > Newer kernels have earlyprintk support that could be of help here. > Please apply commit-id 93fd03a8c6728b58879f8af20ffd55d9c32a778b to your > kernel and add 'earlyprintk' to your kernel command line. Great tip. It shows the kernel is starting ok and getting stuck just after irqs are enabled. I'm still a bit baffled as to why this only happens with barebox. Uncompressing Linux....................................................................... ...... ........................................................................ done, booting the kerne l. [ 0.000000] Linux version 2.6.31-00443-g587ea71-dirty (marc@susedev1) (gcc version 4.3.3 (GCC ) ) #5 PREEMPT Thu Apr 15 13:45:48 EST 2010 [ 0.000000] CPU: ARMv6-compatible processor [4117b363] revision 3 (ARMv6TEJ), cr=00c5387f [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache [ 0.000000] Machine: Freescale MX35 3-Stack Board [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: earlyprintk=serial,ttymxc0,115200 [ 0.000000] console [earlycon0] enabled [ 0.000000] PID hash table entries: 512 (order: 9, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 128MB = 128MB total [ 0.000000] Memory: 124804KB available (4240K code, 490K data, 128K init, 0K highmem) [ 0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:256 [ 0.000000] irq.c: MXC IRQ initialized Then nothing... I'm thinking maybe some pin/input is initialized wrong and causing infinite interrupts. .. but I think I'm clutching at straws. Again, any more hints greatly appreciated! > Do you have MMU enabled? If yes you could try disabling it No MMU enabled Cheers, Marc _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox 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 bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1O2K5B-0000Qd-Ns for barebox@lists.infradead.org; Thu, 15 Apr 2010 08:05:55 +0000 Date: Thu, 15 Apr 2010 10:05:46 +0200 From: 'Sascha Hauer' Message-ID: <20100415080546.GN7882@pengutronix.de> References: <001301cadbab$43091640$c91b42c0$@cpdesign.com.au> <20100414083707.GJ7882@pengutronix.de> <003401cadc50$ba662070$2f326150$@cpdesign.com.au> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <003401cadc50$ba662070$2f326150$@cpdesign.com.au> 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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: booting uImage for mx35 3stack To: Marc Reilly Cc: barebox@lists.infradead.org On Thu, Apr 15, 2010 at 02:04:16PM +1000, Marc Reilly wrote: > Hi Sascha, > > Thanks for all your help, and speedy responses. > > > > Nothing happens after "done, booting the kernel" (boot snippet at end > > > of > > > email) > > > > Newer kernels have earlyprintk support that could be of help here. > > Please apply commit-id 93fd03a8c6728b58879f8af20ffd55d9c32a778b to your > > kernel and add 'earlyprintk' to your kernel command line. > > Great tip. It shows the kernel is starting ok and getting stuck just after > irqs are enabled. > I'm still a bit baffled as to why this only happens with barebox. Sounds somewhat familiar. I have just tested 2.6.31 and 2.6.34-rc-something on my board, both working fine. Maybe this has something to do with the clocks. You could check the register values of the CCM module in barebox and U-Boot (md 0x53f80000+0x80). Also note this mail: http://lists.infradead.org/pipermail/linux-arm-kernel/2010-April/012691.html I suspect a bug in the kernel there which is still present. 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