[U-Boot] Help Required [imx35pdk]

I am adding support of imx35pdk in yocto. I have done with my bsp. But the u-boot that build in response of my bsp only runs over NOR and not on NAND. I spend 2 days on it but failed to do so. I read some where that mx35pdk required some external 4-pins bla bla something like that.
Also the u-boot running on NOR is not configuring uImage. I am using tftp but when it comes on loading, it keeps on showing "T T T T T..." (time-out response). I'm stuck here. Need help :(
I am using u-boot from this repo: git://git.denx.de/u-boot.git
One thing more, in the above mentioned repository, there is a directory like spl_nand in which they have already add mx31pdk for u-boot-nand.bin support but not mx35pdk. What should i do to overcome all this ???
Regards, Usman

Dear Muhammad Usman,
Ccing Stefano.
I am adding support of imx35pdk in yocto. I have done with my bsp. But the u-boot that build in response of my bsp only runs over NOR and not on NAND. I spend 2 days on it but failed to do so. I read some where that mx35pdk required some external 4-pins bla bla something like that.
Also the u-boot running on NOR is not configuring uImage. I am using tftp but when it comes on loading, it keeps on showing "T T T T T..." (time-out response). I'm stuck here. Need help :(
I am using u-boot from this repo: git://git.denx.de/u-boot.git
One thing more, in the above mentioned repository, there is a directory like spl_nand in which they have already add mx31pdk for u-boot-nand.bin support but not mx35pdk. What should i do to overcome all this ???
Regards, Usman
Best regards, Marek Vasut

Am 12/09/2012 23:07, schrieb Marek Vasut:
Dear Muhammad Usman,
Hi Muhammad,
Ccing Stefano.
I am adding support of imx35pdk in yocto. I have done with my bsp. But the u-boot that build in response of my bsp only runs over NOR and not on NAND. I spend 2 days on it but failed to do so.
U-Boot for mx35pdk runs from NOR and not from NAND. There is no support to run from NAND. Even if I can "convince" the board to boot from NAND, this was not pushed to mainline. I explain why.
You have found nand_spl with support for mx31pdk. This was the method we have previously to boot from NAND. We have now a generic framework for SPL, and all new boards (or added support for booting from NAND) must use it. A board using the old nand_spl will not be merged into mainline.
The mx35pdk was not ported to this generic SPL. We are really merging this framework now to make it available for all SOC, because it was common only for TI processor.
I read some where that mx35pdk required some external 4-pins bla bla
something like that.
It does not require external pins. You have to configure the dip switches on the mx35pdk.
Also the u-boot running on NOR is not configuring uImage. I am using tftp but when it comes on loading, it keeps on showing "T T T T T..." (time-out response).
I think I have tested it recently, and it worked - which of the two interfaces have you used in u-boot ? Both (FEC and SMC) are supported in the mx35pdk u-boot, and both should work, as far as I know.
One thing more, in the above mentioned repository, there is a directory like spl_nand in which they have already add mx31pdk for u-boot-nand.bin support but not mx35pdk. What should i do to overcome all this ???
This is what I talked about before. All boards using spl_nand were added a lot of time ago. spl_nand requires a separate driver for SPL, and this is highly inefficient. The way we decided to go is to use a generic SPL, valid for all SOC. And there is not yet a port for mx35pdk to boot directly from NAND.
Best regards, Stefano Babic

Hi Stefano,
On Wed, Sep 12, 2012 at 6:44 PM, stefano babic sbabic@denx.de wrote:
U-Boot for mx35pdk runs from NOR and not from NAND. There is no support to run from NAND. Even if I can "convince" the board to boot from NAND, this was not pushed to mainline. I explain why.
Reading board/freescale/mx35pdk/README it gives the impression that booting from NAND is supported.
Should this be updated?
Regards,
Fabio Estevam

I am totally agree with you Fabio. By reading the README.txt, it gives clear impression regarding NAND that it can also be used as an alternate.
The text should be modify for NAND so that no one further stuck on it.
On Thu, Sep 13, 2012 at 9:55 AM, Fabio Estevam festevam@gmail.com wrote:
Hi Stefano,
On Wed, Sep 12, 2012 at 6:44 PM, stefano babic sbabic@denx.de wrote:
U-Boot for mx35pdk runs from NOR and not from NAND. There is no support to run from NAND. Even if I can "convince" the board to boot from NAND, this was not pushed to mainline. I explain why.
Reading board/freescale/mx35pdk/README it gives the impression that booting from NAND is supported.
Should this be updated?
Regards,
Fabio Estevam _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Am 13/09/2012 06:55, schrieb Fabio Estevam:
Hi Stefano,
On Wed, Sep 12, 2012 at 6:44 PM, stefano babic sbabic@denx.de wrote:
U-Boot for mx35pdk runs from NOR and not from NAND. There is no support to run from NAND. Even if I can "convince" the board to boot from NAND, this was not pushed to mainline. I explain why.
Reading board/freescale/mx35pdk/README it gives the impression that booting from NAND is supported.
It is a wrong impression, it is not (yet) supported..
Should this be updated?
Yes !
Regards, Stefano

Dear Stefano, You really explained well. I have got it now. For now I have left the NAND flash and instead I'm now using NOR. I have successfully boot Linux with the latest kernel 3.5.3 from NOR.
Thanks a lot for all your support.
On Thu, Sep 13, 2012 at 2:44 AM, stefano babic sbabic@denx.de wrote:
Am 12/09/2012 23:07, schrieb Marek Vasut:
Dear Muhammad Usman,
Hi Muhammad,
Ccing Stefano.
I am adding support of imx35pdk in yocto. I have done with my bsp. But the u-boot that build in response of my bsp only runs over NOR and not on NAND. I spend 2 days on it but failed to
do
so.
U-Boot for mx35pdk runs from NOR and not from NAND. There is no support to run from NAND. Even if I can "convince" the board to boot from NAND, this was not pushed to mainline. I explain why.
You have found nand_spl with support for mx31pdk. This was the method we have previously to boot from NAND. We have now a generic framework for SPL, and all new boards (or added support for booting from NAND) must use it. A board using the old nand_spl will not be merged into mainline.
The mx35pdk was not ported to this generic SPL. We are really merging this framework now to make it available for all SOC, because it was common only for TI processor.
I read some where that mx35pdk required some external 4-pins bla bla
something like that.
It does not require external pins. You have to configure the dip switches on the mx35pdk.
Also the u-boot running on NOR is not configuring uImage. I am using
tftp
but when it comes on loading, it keeps on showing "T T T T T..."
(time-out
response).
I think I have tested it recently, and it worked - which of the two interfaces have you used in u-boot ? Both (FEC and SMC) are supported in the mx35pdk u-boot, and both should work, as far as I know.
One thing more, in the above mentioned repository, there is a directory like spl_nand in which they have already add mx31pdk for u-boot-nand.bin support but not mx35pdk. What should i do to overcome all this ???
This is what I talked about before. All boards using spl_nand were added a lot of time ago. spl_nand requires a separate driver for SPL, and this is highly inefficient. The way we decided to go is to use a generic SPL, valid for all SOC. And there is not yet a port for mx35pdk to boot directly from NAND.
Best regards, Stefano Babic
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de =====================================================================
participants (4)
-
Fabio Estevam
-
Marek Vasut
-
Muhammad Usman
-
stefano babic