Skip to content

SD 卡设置

This page is for preparing your SD card for your device. In the process, we'll format the SD card and check the card for errors.

DANGER

在开始操作前,记得备份你SD卡里的内容。 你的SD卡数据将在这个过程中被完全擦除。

Section I - Formatting your SD card with sdFormatWindows

WARNING

It is not recommended to use the built in default Windows Formatting utility since this can cause compatibility problems with homebrew, as it does not format SD cards to the correct specifications set by the SD Association.

  1. Download the latest version of sdFormatWindows
  2. Run the sdFormatWindows application (the .exe file) from the location you downloaded it to, adminstrator privileges are required
  3. Select your SD card drive
    • If your SD card is 32GB or less, you can use the default settings
    • If your SD card is 64GB or more, enable the "Format as FAT32" and "Force 32KiB Cluster Size" options
  4. Press Format to start the format process

Section II - Checking SD card read/write for errors

  1. 下载 the h2testw archive 并将其解压到你电脑上任意地方
    • 如果上述链接不可用,请前往 这里下载Archive.org上的备份(中国大陆可能需要代理软件)
    • 也可以在外部设备上解压它,只要外部设备不是你的 SD 卡
  2. 将SD卡插入你的计算机,运行 h2testw.exe
  3. 在 h2testw 中选择中文或其他语言
  4. 在“Drive”一行选择你的 SD 卡盘符
  5. 确保 all available space 已勾选
  6. Click Write + Verify (If this option is greyed out, ensure you formatted the SD card with the steps in Section I)
  • 等待完成

TIP

如果页面显示Test finished without errors,恭喜你的SD卡没有任何问题,接下来只需要删除SD卡上的所有.h2w 文件就行了。

DANGER

如果测试结果显示任何其他结果,您的 SD 卡可能已经出错或损坏,可能需要更换 !

TIP

This section formats the SD card to the specifications by the SD Card Association. This can fix many issues that may occur with running homebrew applications.

DANGER

Any 64GB or larger SD cards will be formatted to exFAT in this process. You must follow both Sections I & II to re-format to FAT32.

Section I - Formatting your SD card with sdFormatLinux

  1. 请确保你的SD卡 没有 插入到你的Linux设备
  2. Download and extract the latest version of sdFormatLinux to your computer
  3. 启动Linux终端
  4. 输入 watch "lsblk"
  5. 插入你的SD卡到你的Linux设备
  6. 观察终端输出内容 它输出内容应该是下面这样的:
  1. 注意设备名, In our example above, it was mmcblk0
    • 如果 RO 设置为1,请确认SD卡的写保护滑块没有滑下
    • Make sure that you're targetting the device, mmcblk0, not the partition, mmcblk0p1
  2. 按 CTRL + C 键退出菜单
  3. Navigate to where you have extracted sdFormatLinux
  4. Run sudo ./sdFormatLinux -f -e trim /dev/(device name from above) to format your SD card

TIP

If you get an error message stating: Error: Device is mounted, you will need to run sudo umount /dev/(partition name from above) in order to complete the above step.

Section II - Formatting your SD card with mkdosfs

This section formats SD cards which are 64GB or larger to FAT32.

TIP

If your SD card is 32GB or less in capacity, skip to Section III.

  1. 请确保你的SD卡 没有 插入到你的Linux设备
  2. 启动Linux终端
  3. 输入 watch "lsblk"
  4. 插入你的SD卡到你的Linux设备
  5. 观察终端输出内容 它输出内容应该是下面这样的:
  1. Take note of the device partition name. 在我们上面的示例中,它是 mmcblk0p1
    • 如果 RO 设置为1,请确认SD卡的写保护滑块没有滑下
    • Make sure you're targetting the partition, mmcblk0p1, not the device, mmcblk0
  2. 按 CTRL + C 键退出菜单
  3. Run sudo mkdosfs /dev/(partition name from above) -s 64 -F 32 to format your SD card to FAT32

第 三 节 - 使用F3键

  1. Download and extract the F3 archive anywhere on your computer.
  2. 在F3文件夹里启动终端
  3. 输入 make 对F3进行打包
  4. 插入并安装SD卡,输入 ./f3write <your sd card mount point>
    • 等待处理完成, 处理完成时终端输出的内容看起来是这样的:
  5. 运行 ./f3read <你的SD卡挂载路径>
  • 等待处理完成, 处理完成时终端输出的内容看起来是这样的:

TIP

If the test shows the result Data LOST: 0.00 Byte (0 sectors) your SD card is healthy and you can delete all .h2w files on your SD card.

DANGER

如果测试结果显示任何其他结果,您的 SD 卡可能已经出错或损坏,可能需要更换 !

第一节 —— 用SD Formatter 格式化你的SD卡

TIP

This section formats the SD card to the specifications by the SD Card Association. This can fix many issues that may occur with running homebrew applications.

DANGER

Any 64GB or larger SD cards will be formatted to exFAT in this process. You must follow Section II to re-format to FAT32.

  1. Download the latest version of SD Formatter
    • Accept the End User License Agreement to start the download
  2. Run Install SD Card Formatter (the .mpkg file) in the downloaded .zip file
  3. Run SD Card Formatter
  4. 选择你的 SD 卡
  5. 确认 Quick Format 复选框已被勾选
  6. 开始格式化

Section II - Formatting your SD card with Disk Utility

This section formats SD cards larger than 32GB to FAT32.

TIP

If your SD card is 32GB or less in capacity, skip to Section III.

OS X El Capitan (10.11) 及更高版本

  1. 启动"Disk Utility"应用程序
  2. 通过左上角的 View 面板,选择 Show All Devices
  3. 从侧边栏选择你的SD卡
    • 确保你选择的是正确的设备, 否则你可能会格式化错误的驱动器
  4. 点击顶端的Erase
  5. 确保 Format 设置为 MS-DOS (FAT32)
    • 在 El Capitan(10.11) 中通过 Catalina (10.15) 选择 MS-DOS (FAT)
  6. 确保 Scheme 被设置为 Master Boot Record
    • 如果"Scheme"不显示, 点击"Cancel"并确保你选择的不是声音设备
  7. 点击 Erase, 再点击 Close

OS X Yosemite (10.10) 及更早版本

  1. 启动"Disk Utility"应用程序
  2. 从侧边栏选择你的SD卡
    • 确保你选择的是正确的设备, 否则你可能会格式化错误的驱动器
  3. 点击顶部的 Partition
    • 如果"Partition"不显示, 请确保你选择的是一个设备而不是一个
  4. 确保Partition Layout 被设为 1 Partition
  5. 确保 Format 设置为 MS-DOS (FAT)
  6. 从设置按钮 (分区表下方), 选择"Master Boot Record"
  7. 点击 OK -> Apply -> Partition

第 三 节 - 使用F3键

  1. 打开终端
  2. 输入 brew install f3,从brew安装 F3
    • 如果你没有brew,请根据说明 brew.sh 安装
  3. 插入并安装SD卡,输入 f3write <your sd card mount point>
    • 等待处理完成, 处理完成时终端输出的内容看起来是这样的:
    $ f3write /Volumes/SD\ CARD
    Free space: 29.71 GB
    Creating file 1.h2w ... OK!
    ...
    Creating file 30.h2w ... OK!
    Free space: 0.00 Byte
    Average Writing speed: 4.90 MB/s
  4. 运行 f3read <你的SD卡挂载点>
    • 等待处理完成, 处理完成时终端输出的内容看起来是这样的:

TIP

如果测试结果显示 Data LOST: 0.00 Byte (0 sectors) 代表你的 SD 卡完好,接着删除 SD 卡上的所有 .h2w 文件。

DANGER

如果测试结果显示任何其他结果,你的 SD 卡可能已经出错或者损坏,请更换它。

TIP

现在你可以恢复你的SD卡文件并继续了。