Difference between revisions of "Rock/U-Boot"
< Rock
(→Build) |
(→U-Boot: Develop) |
||
Line 15: | Line 15: | ||
git clone https://github.com/radxa/u-boot-rockchip.git | git clone https://github.com/radxa/u-boot-rockchip.git | ||
cd u-boot-rockchip | cd u-boot-rockchip | ||
+ | export ARCH=arm | ||
+ | export CROSS_COMPILE=arm-linux-gnueabihf- | ||
+ | make rk30xx | ||
− | + | '''RK3188Loader_uboot.bin''' will be created. '''DON'T FLASH IT.''' | |
− | + | == Develop == | |
− | + | ||
− | + | ||
− | + | Some important files and directories related to the Rockchip platform: | |
− | + | * [https://github.com/radxa/u-boot-rockchip/blob/master/UserManual '''UserManual'''] - documentation | |
+ | * [https://github.com/radxa/u-boot-rockchip/blob/master/include/configs/rk30xx.h '''include/configs/rk30xx.h'''] - configuration file | ||
+ | * [https://github.com/radxa/u-boot-rockchip/tree/master/tools/rk_tools '''tools/rk_tools'''] | ||
+ | |||
+ | * [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip '''board/rockchip'''] | ||
+ | ├── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/common '''common'''] | ||
+ | │ ├── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/common/armlinux '''armlinux'''] | ||
+ | │ ├── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/common/common '''common'''] | ||
+ | │ │ ├── A8MMU | ||
+ | │ │ ├── crc | ||
+ | │ │ ├── emmc | ||
+ | │ │ ├── fat | ||
+ | │ │ ├── rc4 | ||
+ | │ │ ├── rockusb | ||
+ | │ │ ├── serial_p9 | ||
+ | │ │ └── SPI | ||
+ | │ └── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/common/platform '''platform'''] | ||
+ | │ ├── rk2928 | ||
+ | │ └── rk30 | ||
+ | └── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/rk30xx '''rk30xx'''] | ||
− | + | * [https://github.com/radxa/u-boot-rockchip/tree/master/arch/arm/cpu/armv7/rk30xx '''arch/arm/cpu/armv7/rk30xx'''] | |
+ | * [https://github.com/radxa/u-boot-rockchip/blob/master/arch/arm/include/asm/arch-rk30xx/ '''arch/arm/include/asm/arch-rk30xx'''] | ||
== Unbrick == | == Unbrick == | ||
− | read [[rock/unbrick | Unbrick Rock]] | + | If something goes wrong and your device doesn't boot anymore, read [[rock/unbrick | Unbrick Rock]]. |
== Other U-Boot based products == | == Other U-Boot based products == | ||
Line 39: | Line 60: | ||
== External links == | == External links == | ||
+ | * https://github.com/rkchrome/uboot | ||
* https://github.com/neo-technologies/rockchip_u-boot | * https://github.com/neo-technologies/rockchip_u-boot | ||
* http://androtab.info/memopad/fastboot/ | * http://androtab.info/memopad/fastboot/ |
Revision as of 09:38, 2 September 2014
Contents
U-Boot
The source code of U-Boot for Rockchip is available, but more work needs to be done to make it usable for Radxa Rock.
Features
- both common fastboot USB protocol and Rockchip proprietary USB protocol are supported (Rockchip USB tools will work)
- format of partitions (images) are compatible to Rockchip proprietary bootloader (rkcrc, mkbootimg will work)
- (need more investigation...)
Build
git clone https://github.com/radxa/u-boot-rockchip.git cd u-boot-rockchip export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabihf- make rk30xx
RK3188Loader_uboot.bin will be created. DON'T FLASH IT.
Develop
Some important files and directories related to the Rockchip platform:
* UserManual - documentation * include/configs/rk30xx.h - configuration file * tools/rk_tools
* board/rockchip ├── common │ ├── armlinux │ ├── common │ │ ├── A8MMU │ │ ├── crc │ │ ├── emmc │ │ ├── fat │ │ ├── rc4 │ │ ├── rockusb │ │ ├── serial_p9 │ │ └── SPI │ └── platform │ ├── rk2928 │ └── rk30 └── rk30xx
* arch/arm/cpu/armv7/rk30xx * arch/arm/include/asm/arch-rk30xx
Unbrick
If something goes wrong and your device doesn't boot anymore, read Unbrick Rock.