配置ssh鏈結後sync 一下 執行命令repo sync -j2把原始碼拉下來後編譯遇到一些問題
mkdir rk3288_android_7.0
cd rk3288_android_7.0
repo sync -j2
**## build
cd rk3288-android-7.0/u-boot/
//./mkv7.sh表示arm是32位的 ,如果是64位的arm執行./mkv8.sh命令
make clean && make rk3288_secure_defconfig && ./mkv7.sh
編譯後所看到 的log資訊如下
clean examples/standalone
clean tools
clean tools/lib tools/common
clean u-boot.lds include/bmp_logo.h include/bmp_logo_data.h
#### make completed successfully (4 seconds) ####
hostcc scripts/basic/fixdep
hostcc scripts/kconfig/conf.o
hostcc scripts/kconfig/zconf.tab.o
hostld scripts/kconfig/conf
## configuration written to .config
##### make completed successfully (4 seconds) ####
******************************
* make aarch32 uboot *
******************************
scripts/kconfig/conf --silentoldconfig kconfig
./tools/boot_merger
................
./tools/rk_tools/rkboot/rk3288miniall.ini
out:rk3288_loader_v1.06.236.bin
fix opt:rk3288_loader_v1.06.236.bin
merge success(rk3288_loader_v1.06.236.bin)
./tools/loaderimage --pack --trustos tools/rk_tools/bin/rk32/rk3288_tee_ta_v1.33.bin trust.img
load addr is 0x8400000!
pack input tools/rk_tools/bin/rk32/rk3288_tee_ta_v1.33.bin
pack file size: 619356
crc = 0xd6e26d7c
pack trust.img success!
./tools/loaderimage --pack --uboot u-boot.bin uboot.img
load addr is 0x0!
pack input u-boot.bin
pack file size: 672872
crc = 0xc436d8ae
pack uboot.img success!
pack uboot.img success! 這句話表示uboot編譯成功!!
cd rk3288-android-7.0\kernel\arch\arm\boot\dts
make clean
make arch=arm rockchip_defconfig
make arch=arm rk3288-evb-act8846.img -j24
// > rk3288-evb-act8846.img 為dts 檔案 -j24表示開24條執行緒編譯
發現編譯不過出現
/bin/sh: 1: lzop: not found
解決方案如下:
sudo apt-get install lzop //提前把這個安裝上。
編譯成功log資訊如下:
pack to resource.img successed!
image: resource.img (with rk3288-evb-act8846.dtb logo.bmp logo_kernel.bmp) is ready
image: boot.img (with image resource.img) is ready
image: zboot.img (with zimage resource.img) is ready
#### make completed successfully (02:52 (mm:ss)) ####
cd rk3288-android-7.0\
source build/envsetup.sh
lunch rk3288-userdebug
make -j24
./mkimage.sh //打包命令
rk3288編譯環境
在mtk原來5.1的編譯環境基礎上,編譯rk3288 5.1 kernel 報錯。安裝 sudo apt get install lzop後面還有乙個git的錯誤,網上一大把。補充 openjdk的安裝起因 編譯環境一直用得好好的,今天突然編譯,提示jdk版本太低了,真是撞邪了。jdk大家經常安裝,...
PopMetal 基於RK3288的開源硬體平台
芯客網聯合瑞芯微推出一款基於rk3288四核處理器的開源硬體平台popmetal今日正式上市。popmetal將重新定義基於rk3288產品的二次開發概念,它面向所有群體開放,具有革命性意義。popmetal平台內建2gb記憶體,8gbemmc儲存。支援最新的802.11a b g n ac協議,2...
RK3288驅動設計分層的思想
與硬體無關的操作寫在led drv.c中,在led drv中通過呼叫結構體led operations間接初始化硬體。而led operations具體的實現就在board demo.c中實現。這裡是關於硬體的實現。如果有不同的板子,不需要重複修改board demo.c。只需要不斷新增新的c檔案,...