wx_Sp337 发表于 2020-7-17 14:36:06

AIO-3288J编译Linux后,下载后显示器没有任何显示。

[ 本帖最后由 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 9.20Copyright (c) 1999-2010 Igor Pavlov2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,8 CPUs)
Processing archive: firefly-sdk-20200629.7z
Extractingfirefly-sdk/.git/config
Extractingfirefly-sdk/.git/description
Extractingfirefly-sdk/.git/info/exclude
Extractingfirefly-sdk/.git/refs/heads/firefly
Extractingfirefly-sdk/.git/logs/refs/heads/firefly
Extractingfirefly-sdk/.git/HEAD
Extractingfirefly-sdk/.git/logs/HEAD
Extractingfirefly-sdk/.git/index
Extractingfirefly-sdk/.git/packed-refs
Extractingfirefly-sdk/.gitignore
Extractingfirefly-sdk/.git/objects/pack/pack-041f856298da7beb177ea65c0c47ebb2b0b4f781.idx
Extractingfirefly-sdk/.git/objects/pack/pack-041f856298da7beb177ea65c0c47ebb2b0b4f781.pack
Extractingfirefly-sdk/.git/hooks/applypatch-msg.sample
Extractingfirefly-sdk/.git/hooks/commit-msg.sample
Extractingfirefly-sdk/.git/hooks/fsmonitor-watchman.sample
Extractingfirefly-sdk/.git/hooks/post-update.sample
Extractingfirefly-sdk/.git/hooks/pre-applypatch.sample
Extractingfirefly-sdk/.git/hooks/pre-commit.sample
Extractingfirefly-sdk/.git/hooks/pre-push.sample
Extractingfirefly-sdk/.git/hooks/pre-rebase.sample
Extractingfirefly-sdk/.git/hooks/pre-receive.sample
Extractingfirefly-sdk/.git/hooks/prepare-commit-msg.sample
Extractingfirefly-sdk/.git/hooks/update.sample
Extractingfirefly-sdk/.git/refs/tags
Extractingfirefly-sdk/.git/refs/remotes
Extractingfirefly-sdk/.git/refs/heads
Extractingfirefly-sdk/.git/refs
Extractingfirefly-sdk/.git/objects/pack
Extractingfirefly-sdk/.git/objects/info
Extractingfirefly-sdk/.git/objects
Extractingfirefly-sdk/.git/logs/refs/remotes
Extractingfirefly-sdk/.git/logs/refs/heads
Extractingfirefly-sdk/.git/logs/refs
Extractingfirefly-sdk/.git/logs
Extractingfirefly-sdk/.git/info
Extractingfirefly-sdk/.git/hooks
Extractingfirefly-sdk/.git/branches
Extractingfirefly-sdk/.git
Extractingfirefly-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 :Init Firefly SDK in 20200628
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# la
app      debiandocs         .git      Makefile       rkbin       u-boot
buildrootdeviceenvsetup.sh.gitignoremkfirmware.shrkflash.shyocto
build.sh   distroexternal   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
Update Bundle repo...
Already on 'rk3288-linux-bundle'
-------------------------------------------
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
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
Update Bundle repo...
Already on 'common-linux-bundle'
-------------------------------------------
Update to FETCH_HEAD:
From ./bundle/2.bundle
* branch            HEAD       -> FETCH_HEAD
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.shdebiandistroenvsetup.sh.git      kernel    mkfirmware.shrkbin       tools   yocto
buildrootbundle    devicedocs    external   .gitignoreMakefileprebuilts      rkflash.shu-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
buildrootexternal       rkbin
build.sh   .git         rkflash.sh
bundle   .gitignore   rockdev
debian   kernel         tools
device   Makefile       u-boot
distro   mkfirmware.shyocto
docs       prebuilts
root@book-virtual-machine:/home/book/hqslinux/firefly-sdk# 7z x rk3288_ubuntu_16.04_armhf_20200403142221.img.7z

7-Zip 9.20Copyright (c) 1999-2010 Igor Pavlov2010-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

Extractingrk3288_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 isAIO-3288J-UBUNTUUBUNTU-GPT
Rename the file? 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'
第十二步:下载

时间的蝴蝶 发表于 2020-7-17 16:06:10

[ 本帖最后由 时间的蝴蝶 于 2020-7-17 16:13 编辑 ]\n\n看起来很正常。是用的什么屏呢?默认是使用 HDMI 显示。
看下仓库的提交信息,
cd firefly-sdk,git log
cd bundle,git log common-linux-bundle,git log rk3288-linux-bundle
换下 Ubuntu18.04 试下行不行呢?

wx_Sp337 发表于 2020-7-17 17:19:04

时间的蝴蝶 发表于 2020-7-17 16:06
[ 本帖最后由 时间的蝴蝶 于 2020-7-17 16:13 编辑 ]\n\n看起来很正常。是用的什么屏呢?默认是使用 HDMI...

book@www.100ask.org:~/hqslinux/firefly-sdk$ git log
commit 6524719ba7d76ea9c103905962456c633ea9139e
Author: liulq <llq@t-chip.com.cn>
Date:   Mon Jul 6 15:12:33 2020 +0800

    : update in commit f6759c8e50d7768338740cbd1b0d8803011371c0

commit 179824a7a69889fae202039b9bcdbbec3f468c2c
Author: liulq <llq@t-chip.com.cn>
Date:   Mon Jul 6 15:12:19 2020 +0800

    : update in commit 43ba1641bbfd903c9406c9aa30e8845f1a75bfaf

commit 442ad5955470e2f4f2336881e9bc14ec4c041572
Author: Firefly <service@t-firefly.com>
Date:   Sun Jun 28 18:09:32 2020 +0800

    :Init Firefly SDK in 20200628

commit f2bc782ebe213b95d05481f3b42d60f46909abeb
Author: Firefly <service@t-firefly.com>
Date:   Sun Jun 28 18:09:31 2020 +0800

    :init commit 8cd3ee6e1a50ad9f40466bcadb236c619c42ef19
:...skipping...
commit 6524719ba7d76ea9c103905962456c633ea9139e
Author: liulq <llq@t-chip.com.cn>
Date:   Mon Jul 6 15:12:33 2020 +0800

    : update in commit f6759c8e50d7768338740cbd1b0d8803011371c0

commit 179824a7a69889fae202039b9bcdbbec3f468c2c
Author: liulq <llq@t-chip.com.cn>
Date:   Mon Jul 6 15:12:19 2020 +0800

    : update in commit 43ba1641bbfd903c9406c9aa30e8845f1a75bfaf

commit 442ad5955470e2f4f2336881e9bc14ec4c041572
Author: Firefly <service@t-firefly.com>
Date:   Sun Jun 28 18:09:32 2020 +0800

    :Init Firefly SDK in 20200628

commit f2bc782ebe213b95d05481f3b42d60f46909abeb
Author: Firefly <service@t-firefly.com>
Date:   Sun Jun 28 18:09:31 2020 +0800

    :init commit 8cd3ee6e1a50ad9f40466bcadb236c619c42ef19

commit aad30362b358d2e80f490a903c54624926961fa6
Author: Firefly <service@t-firefly.com>
Date:   Sun Jun 28 18:09:19 2020 +0800

    :init commit a12a8d404c0a12bd30f0200ee84d06b00894f1f6

commit 4f651950a8fabe368d16333b02631f7bfa39bb6b
Author: Firefly <service@t-firefly.com>
Date:   Sun Jun 28 18:09:18 2020 +0800

    :init commit 1520d5b2b2beec5e1c3209d3178219e93ef08bca

commit cadb67d2ebb94f0efb7fce14e647159014f05321
Author: Firefly <service@t-firefly.com>
Date:   Sun Jun 28 18:09:17 2020 +0800

    :init commit 446bd615fd7cb9bc7a159fe5c2019ed08d1a7a93

commit 96b61c5b143b6c902f59c2e0246c5d48ad3b2e06
Author: Firefly <service@t-firefly.com>
Date:   Sun Jun 28 18:09:12 2020 +0800

    :init commit b9c8bcf831cbe2a510c7dc3b108adc2788107b6c

commit c8ad85e00b26379958690aaca42246e3944a0aa2
Author: Firefly <service@t-firefly.com>
Date:   Sun Jun 28 18:09:11 2020 +0800
:





git log common-linux-bundle

book@www.100ask.org:~/hqslinux/firefly-sdk/bundle$ git log common-linux-bundle
commit a4a05a9998057d499b7596c102c6350c79d5e807
Author: zhangxf <zxf0@t-chip.com.cn>
Date:   Fri Jul 3 11:52:42 2020 +0800

    update: 2.bundle
   
    c1e02d8e1 : update in commit e590d19a4db8c9a9f44daa55146d51ad14a7a9c0

commit 815383720061f97d5f06a2981eee72f0762e1828
Author: zhangxf <zxf0@t-chip.com.cn>
Date:   Fri Jul 3 09:22:05 2020 +0800

    update: fix git pull to local branch

commit 6aa25c06e56794e69bb554bfa6e527cc720734b2
Author: zhangxf <zxf0@t-chip.com.cn>
Date:   Wed Jul 1 15:09:23 2020 +0800

    update: 1.bundle
   
    4efd7b76b : update in commit 17b63ddd7a1f4db6f1d468aaf61cb6903335d5b2
:...skipping...
commit a4a05a9998057d499b7596c102c6350c79d5e807
Author: zhangxf <zxf0@t-chip.com.cn>
Date:   Fri Jul 3 11:52:42 2020 +0800

    update: 2.bundle
   
    c1e02d8e1 : update in commit e590d19a4db8c9a9f44daa55146d51ad14a7a9c0

commit 815383720061f97d5f06a2981eee72f0762e1828
Author: zhangxf <zxf0@t-chip.com.cn>
Date:   Fri Jul 3 09:22:05 2020 +0800

    update: fix git pull to local branch

commit 6aa25c06e56794e69bb554bfa6e527cc720734b2
Author: zhangxf <zxf0@t-chip.com.cn>
Date:   Wed Jul 1 15:09:23 2020 +0800

    update: 1.bundle
   
    4efd7b76b : update in commit 17b63ddd7a1f4db6f1d468aaf61cb6903335d5b2

commit c1e57529bb99db9980518f46f8afd83f046586b6
Author: zhangxf <zxf0@t-chip.com.cn>
Date:   Mon Jun 29 17:28:28 2020 +0800

    update: 0.bundle
   
    93d19b218 : update in commit da4f63c084e7646b8d20f9c1fcbedb37f2dee36a

commit 0688d0e83017e8e764f54a914865a6150bcdfba1
Author: zhangxf <zxf0@t-chip.com.cn>
Date:   Mon Jun 29 15:02:46 2020 +0800

    update to master(dadfee7e84e0f1ebce232382946bc1af334a6b59)
~
~
~




git log rk3288-linux-bundle

book@www.100ask.org:~/hqslinux/firefly-sdk/bundle$ git log rk3288-linux-bundle
commit 1bf3ff0e7e8f503e0f55fb916e735441a2ef3983
Author: liulq <llq@t-chip.com.cn>
Date:   Mon Jul 6 15:13:10 2020 +0800

    update: 0.bundle
   
    6524719ba : update in commit f6759c8e50d7768338740cbd1b0d8803011371c0
    179824a7a : update in commit 43ba1641bbfd903c9406c9aa30e8845f1a75bfaf

commit 84cd14e9b02cdc188b8485a33d695e36a56e98a8
Author: liulq <llq@t-chip.com.cn>
Date:   Mon Jul 6 15:07:03 2020 +0800

    update to master(ecca8a32ca385acc4d2e346ff3aa621568ce63c0)


wx_Sp337 发表于 2020-7-17 17:21:54

时间的蝴蝶 发表于 2020-7-17 16:06
[ 本帖最后由 时间的蝴蝶 于 2020-7-17 16:13 编辑 ]\n\n看起来很正常。是用的什么屏呢?默认是使用 HDMI...

我的显示屏也是HDMI,我试过rk3288_ubuntu_18.04_armhf_ext4_v2.03_20200616-1419_DESKTOP.img,但结果都一样,没有任何显示。

时间的蝴蝶 发表于 2020-7-20 09:34:11

看下串口有什么打印信息;
重启下屏幕,systemctl restart lightdm

wx_Sp337 发表于 2020-7-20 09:53:47

时间的蝴蝶 发表于 2020-7-20 09:34
看下串口有什么打印信息;
重启下屏幕,systemctl restart lightdm

1.显示器没有显示,该怎么输入systemctl restart lightdm重启屏幕。
2.串口打印信息通过什么工具查看。

时间的蝴蝶 发表于 2020-7-20 14:33:18

串口调试 http://wiki.t-firefly.com/zh_CN/AIO-3288J/debug.html
页: [1]
查看完整版本: AIO-3288J编译Linux后,下载后显示器没有任何显示。