* [U-Boot] u-boot-imx on Freescale MX28EVK
@ 2012-01-11 14:41 Matthias Fuchs
2012-01-11 15:12 ` Fabio Estevam
0 siblings, 1 reply; 11+ messages in thread
From: Matthias Fuchs @ 2012-01-11 14:41 UTC (permalink / raw)
To: u-boot
Hi Fabio,
can you confirm that the current u-boot-imx tree runs fine
on the MX28EVK? I tried it but the debug console stays dead.
This is what I did:
1) make mx28evk
2) make u-boot.sb
3) ./tools/mxsboot sd u-boot.sb u-boot-sd.sb
4) prepare an SD card as described in doc/README.m28 (only one partition
of type 53)
5) dd u-boot-sd.sb to above partition
6) install SD and press power button
BTW: Did you ever try Freescales sd_loader to download u-boot
into RAM?
FYI: There also seems to be a Linux version of the USB loader
(http://svn.rockbox.org/viewvc.cgi/trunk/utils/imxtools/).
Best regards,
Matthias
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] u-boot-imx on Freescale MX28EVK
2012-01-11 14:41 [U-Boot] u-boot-imx on Freescale MX28EVK Matthias Fuchs
@ 2012-01-11 15:12 ` Fabio Estevam
2012-01-11 17:55 ` Wolfgang Denk
2012-01-12 10:07 ` Matthias Fuchs
0 siblings, 2 replies; 11+ messages in thread
From: Fabio Estevam @ 2012-01-11 15:12 UTC (permalink / raw)
To: u-boot
Hi Matthias,
On Wed, Jan 11, 2012 at 12:41 PM, Matthias Fuchs <matthias.fuchs@esd.eu> wrote:
> Hi Fabio,
>
> can you confirm that the current u-boot-imx tree runs fine
> on the MX28EVK? I tried it but the debug console stays dead.
Yes, it works fine.
> This is what I did:
>
> 1) make mx28evk
I think you meant "mx28evk_config"
> 2) make u-boot.sb
> 3) ./tools/mxsboot sd u-boot.sb u-boot-sd.sb
> 4) prepare an SD card as described in doc/README.m28 (only one partition
> of type 53)
> 5) dd u-boot-sd.sb to above partition
> 6) install SD and press power button
On my board I don't have to press the power button in order to get the
console output.
Please check your MX28EVK settings:
- Boot Mode Select: 1 0 0 1
- JTAG PSWITCH RESET: To the left (reset enabled)
- Battery Source: Down
- Wall 5V: Up
- VDD 5V: To the left (off)
- Hold Button: Down (off)
Also, I have only tested this on a MX28EVK rev.D board.
>
> BTW: Did you ever try Freescales sd_loader to download u-boot
> into RAM?
>
> FYI: There also seems to be a Linux version of the USB loader
> (http://svn.rockbox.org/viewvc.cgi/trunk/utils/imxtools/).
I haven't tried this yet.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] u-boot-imx on Freescale MX28EVK
2012-01-11 15:12 ` Fabio Estevam
@ 2012-01-11 17:55 ` Wolfgang Denk
2012-01-11 18:24 ` Fabio Estevam
2012-01-12 10:07 ` Matthias Fuchs
1 sibling, 1 reply; 11+ messages in thread
From: Wolfgang Denk @ 2012-01-11 17:55 UTC (permalink / raw)
To: u-boot
Dear Fabio,
In message <CAOMZO5C-dUk93S_zptECLKWH=Csod3ETGvcX5TxO5dhUSkU8yA@mail.gmail.com> you wrote:
>
> On my board I don't have to press the power button in order to get the
> console output.
...
> Also, I have only tested this on a MX28EVK rev.D board.
Our Rev. A board also starts only after pressing the power button.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Four thousand throats may be cut in one night by a running man.
-- Klingon Soldier, "Day of the Dove", stardate unknown
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] u-boot-imx on Freescale MX28EVK
2012-01-11 15:12 ` Fabio Estevam
2012-01-11 17:55 ` Wolfgang Denk
@ 2012-01-12 10:07 ` Matthias Fuchs
2012-01-12 10:15 ` Fabio Estevam
2012-01-12 21:52 ` Robert Deliën
1 sibling, 2 replies; 11+ messages in thread
From: Matthias Fuchs @ 2012-01-12 10:07 UTC (permalink / raw)
To: u-boot
Hi Fabio,
thanks for your details. Some of the discrete switches where messed up.
Boot Mode was fine. So now it's working fine.
Even the power button is not needed ;-)
I still have to investigate a little to get USB recovery working. This
does not work out of the box as with Freescale'S initial 2009.08 u-boot
for this CPU.
Matthias
On 11.01.2012 16:12, Fabio Estevam wrote:
> Hi Matthias,
>
> On Wed, Jan 11, 2012 at 12:41 PM, Matthias Fuchs <matthias.fuchs@esd.eu> wrote:
>> Hi Fabio,
>>
>> can you confirm that the current u-boot-imx tree runs fine
>> on the MX28EVK? I tried it but the debug console stays dead.
>
> Yes, it works fine.
>
>> This is what I did:
>>
>> 1) make mx28evk
>
> I think you meant "mx28evk_config"
>
>> 2) make u-boot.sb
>> 3) ./tools/mxsboot sd u-boot.sb u-boot-sd.sb
>> 4) prepare an SD card as described in doc/README.m28 (only one partition
>> of type 53)
>> 5) dd u-boot-sd.sb to above partition
>> 6) install SD and press power button
>
> On my board I don't have to press the power button in order to get the
> console output.
>
> Please check your MX28EVK settings:
>
> - Boot Mode Select: 1 0 0 1
>
> - JTAG PSWITCH RESET: To the left (reset enabled)
>
> - Battery Source: Down
>
> - Wall 5V: Up
>
> - VDD 5V: To the left (off)
>
> - Hold Button: Down (off)
>
> Also, I have only tested this on a MX28EVK rev.D board.
>
>>
>> BTW: Did you ever try Freescales sd_loader to download u-boot
>> into RAM?
>>
>> FYI: There also seems to be a Linux version of the USB loader
>> (http://svn.rockbox.org/viewvc.cgi/trunk/utils/imxtools/).
>
> I haven't tried this yet.
>
> Regards,
>
> Fabio Estevam
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] u-boot-imx on Freescale MX28EVK
2012-01-12 10:07 ` Matthias Fuchs
@ 2012-01-12 10:15 ` Fabio Estevam
2012-01-12 13:39 ` Matthias Fuchs
2012-01-12 21:52 ` Robert Deliën
1 sibling, 1 reply; 11+ messages in thread
From: Fabio Estevam @ 2012-01-12 10:15 UTC (permalink / raw)
To: u-boot
Hi Matthias,
On Thu, Jan 12, 2012 at 8:07 AM, Matthias Fuchs <matthias.fuchs@esd.eu> wrote:
> Hi Fabio,
>
> thanks for your details. Some of the discrete switches where messed up.
> Boot Mode was fine. So now it's working fine.
>
> Even the power button is not needed ;-)
I am glad to know it is working now.
I will create a README file with these jumper settings.
Also, can you please let me know what is your board version? Is it
also mx28evk revD?
> I still have to investigate a little to get USB recovery working. This
> does not work out of the box as with Freescale'S initial 2009.08 u-boot
> for this CPU.
Ok, good. m28evk has USB support as far as I know, so maybe you can
look at it for reference.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] u-boot-imx on Freescale MX28EVK
2012-01-12 10:15 ` Fabio Estevam
@ 2012-01-12 13:39 ` Matthias Fuchs
0 siblings, 0 replies; 11+ messages in thread
From: Matthias Fuchs @ 2012-01-12 13:39 UTC (permalink / raw)
To: u-boot
On 12.01.2012 11:15, Fabio Estevam wrote:
> Hi Matthias,
>
> On Thu, Jan 12, 2012 at 8:07 AM, Matthias Fuchs <matthias.fuchs@esd.eu> wrote:
>> Hi Fabio,
>>
>> thanks for your details. Some of the discrete switches where messed up.
>> Boot Mode was fine. So now it's working fine.
>>
>> Even the power button is not needed ;-)
>
> I am glad to know it is working now.
>
> I will create a README file with these jumper settings.
>
> Also, can you please let me know what is your board version? Is it
> also mx28evk revD?
Yes, revD.
>
>> I still have to investigate a little to get USB recovery working. This
>> does not work out of the box as with Freescale'S initial 2009.08 u-boot
>> for this CPU.
>
> Ok, good. m28evk has USB support as far as I know, so maybe you can
> look at it for reference.
You did not really understand what I mean. I am not talking about using
the USBs host/device from u-boot. The i.MX28 is capable to boot via USB.
In this case the SOC's ROM implementes a HID device and you can use
some tools on your PC (see previous posting) to download the code (boot
jumper setting 0-0-0-0. I tried it with Freescale's sb_loader (Wind**s).
This works fine when downloading a u-boot (imx28_ivt_uboot.sb) based on
Freescale's 2009.08 source + imx-bootlets-src-10.12.01. But it does not
work when using sb_loader with u-boot.sb build from the u-boot-imx repo.
I can can imagine that the SPL code somehow breaks the internal download
code.
Matthias
>
> Regards,
>
> Fabio Estevam
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] u-boot-imx on Freescale MX28EVK
2012-01-12 10:07 ` Matthias Fuchs
2012-01-12 10:15 ` Fabio Estevam
@ 2012-01-12 21:52 ` Robert Deliën
2012-01-13 7:16 ` Matthias Fuchs
1 sibling, 1 reply; 11+ messages in thread
From: Robert Deliën @ 2012-01-12 21:52 UTC (permalink / raw)
To: u-boot
Hi Matthias,
I have a fully functional U-Boot for the mx28evk board:
- Both Ethernet ports work
- Both MMC slots work
- NAND works (if configure in, one MMC slot will be configured out, due to shared pins)
- USB works
- I2C works
- Currently working on SPI
It's basically an integration of u-boot-imx and Marek's work on m28evk_config in the
mainline. I'm still working on making a posting-quality patch, but I'll be happy to help
you out with a patch or a tar-ball, so feel free to drop me an email.
Freescale's 2009.08 works too, but their script to get it on an sd-card is broken. I can
get you a replacement for that one as well, but you'd better step up to a more recent
version, because the MMC driver in the FreeScale version has a nasty bug in the
MMC driver. This bug prevents you from loading files from a file system on an SD-Card.
Robert.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] u-boot-imx on Freescale MX28EVK
2012-01-12 21:52 ` Robert Deliën
@ 2012-01-13 7:16 ` Matthias Fuchs
2012-01-13 10:33 ` Robert Deliën
0 siblings, 1 reply; 11+ messages in thread
From: Matthias Fuchs @ 2012-01-13 7:16 UTC (permalink / raw)
To: u-boot
Hi Robert,
I a patch would be welcome. I only need USB and SPI flash for my
application. And USB was easy to setup. Currently I am also jiggling
around the SPI / SPI flash support.
I only mentioned the 2009.08 u-boot for reference in my initial posting.
There was no plan to stay with it - of course :-)
But there is still the difference that I can download 2009.08 +
imx-bootlets via USB (sb_loader). This does not work with the recent
u-boot-imx repo and the generated u-boot.sb target.
Matthias
On 12.01.2012 22:52, Robert Deli?n wrote:
> Hi Matthias,
>
> I have a fully functional U-Boot for the mx28evk board:
> - Both Ethernet ports work
> - Both MMC slots work
> - NAND works (if configure in, one MMC slot will be configured out, due to shared pins)
> - USB works
> - I2C works
> - Currently working on SPI
>
> It's basically an integration of u-boot-imx and Marek's work on m28evk_config in the
> mainline. I'm still working on making a posting-quality patch, but I'll be happy to help
> you out with a patch or a tar-ball, so feel free to drop me an email.
>
> Freescale's 2009.08 works too, but their script to get it on an sd-card is broken. I can
> get you a replacement for that one as well, but you'd better step up to a more recent
> version, because the MMC driver in the FreeScale version has a nasty bug in the
> MMC driver. This bug prevents you from loading files from a file system on an SD-Card.
>
> Robert.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
--
------------------------------------------------------------------------
Dipl.-Ing. Matthias Fuchs
Head of System Design
esd electronic system design gmbh
Vahrenwalder Str. 207 - 30165 Hannover - GERMANY
Phone: +49-511-37298-0 - Fax: +49-511-37298-68
Please visit our homepage http://www.esd.eu
Quality Products - Made in Germany
Besuchen Sie uns auf der embedded world 2012
in Halle 4, Stand 129
vom 28. Februar - 01. M?rz 2012 in N?rnberg!
------------------------------------------------------------------------
Gesch?ftsf?hrer: Klaus Detering
Amtsgericht Hannover HRB 51373 - VAT-ID DE 115672832
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] u-boot-imx on Freescale MX28EVK
2012-01-13 7:16 ` Matthias Fuchs
@ 2012-01-13 10:33 ` Robert Deliën
2012-01-13 12:19 ` Matthias Fuchs
0 siblings, 1 reply; 11+ messages in thread
From: Robert Deliën @ 2012-01-13 10:33 UTC (permalink / raw)
To: u-boot
Hi Matthias,
> I a patch would be welcome. I only need USB and SPI flash for my
> application. And USB was easy to setup. Currently I am also jiggling
> around the SPI / SPI flash support.
For USB, all you need to do is to configure it in and to copy Marek's clock
setup in board_early_init_f for m28evk_config into your own config. Make
sure you change SSP2 into SSP1, because the m28evk module uses a
different SSP2 for it's second MMC controller, whereas the FreeScale
mx28evk board uses SSP1.
To store your environment in MMC, you still need to patch
board/freescale/common/sdhc_boot.c to make sure it's stored at the correct
offset. You can find this patch on this mailing list. Without it, saving your
environment will overwrite the MBR/ptable and you board won't boot next time.
> But there is still the difference that I can download 2009.08 +
> imx-bootlets via USB (sb_loader). This does not work with the recent
> u-boot-imx repo and the generated u-boot.sb target.
I don't know why that doesn't work, but I don't have any experience there.
Early this year I rewrote the broken FreeScale scripts to create boot streams,
so I know a little about the way it works, but I no longer use those since the
U-Boot tools do such a good job. You can have the scripts though.
Cheers,
Robert.
^ permalink raw reply [flat|nested] 11+ messages in thread* [U-Boot] u-boot-imx on Freescale MX28EVK
2012-01-13 10:33 ` Robert Deliën
@ 2012-01-13 12:19 ` Matthias Fuchs
0 siblings, 0 replies; 11+ messages in thread
From: Matthias Fuchs @ 2012-01-13 12:19 UTC (permalink / raw)
To: u-boot
Robert,
On 13.01.2012 11:33, Robert Deli?n wrote:
> Hi Matthias,
>
>> I a patch would be welcome. I only need USB and SPI flash for my
>> application. And USB was easy to setup. Currently I am also jiggling
>> around the SPI / SPI flash support.
>
> For USB, all you need to do is to configure it in and to copy Marek's clock
> setup in board_early_init_f for m28evk_config into your own config. Make
> sure you change SSP2 into SSP1, because the m28evk module uses a
> different SSP2 for it's second MMC controller, whereas the FreeScale
> mx28evk board uses SSP1.
>
> To store your environment in MMC, you still need to patch
> board/freescale/common/sdhc_boot.c to make sure it's stored at the correct
> offset. You can find this patch on this mailing list. Without it, saving your
> environment will overwrite the MBR/ptable and you board won't boot next time.
yes, this was all easy to integrate.
>
>> But there is still the difference that I can download 2009.08 +
>> imx-bootlets via USB (sb_loader). This does not work with the recent
>> u-boot-imx repo and the generated u-boot.sb target.
>
> I don't know why that doesn't work, but I don't have any experience there.
> Early this year I rewrote the broken FreeScale scripts to create boot streams,
> so I know a little about the way it works, but I no longer use those since the
> U-Boot tools do such a good job. You can have the scripts though.
thanks, but the USB download and booting from an SPI flash I expect the
u-boot.sb as generated by the u-boot build system should work fine.
MMC/SD does not bring me any further :-(
Matthias
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2012-01-13 12:19 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11 14:41 [U-Boot] u-boot-imx on Freescale MX28EVK Matthias Fuchs
2012-01-11 15:12 ` Fabio Estevam
2012-01-11 17:55 ` Wolfgang Denk
2012-01-11 18:24 ` Fabio Estevam
2012-01-12 10:07 ` Matthias Fuchs
2012-01-12 10:15 ` Fabio Estevam
2012-01-12 13:39 ` Matthias Fuchs
2012-01-12 21:52 ` Robert Deliën
2012-01-13 7:16 ` Matthias Fuchs
2012-01-13 10:33 ` Robert Deliën
2012-01-13 12:19 ` Matthias Fuchs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox