SD Card boot for P4080DS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SD Card boot for P4080DS

1,829件の閲覧回数
appalanaidug
Contributor II

Hello,

We are trying to prepare a bootable SD Card for P4080DS system. Since the NOR flash in the development system got erased, we are trying to copy the u-boot files from the linux pc(running on VMware) to the SDCard.

The SDCard was partitioned into two - one bootable partition of 512MB (FAT16) and other partition with remaining space on the card.

Capture3.JPG

The following two commands were followed to copy u-boot binary image and  FMan microcode (both obtained from SDK ISO file) to the SDcard.

Capture2.JPG

After execution of these commands, no files are visible on the SDcard.

The SW1 settings on P4080DS were modified to boot from SDCard (set to 00110011).

No output is observed on U-boot console.

Even if the files are manually copied into the card, no output is observed on the U-boot console.

Any help is requested.

Thankyou.

0 件の賞賛
返信
6 返答(返信)

1,696件の閲覧回数
ufedor
NXP Employee
NXP Employee

Steps to prepare bootable SD card for the P4080DS:

1) Write U-Boot to SD card (CHECK that  "sdb" corresponds to the SD card in your case):

dd if=u-boot-sdcard-2016.01+fslgit-r0.bin of=/dev/sdb bs=512 seek=8

 

2) Write FMan microcode to SD card:

dd if=fsl_fman_ucode_p4080_r3.0_106_2_18.bin of=/dev/sdb bs=512 seek=1680

1,696件の閲覧回数
appalanaidug
Contributor II

hello,

Thankyou for the help.

On exceuting the above commands, the following is the log 

[root@localhost files]# dd if=u-boot-sdcard-2016.01+fslgit-r0.bin of=/dev/sdb bs=512 seek=8
1632+1 records in
1632+1 records out
835840 bytes (836 kB) copied, 0.0582739 s, 14.3 MB/s
[root@localhost files]# dd if=fsl_fman_ucode_p4080_r3.0_106_2_18.bin of=/dev/sdb bs=512 seek=1680
59+1 records in
59+1 records out
30540 bytes (31 kB) copied, 0.0152906 s, 2.0 MB/s

After mounting the SD Card back, no files are seen on the card.

P4080DS u-boot console also does not show any output.

Few more questions regarding SD Card preparation.

1. My linux pc detects sd card as a physical device and not as SDHC card. Is that the reason why "dd" command does not show any files copies onto the card? ( i can copy files using "cp" command to the card, which are visible on mounting the device)

2. Is there no need to partition the SDcard?

Thankyou in advance

0 件の賞賛
返信

1,696件の閲覧回数
ufedor
NXP Employee
NXP Employee

1) Correct.

2) For U-Boot - no need.

What are P4080DS on-board configuration switches settings?

Use "dd" to "copy" first 2MB of the prepared SD card and attach resulting image for inspection.

1,696件の閲覧回数
appalanaidug
Contributor II

Hello,

Thank you for the help.

On formatting the SD Card and re-running the above two "dd" commands, I could boot from the SDCard with the following switch settings:

SW1: 00110011

All other switches are default settings as given in the SDK manual

sw_settings.JPG

I have attached the U-boot log for reference.

May I know the steps to re-program the NOR flash.

1. What are the different files required to re-program the NOR flash.

2. Commands to program the NOR flash from the U-boot console 

3. How to configure Ethernet ( in case tftp transfer is required, since the U-boot file shows the following errors )

Net:
MMC read: dev # 0, block # 1680, count 128 ...
Fman1: Uploading microcode version 106.2.18
Could not get PHY for P4080DS_MDIO12: addr 28
Failed to connect
Could not get PHY for P4080DS_MDIO12: addr 30
Failed to connect
Could not get PHY for P4080DS_MDIO12: addr 31
Failed to connect

MMC read: dev # 0, block # 1680, count 128 ...
Fman2: Uploading microcode version 106.2.18
Could not get PHY for P4080DS_MDIO4: addr 28
Failed to connect
Could not get PHY for P4080DS_MDIO4: addr 29
Failed to connect
Could not get PHY for P4080DS_MDIO4: addr 30
Failed to connect
Could not get PHY for P4080DS_MDIO4: addr 31
Failed to connect
FM1@DTSEC1 [PRIME]
Error: FM1@DTSEC1 address not set.
, FM1@DTSEC2
Error: FM1@DTSEC2 address not set.
, FM1@DTSEC3
Error: FM1@DTSEC3 address not set.
, FM1@DTSEC4
Error: FM1@DTSEC4 address not set.
, FM2@DTSEC1
Error: FM2@DTSEC1 address not set.
, FM2@DTSEC2
Error: FM2@DTSEC2 address not set.
, FM2@DTSEC3
Error: FM2@DTSEC3 address not set.
, FM2@DTSEC4
Error: FM2@DTSEC4 address not set.

Thank you in advance.

0 件の賞賛
返信

1,673件の閲覧回数
WmBAnderson
Contributor I

Hello appalanaidug;

I am going through the identical process.  May I ask what file format type did you use when you formatted the SD Card?

Thanks in advance,

Bill

0 件の賞賛
返信

1,696件の閲覧回数
ufedor
NXP Employee
NXP Employee

May I know the steps to re-program the NOR flash.

Please create new question.

0 件の賞賛
返信