1.制作启动sd卡
主要过程为格式化为fat32格式,并设置为主活动分区,以下时win7下操作方式
Preparing a bootable SD card (Windows 7)
If your SD card does not already contain a bootable (active) FAT32 partition, you can use the Windows 7 Disk Management utility to create one.
(1)Creating a bootable FAT32 partition in a Windows 7 environment
The default Windows formatting option that appears when you insert a blank (or unrecognized) SD card into a Windows PC is not sufficient to format the SD card with a bootable partition. While it can create a DOS/FAT32 partition, it does not provide an option for making this partition "Active", or bootable. If your SD card does not already contain a bootable (active) FAT32 partition, you can create one with the Windows 7 Disk Management utility, as follows:
Open the Windows Control Panel, and run Administrative Tools.
Run the Computer Management application.
On the left pane, under the Storage category, select Disk Management.
Insert the SD card that you will use to put the QNX images on, and identify the correct volume as it appears in the "Disk Management" window.
Select the correct drive by right-clicking on it, and choose the Format option. Once the format operation is complete, under the "Status" column, it should show something like: Healthy (Active, Primary Partition).
Marking the FAT32 bootable partition active
If the SD card doesn't show the partition as "Active", you will need to set it to active. With many SD cards, all you need to do is:
Right-click on the partition icon.
(2)Select Mark Partition as Active.
With some SD cards, however, after you have performed the steps to format the card, the option to Mark Partition as Active will not be available. (It will be greyed out). If this is the case for your SD card, you will need to complete some additional steps to make the bootable FAT32 partition active:
Open a DOS command prompt (Start Menu > All Programs > Accessories > Command Prompt).
Run the diskpart utility and run the list disk command to get a list of available drives, then identify your SD card on this list (in this example, Disk 3):
DISKPART> list disk
Disk ### Status Size Free Gyn Gpt
Disk 0 Online 40 GB 20 GB
Disk 1 No Media 0 B 0 B
Disk 2 No Media 0 B 0 B
Disk 3 Online 14 GB 0 B
Select the disk to target for additional activities, by running the following command:
DISKPART > select disk 3
Disk 3 is now the selected disk.
DISKPART >
Run the list partition command, to see a list of the available partitions (we'll use Partition 1):
DISKPART > list partition
Partition ### Type Size Offset
Partition 1 Primary 14 GB 4096 KB
Select this partition:
DISKPART> select partition 1
Partition 1 is now the selected partition.
DISKPART>
Make the partition active:
DISKPART> active
DiskPart marked the current partition as active.
Verify that the partition is active:
DISKPART> list partition
Partition ### Type Size Offset
Partition 1 Primary 14 GB 4096 KB
The "" beside the partition name indicates that the partition is active. Your SD card should now be ready. You can proceed with copying files to the DOS/FAT32 partition on the disk.
ubuntu下参照以下
Preparing a bootable SD card (Linux Ubuntu)
If your SD card does not already contain a bootable (active) FAT32 partition, you can create one from a Linux Ubuntu host.
Creating a bootable FAT32 partition in a Linux Ubuntu environment
The following procedure provides a quick, step-by-step example of the procedure you can use from a Linux Ubuntu terminal to prepare an SD card with a bootable DOS / FAT32 filesystem.
This example uses the SD card /dev/sdd. You can use the mount command to determine your SD card's actual device name.
We are working with the SD card as a whole (/dev/sdd), not a partition on the SD card (e.g. /dev/sdd1).
Display disk information and show the existing partitions, if any:
/home/user/> sudo fdisk /dev/sdd
Command (m for help): p
Disk /dev/sdd: 15.9 GB, 15931539456 bytes
64 heads, 32 sectors/track, 15193 cylinders, total 31116288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x938b698a
Device Boot Start End Blocks Id System
Change default unit to cylinders:
Command (m for help): u
Changing display/entry units to cylinders
Create a new, empty DOS partition table:
Command (m for help): o
Building a new DOS disklabel with disk identifier 0xdf0e79d5.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Add a new partition (Instructions and comments are in parenthesis):
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p (The new partition is a primary partition.)
Partition number (1-4, default 1): (Press Enter for default.)
Using default value 1
First cylinder (2-15193, default 2): (Press Enter for default.)
Using default value 2
Last cylinder, +cylinders or +size{K,M,G} (2-15193, default 15193): (Press Enter for default.)
Using default value 15193
Make a partition active, or bootable:
Command (m for help): a
Partition number (1-4): 1 (Select Partition 1 to be active.)
Change the partition type to FAT32. (The value c is hexadecimal (decimal 12), the type for a FAT32 partition.):
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): c
Changed system type of partition 1 to c (W95 FAT32 (LBA))
Write the new partition information:
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
Format the new partition with a DOS FAT32 filesystem. Note that now we specify the partition number (/dev/sdd1):
/home/user> sudo mkfs.vfat -F32 /dev/sdd1
mkfs.vfat 3.0.13 (30 Jun 2012)
/home/user>
Your SD card should now be ready to use with the BSP boot images.
2.在qnxsoftwarecenter中下载Beaglebone black board的BSP
利用SDP7.0导入bsp文件,找到images目录下的ifs-ti-am335x-beaglebone.bin文件
3.下载u-boot和MLO文件
http://community.qnx.com/sf/frs/do/viewRelease/projects.bsp/frs.texas_instruments_am335_beaglebo.mlo_and_u_boot_binaries_for_beag
下载MLO和uboot文件,并以
<1>MLO
<2>uboot
<3>ifs-ti-am335x-beaglebone.bin
的顺序将文件拷入1中准备的SD 卡中。
4.uEnv文件
在SD卡根目录新建文件 uEnv.txt,内容如下:
uenvcmd=mmcinfo;fatload mmc 0 81000000 ifs-ti-am335x-beaglebone.bin; go 81000000
5 上电启动
将SD卡插入BBB板中,上电时按住S2键,强制从SD卡启动。此时从串口终端可看到启动过程。并进入QNX系统
其他
1.串口连接方式: 使用FDTI的usb转串口线,黑色 绿色 白色分别连接BBB板J1的1,4,5脚,其中J1的白点处为1脚。
2.win7上使用putty作为串口终端,如果遇到putty无法输入情况,一般为串口线松了。