Andy Yan | d6e658c | 2017-06-01 18:01:31 +0800 | [diff] [blame] | 1 | Here is the step-by-step to boot U-Boot on rv1108 evb. |
| 2 | |
| 3 | Get ddr init binary |
| 4 | ============================================================================== |
| 5 | > git clone https://github.com/rockchip-linux/rkbin.git |
| 6 | > dd if=./rkbin/rv1x/rv1108ddr.bin of=ddr.bin bs=4 skip=1 |
| 7 | |
| 8 | Compile U-Boot |
| 9 | =========================== |
| 10 | > make CROSS_COMPILE=arm-linux-gnueabi- evb-rv1108_defconfig all |
| 11 | > ./tools/mkimage -n rv1108 -T rksd -d ddr.bin spl.bin |
| 12 | > cat spl.bin u-boot.bin > u-boot.img |
| 13 | |
| 14 | Flash the image by rkdeveloptool |
| 15 | ================================ |
| 16 | rkdeveloptool can get from https://github.com/rockchip-linux/rkdeveloptool.git |
| 17 | |
| 18 | Power on(or reset with RESET KEY) with MASKROM KEY preesed, and then: |
| 19 | > rkdeveloptool db ./rkbin/rv1x/RV1108_usb_boot.bin |
| 20 | > rkdeveloptool wl 0x40 u-boot.img |
| 21 | > rkdeveloptool RD |
| 22 | |
| 23 | You should be able to get U-Boot log message from boot console: |
| 24 | |
| 25 | DDR Version V1.02 20170220 |
| 26 | In |
| 27 | 400MHz |
| 28 | DDR3 |
| 29 | Bus Width=16 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=512MB |
| 30 | mach:2 |
| 31 | OUT |
| 32 | |
| 33 | |
| 34 | U-Boot 2017.05-00693-g3a5b171 (Jun 01 2017 - 17:37:53 +0800) |
| 35 | |
| 36 | Model: Rockchip RV1108 Evaluation board |
| 37 | DRAM: 128 MiB |
| 38 | APLL: 600000000 DPLL:792000000 GPLL:384000000 |
| 39 | MMC: |
| 40 | Using default environment |
| 41 | |
| 42 | In: serial@10210000 |
| 43 | Out: serial@10210000 |
| 44 | Err: serial@10210000 |
| 45 | Net: No ethernet found. |
| 46 | Hit any key to stop autoboot: 0 |
| 47 | => |