Respected Sir/Madam,
i am trying to u-boot NAND using UART. i initially flash the U-boot.min to the flash using CCS successfully and when i connect the board to serial port and start TeraTerm i got the TI-MIN prompt and then i load the U-boot.bin over UART as given on site
http://processors.wiki.ti.com/index.php/DM814x_AM387x_PSP_U-Boot#Flashing_2nd_stage_to_SPI_from_2nd_stage
but when i run the command go 0x81000000,instead of getting TI8148_EVM promt, i got the same TI-MIN prompt. i don't know what is the actual problem. Can anybody help, i am attaching the snap shot of my teraterm console.
Thanks in advance
Pankaj,
Did the transfer of u-boot.bin go through? please cross check the u-boot.bin size and actual bytes transferred through kermit in your snapshot above.
Regards,
Yogesh.
NOTE : Please click "Verify Answer" if this post has answered your question.
Hi Pankaj,
I think you are sending "u-boot.min.xx" instead of "u-boot.bin" from first stage prompt. That is the reason why you are seeing very less image size. (52624Bytes)
Follow the steps at http://processors.wiki.ti.com/index.php/TI81XX_PSP_U-Boot#Boot_Over_UART
Consecutive sections will provide the details of flashing images.
Regards AnilKumar Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question. Thanks!
Respected sir,
As you pointed out i looked at my u-boot.bin and it was only 52KB so i changed it to an image that is 182KB and i got the TI8148_EVM#. Then when i try to load 2nd stage u-boot to the NAND, i got no error that means my NAND now will boot from 2nd stage boot. but when i restart my EVM i got the same TIMIN# prompt instead of TI8148_EVM#. Where i got wrong. i am attaching my teraterm terminal snap shot where it shows that my NAND has been flashed to 2nd u-boot. Is it because i started with CCS, so the required memory doesn't flash as described in the NAND memory map or there is another problem. Please guide me in this respect. Thanks in advance.
You have to write both the images into NAND.
http://processors.wiki.ti.com/index.php/TI81XX_PSP_U-Boot#Flashing_images_to_NAND
And you should not press enter at first stage prompt, it will load the second stage loader.
RegardsAnilKumarPlease mark this Forum post as answered via the Verify Answer button below if it helps answer your question. Thanks
Hi Anil,
Thanks for the quick reply. I have Flashed 1st stage U-boot using CCS via nand flash utility so i thought i don't need to flash it again because it is already in the NAND thats why i
went for 2 nd stage u-boot loading. Am i right or i have to flash 1st stage U-boot again as specified on the site and then go to the 2nd stage U-boot? please tell me.
Thanks.
went for 2 nd stage u-boot loading. Am i right or i have to flash 1st stage U-boot again as specified on the site and then go to the 2nd stage U-boot? please tell me. Also i want to say that
when i load 2nd stage U-boot using UART it take no time to say "393216 bytes written:OK". is it OK or it should take some time? Please guide me in this matter too.
AFAIK, it should work, can you try one more time flashing the images?
One more point have you changed the switch settings (http://processors.wiki.ti.com/index.php/TI81XX_PSP_U-Boot#EVM_Switch_Settings) for booting the board from NAND (reboot, after flashing).
It will take very less time and if you got "393216 bytes written:OK" then its successfull.
How are you
Again Thanks Anil
just one thing , my switch is in NAND boot-mode only, from starting. i flash 1st u-boot using CCS, so at that time my Switch setting was on NAND boot. So when i
connect my board to serial port my switch setting has to be in NAND boot to get TI-MIN# prompt. after getting this MIN prompt i started loading u-boot.bin using loadb
command. now my question is should i change my Boot mode setting to UART mode at this time or after this, because when i change my boot mode setting to UART
mode before loading the u-boot image,it stopped working. Till now i didn't change my boot mode from NAND boot for my entire process. So please tell me when to change
my boot mode From NAND-->UART-->NAND again.
Please tell me something about this because this thing is not given anywhere.
Thanks in advance. Plz look into this matter.
HI pankaj,
Initially put it in UART mode
Try these 5 steps
http://processors.wiki.ti.com/index.php/TI81XX_PSP_U-Boot#DM814x.2FDM813x
In 5th step we need to change the switch settings to NAND
Regards
AnilKumar
Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question. Thanks!
hi Anil,
I load the U-boot images again as you told. But again the problem is the same. When i restart my EVM after loading the U-boot images to the NAND. i couldn't find TI8148_EVM# prompt. When it autoboot it gives me this error message:
NAND read: device 0 offset 0x20000, size 0x40000
NAND read from offset 20000 failed -74
262144 bytes read: ERROR
## Starting application at 0x81000000 ....
Can you help me in this matter? Why this kind of error message is coming?
Thanks in advance.
Which PSP version you are using?
I am using TI814x-LINUX-PSP-04.01.00.01.
I think you are using PSP-04.04.00.01 (latest release) is it right?
The reason why I asked the version is for older kernel version ECC scheme is different.
HI ANil,
So which version should i use that is compatible with the configurations given at the PSP U-boot wiki. Actually i am going to use EZSDK-5-03-01-15 and it comes with PSP-04-01-00-06. then should i use this only ? Plz suggest me.
You mentioned a wrong version earlier.
Refer this section of user guide, have ECC settings as well
http://processors.wiki.ti.com/index.php/DM814x_AM387x_PSP_U-Boot#Flashing_U-Boot_without_CCS