最小 uboot 的在 S3C2440 中的实现
目录
最小 uboot 的在 S3C2440 中的实现....................................................................................................................................................................................1
1 Stage one ....................................................................................................................................................................................................................1
1.1 关看门狗 ........................................................................................................................................................................................................1
1.2 设置时钟 ........................................................................................................................................................................................................1
1.3 初始化 SDRAM ...............................................................................................................................................................................................3
1.4 重定位 ............................................................................................................................................................................................................3
1.5 执行 main .......................................................................................................................................................................................................8
2 Stage two ....................................................................................................................................................................................................................8
2.1 从 NAND FLASH 里把内核读入内存..............................................................................................................................................................8
2.2 设置参数 ........................................................................................................................................................................................................8
2.3 跳转执行 ........................................................................................................................................................................................................8
3 调试 ...........................................................................................................................................................................................................................8
4 改进 ...........................................................................................................................................................................................................................9
4.1 提高 CPU 频率................................................................................................................................................................................................9
4.2 启动 ICACHE ...................................................................................................................................................................................................9
Uboot 的根本目的在于加载内核,下面以三星 S3C2440 为平台,实现一个最小 uboot 来加载内核。
涉及到的芯片手册如下: