【问题标题】:Mounting Coral Dev Kit EMMC as USB using U-boot使用 U-boot 将 Coral Dev Kit EMMC 安装为 USB
【发布时间】:2022-06-15 17:13:50
【问题描述】:

我正在按照此答案中的说明进行操作: backing up and restoring the eMMC 并在这里描述: https://developer.technexion.com/docs/using-u-boots-ums-command-to-write-flash-storage-over-usb-otg

我能够运行ums 0 mmc 0 并获得加载动画,我理解这意味着现在可以从主机看到 emmc。但是,当我运行 fdisk -llsblk 时,我没有看到任何新设备。我知道 emmc 不是空的,因为我可以 ssh 进入它上面的操作系统。任何想法为什么 emmc 没有显示为 USB 设备?

【问题讨论】:

    标签: u-boot google-coral


    【解决方案1】:

    确保您已连接 3 根电缆! The power one, the one next to it to your host machine(OTG 数据)和USB-A to USB-micro-B cable (must be a USB data cable)。理论上,您可以仅使用前两个连接到串行控制台。但为了安全起见,请连接一切。

    我只连接了电源和 USB-A 到 USB-micro-B 的一个,并且遇到了同样的问题。一旦我连接了第三个(在电源旁边,OTG),它改变了输出,在我的主机(Linux)中,打开了三个文件夹,能够看到我的主板和 sd 卡的内容。

    连接数据OTG线之前:

    sudo fdisk -l
    Disk /dev/sda: 111,8 GiB, 120034123776 bytes, 234441648 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 9ACCAF0B-CB4C-4BC2-841E-D9CC265BEB8C
    
    Disposit.    Start    Final Sectores  Size Tipo
    /dev/sda1       34    97656    97623 47,7M EFI System
    /dev/sda2    97657  7070453  6972797  3,3G Microsoft basic data
    /dev/sda3  7071744 80799743 73728000 35,2G Linux filesystem
    

    连接OTG线后(“卡住”的进程还在运行),不用担心:

    sudo fdisk -l
    Disk /dev/sda: 111,8 GiB, 120034123776 bytes, 234441648 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 9ACCAF0B-CB4C-4BC2-841E-D9CC265BEB8C
    
    Disposit.    Start    Final Sectores  Size Tipo
    /dev/sda1       34    97656    97623 47,7M EFI System
    /dev/sda2    97657  7070453  6972797  3,3G Microsoft basic data
    /dev/sda3  7071744 80799743 73728000 35,2G Linux filesystem
    
    
    Disk /dev/sdb: 7,3 GiB, 7818182656 bytes, 15269888 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 85B83F23-51C4-4403-8BAC-906FF5800F4E
    
    Disposit.    Start    Final Sectores  Size Tipo
    /dev/sdb1    16384   278527   262144  128M desconocido
    /dev/sdb2   278528   280575     2048    1M desconocido
    /dev/sdb3   294912  4489215  4194304    2G desconocido
    /dev/sdb4  4489216 15253503 10764288  5,1G desconocido
    

    这些文件夹应该会打开,这也是一种你做对了事情的视觉输入(除了fdisk -l):

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-08-24
      • 2019-10-16
      • 2020-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-28
      相关资源
      最近更新 更多