Booting tha SAMA5D28CU Custom Board Based on the SAMA5D2Xpla

For SAMA5D2 Xplained, SAMA5D3 Xplained and SAMA5D4 Xplained

Moderator: nferre

vinothraj
Posts: 3
Joined: Mon Mar 06, 2017 10:08 am

Booting tha SAMA5D28CU Custom Board Based on the SAMA5D2Xpla

Tue May 16, 2017 9:17 am

Hi,
I have SAMA5D28CU Custom board Based on the SAMA5D2 Xplained Board. Only Difference is we changed the 512MB RAM to 256MB RAM.
I try to boot it from SD CARD. But I can not boot From SD card successfully.
AND Also i edited the file "AT91bootstrap/board/sama5d2_xplained/sama5d2_xplainedsd_uboot_defconfig"
Added "CONFIG_RAM_256MB=y" and Removed "CONFIG_RAM_512MB=y"
Compiled and port into my board. And power on the board, booting is struck in the Bootstrap. Boot log is below.

Boot Log :
RomBOOT


AT91Bootstrap 3.8.7 (Fri Oct 21 18:12:00 CEST 2016)

EEPROM: Loading AT24xx information ...
EEPROM: BoardName | [Revid] | VendorName
HW Info: The total size: 0xff isn't correct

EEPROM: Using default information

EEPROM: Board sn: 0xd300000 revision: 0x248000

SD/MMC: Image: Read file u-boot.bin to 0x26f00000
SD: Card Capacity: High or Extended
SD: Specification Version 3.0X
SD/MMC: Done to load image


Any suggestion is more helpful.

Thanks,
Vinothraj
blue_z
Location: USA
Posts: 1504
Joined: Thu Apr 19, 2007 10:15 pm

Re: Booting tha SAMA5D28CU Custom Board Based on the SAMA5D2

Tue May 16, 2017 8:54 pm

vinothraj wrote:I have SAMA5D28CU Custom board Based on the SAMA5D2 Xplained Board.
Are you using MRL-A parts or MRL-B parts?
vinothraj wrote:SD/MMC: Done to load image
The next step would be to execute the U-Boot that was loaded into DRAM.

So how extensively have you checked out your "custom board"?
What kind of memory tests have you performed?

Regards
vinothraj
Posts: 3
Joined: Mon Mar 06, 2017 10:08 am

Re: Booting tha SAMA5D28CU Custom Board Based on the SAMA5D2

Wed May 17, 2017 9:22 am

Hi Blue_z,
Thanks for your kind reply.
blue_z wrote: Are you using MRL-A parts or MRL-B parts?

we are using MRL-C parts.
blue_z wrote: So how extensively have you checked out your "custom board"?
What kind of memory tests have you performed?
Only put Print statement in DDR3 Initialization function in hw_init function in bootstrap source.
Please tell how can i perform the memory test to test the RAM ?



Regards,
Vinothraj.
blue_z
Location: USA
Posts: 1504
Joined: Thu Apr 19, 2007 10:15 pm

Re: Booting tha SAMA5D28CU Custom Board Based on the SAMA5D2

Wed May 17, 2017 8:54 pm

vinothraj wrote:we are using MRL-C parts.
Is that some pre-production sample?
Those are not documented or available AFAICT.
vinothraj wrote:Only put Print statement in DDR3 Initialization function in hw_init function in bootstrap source.
Please tell how can i perform the memory test to test the RAM ?
See http://www.at91.com/discussions/viewtop ... tic#p48957

Regards
vinothraj
Posts: 3
Joined: Mon Mar 06, 2017 10:08 am

Re: Booting tha SAMA5D28CU Custom Board Based on the SAMA5D2

Thu May 18, 2017 4:14 pm

blue_z wrote:
vinothraj wrote:we are using MRL-C parts.
Is that some pre-production sample?

Regards
we get datasheet from Microchip person.

Thanks for your reply.

I got successful boot on my custom board.

Bootstrap/board/sama5d2_xplained/sama5d2_xplained.c
static void ddramc_reg_config(struct ddramc_register *ddramc_config)
{
ddramc_config->mdr = (AT91C_DDRC2_DBW_16_BITS
| AT91C_DDRC2_MD_DDR3_SDRAM); /// AT91C_DDRC2_DBW_32_BITS


i changed the "AT91C_DDRC2_DBW_32_BITS" to "AT91C_DDRC2_DBW_16_BITS" as per my board hardware.

Thanks again :)

Regards,
Vinothraj.
ganesha.ld
Posts: 32
Joined: Mon Dec 19, 2011 7:01 pm

Re: Booting tha SAMA5D28CU Custom Board Based on the SAMA5D2Xpla

Tue Oct 10, 2017 1:34 pm

Bootstrap/board/sama5d2_xplained/sama5d2_xplained.c
static void ddramc_reg_config(struct ddramc_register *ddramc_config)
{
ddramc_config->mdr = (AT91C_DDRC2_DBW_16_BITS
| AT91C_DDRC2_MD_DDR3_SDRAM); /// AT91C_DDRC2_DBW_32_BITS

i changed the "AT91C_DDRC2_DBW_32_BITS" to "AT91C_DDRC2_DBW_16_BITS" as per my board hardware.
You saved my day!!
A BIGGGGGG THANK YOU!! :D :D

Return to “SAMA5 Xplained”

Who is online

Users browsing this forum: No registered users and 1 guest