S5PV210_iROM_ApplicationNote

所需积分/C币:10 2015-12-10 17:41:25 688KB PDF

S5PV210_iROM_ApplicationNote
S5PV210 ROM APPLICATION NOTE REV.3 Samsung Confidential Revision History Revision no Description of Change Refer to Author(s) Date 0.00 Initial release for review sw baik May20,2009 Adding boot device option 0.10 Changing boot code copy method K kim SEP26.2009 0.20 Revised Figure 1, Figure 2 K i kim NO∨19.2009 Update boot flow 0.30 Adding ERROR Handling kj kim NOV23,2009 NOTE: Revised parts are written in blue. AMSUN Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available ELECTRONICS Specifications and information herein are subject to change without notice 3 S5PV210 ROM APPLICATION NOTE REV.3 Samsung Confidential Table of contents 1 Overview 1日1日日B重1四 1.1 H/W Feature 1.2 Feature 11画面国面面 1.3 Advantage of iROM booting 5566 1.4 Circuit Design Check Point 2 Operation 7 2.1 Operating Sequence 2.2 iROM(BLO) boot-up sequence(Refer 2.3V210 boot-up diagram 678g 2.3 V210 boot-up diagram 2. 4 iROM 2nd boot-up sequence when 1 boot fail 10 2.4.1∪ aRt boot mode. 2.42 usB boot mode 12 2.5 Memory Map…… 2.6 Global variable 14 2.7 Device Copy Function 14 2.8 Boot Block Assignment Guide 19 2. 9 Header information data for Boot Code description .20 2. 10 Making checksum example code. 21 2.11 Clock Confiquration 3 Boot configuration 22 4 Feature of the rom boot mode 23 5 ERROR HANDLING ..24 6 Hardware Guide 26 6. 1 Power connection reference of eMMC booting 26 AMSUN Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available ELECTRONICS Specifications and information herein are subject to change without notice S5PV210 ROM APPLICATION NOTE REV.3 Samsung Confidential 1 Overview This chapter explains overall scheme of internal ROM(IROM)boot with memory devices such as Samsung MoviNAND/iNand, MMC/SD Card, pure Nand eMMC, eSSD, UART and UsB boot with iROM is supported In S5PV210, iROM boot releases retention lo(resets 1O)when it wakes up for recognizing Boot Device by OM pin. Refer section 1.4 1.1 H/W Feature To use IROM boot loader, several hardware features are required S5PV210X microprocessor based on Cortex A8 64KB Internal ROM (IROM) 96KB Internal sram General Sdram and controller 4/8 Bit High Speed SD/MMC Controller 4-bit sd/4-bit mmc /4 or8-bit eMMc Nand flash controller ●○ neNad Controller(AUD|) ● essd Controller UART/USB contorller 1.2 Feature ●○ neNad Boot(Mux/ Demux) Nand Boot(with H/ 8/16-Bit ECC) MMC Boot (MMC Specification 4.3 compatible including eMMC eSSD Boot ●UART/ USB Boot Secure boot mode support Verify Integrity of Bootloader for all boot-up devices except for UART/USB boot To support secure boot mode, Security key value should be written in S5PV210 If no key is written in S5PV210, It is non-secure boot mode Otherwise It's secure boot mode. To do that, Samsung should write security key in manufacture step ● Second boot support When 1 boot mode fails, SD/MMC boot will be tried through SD/MMC channel 2 with 4-bit data AMSUN Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available ELECTRONICS Specifications and information herein are subject to change without notice 5 S5PV210 ROM APPLICATION NOTE REV.3 Samsung Confidential 1.3 Advantage of iROM booting 1. Reduce bom cost = In iROM booting with Movinand/iNAND/MMC/eMMC Card eSSD. System can be booted without booting rom So There is no need other booting rom device(like nor flash) 2. Improve the Read Disturbance >In iROM booting with nand flash, S5PV210 can support 8/16-bit H/W ECC All nand boot can be supported 8-bit H/ ECC But, 16-bit ECC is supported only one type of Nand which is 4KB 5cycle 3. Reduce the production cost( Option) = You can program boot device memory using other boot device - SO. There is no need Gang programmer 1.4 Circuit Design Check Point (1 To select iROM boot device OM pins are used. (Refer 3 Boot configuration) ( 2) All of boot memory device of V210 have a SD/MMC second boot using MMc channel 2 3 OneNand boot-XmOCSn4NFCSn2/ONANDXL CSnO signal should be used for boot (BL1 code should be include checksum data in the start of BL1 binary Refer section 2. 9) 4 Nand boot-XmOCSn2/NFCSnO signal should be used for boot (BL 1 code should be include checksum data in the start of BL1 binary Refer section 2.9) 5 SD/MMC/eMMC boot-MMC Channel 0 is used for first boot. And Channel 2 is used for Second boot (BL1 code should be include checksum data in start of BL1 binary. Refer section 2. 9) 6 UART boot- UART Channel port 2 is used for boot AMSUN Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available ELECTRONICS Specifications and information herein are subject to change without notice 6 S5PV210 ROM APPLICATION NOTE REV.3 Samsung Confidential 2 Operation 2. 1 Operating sequence S5PV210 SDRAM Cortex A8 ⑤ SDRAM controller BL1 BL2 Booting Device Interna (MMC/OneNand/ SRAM(96KB Nand /eSSD/NOR) NOR Fash Controller BL2 ssD IROM (BLO) Os Controller HS-MMC BL1 (64KB) Controller OneNand Controller Controlle OM E iROM Boot OneNand /SD/MMC/eMMC /NAND/essD/NOR Figure 1. Overall boot-up diagram BL1/BL2: It can be variable size copied from boot device to internal SRAM area bL1 max size is 16KB, bl2 max, size is 80KB iROM can do initial boot up: initialize system clock, device specific controller and booting device (2) iROM boot codes can load boot-loader to SRAM. the boot-loader is called BL1 then iROM verify integrity of BL1 in case of secure boot mode 3) BL1 will be executed BL1 will load remained boot loader which is called bl2 on the sram then BL1 verify integrity of bl2 in case of secure boot mode 4 BL2 will be executed: BL2 initialize DRAm controller then load os data to SDRAM 5) Finally, jump to start address of S. that will make good environment to use system AMSUN Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available ELECTRONICS Specifications and information herein are subject to change without notice S5PV210 ROM APPLICATION NOTE REV.3 confidential 2.2 iROM(BLO) boot-up sequence(Refer 2.3 V210 boot-up diagram) 1. Disable the Watch-Dog Timer 2. Initialize the instruction cache 3. Initialize the stack region(see "memory map"on chap 2.5) 4. Initialize the heap region (see"memory map"on chap 2.5) 5. Initialize the Block Device Copy Function. (see " Device Copy Function"on chap 2.7) 6. Initialize the PLL and Set system clock. (see"clock configuration"on chap 2.11) 7. Copy the bL 1 to the internal SRAM region(see"Device Copy Function"on chap 2.7) 8. Verify the checksum of bL1 If checksum fails, iROM will try the second boot up. SD/MMC channel 2) 9. Check if it is secure-boot mode or not If the security key value is written in S5PV210, It's secure-boot mode If it is secure-boot mode, verify the integrity of bL1 10. Jump to the start address of bL1 AMSUN Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available ELECTRONICS Specifications and information herein are subject to change without notice 8 S5PV210 ROM APPLICATION NOTE REV.3 Samsung Confidential 2.3 V210 boot-up diagram iROM IROM Start BL1 From irom DRAM Jumb tb bl1 From bl2 Disable watchdog Cache initialization wakeUp status=.Yes Deep Stop(ISRAM WakeUp status retention) Jump to中2 Deepldle‖l OS code start retention)∠ N Stack and variable BL2 loading initialization <Init SysCon> Set Clock Devider Secure Boot 2 No Set Lock Time Start PLL(MPS value) Yes Set source clock BL2 Integrit OK OM pin oot stop YYes Go to bl2 One NOR SD UART. eSSD NAND NAND Flash MMC USB BL2 From bl1 NoChecksum OK wakeUp status= Yes Go to Deepldl 2nd boot Deep Stop(IsRAM Jump to dram Read eF DRAM in itialization Secure Boot OS loading to DRAM No BL1 Integr OK? Boot stop Yes Go to dram Go to bL 1 Figure 2. v210 boot-up diagram AMSUN Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available ELECTRONICS Specifications and information herein are subject to change without notice 9 S5PV210 ROM APPLICATION NOTE REV.3 Samsung Confidential 2.4 iROM 2nd boot-up sequence when 1 boot fail iRoM Start 1st boot Check boot mode mmm:mmmm 〔 Read M pin UART boot 2st boot Uart boot BL1 load from 1 st boot d USB boot UART boot ok? Yes <Check Sum OK?? YeS LSB Root BL1 load from 2nd boot device USB boot ok? Boot st Checksum oK Yes Go tto bl1 N 2nd boot device: only 4-bit SD/MMC (MMC channel 2) This is non -secure boot mode case In secure boot mode, Verification integrity of BL1 should be added behind checksum in 1&2 boot step. Figure 3. iROM BL1 copy flow [Caution] Samsung recommend that the 2, UART and usB boot options should be used for only debugging AMSUN Preliminary product information describe products that are in development, for which full characterization data and associated errata are not yet available ELECTRONICS Specifications and information herein are subject to change without notice

...展开详情

评论 下载该资源后可以进行评论 2

luohuajiexiejuan 不错的资源
2018-05-29
回复
jianing112 资源内容是官方文件,可以当权威
2017-12-21
回复
img
Daotin
  • GitHub

    绑定GitHub第三方账户获取
  • 签到新秀

    累计签到获取,不积跬步,无以至千里,继续坚持!

关注 私信 TA的资源

上传资源赚积分,得勋章
最新资源