【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. JQuery Mobile 实战一

    今天我们来使用JQuery Mobile来开发一个web mobile app. 要实现的如下所示效果: 开始: 第一步:添加JS包等引用,直接去官网下载最新的JQuery Mobile 包,http ...

  2. ServiceStack简介

    原文:http://bbs.csdn.net/topics/390911450?page=1#post-398388262 在帖子中看到,大致了解了下,非常好的框架,留着学习 https://gith ...

  3. HTML之调用摄像头实现拍照和摄像功能

    应该有很多人知道,我们的手机里面有个功能是“抓拍入侵者”,说白了就是在解锁应用时如果我们输错了密码手机就会调用这一功能实现自动拍照. 其实在手机上还有很多我们常用的软件都有类似于这样的功能,比如微信扫 ...

  4. Dos下查询关闭端口的命令例子

    1. 查看端口占用 在windows命令行窗口下执行: netstat -aon|findstr "8080" TCP     127.0.0.1:80         0.0.0 ...

  5. 第六篇、抽屉效果+UITabBarController(主流框架)

    依赖于第三方的框架RESideMenu 1.AppDelegate.m中的实现 - (BOOL)application:(UIApplication *)application didFinishLa ...

  6. jqure获取单选按钮的值(比如性别)

    使用jquery获取radio的值,最重要的是掌握jquery选择器的使用,在一个表单中我们通常是要获取被选中的那个radio项的值,所以要加checked来筛选,比如有以下的一些radio项: 1. ...

  7. Spring IoC容器的设计——BeanFactory应用场景2

    1.BeanFactory接口设计了getBean方法,这个方法是使用IoC容器API的主要方法,通过这个方法,可以取得IoC容器中管理的Bean,Bean的取得是通过指定名字来索引的. 2.如果需要 ...

  8. 【leetcode】368. Largest Divisible Subset

    题目描述: Given a set of distinct positive integers, find the largest subset such that every pair (Si, S ...

  9. 胸腺嘧啶“T”

    4.下列物质或结构中含胸腺嘧啶“T”的是( )A.DNA聚合酶 B.烟草花叶病毒C.ATP D.B淋巴细胞中的线粒体

  10. floodfill算法解题示例

    Flood fill算法是从一个区域中提取若干个连通的点与其他相邻区域区分开(或分别染成不同颜色)的经典算法.因为其思路类似洪水从一个区域扩散到所有能到达的区域而得名.在GNU Go和扫雷中,Floo ...