|
【Linux】
AIO-3288J编译Linux后,下载后显示器没有任何显示。
发表于 2020-7-17 14:36:06
浏览:9086
|
回复:6
打印
只看该作者
[复制链接]
楼主
[ 本帖最后由 wx_Sp337 于 2020-7-17 14:50 编辑 ]\n\n以下是我的编译步骤,编译没有报错,成功编译了,下载后显示器不显示任何东西,但使用官方固件AIO-3288J-LVDS-UBUNTU16.04-GPT-20190304-1210.img.tar时,一切正常,望大神帮忙解决以下,谢谢!
第一步:解压:7z x firefly-sdk-20200629.7z -r
root@book-virtual-machine:/home/book/hqslinux# 7z x firefly-sdk-20200629.7z -r
7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,8 CPUs)
Processing archive: firefly-sdk-20200629.7z
Extracting firefly-sdk/.git/config
Extracting firefly-sdk/.git/description
Extracting firefly-sdk/.git/info/exclude
Extracting firefly-sdk/.git/refs/heads/firefly
Extracting firefly-sdk/.git/logs/refs/heads/firefly
Extracting firefly-sdk/.git/HEAD
Extracting firefly-sdk/.git/logs/HEAD
Extracting firefly-sdk/.git/index
Extracting firefly-sdk/.git/packed-refs
Extracting firefly-sdk/.gitignore
Extracting firefly-sdk/.git/objects/pack/pack-041f856298da7beb177ea65c0c47ebb2b0b4f781.idx
Extracting firefly-sdk/.git/objects/pack/pack-041f856298da7beb177ea65c0c47ebb2b0b4f781.pack
Extracting firefly-sdk/.git/hooks/applypatch-msg.sample
Extracting firefly-sdk/.git/hooks/commit-msg.sample
Extracting firefly-sdk/.git/hooks/fsmonitor-watchman.sample
Extracting firefly-sdk/.git/hooks/post-update.sample
Extracting firefly-sdk/.git/hooks/pre-applypatch.sample
Extracting firefly-sdk/.git/hooks/pre-commit.sample
Extracting firefly-sdk/.git/hooks/pre-push.sample
Extracting firefly-sdk/.git/hooks/pre-rebase.sample
Extracting firefly-sdk/.git/hooks/pre-receive.sample
Extracting firefly-sdk/.git/hooks/prepare-commit-msg.sample
Extracting firefly-sdk/.git/hooks/update.sample
Extracting firefly-sdk/.git/refs/tags
Extracting firefly-sdk/.git/refs/remotes
Extracting firefly-sdk/.git/refs/heads
Extracting firefly-sdk/.git/refs
Extracting firefly-sdk/.git/objects/pack
Extracting firefly-sdk/.git/objects/info
Extracting firefly-sdk/.git/objects
Extracting firefly-sdk/.git/logs/refs/remotes
Extracting firefly-sdk/.git/logs/refs/heads
Extracting firefly-sdk/.git/logs/refs
Extracting firefly-sdk/.git/logs
Extracting firefly-sdk/.git/info
Extracting firefly-sdk/.git/hooks
Extracting firefly-sdk/.git/branches
Extracting firefly-sdk/.git
Extracting firefly-sdk
Everything is Ok
Folders: 16
Files: 23
Size: 4653818670
Compressed: 4599222482
root@book-virtual-machine:/home/book/hqslinux#
第二步:git reset --hard
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# git reset --hard
Checking out files: 100% (137868/137868), done.
HEAD is now at 442ad59 [SDK]:Init Firefly SDK in 20200628
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# la
app debian docs .git Makefile rkbin u-boot
buildroot device envsetup.sh .gitignore mkfirmware.sh rkflash.sh yocto
build.sh distro external kernel prebuilts tools
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk#
第三步:git clone https://github.com/FireflyTeam/bundle.git -b rk3288-linux-bundle
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# git clone https://github.com/FireflyTeam/bundle.git -b rk3288-linux-bundle
Cloning into 'bundle'...
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 46 (delta 6), reused 29 (delta 5), pack-reused 14
Unpacking objects: 100% (46/46), done.
Checking connectivity... done.
第四步:./bundle/update rk3288-linux-bundle
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# ./bundle/update rk3288-linux-bundle
[Info]Update Bundle repo...
Already on 'rk3288-linux-bundle'
-------------------------------------------
[Info]Update to FETCH_HEAD:
Receiving objects: 100% (1813/1813), 9.76 MiB | 17.84 MiB/s, done.
Resolving deltas: 100% (1537/1537), completed with 1151 local objects.
From ./bundle/0.bundle
* branch HEAD -> FETCH_HEAD
[Info]Fetch ./bundle/0.bundle successfully!!
第五步:git rebase FETCH_HEAD
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# git rebase FETCH_HEADFirst, rewinding head to replay your work on top of it...
Fast-forwarded firefly to FETCH_HEAD.
第六步:./bundle/update common-linux-bundle
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# ./bundle/update common-linux-bundle
[Info]Update Bundle repo...
Already on 'common-linux-bundle'
-------------------------------------------
[Info]Update to FETCH_HEAD:
From ./bundle/2.bundle
* branch HEAD -> FETCH_HEAD
[Info]Fetch ./bundle/2.bundle successfully!!
第七步:git rebase FETCH_HEAD
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# git rebase FETCH_HEAD
Current branch HEAD is up to date.
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# la
app build.sh debian distro envsetup.sh .git kernel mkfirmware.sh rkbin tools yocto
buildroot bundle device docs external .gitignore Makefile prebuilts rkflash.sh u-boot
第八步:./build.sh aio-3288j-ubuntu.mk
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# ./build.sh aio-3288j-ubuntu.mk
processing option: aio-3288j-ubuntu.mk
switching to board: /home/book/hqslinux/firefly-sdk/device/rockchip/rk3288/aio-3288j-ubuntu.mk
相关配置(我这里执行完指令后与官方的不一样,不知为啥):device/rockchip/.BoardConfig.mk
1 #!/bin/bash
2
3 CMD=`realpath $BASH_SOURCE`
4 CUR_DIR=`dirname $CMD`
5
6 source $CUR_DIR/firefly-rk3288-ubuntu.mk
7
8 # Kernel dts
9 export RK_KERNEL_DTS=rk3288-firefly-aio
~
~
".BoardConfig.mk" 9L, 160C 9,1 All
第九步:解压Ubuntu根文件系统
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# la
app envsetup.sh rk3288_ubuntu_16.04_armhf_20200403142221.img.7z
buildroot external rkbin
build.sh .git rkflash.sh
bundle .gitignore rockdev
debian kernel tools
device Makefile u-boot
distro mkfirmware.sh yocto
docs prebuilts
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# 7z x rk3288_ubuntu_16.04_armhf_20200403142221.img.7z
7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,8 CPUs)
Processing archive: rk3288_ubuntu_16.04_armhf_20200403142221.img.7z
Extracting rk3288_ubuntu_16.04_armhf_20200403142221.img
Everything is Ok
Size: 1912589312
Compressed: 520512633
第十步:移动Ubuntu根文件系统到指定文件夹
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# mv rk3288_ubuntu_16.04_armhf_20200403142221.img ubuntu_rootfs/rk3288_ubuntu_rootfs.img
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk/ubuntu_rootfs# ls
rk3288_ubuntu_rootfs.img
第十一步:编译 :./build.sh
Image: image in rockdev is ready
Make image ok!
File name is AIO-3288J-UBUNTUUBUNTU-GPT
Rename the file? [N|y]7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777Make update.img
start to make update.img...
dumpe2fs 1.42.13 (17-May-2015)
Android Firmware Package Tool v1.65
------ PACKAGE ------
Add file: ./package-file
Add file: ./Image/MiniLoaderAll.bin
Add file: ./Image/parameter.txt
Add file: ./Image/trust.img
Add file: ./Image/uboot.img
Add file: ./Image/boot.img
Add file: ./Image/misc.img
Add file: ./Image/recovery.img
Add file: ./Image/rootfs.img
Add CRC...
Make firmware OK!
------ OK ------
********RKImageMaker ver 1.66********
Generating new image, please wait...
Writing head info...
Writing boot file...
Writing firmware...
Generating MD5 data...
MD5 data generated successfully!
New image generated successfully!
Making ./Image/update.img OK.
/home/book/hqslinux/firefly-sdk
Make update image ok!
/home/book/hqslinux/firefly-sdk/rockdev/pack/AIO-3288J-UBUNTUUBUNTU-GPT-20200717-0940.img
./build.sh: line 558: /home/book/hqslinux/firefly-sdk/.repo/repo/repo: No such file or directory
./build.sh: line 561: /home/book/hqslinux/firefly-sdk/.repo/repo/repo: No such file or directory
cp: omitting directory '/home/book/hqslinux/firefly-sdk/rockdev/pack'
第十二步:下载
|
|