P1020 booting from SD card

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

P1020 booting from SD card

1,686 Views
shubhasingh
Contributor I

Hi all,

I am having P1020RDB-PC board, i want to boot the board from SD card, i had tried to copy bootloader image in to sd card using boot-format tool, after running the tool the the status says succefully written to SD card, but i am getting the console on SD boot, i had changed the switch settings as of Sw3- 001001.

I am attaching the log om running boot-format tool and config file used with boot-format tool.

Please try to help on this

 

Thanks

Shubha

Original Attachment has been moved to: Sd_card_crat.txt.zip

Original Attachment has been moved to: config_sram_p1022ds.dat.zip

0 Kudos
Reply
5 Replies

1,147 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello shubha singh,

You are using P1020RDB-PC board, why do you u-boot image for P1020RDB-PD, u-boot-sd-P1020RDB-PD_SDCARD-2014.07+fslgit-r0.bin.

Please modify "UBOOT_MACHINES" as  "P1020RDB-PC_SDCARD" in meta-fsl-ppc/conf/machine/p1020rdb.conf, then rebuild u-boot.

$ bitbake -c cleansstate u-boot

$bitbake u-boot

Previously I created a document regarding System Boot from SD/MMC Card with SDK 1.6 images​, please have a reference, if your problem remains, please feel free to let me know.

Thanks,

Yiping

0 Kudos
Reply

1,147 Views
naumgrutman
Contributor II

Hello Yiping,

I got the Frescale box P1020RDB-PA Rev.A CPU Rev 1.0

pastedImage_1.png

I am trying to build an SD Card for it since it did not have one... this is the way we got it...

I have found your reply to somebody else on this forum...

According to the table found within SDK manual PA version is not supported...

pastedImage_0.png

I have conversed with Pavel  Chubakov you can find the conversation at this link

https://community.freescale.com/message/599482?et=watches.email.thread#599482

he seems to claim that it is possible to build usable SD Card...

I have found within this forum your recommendation to change "UBOOT_MACHINES"  "P1020RDB-PD_SDCARD" to  "P1020RDB-PC_SDCARD"

so I tried to change it to "P1020RDB-PA_SDCARD" but then

when I perform bitbake commands:

$ bitbake -c cleansstate u-boot

$ bitbake u-boot

I am getting errors...

Can't find default configuration "configs/P1020RDB-PA_SDCARD_defconfig"

Do you have any ideas...?

Can you confirm that SD Card is buildable for Rev.A via SDK 1.9 or any SDK...

Or it's just waste of time...????

Thanks,

Naum Grutman

0 Kudos
Reply

1,147 Views
shubhasingh
Contributor I

i forgot to attach the log, here is the log-

shubha@shubha-Latitude-3540:~/build_p1020rdb_release$ sudo tmp/sysroots/x86_64-linux/usr/bin/boot_format  tmp/sysroots/x86_64-linux/usr/share/boot_format/config_sram_p1022ds.dat tmp/deploy/images/p1020rdb/u-boot-sd-P1020RDB-PC_SDCARD-2014.07+fslgit-r0.bin -sd /dev/sde

This host is a little endian machine.

Using disk geometry of 62 heads and 62 sectors/track for CHS translation

SDCard has 3874816 sectors

Read MBR from SDCard:

0x0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0040: 42 4f 4f 54 00 00 00 00 00 09 a6 00 00 00 00 00

0x0050: 20 04 80 00 00 00 00 00 f8 f8 00 00 00 00 00 00

0x0060: f8 f8 00 00 00 00 00 00 00 00 00 06 00 00 00 00

0x0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0080: ff 72 01 00 f8 f8 00 00 ff 72 0e 44 00 00 00 0c

0x0090: ff 72 00 00 80 01 00 00 ff 72 e4 0c 00 00 00 40

0x00a0: 40 00 00 01 00 00 01 00 80 00 00 01 80 00 00 01

0x00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 21

0x01c0: 03 00 0b 13 62 11 00 08 00 00 00 00 10 00 00 00

0x01d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa

It is a valid MBR

Found first partition in MBR

First partition seems to be also the last partition

================== MBR ==================

boot_ind         = 0x0

start_head       = 0x21

start_cylesec    = 0x3

part_type        = 0xb

end_head         = 0x13

end_cylsec       = 0x1162

rel_sectors      = 0x800

total_sectors    = 0x100000

=========================================

Read DBR from SDCard at sector 2048 for partition size of 1048576 sectors:

0x0000: eb 3c 90 6d 6b 64 6f 73 66 73 00 00 02 10 10 00

0x0010: 02 00 02 00 00 f8 00 01 3e 00 3e 00 00 00 00 00

0x0020: 00 00 10 00 00 00 29 c1 73 06 93 20 20 20 20 20

0x0030: 20 20 20 20 20 20 46 41 54 31 36 20 20 20 0e 1f

0x0040: be 5b 7c ac 22 c0 74 0b 56 b4 0e bb 07 00 cd 10

0x0050: 5e eb f0 32 e4 cd 16 cd 19 eb fe 54 68 69 73 20

0x0060: 69 73 20 6e 6f 74 20 61 20 62 6f 6f 74 61 62 6c

0x0070: 65 20 64 69 73 6b 2e 20 20 50 6c 65 61 73 65 20

0x0080: 69 6e 73 65 72 74 20 61 20 62 6f 6f 74 61 62 6c

0x0090: 65 20 66 6c 6f 70 70 79 20 61 6e 64 0d 0a 70 72

0x00a0: 65 73 73 20 61 6e 79 20 6b 65 79 20 74 6f 20 74

0x00b0: 72 79 20 61 67 61 69 6e 20 2e 2e 2e 20 0d 0a 00

0x00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa

================== DBR ==================

jmp_code[0]      = 0xeb

sector_size      = 0x200

root_entries     = 0x200

small_sector     = 0x0

sectors_p_fat    = 0x100

=========================================

It is a valid DBR

Configuration file is for a non-PBL boot

Updating boot image length to 630784 in configuration data

Checking if FAT partition needs to be shrinked

Writing image to SDCard...OK.

Writing MBR to SDCard...

0x0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0040: 42 4f 4f 54 00 00 00 00 00 09 a6 00 00 00 00 00

0x0050: 20 04 80 00 00 00 00 00 f8 f8 00 00 00 00 00 00

0x0060: f8 f8 00 00 00 00 00 00 00 00 00 06 00 00 00 00

0x0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0080: ff 72 01 00 f8 f8 00 00 ff 72 0e 44 00 00 00 0c

0x0090: ff 72 00 00 80 01 00 00 ff 72 e4 0c 00 00 00 40

0x00a0: 40 00 00 01 00 00 01 00 80 00 00 01 80 00 00 01

0x00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 21

0x01c0: 03 00 0b 13 62 11 00 08 00 00 00 00 10 00 00 00

0x01d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa

OK.

Writing DBR to SDCard...

================== DBR ==================

jmp_code[0]      = 0xeb

sector_size      = 0x200

root_entries     = 0x200

small_sector     = 0x0

sectors_p_fat    = 0x100

=========================================

0x0000: eb 3c 90 6d 6b 64 6f 73 66 73 00 00 02 10 10 00

0x0010: 02 00 02 00 00 f8 00 01 3e 00 3e 00 00 00 00 00

0x0020: 00 00 10 00 00 00 29 c1 73 06 93 20 20 20 20 20

0x0030: 20 20 20 20 20 20 46 41 54 31 36 20 20 20 0e 1f

0x0040: be 5b 7c ac 22 c0 74 0b 56 b4 0e bb 07 00 cd 10

0x0050: 5e eb f0 32 e4 cd 16 cd 19 eb fe 54 68 69 73 20

0x0060: 69 73 20 6e 6f 74 20 61 20 62 6f 6f 74 61 62 6c

0x0070: 65 20 64 69 73 6b 2e 20 20 50 6c 65 61 73 65 20

0x0080: 69 6e 73 65 72 74 20 61 20 62 6f 6f 74 61 62 6c

0x0090: 65 20 66 6c 6f 70 70 79 20 61 6e 64 0d 0a 70 72

0x00a0: 65 73 73 20 61 6e 79 20 6b 65 79 20 74 6f 20 74

0x00b0: 72 79 20 61 67 61 69 6e 20 2e 2e 2e 20 0d 0a 00

0x00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0x01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa

OK.

Updating configuration words in target image ...

Reading sector 0

Writing sector 0

OK.

Congratulations! Completed successfully.

0 Kudos
Reply

1,147 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please check whether the switch setting is correct.

SW2  01111111

SW3  00100110

Thanks,

Yiping

0 Kudos
Reply

1,147 Views
shubhasingh
Contributor I

Hi yiping,

I tried changing the UBOOT_MACHINES as  "P1020RDB-PC_SDCARD, burned the bootloader in sd card using boot-format tool, i am attaching the log of boot-format tool.

When i tried booting the board with the SD-card, led near the battery module, and U32 remains blinking and no output on console.

whereas in case of nor that led doesnot blink, i had followed section 1 and 1.2 from the shared pdf, but getting the board booted up from sd card.

Regards,

Shubha

0 Kudos
Reply