Difference between revisions of "Uboot"

From Rockchip open source Document
Jump to: navigation, search
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
  
In your linux SDK root directory. enter to U-Boot directory. 
+
We recommand use below command to build U-Boot. It will use RK_UBOOT_DEFCONFIG in device/rockchip/.BoardConfig.mk to build U-Boot. Please modify RK_UBOOT_DEFCONFIG if it don't match your board. 
 +
 
 +
In your linux SDK root directory.
 +
<pre>./build.sh uboot
 +
</pre>
 +
 
 +
Or, you can use a separate command. In your linux SDK root directory. enter to U-Boot directory.&nbsp;
 
<pre>cd u-boot
 
<pre>cd u-boot
 
</pre>
 
</pre>
Line 10: Line 16:
 
For firefly-rk3399&nbsp;board. Use below command to build the U-Boot:&nbsp;
 
For firefly-rk3399&nbsp;board. Use below command to build the U-Boot:&nbsp;
 
<pre>./make.sh firefly-rk3399
 
<pre>./make.sh firefly-rk3399
 +
</pre>
 +
 +
For all other rk3399&nbsp;board. Use below command to build the U-Boot:&nbsp;
 +
<pre>./make.sh rk3399
 
</pre>
 
</pre>
  
Line 30: Line 40:
 
For phytec-rk3288&nbsp;board. Use below command to build the U-Boot:&nbsp;
 
For phytec-rk3288&nbsp;board. Use below command to build the U-Boot:&nbsp;
 
<pre>./make.sh phycore-rk3288
 
<pre>./make.sh phycore-rk3288
</pre>
 
 
For rk3288 miqi&nbsp;board. Use below command to build the U-Boot:&nbsp;
 
<pre>./make.sh miqi-rk3288
 
 
</pre>
 
</pre>
  
 
For rk3288-evb-rk1608 board. Use below command to build the U-Boot:&nbsp;
 
For rk3288-evb-rk1608 board. Use below command to build the U-Boot:&nbsp;
 
<pre>./make.sh evb-rk3288-rk1608</pre>
 
<pre>./make.sh evb-rk3288-rk1608</pre>
 +
 +
For all other rk3288 board. Use below command to build the U-Boot:&nbsp;
 +
<pre>./make.sh rk3288</pre>
 +
 +
For all rk1808 board. Use below command to build the U-Boot:&nbsp;
 +
<pre>./make.sh rk1808</pre>
 +
 +
For px30 board. Use below command to build the U-Boot:&nbsp;
 +
<pre>./make.sh evb-px30</pre>
 +
 +
For all other px30 board. Use below command to build the U-Boot:&nbsp;
 +
<pre>./make.sh px30</pre>
 +
 +
For all RK3399Pro board. Use below command to build the U-Boot:&nbsp;
 +
<pre>./make.sh rk3399pro</pre>
  
 
It will generate 3 binary image: rk3xxx_loader_vx.xx.xxx.bin, trust.img, uboot.img.&nbsp;
 
It will generate 3 binary image: rk3xxx_loader_vx.xx.xxx.bin, trust.img, uboot.img.&nbsp;

Latest revision as of 03:16, 4 September 2019

We recommand use below command to build U-Boot. It will use RK_UBOOT_DEFCONFIG in device/rockchip/.BoardConfig.mk to build U-Boot. Please modify RK_UBOOT_DEFCONFIG if it don't match your board. 

In your linux SDK root directory.

./build.sh uboot

Or, you can use a separate command. In your linux SDK root directory. enter to U-Boot directory. 

cd u-boot

For RK3399 sapphire-excavator board, VS-RK3399 board, Rock960 board. Use below command to build the U-Boot: 

./make.sh evb-rk3399

For firefly-rk3399 board. Use below command to build the U-Boot: 

./make.sh firefly-rk3399

For all other rk3399 board. Use below command to build the U-Boot: 

./make.sh rk3399

For firefly-rk3288 board. Use below command to build the U-Boot: 

./make.sh firefly-rk3288

For rk3288-evb-act8846 board. Use below command to build the U-Boot: 

./make.sh evb-rk3288

For rk3288-evb-rk808 board. Use below command to build the U-Boot: 

./make.sh fennec-rk3288

For rk3288 tinker board. Use below command to build the U-Boot: 

./make.sh tinker-rk3288

For phytec-rk3288 board. Use below command to build the U-Boot: 

./make.sh phycore-rk3288

For rk3288-evb-rk1608 board. Use below command to build the U-Boot: 

./make.sh evb-rk3288-rk1608

For all other rk3288 board. Use below command to build the U-Boot: 

./make.sh rk3288

For all rk1808 board. Use below command to build the U-Boot: 

./make.sh rk1808

For px30 board. Use below command to build the U-Boot: 

./make.sh evb-px30

For all other px30 board. Use below command to build the U-Boot: 

./make.sh px30

For all RK3399Pro board. Use below command to build the U-Boot: 

./make.sh rk3399pro

It will generate 3 binary image: rk3xxx_loader_vx.xx.xxx.bin, trust.img, uboot.img. 

rk3xxx_loader_vx.xx.xxx.bin: Rockchip miniloader. rk3xxx is the part number of the chip. vx.xx.xxx is the version number. Please flash this binary to miniloader partition. 

trust.img: ARM Trusted Firmware, Please flash this binary to trust partition

uboot.img: The U-Boot image, Please flash this binary to uboot partition

u-boot/
├── rk3399_loader_v1.09.112.bin
├── trust.img
└── uboot.img

Rockchip now only offically support miniloader+U-Boot boot to simplify the customer product design.  You can refer to boot option page for more boot path. But do remember that you should do it all by your own. Rockchip won't provide technical support for these boot option.