[U-Boot] u-boot-imx on Freescale MX28EVK

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

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:
- make mx28evk
I think you meant "mx28evk_config"
- make u-boot.sb
- ./tools/mxsboot sd u-boot.sb u-boot-sd.sb
- 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

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

Hi Wolfgang,
On Wed, Jan 11, 2012 at 3:55 PM, Wolfgang Denk wd@denx.de wrote:
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.
Does this patch help with this issue? http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commit;h=1b5f9c2bbef7f61d19fea...
Regards,
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
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:
- make mx28evk
I think you meant "mx28evk_config"
- make u-boot.sb
- ./tools/mxsboot sd u-boot.sb u-boot-sd.sb
- 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@lists.denx.de http://lists.denx.de/mailman/listinfo/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

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@lists.denx.de http://lists.denx.de/mailman/listinfo/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.

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@lists.denx.de http://lists.denx.de/mailman/listinfo/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.

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
participants (4)
-
Fabio Estevam
-
Matthias Fuchs
-
Robert Deliën
-
Wolfgang Denk