玩客云emmc坏了别扔,还有其他用处

2023-11-21 16:10
文章标签 emmc 用处 玩客

本文主要是介绍玩客云emmc坏了别扔,还有其他用处,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

我的玩客云设备,在做绝育测试的时候,刷机过多把emcc刷坏了。在网上买了个芯片,在取旧芯片的时候把触点焊掉了。原文阅读
玩客云emmc坏了

https://nctoro.com/content/uploadfile/202310/d1e51698135507.png

本想着,这下这玩客云彻底罢工了。带着折腾的精神,很多设备不是可以使用SD卡启动吗,就尝试把玩客云绝育后备份出来的磁盘镜像写入SD卡。
启动玩客云后在ttl里能跑码但会报错,如下:
QA5:B;SVN:B72;POC:1FF;STS:0;BOOT:0;INIT:10;BOOT:1;INIT:0;READ:41;USB:3;SERIAL:4;STS:0;BOOT:0;INIT:10;BOOT:1;INIT:0;READ:41;USB:3;SERIAL:4;STS:0;BOOT:0;INIT:10;BOOT:1;INIT:0;READ:41;USB:3;SERIAL:4;STS:0;BOOT:0;INIT:10;BOOT:1;INIT:0;READ:0;CHECK:0;PASS:1;
no sdio debug board detected!U?n??j
BT : 16:10:19 Sep 25 2017
PMU:NONE
##### VDDEE voltage = 0x046a1130

CPU clock is 792MHzDDR mode: 32 bit mode
DDR size: 1GB (auto)
DDR check: Pass!
DDR clock: 636MHz with 2T mode
DDR pll bypass: Disabled
DDR init use : 16889 usHHH
SD_boot_type: 00000001
card_type: 00000001
0x0000009f
check SD_boot_type:0x1	 card_type:0x1
ucl decompress...pass
0x12345678
Boot from external device 
TE : 31725598System StartedU-boot(m8b_m201_v1@) (Sep 25 2017 - 16:10:17)clr h-ram
DRAM:  1 GiB
relocation Offset is: 2feb0000
show partition table: 
part: 0, name :       logo, size : 2000000
part: 1, name :   recovery, size : 2000000
part: 2, name :       misc, size : 2000000
part: 3, name :  instaboot, size : 20000000
part: 4, name :     kernel, size : 2000000
part: 5, name :       boot, size : 2000000
part: 6, name :     system, size : 40000000
part: 7, name :     backup, size : 40000000
part: 8, name :      cache, size : 20000000
part: 9, name :       app0, size : 10000000
part: 10, name :       app1, size : 10000000
part: 11, name :       data, size : end 
aml_card_type=0x200
MMC:   [mmc_register] add mmc dev_num=0, port=1, if_type=6
[mmc_register] add mmc dev_num=1, port=2, if_type=6
SDIO Port B: 0, SDIO Port C: 1
power init
out reg=c110804c,value=dfffffff
IR init done!
register usb cfg[0][1] = 3ff645d8
register usb cfg[2][0] = 3ff67888
enter emmc boot
[mmc_init] SDIO Port C:1, eMMC: Card did not respond to voltage select! mmc->block_dev.if_type=6
EMMC boot, but emmc init failed
SF: Unsupported manufacturer ff
*** Warning - bad CRC, using default environmentEMMC boot, spi init failed
NAND BOOT: boot_device_flag 1
Nand PHY driver Version: 2.01.001.0004 (c) 2013 Amlogic Inc.
amlnf_phy_init : amlnf init flag 5
reset failed
get_chip_type and ret:fffffffe
get_chip_type and ret:fffffffe
chip detect failed and ret:fffffffe
nandphy_init failed and ret=0xfffffff1
EMMC boot, nand init failed
device_boot_flag=3
CARD BOOT: not init nand
do not init nand : cause boot_device_flag without nand 
BOOT FROM CARD? env_relocate_spec
SF: Unsupported manufacturer ff
Failed to initialize SPI flash at 0:2
Unknown command 'nand' - try 'help'
[mmc_init] SDIO Port C:1, eMMC: Card did not respond to voltage select! mmc->block_dev.if_type=6
error init deviceset_storage_device_flag: store 0
set_storage_device_flag: set  store to 3
BOOT FROM CARD?
SF: Unsupported manufacturer ff
Failed to initialize SPI flash at 0:2
Unknown command 'nand' - try 'help'
[mmc_init] SDIO Port C:1, eMMC: Card did not respond to voltage select! mmc->block_dev.if_type=6
error init devices, saveenv fail
Err imgread(L129):Fmt unsupported!genFmt 0x0 != 0x3
check dts: FDT_ERR_BADMAGIC, load default vpu parameters
vpu clk_level = 3
set vpu clk: 182150000Hz, readback: 182150000Hz(0x701)
Net:   Meson_Ethernet
msg:====>upgrade_step=2<=====
msg:reboot_mode=0x0
init suspend firmware done. (ret:0)
cvbs trimming.1.v5: 0xa0, 0x0
reboot_mode=charging
hdmi tx power init
TV mode 1080p selected.
mode = 8  vic = 16
set HDMI vic: 16
mode is: 8
viu chan = 1
config HPLL
config HPLL done
reconfig packet setting done
Err imgread(L526):head magic error
There is no valid bmp file at the given address
bmp scale:  mode=1080p , x=0, y=0, w=1920, h=1080
info data len is 1
efuse version has been written [20] 
out reg=c8100024,value=bffb3fff
out reg=c8100024,value=bff33ffb
out reg=c8100024,value=bfe33ff3
out reg=c8100024,value=bfeb3fe3
Hit Enter key to stop autoboot -- :  0 
exit abortboot: 0
Enter USB burn
Try connect time out 701, 700, 35010
Booting...
There is no valid bmp file at the given address
bmp scale:  mode=1080p , x=0, y=0, w=1920, h=1080
Saving Environment to None...
BOOT FROM CARD?
SF: Unsupported manufacturer ff
Failed to initialize SPI flash at 0:2
Unknown command 'nand' - try 'help'
[mmc_init] SDIO Port C:1, eMMC: Card did not respond to voltage select! mmc->block_dev.if_type=6
error init devices, saveenv failerror: image data is not a fdt
key_unify_init:375,unify key config table parse fail
Err key(L48):fail in key_drv_initerror: image data is not a fdt
key_unify_init:375,unify key config table parse fail
Err key(L48):fail in key_drv_init
Err imgread(L330):Fmt unsupported!genFmt 0x0 != 0x3
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Saving Environment to None...
BOOT FROM CARD?
SF: Unsupported manufacturer ff
Failed to initialize SPI flash at 0:2
Unknown command 'nand' - try 'help'
[mmc_init] SDIO Port C:1, eMMC: Card did not respond to voltage select! mmc->block_dev.if_type=6
error init devices, saveenv fail
Enter USB burn
Try connect time out 701, 700, 37606
Booting...
There is no valid bmp file at the given address
bmp scale:  mode=1080p , x=0, y=0, w=1920, h=1080
Saving Environment to None...
BOOT FROM CARD?
SF: Unsupported manufacturer ff
Failed to initialize SPI flash at 0:2
Unknown command 'nand' - try 'help'
[mmc_init] SDIO Port C:1, eMMC: Card did not respond to voltage select! mmc->block_dev.if_type=6
error init devices, saveenv failerror: image data is not a fdt
key_unify_init:375,unify key config table parse fail
Err key(L48):fail in key_drv_initerror: image data is not a fdt
key_unify_init:375,unify key config table parse fail
Err key(L48):fail in key_drv_init
Err imgread(L330):Fmt unsupported!genFmt 0x0 != 0x3
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Saving Environment to None...
BOOT FROM CARD?
SF: Unsupported manufacturer ff
Failed to initialize SPI flash at 0:2
Unknown command 'nand' - try 'help'
[mmc_init] SDIO Port C:1, eMMC: Card did not respond to voltage select! mmc->block_dev.if_type=6
error init devices, saveenv fail

这个可能得改UBOOT,可惜我不会。在网上找了一圈也没找到相关资料。最后找到一个支持SD卡启动linux系统的UBOOT,使用Win32DiskImager写入SD卡,下面是启动信息
QA5:B;SVN:B72;POC:1FF;STS:0;BOOT:0;INIT:10;BOOT:1;INIT:0;READ:0;CHECK:0;PASS:1;
no sdio debug board detected
TE : 633434
BT : 10:08:50 Jun 7 2022
PMU:NONE
##### VDDEE voltage = 0x044c

CPU clock is 792MHzDDR mode: 32 bit mode
DDR size: 1GB (auto)
DDR check: Pass!
DDR clock: 636MHz with 2T mode
DDR pll bypass: Disabled
DDR init use : 16594 usHHH
SD_boot_type: 00000001
card_type: 00000000
0x0000009f
check SD_boot_type:0x1	 card_type:0x0
ucl decompress...pass
0x12345678
Boot from external device 
TE : 998548System StartedU-boot(m8b_m201_v1@) (Jun 07 2022 - 10:08:46)clr h-ram
DRAM:  1 GiB
relocation Offset is: 2feb8000
show partition table: 
part: 0, name :       logo, size : 2000000
part: 1, name :   recovery, size : 2000000
part: 2, name :       misc, size : 2000000
part: 3, name :  instaboot, size : 20000000
part: 4, name :     kernel, size : 2000000
part: 5, name :       boot, size : 2000000
part: 6, name :     system, size : 40000000
part: 7, name :     backup, size : 40000000
part: 8, name :      cache, size : 20000000
part: 9, name :       app0, size : 10000000
part: 10, name :       app1, size : 10000000
part: 11, name :       data, size : end 
aml_card_type=0x200
MMC:   [mmc_register] add mmc dev_num=0, port=1, if_type=6
[mmc_register] add mmc dev_num=1, port=2, if_type=6
SDIO Port B: 0, SDIO Port C: 1
power init
out reg=c110804c,value=dfffffff
IR init done!
register usb cfg[0][1] = 3ff67fb0
register usb cfg[2][0] = 3ff6b124
out reg=c8100024,value=bfff3fff
enter emmc boot
[mmc_init] SDIO Port C:1, eMMC: Card did not respond to voltage select! mmc->block_dev.if_type=6
EMMC boot, but emmc init failed
SF: Unsupported manufacturer ff
*** Warning - bad CRC, using default environmentEMMC boot, spi init failed
NAND BOOT: boot_device_flag 1
Nand PHY driver Version: 2.01.001.0004 (c) 2013 Amlogic Inc.
amlnf_phy_init : amlnf init flag 5
reset failed
get_chip_type and ret:fffffffe
get_chip_type and ret:fffffffe
chip detect failed and ret:fffffffe
nandphy_init failed and ret=0xfffffff1
EMMC boot, nand init failed
device_boot_flag=3
CARD BOOT: not init nand
do not init nand : cause boot_device_flag without nand 
BOOT FROM CARD? env_relocate_spec
SF: Unsupported manufacturer ff
Failed to initialize SPI flash at 0:2
Unknown command 'nand' - try 'help'
[mmc_init] SDIO Port C:1, eMMC: Card did not respond to voltage select! mmc->block_dev.if_type=6
error init deviceset_storage_device_flag: store 0
set_storage_device_flag: set  store to 3
BOOT FROM CARD?
SF: Unsupported manufacturer ff
Failed to initialize SPI flash at 0:2
Unknown command 'nand' - try 'help'
[mmc_init] SDIO Port C:1, eMMC: Card did not respond to voltage select! mmc->block_dev.if_type=6
error init devices, saveenv fail
vpu clk_level = 3
set vpu clk: 182150000Hz, readback: 182150000Hz(0x701)
Net:   Meson_Ethernet
init suspend firmware done. (ret:0)
cvbs trimming.1.v5: 0xa0, 0x0
hdmi tx power init
TV mode 1080p selected.
mode = 8  vic = 16
set HDMI vic: 16
mode is: 8
viu chan = 1
config HPLL
config HPLL done
reconfig packet setting done
Err imgread(L526):head magic error
There is no valid bmp file at the given address
reboot_mode=charging
Hit Enter key to stop autoboot -- :  0 
exit abortboot: 0
(Re)start USB(0)...
USB0:   dwc_usb driver version: 2.94 6-June-2012
USB (1) peri reg base: c1108820
USB (1) use clock source: XTAL input
USB (1) base addr: 0xc90c0000
Force id mode: Host
dwc_otg: No USB device found !
lowlevel init failed
USB error: all controllers failed lowlevel init** Invalid boot device **** Invalid boot device **
[mmc_init] SDIO Port B:0, if_type=7, initialized OK!
MMC init partPartition Map for SD device 0  --   Partition Type: DOSPartition     Start Sector     Num Sectors     Type1		     16065	   7711200	 b
Device: SDIO Port B
Manufacturer ID: 0
OEM: 0
Name: Tran Speed: 20000000
Rd Block Len: 512
SD version 2.0
High Capacity: No
Capacity: 2021654528
Boot Part Size: 0
Bus Width: 4-bit** Unable to use mmc 0:1 for fatload **
[mmc_init] SDIO Port C:1, eMMC: Card did not respond to voltage select! mmc->block_dev.if_type=6
Enter USB burn
Try connect time out 701, 700, 7821
Booting...error: image data is not a fdt
key_unify_init:375,unify key config table parse fail
Err key(L47):fail in key_drv_init
Err imgread(L330):Fmt unsupported!genFmt 0x0 != 0x3
Wrong Image Format for bootm command
ERROR: can't get kernel image!
enter recovery
Device: SDIO Port B
Manufacturer ID: 0
OEM: 0
Name: Tran Speed: 20000000
Rd Block Len: 512
SD version 2.0
High Capacity: No
Capacity: 2021654528
Boot Part Size: 0
Bus Width: 4-bit** Unable to use mmc 0:1 for fatload **
(Re)start USB(0)...
USB0:   dwc_usb driver version: 2.94 6-June-2012
USB (1) peri reg base: c1108820
USB (1) use clock source: XTAL input
USB (1) base addr: 0xc90c0000
dwc_otg: usb_lowlevel_init: Bad value for SNPSID: 0x00000000lowlevel init failed
USB error: all controllers failed lowlevel init** Invalid boot device **
Err imgread(L330):Fmt unsupported!genFmt 0x0 != 0x3
no recovery in flash
m8b_m201_1G#<INTERRUPT>
m8b_m201_1G#

可以从SD卡启动,还能从USB启动。在网上找到一个写好了UBOOT的系统Armbian_21.02.0-trunk_Aml-s812_bullseye_current_5.15.0-aml-s812-sd.7z直接用Win32DiskImager写入SD卡(文末提供下载)就可以使用了,当然为了速度快,可用用容量小的SD卡写入UBOOT-SD.bin,把系统写入U盘,这样运行速度要快些。当然也可以用UBOOT-SD.bin合成自己的镜像,可以作TV盒子,安卓系统,游戏系统。
合成方法:
linux下dd命令
dd if=UBOOT文件 of=镜像文件 conv=fsync,notrunc bs=1 count=444
dd if=UBOOT文件 of=镜像文件 conv=fsync,notrunc bs=512 skip=1 seek=1

可以正常使用Docker,那这可以玩性就多了。我先安装了个1panel面板。
1panel部署方法:

curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && bash quick_start.sh

玩客云1panel面板界面
https://nctoro.com/content/uploadfile/202310/5d4e1698133608.png
我安装的甜糖,看能不能赚点网费。如果有刷甜糖的,邀请码是527536
部署甜糖方法:

docker run -d  -v /mnt/mmcblk0p1:/mnt/data/ttnode  -v /var/run/docker.sock:/var/run/docker.sock  -v /proc:/host/proc:ro   --name ttnode  --hostname ttnode --device /dev/mem --cap-add SYS_RAWIO --privileged  --net=host  --restart=always -e container_name=ttnode  registry.cn-hangzhou.aliyuncs.com/tiptime/ttnode:latest

玩客云Docker
https://nctoro.com/content/uploadfile/202310/8cd31698134609.png
参数解释

-v /mnt/mmcblk0p1:/mnt/data/ttnode/mnt/host/dir

这里的/mnt/mmcblk0p1改为你的设备的缓存目录

 -v /var/run/docker.sock:/var/run/docker.sock

支持自动更新,不设置则需要手动更新镜像

--name ttnode

容器名称,建议自行修改个比较独特的容器名称,尽量不与他人重复,避免冲突

-e container_name=ttnode

容器名称,需与上面的name保持一致,否则可能有启动业务失败
查看 ttnode 状态

docker container ls # 查看所有容器

浏览器

docker inspect 容器名 -f "{{json .NetworkSettings.Networks.macnet.IPAddress }}" # 查看容器ip     http://容器IP:1024  # 浏览器 查看二维码  端口

命令行

docker logs -f 容器名 # 查看二维码  端口

删除 ttnode

docker rm -f 容器名  # 删除容器

检查 ttnode 挂载

docker inspect -f '{{ .Mounts }}'  容器名

预期 [{bind /mnt/host/dir /mnt/data/ttnode true rprivate} …]
左边是本机挂载目录 /mnt/host/dir ,右边必须是 /mnt/data/ttnode

还有很多功能可以用,可以在1panel面板应用中心安装Home Assistant做一个自己的智能家居自动化平台,断网也能自动控制家里的智能设备。比去卖一台控制中心性价比强多了。
相关下载:
点击阅读全文

手机扫码阅读

手机扫码阅读原文

版权所有:《路由通》 => 《玩客云emmc坏了别扔,还有其他用处》
本文地址:https://nctoro.com/zhonghe/613.html
除非注明,文章均为 《冰凌》 原创,欢迎转载!转载请注明本文地址,谢谢。

这篇关于玩客云emmc坏了别扔,还有其他用处的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/403442

相关文章

DAY16:什么是慢查询,导致的原因,优化方法 | undo log、redo log、binlog的用处 | MySQL有哪些锁

目录 什么是慢查询,导致的原因,优化方法 undo log、redo log、binlog的用处  MySQL有哪些锁   什么是慢查询,导致的原因,优化方法 数据库查询的执行时间超过指定的超时时间时,就被称为慢查询。 导致的原因: 查询语句比较复杂:查询涉及多个表,包含复杂的连接和子查询,可能导致执行时间较长。查询数据量大:当查询的数据量庞大时,即使查询本身并不复杂,也可能导致

eMMC

通俗的来说,eMMC=NAND闪存+闪存控制芯片+标准接口封装。本文大致做下边几个小结: (1)MMC与Host之间的连接 连接由下图可见 (2)eMMC和NAND Flash与Host的连接比较 NAND Flash直接接入Host NAND Flash 直接接入 Host 时,Host 端通常需要有 NAND Flash Translation Layer,即 NFTL 或者  NA

emmc协议

一、简介 1.1 简介 嵌入式多媒体卡(Embedded Multimedia Card, eMMC)是由 JEDEC 协会所订立,将 MMC controller 和 NAND Flash 封装到一个芯片中,简化存储器的使用和电路板的设计。 1.2 信号 singledescriptionclkclockdata strobe选通信号,olny for hs400cmdcmd 和re

海洋生物材料及其衍生物在3D生物打印中的用处

大家好,今天我们来聊一聊 海洋衍生生物材料在3D 生物打印的引言——《Recent Developments in Bio-Ink Formulations Using Marine-Derived Biomaterials for Three-Dimensional (3D) Bioprinting》。3D 生物打印具有巨大的应用潜力,在生物医学、制药等领域有望带来革命性的

Linux下各个MySQL安装包的用处

我用的Linux操作系统的版本是国产麒麟操作系统,所以下载时在 select platform 就选择了Linux - Generic,不知道对不对。然后在下面列出很多可供下载的安装包来,顿时就晕了。这些安装包包括:Development LibrariesClient UtilitiesTest SuiteClient UtilitiesMySQL ServerShared comp

spring的用处

在SSH框假中spring充当了管理容器的角色。我们都知道Hibernate用来做持久层,因为它将JDBC做了一个良好的封装,程序员在与数据库进行交互时可以不用书写大量的SQL语句。Struts是用来做应用层的,他它负责调用业务逻辑serivce层。所以SSH框架的流程大致是:Jsp页面----Struts------Service(业务逻辑处理类)---Hibernate(左到右)

C#部分方法有什么用处?和传统方法有什么区别?什么时候用合适?

在C#中,部分类(partial class)和部分方法(partial method)是两个不同的概念,但它们经常一起使用,特别是在代码生成和框架设计中。下面我将分别解释这两个概念,并讨论它们的用处、与传统方法的区别以及何时使用它们。 部分类(Partial Class) 用处: 当一个类被定义在多个文件中时,可以使用partial关键字来分割这个类。这允许自动生成的代码(如由设计器生成的

001 了解UFS eMMC SSD

UFS eMMC和SSD速度上的比较 UFS 2.1>UFS 2.0>eMMC 5.1 关系 UFS与eMMC没有明显的差异,它们既不是一种接口(跟PC的SATA/M.2接口不是一个概念),也不是一种单纯的储存芯片(跟NAND闪存也不是一个概念),可以说UFS/eMMC是一种内嵌式存储器的标准规格(基于闪存介质的基础上集成主控芯片,而且拥有标准接口) eMMC全称是embedded Mu

emmc,sd,tf,flash等各种存储卡的特点和区别

文章目录 SD和TF卡MMC卡emmc和ufsflash 现在手机常用的,应该是emmc,即内部存储介质是nand flash。 ufs比emmc,读写速度要快一倍;两者关系犹如固定硬盘相比机械硬盘。 SD和TF卡 SD是基于mmc协议,增加了安全特性;SD卡是Secure Digital Card的英文缩写,直译就是“安全数字卡”。TF卡即是T-Flash卡,又叫micro

RAM、ROM、flash、eMMC(通俗易懂)

RAM:Random-Access Memory的缩写,意思为“随机存取存储器” ROM:Read-Only Memory的缩写,意思为“只读存储器” RAM: 临时性:RAM存储的数据在断电时会丢失,因此称为易失性存储器。 可读写:RAM可以被快速读取和写入,它的存储单元可以根据需要来读取和修改数据。 容量和速度:RAM的容量可以从几兆字节(MB)到数百GB不等,速度非常快,可以通过高