From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ip2.televic.com ([81.82.194.222]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Pi0hE-0007Hu-2u for barebox@lists.infradead.org; Wed, 26 Jan 2011 08:25:45 +0000 From: Vanalme Filip Date: Wed, 26 Jan 2011 09:20:11 +0100 Message-ID: <6EE7D1502C48E44E92DCADF9DD3E0DB9017FEA303C69@SRV-VS06.TELEVIC.COM> Content-Language: en-US MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============2131235003==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: i.MX27 ? To: "barebox@lists.infradead.org" --===============2131235003== Content-Language: en-US Content-Type: multipart/related; boundary="_004_6EE7D1502C48E44E92DCADF9DD3E0DB9017FEA303C69SRVVS06TELE_"; type="multipart/alternative" --_004_6EE7D1502C48E44E92DCADF9DD3E0DB9017FEA303C69SRVVS06TELE_ Content-Type: multipart/alternative; boundary="_000_6EE7D1502C48E44E92DCADF9DD3E0DB9017FEA303C69SRVVS06TELE_" --_000_6EE7D1502C48E44E92DCADF9DD3E0DB9017FEA303C69SRVVS06TELE_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Anyone ported Barebox to Freescale's i.MX27PDK 3-stack ? I'm new to Barebox (or any bootloader...) and I try to port it for my i.MX2= 7PDK, but did not succeed yet. I don't get anything on the console port yet= . I took the i.MX27ADS as a reference, copied all its files to a new board di= rectory, and started adjusting the files. Via the debug board of the i.MX27= PDK (containing a CPLD), I should be able to turn on some debug leds very e= arly in the boot process, but even this did not succeed (yet...). I made ch= anges in board_init_lowlevel() of lowlevel_init.S to initialize the hardwar= e. I guess board_init_lowlevel() is one of the first functions that is exec= uted. Correct ? Because I didn't get it up and running, I tried to do debugging with a PEED= I debugger. Anyone experience with it for debugging Barebox ? I'm using PEE= DI in combination with Eclipse (Zylin) debugger. It looks like I have probl= ems when trying to step in assembler sources... Any help welcome... [cid:image003.png@01CBBD3A.3BC54D10] Filip Vanalme Senior Development Engineer Tel. +32 51 30.30.45 Fax +32 51 33.18.86 www.televic.com Televic NV * Leo Bekaertlaan 1 * 8870 Izegem * Belgium Company number 0402.757.955 * RPR Kortrijk --_000_6EE7D1502C48E44E92DCADF9DD3E0DB9017FEA303C69SRVVS06TELE_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,=

 

Anyone ported Barebox to Freescale’s i.MX27PDK 3-stack = ?

I’m new to Barebox (o= r any bootloader…) and I try to port it for my i.MX27PDK, but did not= succeed yet. I don’t get anything on the console port yet.

I took the i.MX27ADS as a reference, c= opied all its files to a new board directory, and started adjusting the fil= es. Via the debug board of the i.MX27PDK (containing a CPLD), I should be a= ble to turn on some debug leds very early in the boot process, but even thi= s did not succeed (yet…). I made changes in board_init_lowlevel() of = lowlevel_init.S to initialize the hardware. I guess board_init_lowlevel() i= s one of the first functions that is executed. Correct ?<= /p>

Because I didn’t get it up and running, I= tried to do debugging with a PEEDI debugger. Anyone experience with it for= debugging Barebox ? I’m using PEEDI in combination with Eclipse (Zyl= in) debugger. It looks like I have problems when trying to step in assemble= r sources…

 <= /o:p>

Any help welcome…=

 

 

3D"televic

 

Filip Vanalme

Senior Development Engineer

=  

 

Tel. +32 51 30.30.45

Fax +32 51 33.18.86

www.t= elevic.com

 

 

Te= levic NV • Leo Bekaertlaan 1 • 8870 Izegem • Belgium
<= /span>Company number 0402.757.955 • RPR Kortrijk

 

 

= --_000_6EE7D1502C48E44E92DCADF9DD3E0DB9017FEA303C69SRVVS06TELE_-- --_004_6EE7D1502C48E44E92DCADF9DD3E0DB9017FEA303C69SRVVS06TELE_ Content-Type: image/png; name="image003.png" Content-Description: image003.png Content-Disposition: inline; filename="image003.png"; size=2780; creation-date="Wed, 26 Jan 2011 09:20:12 GMT"; modification-date="Wed, 26 Jan 2011 09:20:12 GMT" Content-ID: Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAQUAAABCCAYAAABevMPxAAAAAXNSR0ICQMB9xQAAAAlwSFlzAAAO xAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUATWljcm9zb2Z0IE9mZmljZX/tNXEAAApcSURBVHja 7Z0tcBs7EMcPBgYWFj4YWFgYGBgYWBhY2KLAwIyndQ965oF20oKAgpBO4rzpTKGhoaHhwTztnS45 y1pp9XEXu/cHO51mLOvjdn/aXe3JxcePHwtImPz7uzi8vi8+mPL1rniL9ZHL13lxYltHrM3LChYh Rpl/Fa+v58XjlkChg+T7vCht64i1ARQABUABUAAUAAUIoAAoAAoQQGF/ofDjd/FKPbBbU77eFWdY NEABUBghFKD0gAKgAChA6QEFCARQABQgEEABUIBAfFAgBadKvK4oBT+1KT3FgOZns8m8OAodPCVE dfszW2UcJ6qvc2r341fxzy5A4ce8eFOve8Acarkrjve5ipLW36YL0bCmNVRrErp+VKEKGHSgUC+O TcEHFjrdkAz458/igIxatbnP1Pfy+3/FJRn6kFCoS3znxez6oVhnmENF30XfyfXHGUssGAXzO7Ia 4rx4T8+QPpMj0VhvCLSOzRqkruM96dbYIbFXUKgVe16sehxDSd5Hn1CojeWh+NPbWtJ3q3WyeVVW w1Gf70Ox2Dl21igFCloXlj2t42rMx+97A4UBx7nyhTKxUKAwIZNn4BfLWLSHtfVZl4cRBYS74h23 tq2XkAKFwXRhpDmivYACp8x9gsHlMcRAoW4zFBBaUcZphl6Mp7VhrCni6GMLPjFQGFwXjDUcR6JR uUlm5aIjXl/aKh2ziIrrWXfbEUsb31OKk0z+nMQsJxQ8IcPiaQ4PxTfxHB6KG08sXZm5Ei6JTMaW KZfAGe29+dlQKHh0oQmdQhK1D8WV1ndXSFpJQkocSQ4oDk9mmZoko4SSUooLTiG45GPo+ugTHU7p 3mcwxBMuvrbBlgHUKlX567wF4w3ZQrJQKDi92sQdXT8j60YxtvzCz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qxd/pe69Dl yhPjVrmgQDtlN9OeMv8UKLThiDZcLvdxqUOsKgYKRn9lO36pmKENDAZQCIHCSWi/OtEmCic68Xcy FNrTjCxQ0ElWSfjQHLM+j7X1hFLChxgo+I56XQKDARQkUHgnb98k5dr2ITmGTkJPDAUuJMgJhc78 vVA0IWAz9J6hcKXHfx6QU7gAFACFIKPQGe7Wtb/QLygdmu3a3EHXgKhApz0Odb3YRJ/rHOmJoNB+ vnGBm52xHkdjxFU34Zdj/tRfUxOwncTT4/xm9tOGBTR+rnBI14Bc2AAQCgW93vURKI1Vr/mB9Vnp PIdZRAWDARS8RtHZVdaCpNXSzL7rOgVv27ZOQAqF2gAsCbz2pKFrvJnmX3nmUOdNNmsc6qKnhWDd Fm0hVgoU9FiPhc9qYfMoYDAQeX5AKXu3ZNYUV8wtaHsYPS61A4eW8kbO/zB+/s+l3Vvtehhvylih 7BAIBFCAQCCAAgQCARQgEAigAIFAkuV/45GKAp8KlvkAAAAASUVORK5CYII= --_004_6EE7D1502C48E44E92DCADF9DD3E0DB9017FEA303C69SRVVS06TELE_-- --===============2131235003== 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 --===============2131235003==-- 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 1PiMSw-0007KJ-6V for barebox@lists.infradead.org; Thu, 27 Jan 2011 07:40:27 +0000 Date: Thu, 27 Jan 2011 08:40:23 +0100 From: Sascha Hauer Message-ID: <20110127074023.GS9041@pengutronix.de> References: <6EE7D1502C48E44E92DCADF9DD3E0DB9017FEA303C69@SRV-VS06.TELEVIC.COM> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <6EE7D1502C48E44E92DCADF9DD3E0DB9017FEA303C69@SRV-VS06.TELEVIC.COM> 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: i.MX27 ? To: Vanalme Filip Cc: "barebox@lists.infradead.org" Hi, On Wed, Jan 26, 2011 at 09:20:11AM +0100, Vanalme Filip wrote: > Hi, > > Anyone ported Barebox to Freescale's i.MX27PDK 3-stack ? I'm new to > Barebox (or any bootloader...) and I try to port it for my i.MX27PDK, > but did not succeed yet. I don't get anything on the console port yet. > I took the i.MX27ADS as a reference, copied all its files to a new > board directory, and started adjusting the files. Via the debug board > of the i.MX27PDK (containing a CPLD), I should be able to turn on some > debug leds very early in the boot process, but even this did not > succeed (yet...). I made changes in board_init_lowlevel() of > lowlevel_init.S to initialize the hardware. I guess > board_init_lowlevel() is one of the first functions that is executed. > Correct ? Because I didn't get it up and running, I tried to do > debugging with a PEEDI debugger. Anyone experience with it for > debugging Barebox ? I'm using PEEDI in combination with Eclipse > (Zylin) debugger. It looks like I have problems when trying to step in > assembler sources... As a first step I would try to use barebox as a second stage loader behind U-Boot or redboot or whatever is on your board. What do you have on your board? When using barebox as a second stage loader you can comment out everything in board_init_lowlevel. Provided that you are using the correct UART you should see something at this stage. What silicon revision do you have on your board? Our i.MX27ads is rev 1 which has some incompatibilities to other revs, so maybe this is where it breaks. Also, make sure that the SDRAM setup fits for your board. For the lowlevel setup you might want to look at Freescale provided sources. Hope that helps 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 vms173013pub.verizon.net ([206.46.173.13]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PiQbB-0000d9-AL for barebox@lists.infradead.org; Thu, 27 Jan 2011 12:05:14 +0000 Received: from [192.168.1.8] ([unknown] [74.106.17.249]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LFO00EVKK7WW340@vms173013.mailsrvcs.net> for barebox@lists.infradead.org; Thu, 27 Jan 2011 06:04:45 -0600 (CST) Message-id: <4D415F49.2040705@verizon.net> Date: Thu, 27 Jan 2011 07:04:25 -0500 From: James Robinson MIME-version: 1.0 References: <6EE7D1502C48E44E92DCADF9DD3E0DB9017FEA303C69@SRV-VS06.TELEVIC.COM> <20110127074023.GS9041@pengutronix.de> In-reply-to: <20110127074023.GS9041@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: i.MX27 ? To: Sascha Hauer Cc: "barebox@lists.infradead.org" , Vanalme Filip On 01/27/2011 02:40 AM, Sascha Hauer wrote: > Hi, > > On Wed, Jan 26, 2011 at 09:20:11AM +0100, Vanalme Filip wrote: >> Hi, >> >> Anyone ported Barebox to Freescale's i.MX27PDK 3-stack ? I'm new to >> Barebox (or any bootloader...) and I try to port it for my i.MX27PDK, >> but did not succeed yet. I don't get anything on the console port yet. >> I took the i.MX27ADS as a reference, copied all its files to a new >> board directory, and started adjusting the files. Via the debug board >> of the i.MX27PDK (containing a CPLD), I should be able to turn on some >> debug leds very early in the boot process, but even this did not >> succeed (yet...). I made changes in board_init_lowlevel() of >> lowlevel_init.S to initialize the hardware. I guess >> board_init_lowlevel() is one of the first functions that is executed. >> Correct ? Because I didn't get it up and running, I tried to do >> debugging with a PEEDI debugger. Anyone experience with it for >> debugging Barebox ? I'm using PEEDI in combination with Eclipse >> (Zylin) debugger. It looks like I have problems when trying to step in >> assembler sources... > As a first step I would try to use barebox as a second stage loader > behind U-Boot or redboot or whatever is on your board. What do you have > on your board? > When using barebox as a second stage loader you can comment out > everything in board_init_lowlevel. Provided that you are using the > correct UART you should see something at this stage. > What silicon revision do you have on your board? Our i.MX27ads is rev > 1 which has some incompatibilities to other revs, so maybe this is > where it breaks. Also, make sure that the SDRAM setup fits for your > board. For the lowlevel setup you might want to look at Freescale > provided sources. > > Hope that helps > Sascha > > I ported Barebox to our MX27 based design a while ago. Our design was based on the IP-Cam, and I was able to get the I2C,Ethernet, and the HS USB port running. I found the hardest part was getting the PLL config work right. I finally just commented it out and let the defaults take over. There are some nice ports already and I would suggest looking at the systems part of Barebox already. Also start simple, disable everything! Even tho the board has all the hardware, don't include it in the beginning. I disabled USB,Ethernet,Display,I2C, and it helped a-lot. After serial, I would add Ethernet if you are using it. I was simple as turning it on. You will need to configure your MAC address. ;-) As for debugging, I use a cheep olimex arm-usb-ocd (didn't have access to the JTAG debuggers at work). Remember you have to setup your ram before sending code to the board. As for a debugger, used gnu tools and for the IDE I used insight. I run under Ubuntu and compiled the tools from source. (bintools,gcc,gdb, insight) Hope it helped. James _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox