[英]Using SD card as external storage for Beaglebone Black
在按照以下說明找到此處后:
http://elinux.org/Beagleboard:MicroSD_As_Extra_Storage
和這里:
我還是有麻煩。 我使用它說的代碼並按照說明進行操作,加載SD卡后,板上的3個LED一直亮着,而Windows 7根本無法檢測到它。
板未插入SD即可正常工作,我可以通過SSH進行啟動和登錄,Windows可以檢測到它。
我的uEnv.txt的代碼如下:
mmcdev=1
bootpart=1:2
mmcroot=/dev/mmcblk1p2 ro
optargs=quiet
並且我還添加了fstab文件:
/dev/mmcblk0p1 /media/card auto auto,rw,async,user,nofail 0 0
通過檢查文件系統,我的驅動器稱為“ BBB_Ext”。 這是在啟動后沒有SD的情況下進行的,然后在啟動后將其放入:
root@beaglebone:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 3.5G 1.8G 1.5G 55% /
/dev/root 3.5G 1.8G 1.5G 55% /
devtmpfs 250M 0 250M 0% /dev
tmpfs 250M 4.0K 250M 1% /dev/shm
tmpfs 250M 248K 250M 1% /run
tmpfs 250M 0 250M 0% /sys/fs/cgroup
tmpfs 250M 4.0K 250M 1% /tmp
/dev/mmcblk0p1 70M 54M 16M 78% /media/card
/dev/mmcblk1p1 15G 16K 15G 1% /media/BBB_Ext_
以下是有關fdisk的更多詳細信息:
root@beaglebone:~# fdisk -l
Disk /dev/mmcblk0: 3867 MB, 3867148288 bytes, 7553024 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
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 63 144584 72261 c W95 FAT32 (LBA)
/dev/mmcblk0p2 144585 7550549 3702982+ 83 Linux
Disk /dev/mmcblk0boot1: 2 MB, 2097152 bytes, 4096 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
Disk /dev/mmcblk0boot0: 2 MB, 2097152 bytes, 4096 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
Disk /dev/mmcblk1: 15.9 GB, 15931539456 bytes, 31116288 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
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk1p1 2048 31115263 15556608 c W95 FAT32 (LBA)
任何幫助,將不勝感激。 我認為由於這與Linux有關,因此該問題適用於SO,如果在SE plz中更好,請告訴我。
對於我得到的,應該將uEnv.txt保存在SD卡上:
mmcdev=1
bootpart=1:2
mmcroot=/dev/mmcblk1p2 ro
optargs=quiet
並在/ etc / fstab中添加以下行
/dev/mmcblk0p1 /media/data auto rw 0 0
好吧,我相信我已經解決了這個問題(對於任何關心的人)
查看fdisk日志后,我意識到我需要將fstab行更改為:
/dev/mmcblk1p1 /media/card auto rw 0 0
然后我也將uEnv.txt更改為:
mmcdev=1
bootpart=1:2
mmcroot=/dev/mmcblk0p2 ro
optargs=quiet
據我了解,它試圖從不存在的磁盤啟動,從而導致了問題。 另外,我沒有將fstab固定為驅動器的正確端口,這可以在fdisk檢查的底部看到:
Device Boot Start End Blocks Id System
/dev/mmcblk1p1 2048 31115263 15556608 c W95 FAT32 (LBA)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.