T4240RDB is not booting from SD card

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

T4240RDB is not booting from SD card

3,692 Views
sanjaysahu
Contributor II

Hi,

Our T4240RDB machine was bricked after an RCW update. I tried to bring up u-boot from SD Card but it didn't work. Is it even possible to boot from SD Card if RCW is corrupted?

I followed the QorIQ SDK 2.0 instructions to build the SD Card U-boot image. Then I did the following to copy binaries to SD Card

$ dd if=/dev/zero of=/dev/sdc bs=1M oflag=sync count=8
$ dd if=u-boot-sd-2016.01+fslgit-r0.bin of=/dev/sdc bs=512 seek=8 oflag=sync
$ dd if=/work/t4240rdb/fsl_fman_ucode_t4240_r2.0_108_4_5.bin of=/dev/sdc bs=512 seek=2080 oflag=sync

Then I set SW3[4] to ON and SW2[1] to OFF to boot from SD card but it didn't work.

Any help would be highly appreciated.

Labels (1)
Tags (2)
0 Kudos
Reply
10 Replies

3,681 Views
ufedor
NXP Employee
NXP Employee

1) Please provide any previous boot log to check the CPLD version.

2) Is CodeWarrior debug connection possible with the described switches settings and SD card been inserted? 

0 Kudos
Reply

3,675 Views
sanjaysahu
Contributor II

Thanks for your response. Unfortunately, we didn't capture a boot log before it got bricked. The device was purchased in 2011 and imaged in 2014, I hope that is helpful information to derive CPLD version.

We don't have the CodeWarrior TAP connector and probe tip yet, but the JTAG port seems fine. Are there any other requirements for CodeWarrior debug connection to be possible? We wanted to exhaust all our options before purchasing the Codewarriror kit.

0 Kudos
Reply

3,671 Views
ufedor
NXP Employee
NXP Employee

You wrote:

The device was purchased in 2011 and imaged in 2014

What do you mean by "imaged" ? 

0 Kudos
Reply

3,660 Views
sanjaysahu
Contributor II

I meant a new QorIQ SDK version was deployed on the machine in 2014.

0 Kudos
Reply

3,656 Views
ufedor
NXP Employee
NXP Employee

Please provide photos of on-board stickers and inscriptions.

0 Kudos
Reply

3,649 Views
sanjaysahu
Contributor II

Hi,

Please find attached a picture of on-board stickers and inscriptions. I also upload pictures of other parts of the board if needed.

0 Kudos
Reply

3,645 Views
ufedor
NXP Employee
NXP Employee

You wrote:

$ dd if=u-boot-sd-2016.01+fslgit-r0.bin of=/dev/sdc bs=512 seek=8 oflag=sync

Where "u-boot-sd-2016.01+fslgit-r0.bin" was obtained?

Please provide the image for inspection.

0 Kudos
Reply

3,641 Views
sanjaysahu
Contributor II

Hi,

Thanks for your continued help. Does this mean SD Card boot is indeed possible on this machine?

Please find attached the image file for inspection. Here are the steps I followed to build the u-boot image:

I modified the t4240rd.conf in <sdk-install-dir>/sources/meta-freescale/conf/machine/ to the following:

require conf/machine/include/e6500.inc

SOC_FAMILY = "t4:t4240"

UBOOT_CONFIG ??= "sd"
UBOOT_CONFIG[sd] = "T4240RDB_config,sdcard"

HV_CFG_M = "t4240rdb"

KERNEL_DEVICETREE ?= "fsl/t4240rdb.dtb fsl/t4240rdb-usdpaa.dtb \
    fsl/t4240rdb-usdpaa-shared-interfaces.dtb \
"
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet64_fmanv3h_smp_defconfig"
KBUILD_DEFCONFIG ?= "corenet64_fmanv3h_smp_defconfig"

JFFS2_ERASEBLOCK = "0x10000"

EXTRA_IMAGEDEPENDS += "fm-ucode rcw lib64-hypervisor hv-cfg"

USE_VT ?= "0"

 

And I ran the following command to regenerate the SD Card U-boot image:

bitbake -c cleansstate u-boot
bitbake -c patch u-boot
bitbake -c compile -f u-boot
bitbake u-boot

 

0 Kudos
Reply

3,634 Views
ufedor
NXP Employee
NXP Employee

In the provided image there is no RCW.

Please try attached image.

0 Kudos
Reply

3,499 Views
sanjaysahu
Contributor II

Hi,

Thanks for pointing that out and for sharing the right image. I tried copying the new image onto the SD card following the same instructions, dd to seek 8, and tried powering up the board but with no luck.

Also, we now have the Codewarrior TAP connector with the right probe tip. Perhaps we can now explore debugging RCW overwrite using the Codewarrior IDE. Please point us towards any helpful documentation for this purpose.

Thanks,

Sanjay

0 Kudos
Reply