TI中文支持网
TI专业的中文技术问题搜集分享网站

新找个sd卡给am335x用做启动介质,怎么操作?

以前beaglebone的sd卡,启动正常。拷贝入mlo和app后可以正常运行。

新买了个卡,和beaglebone的原装sd卡的厂商乃至卡上的印字都一样,4g的,然后按照说明下载格式化工具并格式化成fat32。但拷贝入mlo和app后,am335x无法找到启动介质,一直打c。

请问原因是什么,应该怎么才能用这个新的sd卡呢?

kooking:

使用工具和脚本制作SD卡分区失败的情况我也碰到过很多次,你可以手动制作SD卡分区,把内核和文件系统分别拷到相应的分区即可,手动制作过程如下:

查看MMC/SD卡是否已经挂载,如果已经挂载需要先卸载再操作(常见的MMC/SD卡挂载位置为/dev/sdb 、/dev/sdc或者/dev/sda等等)。可以使用umount命令将已经挂载的MMC/SD设备进行卸载,MMC/SD卡上所有的分区(比如sdb1,sdb2,sdb3…)都需要卸载。 Host $ sudo fdisk -l Host $ sudo umount /dev/sdb1 Host $ sudo umount /dev/sdb2…

创建双分区:在Ubuntu系统下输入命令:

Host $ sudo fdisk /dev/sdb如果MMC/SD卡为/dev/sdc,则使用fdisk /dev/sdc命令,然后按如下步骤操作,多分区过程类似:

kooking:

分区完成后,制作启动卡:卸载MMC/SD卡; Host# umount /dev/sdb1 Host# umount /dev/sdb2 格式化第一分区为FAT32格式; Host# mkfs.msdos -F 32 /dev/sdb1 -n FAT32 格式化第二分区为EXT3格式; Host# mkfs.ext3 /dev/sdb2 -L EXT3

cp内核和文件系统即可

Michael Sun:

安装SDK后,参考如下链接制作SD卡:

http://processors.wiki.ti.com/index.php/Sitara_Linux_SDK_create_SD_card_script

然后把卡插上试试。

 

lei lu1:

回复 Michael Sun:

不好意思,可能没说清楚,我是想跑starterware的,也需要这麽操作吗?

Jian Zhou:

回复 lei lu1:

stareterware您可以参考这个例程:http://processors.wiki.ti.com/index.php/AM335X_StarterWare_Booting_And_Flashing

lei lu1:

回复 Jian Zhou:

我参考的就是这个,上面的描述就是以下英文的操作啊

Preparing the SD card

The SD card needs to be prepared, by FAT formatting it as follows.

HP USB Disk Storage Format Tool v2.0.6 Portable has to be used to format the SD card. This tool can be downloaded from this link.
Choose a SD card and a USB based or similar SD card reader/writer. Plug it to a Windows host system.
Run the HP USB Disk Storage Format Tool v2.0.6 Portable executable. The executable should automatically detect the SD card plugged via reader. Else point it to the new disk.
Choose FAT32 if the SD card size is greater that 4GB. Else FAT should be good to go.
Click on 'Start'.
After the formatting is complete, the card is ready to be populated with the files required.
The converted bootloader binary image(Bootloader binary image(boot.bin) appended with the TI Image Header) has to be renamed to "MLO" from "boot_ti.bin". The boot_ti.bin is created by building the bootloader in MMC/SD boot mode.
Similarly the converted application binary image has to be renamed to "app" from "<app_name>_ti.bin"
Copy both the boot loader image "MLO" and the application image "app" to the SD card.
Safely eject/remove the card from the host, unplug the card reader, remove the SD card. The SD card is ready for use on AM335x target.

kooking:

回复 lei lu1:

可以先用工具,如果不好使,再手动制作,也不麻烦

lei lu1:

回复 kooking:

我就想跑个startterware而已,只要格式话就可以了吧,需要在linux下分区吗?

Jian Zhou:

回复 Michael Sun:

starterware是不带操作系统的裸代码,上面的分区和Linux无关

赞(0)
未经允许不得转载:TI中文支持网 » 新找个sd卡给am335x用做启动介质,怎么操作?
分享到: 更多 (0)