5193|2

918

帖子

0

TA的资源

纯净的硅(中级)

楼主
 

【AM335x】为 SD 卡创建分区的过程 [复制链接]

首先,我用的是 VirtualBox,将 SD 卡放到 USB Adapter 之后,安装完驱动。即可执行 bin 下的 creat-sdcard.sh 脚本.
simon@simon-laptop:~/Work/ti-sdk-am335x-evm-05.04.01.00/bin$ sudo ./create-sdcard.sh 


################################################################################

This script will create a bootable SD card from custom or pre-built binaries.

The script must be run with root permissions and from the bin directory of
the SDK

Example:
 $ sudo ./create-sdcard.sh

Formatting can be skipped if the SD card is already formatted and
partitioned properly.

################################################################################

 
Availible Drives to write images to: 
 
#  major   minor    size   name 
1:   8       16    3813376 sdb
 
Enter Device Number: 1
 

sdb was selected

Checking the device is unmounted
 unmounted /dev/sdb1
 unmounted /dev/sdb2
 unmounted /dev/sdb3

sdb1  sdb2   sdb3
72261 923737 2795310


################################################################################

   Detected device has 3 partitions already

   Re-partitioning will allow the choice of 2 or 3 partitions

################################################################################

Would you like to re-partition the drive anyways [y/n] : y

 
Now partitioning sdb ...


################################################################################

Select 2 partitions if only need boot and rootfs (most users)
Select 3 partitions if need SDK & CCS on SD card.  This is usually used
        by device manufacturers with access to partition tarballs.

****WARNING**** continuing will erase all data on sdb

################################################################################

Number of partitions needed [2/3] : 2

 
Now partitioning sdb with 2 partitions...
 

################################################################################

Now making 2 partitions

################################################################################

1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 2.89689 s, 362 kB/s
Disk /dev/sdb doesn't contain a valid partition table
DISK SIZE - 3904897024 bytes
Checking that no-one is using this disk right now ...
OK

Disk /dev/sdb: 474 cylinders, 255 heads, 63 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
 /dev/sdb: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdb1   *      0+      8       9-     72261    c  W95 FAT32 (LBA)
/dev/sdb2         10     473     464    3727080   83  Linux
/dev/sdb3          0       -       0          0    0  Empty
/dev/sdb4          0       -       0          0    0  Empty
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)

################################################################################

Partitioning Boot

################################################################################
mkfs.vfat 3.0.7 (24 Dec 2009)

################################################################################

Partitioning rootfs

################################################################################
mke2fs 1.41.11 (14-Mar-2010)
Filesystem label=rootfs
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
233392 inodes, 931770 blocks
46588 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=956301312
29 block groups
32768 blocks per group, 32768 fragments per group
8048 inodes per group
Superblock backups stored on blocks: 
32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 31 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.


################################################################################

   Partitioning is now done
   Continue to install filesystem or select 'n' to safe exit

   **Warning** Continuing will erase files any files in the partitions

################################################################################


Would you like to continue? [y/n] : y

 
 
Mount the partitions 
 
Emptying partitions 
 

Syncing....

################################################################################

Choose file path to install from

1 ) Install pre-built images from SDK
2 ) Enter in custom boot and rootfs file paths

################################################################################

Choose now [1/2] : 1

 
Will now install from SDK pre-built images
now installing:  ti-sdk-am335x-evm-05.04.01.00
################################################################################

Copying files now... will take minutes

################################################################################

Copying boot partition

MLO copied

u-boot.bin file not found

u-boot.img copied

uImage copied

Copying rootfs System partition
Written 100%  

Syncing...
 
Un-mount the partitions 
 
Remove created temp directories 
 
Operation Finished

最新回复

我也遇到楼主同样的问题,请问如何解决的,谢谢  详情 回复 发表于 2012-10-11 10:20
点赞 关注(1)
 

回复
举报

5979

帖子

8

TA的资源

版主

沙发
 
加油 加油!
个人签名生活就是油盐酱醋再加一点糖,快活就是一天到晚乐呵呵的忙
===================================
做一个简单的人,踏实而务实,不沉溺幻想,不庸人自扰
 
 

回复

1

帖子

0

TA的资源

一粒金砂(初级)

板凳
 
我也遇到楼主同样的问题,请问如何解决的,谢谢
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/8 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表