Skip to contentSkip to conversation

u-boot-imx on Freescale MX28EVK

U-Boot Matthias Fuchs 4 participants 11 messages Jan 11, 2012 – Jan 13, 2012

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Hi Matthias,

Quoted 4 lines · Matthias Fuchs

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.

Quoted 3 lines

This is what I did:

1) make mx28evk

I think you meant "mx28evk_config"

Quoted 6 lines

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.

Quoted 6 lines

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

#2 lore raw

Dear Fabio,

Quoted 3 lines · In message <CAOMZO5C-dUk93S_zptECLKWH=Csod3ETGvcX5TxO5dhUSkU8yA@mail.gmail.com>…

On my board I don't have to press the power button in order to get the console output.

...

Quoted 1 line

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

Signature · 5 lines
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
#3 lore raw

Hi Wolfgang,

Quoted 10 lines · Wolfgang Denk

Dear Fabio,

Quoted 3 lines · In message <CAOMZO5C-dUk93S_zptECLKWH=Csod3ETGvcX5TxO5dhUSkU8yA@mail.gmail.com>…

On my board I don't have to press the power button in order to get the console output.

...

Quoted 1 line

Also, I have only tested this on a MX28EVK rev.D board.

Our Rev. A board also starts only after pressing the power button.

Does this patch help with this issue?
http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commit;h=1b5f9c2bbef7f61d19feadb48bf9535268425858

Regards,

Fabio Estevam

#4 lore raw
In reply to Fabio Estevam

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

Quoted 59 lines · Fabio Estevam

Hi Matthias,

Quoted 4 lines · Matthias Fuchs

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.

Quoted 3 lines

This is what I did:

1) make mx28evk

I think you meant "mx28evk_config"

Quoted 6 lines

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.

Quoted 6 lines

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

#5 lore raw

Hi Matthias,

Quoted 6 lines · Matthias Fuchs

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?

Quoted 3 lines

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

#6 lore raw
Quoted 8 lines · Fabio Estevam

Hi Matthias,

Quoted 5 lines · Matthias Fuchs

Hi Fabio,

thanks for your details. Some of the discrete switches where messed up. Boot Mode was fine. So now it's working fine.

Quoted 8 lines
Quoted 1 line

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.

Quoted 7 lines
Quoted 4 lines

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

Quoted 9 lines

Regards,

Fabio Estevam
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#7 lore raw
In reply to Matthias Fuchs

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.

#8 lore raw

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

Quoted 25 lines · Robert Deli?n

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

Signature · 17 lines
------------------------------------------------------------------------
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
-------------------------------------------------------------------------
#9 lore raw

Hi Matthias,

Quoted 3 lines

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.

Quoted 3 lines

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.

#10 lore raw

Robert,

Quoted 12 lines · Robert Deli?n

Hi Matthias,

Quoted 3 lines

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.

Quoted 4 lines

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.

Quoted 9 lines
Quoted 4 lines

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