-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CM201-1-6 YS S905L3 EMMC成功刷入,成功获取有线网络IP #2539
Comments
这个需要找到可以root的安卓,刷个能开启u盘更新模式的安卓,引导从u盘启动。 |
刷入的底包 android 4.4.2 是自带root, 且开放了ADB 5114 端口。将armbian 刷入 EMMC后,无法获取IP。怀疑是不是必须得刷一个Android9.0 的底包才行呢? |
/boot/目录下试试复制个u-boot.emmc |
EMMC刷入 bookworm 6.6.50 后,nmcli网络显示connected,但是未获取到IP相较于上面的6.1.107,离上网又进了一步。
这是为什么??使用netplan配置后 apply 也无法上网正常获取IP。迷惑? |
USB里可以正常使用有线网络,安装到EMMC就不可以了? 另外一种方法是复制u-boot,在/boot/目录下有一堆u-boot-xxx.bin, 在usb里使用的时候复制成u-boot.ext,在emmc里时候的时候复制成u-boot.emmc。固件里自带的那些同家族的u-boot都可以试试复制结果,看看哪个能正常使用。 |
暂时结论: 最终结论一:android4.4.2 内核版本3.4.19 其底包中的bootloader.partition 代码程序是无法成功引导(即使成功引导也存在网络无法获取IP等疑难杂症) 高版本内核6.1.109/6.6.50 armbian系统。 最终结论二:该issue究其根本是 CM201-1 YS S905L3 这块板子缺少合适的andriod9.0底包。因此需要进行同系SOC板子的底包移植。搜索全网没有包,那就自己来。成功完成ATV android9.0系统的移植,并成功刷入。最终,解决掉该issue 无法获取IP的问题。 |
@ophub 已经解决了,自己移植了ATV android9.0线刷固件包刷入并U盘启动armbian(能获取有线IP),并成功刷入EMMC。 移植包仅适用于此板设备盒子! 可以参考移植过程,移植其他板子的所需要的固件包。 SOC: [S905L3] 主板型号:CM201-1-6 20210428 以下是移植过程和刷入armbian的合适的 DTB/U-BOOT 文件:
boot_select kernel[0,3) recovery[3,10) factory[10,*)
boot_select current count=0
boot_select current count=1
boot_select current count=2
boot_select current count=3
boot_select current count=4
boot_select current count=5
boot_select count=5
boot_select=recovery
Enter USB burn
Set Addr 48
Get DT cfg
Get DT cfg
Get DT cfg
set CFG
ID[16]
tplcmd[ echo 12345]
12345
[MSG]ret = 0
[info]success
BULKcmd[ low_power]
[info]success
BULKcmd[bootloader_is_old]
[info]success
BULKcmd[erase_bootloader]
[info]success
BULKcmd[reset]
reboot mode: normal
INFO: PSCI Affinity Map:
INFO: AffInst: Level 0, MPID 0x0, State ON
INFO: AffInst: Level 0, MPID 0x1, State OFF
INFO: AffInst: Level 0, MPID 0x2, State OFF
INFO: AffInst: Level 0, MPID 0x3, State OFF
bl31 reboot reason: 0x1001
bl31 reboot reason: 0x1001
ERROR: gxbb System Reset: SCP error 1.
GXLX2:BL1:3cfee7:42a5ae;FEAT:ADFC318C:0;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 99979
BL2 Built : 13:36:55, Jun 22 2020.
gxl g85d6ad1 - longyong.chen@droid02-sz
Board ID = 7, adc=542
set vcck to 1070 mv
set vddee to 1070 mv
match board id: 7
CPU clk: 1200MHz
Skip usb!
0.0;
TE: 1636022
BL2 Built : 13:36:55, Jun 22 2020.
gxl g85d6ad1 - longyong.chen@droid02-sz
Board ID = 7, adc=542
set vcck to 1070 mv
set vddee to 1070 mv
match board id: 7
CPU clk: 1200MHz
BL2 USB
LPDDR3
LPDDR3 chl: Rank0+1 @ 792MHz - FAIL
LPDDR3 chl: Rank0 @ 792MHz
bist_test rank: 0 20 06 3a 37 1d 52 1e 04 38 37 1d 52 20 07 3a 38 1f 51 1d 02 39 36 1b 52 650 - PASS
Rank0: 1024MB(auto)-2T-3
0.0;
TE: 2404861
BL2 Built : 13:36:55, Jun 22 2020.
gxl g85d6ad1 - longyong.chen@droid02-sz
Board ID = 7, adc=542
set vcck to 1070 mv
set vddee to 1070 mv
match board id: 7
CPU clk: 1200MHz
BL2 USB
0.0;
TE: 2560461
BL2 Built : 13:36:55, Jun 22 2020.
gxl g85d6ad1 - longyong.chen@droid02-sz
Board ID = 7, adc=542
set vcck to 1070 mv
set vddee to 1070 mv
match board id: 7
CPU clk: 1200MHz
BL2 USB
Load fip header from USB, src: 0x0000c000, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from USB, src: 0x00010000, des: 0x013c0000, size: 0x00007600
Load bl301 from USB, src: 0x00018000, des: 0x01380000, size: 0x00002600
Load bl31 from USB, src: 0x0001c000, des: 0x10100000, size: 0x00019600
Load bl33 from USB, src: 0x00038000, des: 0x01000000, size: 0x0004de00
NOTICE: BL3-1: v1.0(debug):27617c8a4
NOTICE: BL3-1: Built : 18:02:23, Aug 18 2021
NOTICE: BL31: GXL normal boot!
NOTICE: BL31: BL33 decompress pass
[Image: gxl_v1.1.3103-923400455-dirty 2020-12-28 18:42:52 xingyu.chen@droid12-sz]
efuse init ops = c5
efuse init hdcp = c, cf9=7
x2_hp_e = 0
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: 0 0 3 c c 0 b2 b3 98 a0 0 c5 not ES chip
[2.877200 Inits done]
INFO: BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR: Error initializing runtime service opteed_fast
INFO: BL3-1: Preparing for EL3 exit to normal world
INFO: BL3-1: Next image address = 0x1000000
INFO: BL3-1: Next image spsr = 0x3c9
U-Boot 2015.01-g900d607-dirty (Nov 19 2021 - 22:31:41)
DRAM: 1 GiB
Relocation Offset is: 36edf000
[MSG]MMC init in usb
aml_priv->desc_buf = 0x0000000033ecf630
aml_priv->desc_buf = 0x0000000033ed1950
SDIO Port B: 0, SDIO Port C: 1
Enter USB burn
Set Addr 50
Get DT cfg
Get DT cfg
Get DT cfg
set CFG
ID[16]
tplcmd[ echo 12345]
12345
[MSG]ret = 0
[info]success
BULKcmd[ low_power]
[info]success
ID[16]
tplcmd[ download mem dtb normal 260373]
[MSG]Down(mem) part(dtb) sz(0x3f915) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 4
[info]success
[MSG]Burn Start...
[MSG]load dt.img to 0x0000000001000000, sz=0x3f915
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[disk_initial 1]
dtb magic 00088b1f
Amlogic multi-dtb tool
GZIP format, decompress...
Multi dtb detected
unified board, board id = 7
Multi dtb tool version: v2 .
Support 6 dtbs.
aml_dt soc: gxlx2 platform: p291 variant: 1g
dtb 0 soc: gxlx2 plat: p291 vari: 1g
dtb 1 soc: gxlx2 plat: p291 vari: 2g
dtb 2 soc: gxlx2 plat: p291 vari: 3g
dtb 3 soc: gxlx2 plat: p295 vari: 1g
dtb 4 soc: gxlx2 plat: p295 vari: 2g
dtb 5 soc: gxlx2 plat: p295 vari: 3g
Find match dtb: 0
start dts,buffer=0000000001000000,dt_addr=0000000001000000
Amlogic multi-dtb tool
Single dtb detected
parts: 17
00: logo 0000000000800000 1
01: recovery 0000000001800000 1
02: misc 0000000000800000 1
03: dtbo 0000000000800000 1
04: cri_data 0000000000800000 2
05: param 0000000001000000 2
06: boot 0000000001000000 1
07: rsv 0000000001000000 1
08: metadata 0000000001000000 1
09: vbmeta 0000000000200000 1
10: tee 0000000002000000 1
11: vendor 0000000014000000 1
12: odm 0000000008000000 1
13: system 0000000050000000 1
14: product 0000000008000000 1
15: cache 0000000046000000 2
16: data ffffffffffffffff 4
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
init_part() 293: PART_TYPE_AML
[mmc_init] mmc init success
init_part() 293: PART_TYPE_AML
eMMC/TSD partition table have been checked OK!
check pattern success
switch to partitions #0, OK
mmc1(part 0) is current device
Device: SDIO Port C
Manufacturer ID: d6
OEM: 100
Name: MMC8G
Tran Speed: 52000000
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 7.3 GiB
mmc clock: 40000000
Bus Width: 8-bit
[store]amlmmc erase 1emmckey_is_protected : protect
start = 0,end = 57343
Caution! Your devices Erase group is 0x400
The erase range would be change to 0x36000~0xe8ffff
start = 221184,end = 15269886
[MSG]usb producing env_relocate
mmc env offset: 0x4d400000
*** Warning - bad CRC, using default environment
Saving Environment to aml-storage...
mmc env offset: 0x4d400000
Writing to MMC(1)... done
Amlogic multi-dtb tool
Single dtb detected
[info]success
ID[16]
tplcmd[download store _aml_dtb normal 260373]
[MSG]Down(store) part(_aml_dtb) sz(0x3f915) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 4
[info]success
[MSG]Burn Start...
[MSG]optimus_download_dtb_image:dataSzReceived=0x3f915
start erase dtb......
start = 81920,end = 82943
dev # 1, , several blocks erased OK
[store]To run cmd[emmc dtb_write 0x0000000007700000 0x40000]
dtb_write()-1147: valid 0
dtb_write()-1167: new stamp 0, checksum 0x34c87323, version 1, magic A~D
dtb magic 00088b1f
Amlogic multi-dtb tool
GZIP format, decompress...
Multi dtb detected
unified board, board id = 7
Multi dtb tool version: v2 .
Support 6 dtbs.
aml_dt soc: gxlx2 platform: p291 variant: 1g
dtb 0 soc: gxlx2 plat: p291 vari: 1g
dtb 1 soc: gxlx2 plat: p291 vari: 2g
dtb 2 soc: gxlx2 plat: p291 vari: 3g
dtb 3 soc: gxlx2 plat: p295 vari: 1g
dtb 4 soc: gxlx2 plat: p295 vari: 2g
dtb 5 soc: gxlx2 plat: p295 vari: 3g
Find match dtb: 0
start dts,buffer=0000000007700000,dt_addr=0000000007700000
dtb magic edfe0dd0
Amlogic multi-dtb tool
Single dtb detected
start dts,buffer=0000000007700000,dt_addr=0000000007700000
Amlogic multi-dtb tool
Single dtb detected
parts: 17
00: logo 0000000000800000 1
01: recovery 0000000001800000 1
02: misc 0000000000800000 1
03: dtbo 0000000000800000 1
04: cri_data 0000000000800000 2
05: param 0000000001000000 2
06: boot 0000000001000000 1
07: rsv 0000000001000000 1
08: metadata 0000000001000000 1
09: vbmeta 0000000000200000 1
10: tee 0000000002000000 1
11: vendor 0000000014000000 1
12: odm 0000000008000000 1
13: system 0000000050000000 1
14: product 0000000008000000 1
15: cache 0000000046000000 2
16: data ffffffffffffffff 4
init_part() 293: PART_TYPE_AML
partition table success
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum 3d67ef32099078f7ecf0e2fb7221213294820ea1]
[store]To run cmd[emmc dtb_read 0x0000000007700000 0x40000]
dtb_read_shortcut()-982: short cut in...
[MSG]VERIFY OK
[info]success
ID[16]
tplcmd[download store boot normal 16777216]
[MSG]flash LOGIC partCap 0x1000000B
[MSG]Down(store) part(boot) sz(0x1000000) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1
[info]success
[MSG]Burn Start...
[MSG]Burn complete
Downloading %100
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum f0e1af57e6da0eee73e7e7a4959b94ff08d0333f]
[MSG]Verify Start...
[MSG]To verify part boot in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[info]success
ID[16]
tplcmd[download store dtbo normal 6014209]
[MSG]flash LOGIC partCap 0x800000B
[MSG]Down(store) part(dtbo) sz(0x5bc501) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1
[info]success
[MSG]Burn Start...
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum 987615e068ff696b42411fc40db1911c2c2d96e3]
[MSG]Verify Start...
[MSG]To verify part dtbo in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[info]success
ID[16]
tplcmd[download store logo normal 1040512]
[MSG]flash LOGIC partCap 0x800000B
[MSG]Down(store) part(logo) sz(0xfe080) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1
[info]success
[MSG]Burn Start...
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum 2542e086bf17e2a1f4157fcad36d6b1a1d288199]
[MSG]Verify Start...
[MSG]To verify part logo in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[info]success
ID[16]
tplcmd[download store metadata normal 16777216]
[MSG]flash LOGIC partCap 0x1000000B
[MSG]Down(store) part(metadata) sz(0x1000000) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1
[info]success
[MSG]Burn Start...
[MSG]Burn complete
Downloading %100
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum 37db4351aee2e34988c300d33e5517f7bf5f0c28]
[MSG]Verify Start...
[MSG]To verify part metadata in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[info]success
ID[16]
tplcmd[download store odm sparse 2605252]
[MSG]flash LOGIC partCap 0x8000000B
[MSG]Down(store) part(odm) sz(0x27c0c4) fmt(sparse)
[MSG]totalSlotNum = 0, nextWriteBackSlot 40
[info]success
[MSG]Burn Start...
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum bd0ea3cea6944d8fc2ef7bb80a0a546a1218333b]
[MSG]Verify Start...
[MSG]To verify part odm in fmt sparse
[MSG]Verify End
[MSG]VERIFY OK
[info]success
ID[16]
tplcmd[download store product sparse 33428024]
[MSG]flash LOGIC partCap 0x8000000B
[MSG]Down(store) part(product) sz(0x1fe1238) fmt(sparse)
[MSG]totalSlotNum = 0, nextWriteBackSlot 511
[info]success
[MSG]Burn Start...
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum d10ad1ceb1b151071c01a86c64ab20eb838f2b05]
[MSG]Verify Start...
[MSG]To verify part product in fmt sparse
[MSG]Verify End
[MSG]VERIFY OK
[info]success
ID[16]
tplcmd[download store recovery normal 25165824]
[MSG]flash LOGIC partCap 0x1800000B
[MSG]Down(store) part(recovery) sz(0x1800000) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1
[info]success
[MSG]Burn Start...
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum 7896327bb9b3859c8875b554b7e6b1b2873c8b18]
[MSG]Verify Start...
[MSG]To verify part recovery in fmt normal
[MSG]Verify End
[MSG]VERIFY OK
[info]success
ID[16]
tplcmd[download store system sparse 928840504]
[MSG]flash LOGIC partCap 0x50000000B
[MSG]Down(store) part(system) sz(0x375cfb38) fmt(sparse)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1024
[info]success
[MSG]Burn Start...
[MSG]Burn complete
Downloading %100
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum 6fa2d38a4817cc6a1aa7cad11284b55d01233ef5]
[MSG]Verify Start...
[MSG]To verify part system in fmt sparse
[MSG]Verify End
[MSG]VERIFY OK
[info]success
ID[16]
tplcmd[download store vendor sparse 224658568]
[MSG]flash LOGIC partCap 0x14000000B
[MSG]Down(store) part(vendor) sz(0xd640488) fmt(sparse)
[MSG]totalSlotNum = 0, nextWriteBackSlot 1024
[info]success
[MSG]Burn Start...
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum e7971cefebd129b3c3ee2e0acf9068be93d95931]
[MSG]Verify Start...
[MSG]To verify part vendor in fmt sparse
[MSG]Verify End
[MSG]VERIFY OK
[info]success
ID[16]
tplcmd[download store bootloader normal 1048576]
[MSG]Down(store) part(bootloader) sz(0x100000) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 16
[info]success
[MSG]Burn Start...
mmc switch to boot0 success
mmc switch to boot1 success
mmc switch to user success
[MSG]align bootloader sz from 0x100000 to 0x100000
[MSG]Burn complete
BULKcmd[download get_status]
[info]success
BULKcmd[verify sha1sum c678a3d30b133f9b01a9a175952f9702d02af9e6]
mmc switch to boot0 success
mmc switch to boot1 success
mmc switch to user success
[MSG]VERIFY OK
[info]success
BULKcmd[save_setting]
## save_setting ##
[MSG]Set upgrade_step to 2
Saving Environment to aml-storage...
mmc env offset: 0x4d400000
Writing to MMC(1)... done
[info]success
BULKcmd[burn_complete 3]
[MSG]Pls un-plug USB line to poweroff
[info]success
|
好技术,好文档,加精点赞。 |
好的。
线刷 Tips:
|
大佬太强了 |
感谢分享,你的安卓固件我转存到了 https://github.com/ophub/kernel/releases/tag/tools |
相信,cm201-1 ch也是s905l3的 大佬也能适配安卓9固件吧 |
Device Information | 设备信息
Armbian Version | 系统版本
Describe the bug | 问题描述
刷入android 4.4.2 底包后,由于无法 adb shell reboot update 引导U盘启动,故使用TTL工具引导进入armbian系统。
此版本CM201-1 YS 比较特殊,无法刷入 https://github.com/ophub/kernel/releases/tag/tools 目录下的Android 9.0系统(android_tv_cm201-1-ys_s905l3b)。SOC不同,内存颗粒也与大多数版本不同。
使用以下各种组合方式,均能刷入EMMC,但启动后均无法获取有线网络IP。
Board | 主板
以下日志
The text was updated successfully, but these errors were encountered: