【1】sd 卡分区: ti提供了自己的分区shell脚本create-sdcard.sh  脚本目录在:ti-sdk-am335x-evm-05.06.00.00/bin/

(1)插入sd卡(若是笔记本sd卡槽,不显示sd卡,可能是因为sd卡走的是PCI总线而不是usb,这时需要一个读卡器)

(2)执行sudo ./create-sdcard.sh

(3)弹出以下信息。按如下标示进行分区即可(红色为自己填写信息),此处分区分了两个,一个boot,一个rootfs ################################################################################

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

sdb1  sdb2   sdb3 72261 3727080

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

Detected device has 2 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 的读入 记录了1024+0 的写出 1048576字节(1.0 MB)已复制,13.1196 秒,79.9 kB/秒 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) 文件系统标签=rootfs 操作系统:Linux 块大小=4096 (log=2) 分块大小=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 233392 inodes, 931770 blocks 46588 blocks (5.00%) reserved for the super user 第一个数据块=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

正在写入inode表: 完成                            Creating journal (16384 blocks): 完成 Writing superblocks and filesystem accounting information: 完成

This filesystem will be automatically checked every 38 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] : n

boot和rootfs分区自动挂载到/media/

【2】环境搭建,生成bootloader和编译内核

ti提供的资料中会有一个叫ti-sdk-am335x-evm-05.04.01.00-Linux-x86-Install文件,这个里面有必要的工具包(minicom,filesystem,nfs,tftp,uboot,load uboot script)

打开终端:

(1)./ti-sdk-am335x-evm-05.04.01.00-Linux-x86-Install 将会在主目录下生成名为ti-sdk-am335x-evm-05.04.01.00 cd ti-sdk-am335x-evm-05.04.01.00/ sudo ./setup.sh(注意:系统不是10.04,则vim /ti-sdk-am335x-evm-05.04.01.00/setup.sh,将第十四行用#屏蔽掉。#$cwd/bin/setup-host-check.sh)。 遇到选项回车默认即可。

(2)gedit ~/.bashrc 在打开的文件末尾添加如下:

export PATH=/home/share/ti-sdk-am335x-evm-05.04.01.00/linux-devkit/bin:$PATH
export ARCH=arm
export CROSS_COMPILE=arm-arago-linux-gnueabi-

保存退出 source ~/.bashrc(使其生效)

(3)编译u-boot cd ti-sdk-am335x-evm-05.04.01.00/board-support/u-boot-2011.09-psp04.06.00.07/ make o=am335x am335x_evm 在am335x中会生成第一级bootloader MLO和第二级bootloader u-boot.img

(4)编译内核 cd ti-sdk-am335x-evm-05.04.01.00/board-support/linux-3.2-psp04.06.00.07.sdk/

依次执行如下命令:

make mrproper

make tisk_am335x-evm_defconfig

make (生成uImage)

uImage 在arch/arm/boot/下生成了uImage(内核)

(5) 将MLO,u-boot.img,uImage拷贝到SD卡的boot分区 将targetNFS里的所有文件拷贝到rootfs分区

将sd卡插入开发板上电。

TI的AM3359的sd卡分区以及sd卡启动说明的更多相关文章

  1. SD卡分区查看(u-boot下)

    可以在U-Boot的命令行中通过命令查看MMC的信息,如: U-Boot# mmc list OMAP SD/MMC: 0 OMAP SD/MMC: 1 列出mmc设备 U-Boot# mmc dev ...

  2. 如何在Ubuntu下使用TF/SD 卡制作Exynos 4412 u-boot启动盘

    /** ****************************************************************************** * @author    Maox ...

  3. 如何在Mac下使用TF/SD 卡制作Exynos 4412 u-boot启动盘

    /** ****************************************************************************** * @author    Maox ...

  4. SD和SDHC和SDXC卡的差别是什么

    SD内存卡和SDHC内存卡有什么差别? SDHC和SD的差别事实上也就是SD 1.0/1.1规范和SD 2.0规范的差别.尽管编编手上有一份SD 1.1规范的文件.只是因为SD 2.0规范仅仅有SDA ...

  5. 将SD系统启动卡恢复成普通卡

    1.卸载SD卡分区 在使用fdisk命令前,请使用如下命令卸载boot分区和rootfs分区: umount /media/boot umount /media/rootfs 2.在插入SD卡前后分别 ...

  6. 关于手机的内置SD卡与外置SD卡

    对于安卓2.3的系统来说,Environment.getExternalStorageDirectory()获取的目录是内置SD卡还是外置SD卡是无法保证的, 和手机厂商的修改有关,只能通过Envir ...

  7. Android(java)学习笔记126:判断SD卡状态和SD卡容量

    1. 判断SD卡状态和SD卡存储空间大小 当我们在使用SD卡时候,如果我们想往SD卡里读写数据,我们必须在这之前进行一个逻辑判断,那就是判断SD卡状态和SD存储空间大小: 核心代码: String s ...

  8. 246-基于TI DSP TMS320C6678、Altera FPGA的CPCI处理卡

    基于TI DSP TMS320C6678.Altera FPGA的CPCI处理卡 1.板卡概述  本板卡由我公司自主研发,基于CPCI架构,符合CPCI2.0标准,采用两片TI DSP TMS320C ...

  9. 动手实操丨RC522射频卡模块与IC卡完成充值消费查询的技术实现思路

    摘要:一文手把手教你利用RC522射频卡模块与IC卡完成充值消费查询的技术实现思路. 本文分享自华为云社区<​​​​​​​​​​​​​​RC522射频卡模块与IC卡完成充值消费查询的技术实现思路 ...

随机推荐

  1. 瀑布流布局--原生JavaScript

    HTML(注意包裹关系,方便js调用) <body> <div id="main"> <div class="box"> & ...

  2. AndroidTestCase简单使用

    1.根据需求创建TestCase类,实现测试用例.此类需继承AndroidTestCase类 public class TestCase extends AndroidTestCase { @Over ...

  3. mysql一对多关联查询的时候筛选条件

    mysql实现users 表和 logoin_log表是一对多, 现在是把user的信息找出来 关联上一些 logoin_log表的数据, 因为a表是多的一方,要多他的数据进行一些条件匹配,这个sql ...

  4. CodeSmith和PowerDesigner的使用安装和数据库创建

    原文链接: http://www.cnblogs.com/huangcong/archive/2010/06/14/1757957.html 废话少说,开始我们的CodeSmith旅程吧,我先讲讲这个 ...

  5. css笔记——关于css中写上charset “utf-8”

    当css文件中写上 charset "utf-8" 时需要将body和html的样式分开写 例如: html,body{margin:0;padding:0;font-family ...

  6. web前端炫酷实用的HTML5应用和jQuery插件

    又开始了新的一天,我们也将继续为大家分享许多优秀的HTML5应用和jQuery插件,作为前端开发者来说,这些资源可以帮助你在项目开发上派上用场.下面一起来看看这些炫酷而实用的HTML5应用和jQuer ...

  7. 简明Python中的一个小错误

    最近在学Python,先看的是<Python基础教程>,后来经别人推荐,感觉网络上的<简明Python教程>也挺好的,在里面发现一个小错误. 网址如下:http://sebug ...

  8. VC和VS系列(2005)编译器对双精度浮点溢出的处理

    作者:风影残烛 在还原代码的过程中.目前程序是采用VS2005(以上版本)写的. 我使用的是vc6.0,结果.在运算的时候.发现编译器对 // FpuTlxTest.cpp : 定义控制台应用程序的入 ...

  9. Python的 is 运算符

    1. is运算符判断的是同一性而不是相等性. #x和y都绑定到同一个列表,而z被绑定在另外一个具有相同数值和顺序的列表上 x = y = [1, 2, 3] z = [1, 2, 3] x == y ...

  10. linux od命令: 按不同进制显示文件

    介绍:od(octal dump)命令可以以八进制.十进制.十六进制和ASCII码来显示文件或者流,它们对于访问或可视地检查文件中不能直接显示在终端上的字符很有用.语法: od [-A 地址进制] [ ...