【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. XML文件注意问题

    一.Elements和Descendant Elements 相当于root节点下的子节点,Desendant元素相当于root节点下的所有子节点(包括root.elments下个子节点也包括root ...

  2. MVC 下 使用MvcPager分页控件

    先去下载 mvcpage http://mvcpager.codeplex.com/releases/view/64098只需要一个 MvcPager.dll文件即可 然后引用MvcPager.dll ...

  3. Android Bitmap那些事之如何优化内存

    前言:”安得广厦千万间,大庇天下寒士俱欢颜“——杜甫.在帝都住的朋友们都可能会遇到租房子困难的问题(土豪请无视),找房子真是力气活,还耗费时间,占用我宝贵的写博客时间,没办法,谁让咱没钱还想住的好点, ...

  4. blogs

    http://blogs.msdn.com/b/tess/archive/2008/02/04/net-debugging-demos-information-and-setup-instructio ...

  5. 对Json字符串进行格式化显示

    很多时候,我们拿Json字符串作为返回结果,但是当数据量多的时候,一堆的Json字符串看起来很不直观,这时候我们可以使用以下办法将Json字符串格式化一下再输出 var JsonUti = { //定 ...

  6. java web服务器文件的下载(有下载弹出匡)

    昨天做了一个文件从服务下载的功能,怎么都不弹出页面,下载框.后查询得知.目前两种方法 1.<a href='下载路径' /> 2.window.location.href = basePa ...

  7. Swift学习链接

    http://wiki.jikexueyuan.com/project/swift/chapter1/02_a_swift_tour.html

  8. iOS学习笔记--OC系列(1)

    前言 从学校毕业进入公司工作已经第3个年头了,回顾这3年的经历,有种迷茫的感觉.在公司我主要是做零售业公司的系统维护,接触的主要是Oracle的Database的东西.但是业务知识和oracle,都没 ...

  9. UILabel 整理

      UILabel 多行文字自动换行 (自动折行) 1.UIView *footerView = [[UIView alloc] initWithFrame:CGRectMake(10, 100, 3 ...

  10. OC7_代理的基本概念

    // // Cat.h // OC7_代理的基本概念 // // Created by zhangxueming on 15/6/24. // Copyright (c) 2015年 zhangxue ...