This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP-L138 Serial boo & flash loading utility

Other Parts Discussed in Thread: OMAP-L138

Hi,

We are using LogicPD Omap-l138 Eval. board and I was trying to load the NOR Flash with the UBL + Uboot. I found two dir. with the utilities to do that. One in PSP

/DaVinci-PSP-SDK-03.20.00.12/\src\boot-strap\armubl-03.20.00.12 and the other one in \OMAP-L138_FlashAndBootUtils_2_29\OMAP-L138 which has both the host side and also the target side. It seems that we need both the host and target together. If I wanted to change the FLash memory map to make the serial loader to work with our on-board NOR Flash which has different size and address, what files do I need to modify? I think I need to modify files such as \OMAP-L138_FlashAndBootUtils_2_29\OMAP-L138\CCS\UBL_ARM\UBL.cmd and \OMAP-L138_FlashAndBootUtils_2_29\OMAP-L138\device.mak, \OMAP-L138_FlashAndBootUtils_2_29\OMAP-L138\GNU\ublARM_ubl.cmd & ARM_ubl.lds

 

Also, when I compared the file \DaVinci-PSP-SDK-03.20.00.12\src\kernel\linux-03.20.00.12\arch\arm\mach-davinci\board-da850-evm.c SPI flash partitions

static struct mtd_partition spi_flash_partitions[] = {
 [0] = {
  .name = "U-Boot",
  .offset = 0,
  .size = SZ_256K,
  .mask_flags = MTD_WRITEABLE,
 },
 [1] = {
  .name = "U-Boot Environment",
  .offset = MTDPART_OFS_APPEND,
  .size = SZ_64K,
  .mask_flags = MTD_WRITEABLE,
 },
 [2] = {
  .name = "Linux",
  .offset = MTDPART_OFS_NXTBLK,
  .size = SZ_8M - (SZ_256K + SZ_64K + SZ_64K),
  .mask_flags = 0,
 },
 [3] = {
  .name = "MAC Address",
  .offset = MTDPART_OFS_NXTBLK,
  .size = SZ_64K,
  .mask_flags = MTD_WRITEABLE,
  .setup = davinci_get_mac_addr,
  .context = (void *)0,
 },
};

it didn't match the one from LogicPD U-boot lab memory map:

    0x000000         ARM AIS Bootloader (arm-api-ais.bin)

    0x010000         U-Boot prepended with config (u-boot.bin)

    0xc08000         Linux Image (uImage)

    0x28000           File system (ramdisk-base.gz)

I can see the kernel when it runs it creates the spi_flash_partitions, now do I need to change the uboot bootargs to write to these partions or to above memory map?

Does the partions in board-da850-evm.c file need to match the address and the size of Flash that I use to write the UBL and the u-boot through Serial Flash loader?

 

Thanks for any help,

 

Alex