mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* i.MX27 ?
@ 2011-01-26  8:20 Vanalme Filip
  2011-01-27  7:40 ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Vanalme Filip @ 2011-01-26  8:20 UTC (permalink / raw)
  To: barebox


[-- Attachment #1.1.1: Type: text/plain, Size: 1262 bytes --]

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...

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




[-- Attachment #1.1.2: Type: text/html, Size: 7858 bytes --]

[-- Attachment #1.2: image003.png --]
[-- Type: image/png, Size: 2780 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: i.MX27 ?
  2011-01-26  8:20 i.MX27 ? Vanalme Filip
@ 2011-01-27  7:40 ` Sascha Hauer
  2011-01-27 12:04   ` James Robinson
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2011-01-27  7:40 UTC (permalink / raw)
  To: Vanalme Filip; +Cc: barebox

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: i.MX27 ?
  2011-01-27  7:40 ` Sascha Hauer
@ 2011-01-27 12:04   ` James Robinson
  0 siblings, 0 replies; 3+ messages in thread
From: James Robinson @ 2011-01-27 12:04 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox, 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-27 12:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26  8:20 i.MX27 ? Vanalme Filip
2011-01-27  7:40 ` Sascha Hauer
2011-01-27 12:04   ` James Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox