All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Doubt on uboot code
@ 2012-07-13 13:51 VISWANADHULA BALAJI
  2012-07-13 21:28 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: VISWANADHULA BALAJI @ 2012-07-13 13:51 UTC (permalink / raw)
  To: u-boot

Hi,

          Thank you for your reply.

     I have the U-boot source code of SAMSUNG EXYNOS SMDKV310 board. When i
compiled the U-boot source code I got uboot.bin file and bl1.bin file.
Actually bl1.bin file is extracted from the uboot.bin file by using the
mkbl2 tool(tool's source code is present in the U-boot source itself)and
used as a first stage bootloader.Uboot.bin file is used as a second stage
bootloader.

       "bl1.bin responsibility is to load the second stage bootloader from
the sd card to SD RAM".*I have the doubt in the bl1.bin file *how the above
mentioned transforming  is done from the following device copy function.

       #define SDMMC_ReadBlocks_eMMC_ByCPU(uNumOfBlks, uDstAddr) \
        (((void(*)(u32, u32*))(*((u32
*)EXT_eMMC43_BL2_ByCPU_ADDRESS)))(uNumOfBlks, uDstAddr))

The above MACRO is the Physical adress which is mapped to IRAM

The above indirect function is present in the following source code path

         board/samsung/smdkv310/lowlevel_init.S.


Actually I have to design the IROM code similar to SAMSUNG EXYNOS SOC.
Please Help me in this.



Thanks

Balaji

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] Doubt on uboot code
  2012-07-13 13:51 [U-Boot] Doubt on uboot code VISWANADHULA BALAJI
@ 2012-07-13 21:28 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2012-07-13 21:28 UTC (permalink / raw)
  To: u-boot

Dear VISWANADHULA BALAJI,

In message <CA+qW+UWhA5BH8pdC3TOUdOEmreW7dYXUZ4SUcbBx2nRZo_qyRQ@mail.gmail.com> you wrote:
>
>      I have the U-boot source code of SAMSUNG EXYNOS SMDKV310 board. When i

Where did you get this code from?

>        "bl1.bin responsibility is to load the second stage bootloader from
> the sd card to SD RAM".*I have the doubt in the bl1.bin file *how the above
> mentioned transforming  is done from the following device copy function.
> 
>        #define SDMMC_ReadBlocks_eMMC_ByCPU(uNumOfBlks, uDstAddr) \
>         (((void(*)(u32, u32*))(*((u32
> *)EXT_eMMC43_BL2_ByCPU_ADDRESS)))(uNumOfBlks, uDstAddr))

None of this is in mainline U-Boot.  We cannot help you with that.
Please contact the technical support of wherever you got the code
from.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Remember that Beethoven wrote his first symphony in C ...

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-13 21:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-13 13:51 [U-Boot] Doubt on uboot code VISWANADHULA BALAJI
2012-07-13 21:28 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.