Connected GMAC port and TFTP server via network cable. (TFTP download Fail)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Connected GMAC port and TFTP server via network cable. (TFTP download Fail)

4,656 Views
tzeng015
Contributor II

Hi NXP TechSupport

My Board : S32g274ardb2
According this file "AN13185 Flashing Binaries to S32G-VNP-RDB2 Board.pdf" and I follow page 9 of the guide to do this
Step4. Connected GMAC port and TFTP server via network cable.
Step5. Power on the board and stops the program at the u-boot command line. Configure the TFTP client environment.
a) To load Image using TFTP it required to setup TFTP server and to do the TFTP client settings in u-boot to be initialized.
The instructions to setup a TFTP server are outside the scope of this document.
b) Change the environment variable ethact to eth_eqos. => setenv ethact eth_eqos
c) Set Ip address of ipaddr and serverip
=> setenv ipaddr 10.193.248.207
=> setenv serverip 10.193.248.72
=> ping 10.193.248.72
Using eth_eqos device host 10.193.248.72 is alive

Setp6. Loading image from TFTP server to DDR.
=>tftp 80080000 fsl-image-auto-s32g274ardb2.sdcard
#################################################################
############## 3.9 MiB/s done Bytes transferred = 490733568 (1d400000 hex)

Question :
TFTP download OK state:
(1) SD_Card Boot (This attach SD card is attach with Board when I buy it)
(2) Follow Step 4/5/6 .It is download OK
(3) Check U-boot version (Mar 03 2021)

TFTP download Fail state:
(1) Switch EMMC Boot
(2) Follow 4/5/6 . It is download Fail and the error message is
TFTP error : try to overwrite reserved memory
(3) Check U-boot version (Aug 19 2021)

Summary:
Can you help me what's wrong with this kind of sitution? What can I do and how do you do?

Jeffrey

0 Kudos
9 Replies

3,287 Views
ZhiguoZhong
Contributor I

I have the same problem at BSP33.0 ......

"TFTP error: trying to overwrite reserved memory..."

0 Kudos

4,478 Views
tzeng015
Contributor II

Hi NXP support 

Please see the attach file and I modified it . I can work well and I reference fsl-s32-gen1.dtsi of BSP28 . Can you help me to check any side effect ?

thank you

 

0 Kudos

4,510 Views
tzeng015
Contributor II

Hi NXP support 

Have you try to  flash "u-boot-s32g274ardb2.s32" to EMMC and tftp download "fsl-image-auto-s32g274ardb2.sdcard" of BSP31/BSp30 . Does it can flasn image OK ? Does it have the message "tftp error trying to overwrite reserved memory" ? Can you try it ?

thank you

0 Kudos

4,623 Views
bpe
NXP Employee
NXP Employee

The full BSP bootable SD card image is relatively large. You may be hitting reserved areas of the address space when downloading. If you want to prepare a bootable SD card for your RDB2, u-Boot is not a very good choice. Use either Linux or S32DS. For more details on how u-Boot sees and uses RAM, see this file, section titled “Memory Management” and the processor memory map spreadsheet.

 

Best Regards
Platon

 

0 Kudos

4,620 Views
tzeng015
Contributor II

Hi 

I download the BSP28 (S32G2_LinuxBSP28.0.0) and use the flash_tool to download u-boot.(u-boot-s32g274ardb2.s32). I also download "fsl-image-auto-s32g274ardb2.sdcard" from TFTP via u-boot.

The u-boot version is "Mar 03 2021"

These process is OK at BSP28(the attach picture) but BSP30 can't work well. Can you help me?

thank you

 

0 Kudos

4,594 Views
bpe
NXP Employee
NXP Employee

It has already been explained in the preceding posts why large files may fail
to download via TFTP in u-Boot. You may be lucky with one u-Boot version and
not with the other due to different default settings and amounts of memory allocated
by u-Boot for it's own needs. Study the documentation mentioned above for better
understanding.

Best Regards,
Platon

 

0 Kudos

4,585 Views
tzeng015
Contributor II

Hi Platon

I am sorry to bother again . Can you seee my attach file again ?

Summary:
My Purpose is “ flash u-boot and kernel image to EMMC and boot OK”
Does the page 4-10 the right process and relate files?
ps : files
U-boot(u-boot-s32g274ardb2.s32)
Fsl-image-auto-s32g274ardb2.sdcard
(3) u-boot (u-boot-s32g274ardb2.s32) via flash tool download
(4) Linux image (Fsl-image-auto-s32g274ardb2.sdcard) via tftp download
(5) According your answer “u-Boot is not a very good choice” , I can’t understand the reason .
(6) If page 4-10 is OK of BSP28, I can’t understand BSP30 doesn’t flash OK.
(7) According your answer of P1 , I want to flash u-boot to EMMC via flash-tool not SD Card and boot u-boot OK

My question is (5) / (6 ) / (7)

0 Kudos

4,505 Views
tzeng015
Contributor II

Hi NXP support 

Have you try to  flash "u-boot-s32g274ardb2.s32" to EMMC and tftp download "fsl-image-auto-s32g274ardb2.sdcard" of BSP31/BSp30 . Does it can flasn image OK ? Does it have the message "tftp error trying to overwrite reserved memory" ? Can you try it ?

thank you

0 Kudos

4,485 Views
tzeng015
Contributor II

Hi NXP support 

Please see the attach file and I just modified the source code of tftp.c . And it work well. Can you help me to check this one ?

0 Kudos