N1盒子U盘可正常启动OpenWRT,写入到 eMMC 后卡开机画面,还有救吗

  • 活死人阿過
    RT,N1盒子刷的 flippy的 OpenWRT。今天想要升级新版本时,按照之前的做法,运行:
    1. ./update-to-emmc.sh
    复制代码


    然后提示:
    1. the boot is on emmc, cannot update!
    复制代码



    看到 flippy 的帖子里有一段:


    于是照做了,但是拔电源拔U盘插电源启动后,就一直卡在启动画面,即显示“新一代家庭 NAS 云盘”的画面。

    后来看了下写入 eMMC 的过程是这样的:

    1. The following steps will overwrite the original data, please be sure to confirm!
    2. Remind again, remember to back up your important data!
    3. Select y to install openwrt to emmc disk, are you sure? y/n [y]
    4. umount -f /mnt/sda1
    5. total 0 partions will be deleted
    6. 1+0 records in
    7. 1+0 records out
    8. 1+0 records in
    9. 1+0 records out
    10. 1+0 records in
    11. 1+0 records out

    12. Welcome to fdisk (util-linux 2.35.1).
    13. Changes will remain in memory only, until you decide to write them.
    14. Be careful before using the write command.

    15. Device does not contain a recognized partition table.
    16. Created a new DOS disklabel with disk identifier 0x41fdaf0b.

    17. Command (m for help): Partition type
    18. p primary (0 primary, 0 extended, 4 free)
    19. e extended (container for logical partitions)
    20. Select (default p): Partition number (1-4, default 1): First sector (2048-15269887, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (1433600-15269887, default 15269887):
    21. Created a new partition 1 of type 'Linux' and of size 128 MiB.

    22. Command (m for help): Partition type
    23. p primary (1 primary, 0 extended, 3 free)
    24. e extended (container for logical partitions)
    25. Select (default p): Partition number (2-4, default 2): First sector (2048-15269887, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (1695744-15269887, default 15269887):
    26. Created a new partition 2 of type 'Linux' and of size 512 MiB.

    27. Command (m for help): Partition type
    28. p primary (2 primary, 0 extended, 2 free)
    29. e extended (container for logical partitions)
    30. Select (default p): Partition number (3,4, default 3): First sector (2048-15269887, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2744320-15269887, default 15269887):
    31. Created a new partition 3 of type 'Linux' and of size 6 GiB.

    32. Command (m for help): Partition number (1-3, default 3): Hex code (type L to list all codes):
    33. Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.

    34. Command (m for help): Partition number (1-3, default 3): Hex code (type L to list all codes):
    35. Changed type of partition 'Linux' to 'Linux'.

    36. Command (m for help): Partition number (1-3, default 3): Hex code (type L to list all codes):
    37. Changed type of partition 'Linux' to 'Linux'.

    38. Command (m for help): The partition table has been altered.
    39. Calling ioctl() to re-read partition table.
    40. Syncing disks.

    41. fdisk done

    42. 442+0 records in
    43. 442+0 records out
    44. 8191+0 records in
    45. 8191+0 records out
    46. begin to create filesystems ...
    47. create boot filesystem ...
    48. mkfs.fat 4.1 (2017-01-24)
    49. create rootfs filesystems ...
    50. btrfs-progs v5.6
    51. See http://btrfs.wiki.kernel.org for more information.

    52. Label: EMMC_ROOTFS
    53. UUID: fba12907-475b-441b-bb24-930378e60b6f
    54. Node size: 16384
    55. Sector size: 4096
    56. Filesystem size: 512.00MiB
    57. Block group profiles:
    58. Data: single 8.00MiB
    59. Metadata: single 8.00MiB
    60. System: single 4.00MiB
    61. SSD detected: yes
    62. Incompat features: extref, skinny-metadata
    63. Checksum: crc32c
    64. Number of devices: 1
    65. Devices:
    66. ID SIZE PATH
    67. 1 512.00MiB /dev/mmcblk1p2

    68. filesystem succeed created!
    69. wait for boot partition mounted ...
    70. mount ok
    71. copy boot ...done
    72. Write uEnv.txt ... ./inst-to-emmc.sh: line 219: can't open /boot/uEnv.txt: no such file
    73. head: /boot/uEnv.txt: No such file or directory
    74. done.
    75. done

    76. wait for root partition mounted ...
    77. mount ok
    78. make dirs ... done
    79. copy data ...
    80. copy root ... done
    81. copy etc ... done
    82. copy bin ... done
    83. copy sbin ... done
    84. copy lib ... done
    85. copy opt ... done
    86. copy usr ... done
    87. copy www ... done
    88. copy done
    89. Edit other config files ... done

    90. create shared filesystem ...
    91. btrfs-progs v5.6
    92. See http://btrfs.wiki.kernel.org for more information.

    93. Detected a SSD, turning off metadata duplication. Mkfs with -m dup if you want to force metadata duplication.
    94. Label: EMMC_SHARED
    95. UUID: ec2eeb1d-58f2-4c0f-b097-737e7eb96340
    96. Node size: 16384
    97. Sector size: 4096
    98. Filesystem size: 5.97GiB
    99. Block group profiles:
    100. Data: single 8.00MiB
    101. Metadata: single 8.00MiB
    102. System: single 4.00MiB
    103. SSD detected: yes
    104. Incompat features: extref, skinny-metadata
    105. Checksum: crc32c
    106. Number of devices: 1
    107. Devices:
    108. ID SIZE PATH
    109. 1 5.97GiB /dev/mmcblk1p3

    110. done

    111. All done, please reboot!
    复制代码



    感觉85、86两行好像有点问题请教下,现在这个情况需要怎么做
  • h
    haodd
    刷回安卓再刷openwrt
  • m
    momometal
    代码不懂,先救砖,刷安卓。在重新刷一遍?
  • h
    hc922
    u盘用也很好,很方便…
  • f
    frankiezdh
    可以救砖,再换u盘
  • 活死人阿過
    找了一圈也没看到别的办法,看来只有试试看了
  • 活死人阿過
    手头没有USB对公线,我之前都是用的一个 C2A 的转接头,然后又没有 PC 只有 Mac,还没装虚拟机,USB_Burning_Tool只有 Windows 版,看来只有先装个虚拟机了。。。
  • 活死人阿過
    可能是心理作用,总觉得写入 eMMC 会快点
  • o
    o0o0oo0o0o
    借贴请教,我家里OpenWrt开v2瑞服务器,手机用单位WIFI连回家里,开同花顺。刚刚用了两天,现在连不上了,有知道怎么回事的吗?
  • j
    jckimi
    你感觉是对的,个人猜测uEnv.txt是记录着uboot的env的,不过按理说,没有读到env,也可以用default的。另外这只是你刷机的log,开机的console log呢?开机log才能看出问题在哪里。
  • 活死人阿過
    不插 U盘,直接插电源就一直卡在“新一代家庭 NAS 云盘””的启动画面,根本看不到开机 log上两个版本我升级时,写入 eMMC 都是正常的,这次不知道出了什么问题
  • B
    BlackSe7en
    遇到过,后面重刷了另外个人的rom,flippy的软件包也太多了
    https://www.right.com.cn/forum/thread-3160780-1-1.html
  • j
    jckimi
    回复11#活死人阿過
    接串口 Kimi
  • s
    swsh007
    这玩意基本上刷不死
    不行就再刷回去重来
  • 活死人阿過
    非常感谢,换了这个 ROM 真的就可以正常写入 eMMC 了!第一次换了这个固件后,我偷懒把之前用 flippy 固件时的备份给恢复了,然后 **P 开启后,部分设备部分浏览器上不了部分网站,而且每个设备每个浏览器的情况还不太一样。。。
    我就干脆重新刷了一遍,没有导入老的备份,重新设置后一切正常,而且还解决了之前的老问题:在 Mac 上用 Chrome 时,google.com.hk、google.com.tw 可以打开,google.com一直无法访问,但Safari 有时又正常
  • 活死人阿過
    直接换了个固件,竟然就正常了。。