S5PV210_iROM_ApplicationNote_Preliminary_20091126

所需积分/C币:34 2017-07-08 12:19:14 703KB PDF
0
收藏 收藏
举报

S5PV210_iROM_ApplicationNote_Preliminary_20091126,S5PV210的启动过程文档。大概讲解,不涉及uboot。
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 Kj kir SEP26.2009 0.20 Revised Figure 1, Figure 2 K j 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 nm口m口1 ……5 1.1 H/ Feature 1.2 Feature 1.3 Advantage of iROM booting 1.4 Circuit Design Check Point 2 Operation 7 2.1 Operating Sequence 2.2 iROM(BLO) boot-up sequence(Refer 2.3 V210 boot-up diagram) 2.3 V210 boot-up diagram..... 24iROM2 nd boot-up sequence when1 boot fa∥… 10 2.4.1 uaRt 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 2. 10 Making checksum example code 2.11 Clock Configuration 21 3 Boot configuration… 22 4 Feature of the irom 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(ROM) 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 w/o(resets O)when it wakes up for recognizing Boot Device by OM pin Refer section1.4 1.1 H/W Feature To use IROM boot loader, several hardware features are required o S5PV210X microprocessor based on CortexA8 64KB Internal ROM (IROM) 96KB Internal sram General sdram and controller o 4/8 Bit High speed sd/MMc controller 4-bit SD/4-bit MMC/4 or 8-bit eMMC ● Nand flash controller OneNand Controller(AUDI) e ssD Controller UART/USB contorller 1.2 Feature OneNand 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 e> In iROM booting with nand flash, S5PV210 can support 8/16-bit H/ 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 One Nand boot - XmOCSn4/NFCSn2/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/NFCSn0 signal should be used for boot (BL1 code should be include checksum data in the start of BL1 binary Refer section 2. 9) SD/MMC/emmc boot mmc channel o 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 controler BL1 BL2 Booting Device Internal (MMC/oneNand/ SRAM(96KB Nand/eSSD/NOR) NOR Flash Controller BL2 essD IROM (BLO) Os Controller BL1 (64KB) HS-MMC Controller In case of 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 1 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: BL 1 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 OS. 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 fidential 2.2 iROM(BLO boot-up sequence(Refer 2.3 V210 boot-up diagram) 1. Disable the Watch-Dog Timer 2. nitialize the instruction cach 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 OM iROM Start BL1 From iroM DRAM Jump tb bl1 From bL2 Disable watchdog I Cache initialization Yes Deep Stop(ISRAM WakeUp status yes Jump to中2 No OS code start retention)∠ N BL2 loading Stack and variable initialization nit Sy Set clock Devider Secure Boot? No Set Lock Time Start PLL(MPS value) Yes Set Source clock BL2 Integrity OK OM pin ot stop Y Go to bL2 eSSD NAND OneNORSD UART NAND Flash MMC USB BL2 From bl1 No Checksum OK Up sta s Yes Go to 2nd boot Jump to dRAm Read eFuse value DRAM initialization N Secure boot oS loading to dram BL1 Integrity 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 mmmmm [Read OM pin UART boot 2st boot Uart boot BL1 load from 1st boot device USB boot UART boot ok? Y No CheckSum OK?? Yes USB boot No BL1 load No I from 2nd boot device USB boot ok? Boot stop CheckSum OK? Ye io to bl1 No 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

...展开详情
试读 26P S5PV210_iROM_ApplicationNote_Preliminary_20091126
立即下载 低至0.43元/次 身份认证VIP会员低至7折
抢沙发
一个资源只可评论一次,评论内容不能少于5个字
  • GitHub

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

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

    成功上传11个资源即可获取
关注 私信 TA的资源
上传资源赚积分or赚钱
    最新推荐
    S5PV210_iROM_ApplicationNote_Preliminary_20091126 34积分/C币 立即下载
    1/26
    S5PV210_iROM_ApplicationNote_Preliminary_20091126第1页
    S5PV210_iROM_ApplicationNote_Preliminary_20091126第2页
    S5PV210_iROM_ApplicationNote_Preliminary_20091126第3页
    S5PV210_iROM_ApplicationNote_Preliminary_20091126第4页
    S5PV210_iROM_ApplicationNote_Preliminary_20091126第5页
    S5PV210_iROM_ApplicationNote_Preliminary_20091126第6页

    试读结束, 可继续读2页

    34积分/C币 立即下载 >