【求救】firefly-rk3288烧写自己生成的Linux固件失败
大家好!本来烧写的官方ubuntu18.04的固件,然后想改烧自己根据教程http://wiki.t-firefly.com/zh_CN/Firefly-RK3288/linux_compile.html生成的FIREFLY-RK3288-UBUNTUUBUNTU-GPT。
步骤如下:
1)运行sudo upgrade_tool_v1.34 uf /path/firmware
shell提示:Download Firmware Fail
2)教程说“如果烧写失败,先尝试擦出flash,然后再升级”
所以我先擦除后烧写:
sudo upgrade_tool_v1.34 ef /path/firmware(固件路径)
sudo upgrade_tool_v1.34 uf /path/firmware(固件路径)
shell提示:No found any rockusb device,please plug device in!
尝试多次,依然失败。
3)upgrade tool log如下
18:05:06 Upgrade Tool v1.34
18:05:06 Error:stat config.ini failed,err=2
18:05:06 Test Device Start
18:05:06 Test Device Success
18:05:06 Check Chip Start
18:05:06 Check Chip Success
18:05:06 Get FlashInfo Start
18:05:06 <LAYER 1-3> INFO:FlashInfo: 0 0 E9 0 0 4 4 0 28 0 1
18:05:06 Get FlashInfo Success
18:05:06 Prepare IDB Start
18:05:06 <LAYER 1-3> INFO:CS(1) (7456MB) (SAMSUNG)
18:05:06 Prepare IDB Success
18:05:06 Download IDB Start
18:05:06 Download IDB Success
18:05:06 Download Firmware Start
18:05:06 <LAYER 1-3> INFO:FlashInfo: 0 0 E9 0 0 4 4 0 28 0 1
18:05:06 <LAYER 1-3> INFO:Start download image,total=1974255104,band=64,DirectLBA=1,First4Access=1,Gpt=1
18:05:06 <LAYER 1-3> INFO:Start to download trust,offset=0x6000,size=4194304
18:05:06 <LAYER 1-3> INFO:Start to download uboot,offset=0x4000,size=4194304
18:05:06 <LAYER 1-3> INFO:Start to download boot,offset=0xa000,size=17401856
18:05:07 <LAYER 1-3> INFO:Start to download misc,offset=0x8000,size=49152
18:05:07 <LAYER 1-3> INFO:Start to download recovery,offset=0x1a000,size=16443392
18:05:08 <LAYER 1-3> INFO:Start to download rootfs,offset=0x5a000,size=1931937792
18:07:00 <LAYER 1-3> ERROR:RKA_Gpt_Download-->compare gpt backup failed
18:07:00 <LAYER 1-3> ERROR:DownloadImage-->RKA_Gpt_Check failed
18:07:00 Download Firmware Fail
18:10:55 Upgrade Tool v1.34
18:10:55 Error:stat config.ini failed,err=2
18:10:55 Test Device Start
18:10:55 Test Device Success
18:10:55 Get FlashInfo Start
18:10:55 <LAYER 1-3> INFO:FlashInfo: 0 0 E9 0 0 4 4 0 28 0 1
18:10:55 Get FlashInfo Success
18:10:55 Prepare IDB Start
18:10:55 <LAYER 1-3> INFO:CS(1) (7456MB) (SAMSUNG)
18:10:55 Prepare IDB Success
18:10:55 Erase IDB Start
18:10:55 Erase IDB Success
18:10:55 Reset Device Start
18:10:57 Reset Device Success
18:10:57 Wait For Maskrom Start
18:10:58 Wait For Maskrom Success
18:10:58 Download Boot Start
18:10:59 Download Boot Success
18:10:59 Wait For Maskrom Start
18:11:00 Wait For Maskrom Success
18:11:00 Test Device Start
18:11:00 Test Device Success
18:11:00 Get FlashInfo Start
18:11:00 <LAYER 1-3> INFO:FlashInfo: 0 0 E9 0 0 4 4 0 28 0 1
18:11:00 Get FlashInfo Success
18:11:00 Erase Flash Start
18:11:03 Erase Flash Success
18:11:03 Reset Device Start
18:11:05 Reset Device Success
18:11:17 Upgrade Tool v1.34
18:11:17 Error:stat config.ini failed,err=2
18:11:17 Download Boot Start
18:11:19 Download Boot Success
18:11:19 Wait For Maskrom Start
18:11:19 Wait For Maskrom Success
18:11:19 Test Device Start
18:11:19 Test Device Success
18:11:19 Check Chip Start
18:11:19 Check Chip Success
18:11:19 Get FlashInfo Start
18:11:19 <LAYER 1-3> INFO:FlashInfo: 0 0 E9 0 0 4 4 0 28 0 1
18:11:19 Get FlashInfo Success
18:11:19 Prepare IDB Start
18:11:19 <LAYER 1-3> INFO:CS(1) (7456MB) (SAMSUNG)
18:11:19 INFO:FindBackupSector3-->No Found
18:11:19 Prepare IDB Success
18:11:19 Download IDB Start
18:11:19 Download IDB Success
18:11:19 Download Firmware Start
18:11:19 <LAYER 1-3> INFO:FlashInfo: 0 0 E9 0 0 4 4 0 28 0 1
18:11:19 <LAYER 1-3> INFO:Start download image,total=1974255104,band=64,DirectLBA=1,First4Access=1,Gpt=1
18:11:19 <LAYER 1-3> INFO:Start to download trust,offset=0x6000,size=4194304
18:11:20 <LAYER 1-3> INFO:Start to download uboot,offset=0x4000,size=4194304
18:11:20 <LAYER 1-3> INFO:Start to download boot,offset=0xa000,size=17401856
18:11:21 <LAYER 1-3> INFO:Start to download misc,offset=0x8000,size=49152
18:11:21 <LAYER 1-3> INFO:Start to download recovery,offset=0x1a000,size=16443392
18:11:22 <LAYER 1-3> INFO:Start to download rootfs,offset=0x5a000,size=1931937792
18:13:27 <LAYER 1-3> ERROR:RKA_Gpt_Download-->compare gpt backup failed
18:13:27 <LAYER 1-3> ERROR:DownloadImage-->RKA_Gpt_Check failed
18:13:27 Download Firmware Fail
19:43:03 Upgrade Tool v1.34
19:43:03 Error:stat config.ini failed,err=2
20:15:44 Upgrade Tool v1.34
20:15:44 Error:stat config.ini failed,err=2
20:48:32 Upgrade Tool v1.34
20:48:32 Error:stat config.ini failed,err=2
21:04:46 Upgrade Tool v1.34
21:04:46 Error:stat config.ini failed,err=2
21:06:03 Upgrade Tool v1.34
21:06:03 Error:stat config.ini failed,err=2
21:10:10 Upgrade Tool v1.34 `` shell提示:No found any rockusb device,please plug device in! ``
没有检测到设备,升级/擦除 都要进 loader或maskrom 模式
`` shell提示:Download Firmware Fail ``
看信息主要部分都烧写完了,应该可以启动;可以看下时间信息有没有变化
root@firefly:~# cat /proc/version
... 2 SMP Fri Jul 17 16:37:15 CST 2020
本帖最后由 xhzhou1234 于 2020-7-20 15:14 编辑
谢谢!现在的状态是:
1)无论是windows下升级工具还是linux下升级工具都认不到设备:
$ sudo upgrade_tool_v134
List of rockusb connected
No found rockusb,Rescan press <R>,Quit press <Q>:r
所以没法用upgrade_tool操作。难道用镊子短接来进入maskrom 模式?
2)U-boot运行完毕,停在“Starting kernel”。内核都没有起来,没法“cat /proc/version” 想把串口log放上去的,结果真不知道里面是哪几个字符违规,提示“含有不良信息”,我也是醉了,尝试了半个多小时,没有成功,连放图片都不行。需要我用邮件发给您么?谢谢!
你先进 maskrom 模式,擦除,然后再烧写。
` 停在“Starting kernel” `
可能打包的固件有问题或者烧写错误;烧写官方固件也是同样问题吗? 本帖最后由 xhzhou1234 于 2020-7-21 17:19 编辑
1)upgrade tool提示没有rk设备,所以upgrade tool上没法操作,请问如何进入maskrom 模式?u-boot命令行可以进去,使用u-boot命令烧写内核恢复板子?
2)一开始是烧的是官方的Android5.1,然后烧了官方的ubuntu 18.04,都没问题。然后我按照http://wiki.t-firefly.com/zh_CN/Firefly-RK3288/linux_compile.html中的“部分编译”一节编译下载的linux-sdk(从firefly-sdk-20200629.7z解压的源代码origin是没有指明远端仓库URL的,导致更新下远程仓库没有成功)以及下载 的Ubuntu 18.04根文件系统编译出ubuntu固件(没有改任何代码),烧写时遇到题述问题
谢谢! - maskrom 模式
http://wiki.t-firefly.com/zh_CN/Firefly-RK3288/maskrom.html
- 代码的获取、更新
http://wiki.t-firefly.com/zh_CN/Firefly-RK3288/linux_compile.html#xia-zai-firefly-linux-sdk 本帖最后由 xhzhou1234 于 2020-7-22 18:18 编辑
谢谢你的回复。
1、 maskrom 模式
我的板子是Hardware Version 2016.06.23,如http://wiki.t-firefly.com/zh_CN/Firefly-RK3288/maskrom.html页面【Hardware Version 2016.06.23】栏图片所示,橘色方框内有两个铺铜的测试点,请问T13是左面那个还是右面那个?还是说两个测试点就是T13和C155。吐槽一下,图片太模糊了,好歹搞一个清晰一点的。更进一步地,加两个箭头,箭头中止端分别指向T13和C155,另一端分别写“T13”和“C155”,这样用户一看就明了(正是因为看不清T13是左侧测试点还是右侧测试点,我才没敢短接)。
2、代码的获取、更新
此处刚好是我要吐槽的,我相信你们更新linux-sdk教程(我没记错的话2020.6.29之前的教程不是这样的)之前没有从零开始一步一步测试过。1)7z 命令“-o”选项后面紧跟目录名,中间不能有空格,官方教程多了空格: 2)“.bundle/update”脚本没法运行的,“bundle”前少了斜杠,改成“./bundle/update”: 3)本次2020.6.29更新,代码管理方式进行了优化,使用不同的分支对应不同型号的SoC,且用户编译生成固件更方便,这样挺好: 问题在于按照教程用户把代码包解压后的仓库配置中没有指定origin指向的远端仓库URL地址(git clone时会) ,所以pull失败: 建议把“以下为从 github 处更新的方法:”后面的步骤进行细化并真正从零开始将步骤逐一进行验证。
3、关于用户提交的内容的自动审核。昨天跟今天提交信息时,都提示“含有不良信息”,我猜测服务器端只是做了简单的字符串匹配,导致完完全全的技术内容被认定为违规。我一次一次修改内容,依然不知道哪些字符串触发的问题。建议先把该功能下线,智能审核功能真正做好了再上线,太浪费时间了。Log,带注释的图片等,我是为了技术支持人员能够快速定位问题而上传的,结果成了原罪。【注!!】所以详细信息请见pdf文件《error.pdf》,谢谢!
谢谢!
{:4_213:}
1、Hardware Version 2014.09.30 版本,通过短接 `T13 测试点和电容 C155` 进入 maskrom 模式;
Hardware Version 2016.06.23 及之后的版本,通过短接图片中的两个黄铜触点进入 maskrom 模式。
2、代码获取方式改动较大,细节问题后续会改进;
3、已反馈
对于 WIKI 上的不足之处,会陆续改进,欢迎指正。
本帖最后由 xhzhou1234 于 2020-7-24 22:37 编辑
谢谢回复!
1、进入 maskrom 模式
尝试了多次,AndroidTool v2.58依然提示“没有发现设备”,没法进入maskrom 模式,短接后,串口打印如下:DDR Version 1.08 20190523
In
Channel a: DDR3 400MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
Channel b: DDR3 400MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
Memory OK
Memory OK
OUT
Boot1 Release Time: Nov 27 2019 15:30:08, version: 2.58
ChipType = 0x8, 249
mmc2:cmd19,20
mmc2:cmd14,20
wide = 8 pDataBuf=0 0
mmc2:cmd19,20
mmc2:cmd14,20
wide = 4 pDataBuf=0 0
SdmmcInit=2 0
BootCapSize=2000
UserCapSize=7456MB
mmc2:cmd23,20
SDC ERR: 0x20
SDMMC_CMD=0x20002352, SDMMC_RINISTS=0x104, SDMMC_STATUS=0x6906
mmc2:cmd18,20
mmc2:cmd13,20
SDM_Read error=40 ret=20
FwPartOffset=2000 , 2000
mmc2:cmd23,20
SDC ERR: 0x20
SDMMC_CMD=0x20002352, SDMMC_RINISTS=0x104, SDMMC_STATUS=0x6906
mmc2:cmd18,20
mmc2:cmd13,20
SDM_Read error=1f80 ret=20
mmc0:cmd8,400
mmc0:cmd8,400
mmc0:cmd8,400
SdmmcInit=0 1
UsbBoot ...59902
powerOn 562583
2、Linux SDK编译出错
使用./build.sh自动编译生成固件,提示“=Build buildroot failed!”
#TARGET_BOARD=rk3288
#OUTPUT_DIR=output/rockchip_rk3288
#CONFIG=rockchip_rk3288_defconfig
===========================================
make: Entering directory '/home/xh/wisdtour/firefly-sdk/buildroot'
GEN /home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/Makefile
/home/xh/wisdtour/firefly-sdk/buildroot/build/defconfig_hook.py -m /home/xh/wisdtour/firefly-sdk/buildroot/configs/rockchip_rk3288_defconfig /home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/.rockchipconfig
BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/build/buildroot-config/tristate.config BR2_CONFIG=/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/.config HOST_GCC_VERSION="5" BUILD_DIR=/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/build SKIP_LEGACY= BR2_DEFCONFIG=/home/xh/wisdtour/firefly-sdk/buildroot/configs/rockchip_rk3288_defconfig /home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/build/buildroot-config/conf --defconfig=/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/.rockchipconfig Config.in
Config.in.legacy:1037:warning: choice value used outside its choice group
/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/.rockchipconfig:79:warning: override: reassigning to symbol BR2_PACKAGE_MPP
/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/.rockchipconfig:80:warning: override: reassigning to symbol BR2_PACKAGE_MPP_ALLOCATOR_DRM
/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/.rockchipconfig:82:warning: override: reassigning to symbol BR2_PACKAGE_LINUX_RGA
/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/.rockchipconfig:262:warning: override: reassigning to symbol BR2_PACKAGE_RKWIFIBT
/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/.rockchipconfig:289:warning: override: reassigning to symbol BR2_PACKAGE_EXFAT
/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/.rockchipconfig:290:warning: override: reassigning to symbol BR2_PACKAGE_EXFAT_UTILS
/home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/.rockchipconfig:292:warning: override: reassigning to symbol BR2_PACKAGE_NTFS_3G
#
# configuration written to /home/xh/wisdtour/firefly-sdk/buildroot/output/rockchip_rk3288/.config
#
make: Leaving directory '/home/xh/wisdtour/firefly-sdk/buildroot'
you need to install 'unbuffer' (from package expect or expect-dev)
log saved on /home/xh/wisdtour/firefly-sdk/br.log
tail: 无法打开'/home/xh/wisdtour/firefly-sdk/br.log' 读取数据: 没有那个文件或目录
Command exited with non-zero status 1
you take 0:01.49 to build builroot
====Build buildroot failed!====
请问如何解决?
3、如之前指出的,origin并没有指向远程仓库,请问我需要如何配置才能指向远程仓库,进而可以获取最新的代码?
谢谢!
页:
[1]
2