RB5为谷歌官方推荐开发板:https://source.android.com/docs/setup/create/devices
Image download
https://releases.linaro.org/96boards/rb5/linaro/debian/21.12/
bootloader
1 2 3 4
| $ mkdir org-linux $ cd org-linux $ wget https://releases.linaro.org/96boards/rb5/linaro/rescue/21.12/rb5-bootloader-ufs-linux-21.zip -o rb5-bootloader-ufs-linux-47528.zip $ gunzip rb5-bootloader-ufs-linux-47528.zip
|
kernel
1 2 3
| $ cd org-linux $ wget https://releases.linaro.org/96boards/rb5/linaro/debian/21.12/boot-linaro-sid-qrb5165-rb5-146.img.gz $ gunzip boot-linaro-sid-qrb5165-rb5-146.img.gz
|
rootfs
1 2 3
| $ cd org-linux $ wget https://releases.linaro.org/96boards/rb5/linaro/debian/21.12/linaro-sid-gnome-qrb5165-rb5-146.img.gz $ gunzip linaro-sid-gnome-qrb5165-rb5-146.img.gz
|
qdl build
1 2 3 4 5 6 7 8 9 10 11
| $ git clone https: $ cd qdl $ make cc -O2 -Wall -g `xml2-config --cflags` -c -o firehose.o firehose.c cc -O2 -Wall -g `xml2-config --cflags` -c -o qdl.o qdl.c cc -O2 -Wall -g `xml2-config --cflags` -c -o sahara.o sahara.c cc -O2 -Wall -g `xml2-config --cflags` -c -o util.o util.c cc -O2 -Wall -g `xml2-config --cflags` -c -o patch.o patch.c cc -O2 -Wall -g `xml2-config --cflags` -c -o program.o program.c cc -O2 -Wall -g `xml2-config --cflags` -c -o ufs.o ufs.c cc -o qdl firehose.o qdl.o sahara.o util.o patch.o program.o ufs.o `xml2-config --libs` -ludev
|
flash bootloader
sw_0状态改为 011000
去掉全部接线
插出micro-usb线,用来观察串口输出
按住1按键,插出type-c线,再插入电源线,进入9008模式
1 2 3 4 5 6
| $ cd org-linux/rb5-bootloader-ufs-linux-47528 $ ../qdl/qdl prog_firehose_ddr.elf rawprogram?.xml patch?.xml HELLO version: 0x2 compatible: 0x1 max_len: 1024 mode: 0 READ64 image: 13 offset: 0x0 length: 0x40 READ64 image: 13 offset: 0x40 length: 0x310 READ64 image: 13 offset: 0x1000 length: 0x1000
|
flash kernel
sw_0状态改为 011000
去掉全部接线
插出micro-usb线,用来观察串口输出
按住2按键(音量-),插出type-c线,再插入电源线,进入fastboot模式
1 2 3 4 5
| $ cd org-linux $ fastboot flash boot org-linux/boot-linaro-sid-qrb5165-rb5-146.img Sending 'boot_a' (21196 KB) OKAY [ 0.504s] Writing 'boot_a' OKAY [ 0.086s] Finished. Total time: 0.636s
|
flash rootfs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| $ cd org-linux $ fastboot flash rootfs org-linux/linaro-sid-gnome-qrb5165-rb5-146.img Sending sparse 'rootfs' 1/6 (781893 KB) OKAY [ 18.365s] Writing 'rootfs' OKAY [ 18.401s] Sending sparse 'rootfs' 2/6 (760396 KB) OKAY [ 17.921s] Writing 'rootfs' OKAY [ 17.284s] Sending sparse 'rootfs' 3/6 (715852 KB) OKAY [ 16.860s] Writing 'rootfs' fastboot flash rootfs OKAY [ 20.323s] Sending sparse 'rootfs' 4/6 (784351 KB) fastboot flash rootfs fastboot flash rootfs fastboot flash rootfs fastboot flash rootfs fastboot flash rootfs OKAY [ 18.432s] Writing 'rootfs' OKAY [ 15.555s] Sending sparse 'rootfs' 5/6 (785810 KB) OKAY [ 18.547s] Writing 'rootfs' OKAY [ 23.077s] Sending sparse 'rootfs' 6/6 (433062 KB) OKAY [ 10.227s] Writing 'rootfs' OKAY [ 16.157s] Finished. Total time: 211.761s
|
glmark2 test
作为对比, Intel N100的分数为1522