forked from geekboxzone/lollipop_u-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UserManual
105 lines (86 loc) · 3.92 KB
/
UserManual
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
1. Toolchain
Toolchain is define by CROSS_COMPILE in the file Makefile now, you modify or add your default toolchain path.
RK uboot default set toolchain as:
ifeq ($(ARCHV),aarch64)
ifneq ($(wildcard ../toolchain/aarch64-linux-android-4.9),)
CROSS_COMPILE ?= $(shell pwd)/../toolchain/aarch64-linux-android-4.9/bin/aarch64-linux-android-
endif
ifneq ($(wildcard ../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin),)
CROSS_COMPILE ?= $(shell pwd)/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
endif
else
ifneq ($(wildcard ../toolchain/arm-eabi-4.8),)
CROSS_COMPILE ?= $(shell pwd)/../toolchain/arm-eabi-4.8/bin/arm-eabi-
endif
ifneq ($(wildcard ../prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin),)
CROSS_COMPILE ?= $(shell pwd)/../prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-
endif
endif # ARCHV=aarch64
2. Configure the rk platform
rockchip support for uboot chip set configs as:
MID product:
configs\rk3288_defconfig
configs\rk3126_defconfig
configs\rk3128_defconfig
configs\rk3368_defconfig
BOX product:
configs\rk3288_box_defconfig
configs\rk3036_box_defconfig
configs\rk3128_box_defconfig
configs\rk3368_box_defconfig
example:
make rk3288_defconfig - Command to configure rk3288 platform for uboot.
3. Build
make - Command to make rk aarch32 uboot bin.
make ARCHV=aarch64 - Command to make rk aarch64 uboot bin.
4. Clean
make clean
make distclean - Command to clean all include config.
5. rk uboot bin
if uboot as first level bootloader, rk uboot just a bin, such as:
RK3288UbootLoader_V2.17.01.bin
if uboot as second level bootloader, rk uboot just a image, such as:
uboot.img - second level bootloader
uboot as second level bootloader configure by define CONFIG_SECOND_LEVEL_BOOTLOADER
if define CONFIG_MERGER_MINILOADER, rk uboot will merge mini loader bin which as first level bootloader, such as:
RK3288MiniLoaderAll(L)_V2.19.bin - fist level bootloader
if define CONFIG_MERGER_TRUSTIMAGE, rk uboot will merge trust image bin, such as:
trust.img - trustfirmware image bootloader
6. Chipset
support RK3288,RK3036,RK3126,RK3128,RK3368.
7. Storage
support emmc, sdcard, nand flash and ums.
8. configure file
rk uboot configure files as:
include\configs\rk_default_config.h - define all rk default module, just a common file.
include\configs\rk30plat.h - define detail configure for rk30 plat: rk3036, rk3126, rk3128
include\configs\rk32plat.h - define detail configure for rk32 plat: rk3288
include\configs\rk33plat.h - define detail configure for rk33 plat: rk3368
9. maskrom mode
if storage hasn't program rk first level bootloader, power on will enter maskrom mode, prepare for bootloader download.
10. rockusb mode
rk rockusb mode is using for down rk other images, such as kernel.img and so on.
Press VOL+ key to enter rockusb when rksdk board poweron.
11. Fastboot
Android fastboot, Press VOL- key to enter fastboot when rksdk board poweron. all command as:
fastboot support below command
fastboot getvar version
fastboot getvar version-bootloader
fastboot getvar unlocked
fastboot getvar secure
fastboot getvar product
fastboot getvar serialno
fastboot getvar partition-type:<partition_name>
fastboot getvar partition-size:<partition_name>
fastboot oem recovery
fastboot oem recovery:wipe_data
fastboot oem unlock
fastboot oem unlock_accept
fastboot oem lock
fastboot flash <partition_name> [ <filename> ]
fastboot reboot
fastboot reboot-bootloader
fastboot continue
fastboot boot <kernel> [ <ramdisk> ]
fastboot update <filename> (this file should use make updatepackage in android root directory to generate it)
fastboot flashall