QNX sdp7.0移植至Beaglebone black board(U-Boot启动)

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无法输入情况,一般为串口线松了。

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 212,383评论 6 493
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,522评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,852评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,621评论 1 284
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,741评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,929评论 1 290
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,076评论 3 410
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,803评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,265评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,582评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,716评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,395评论 4 333
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,039评论 3 316
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,798评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,027评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,488评论 2 361
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,612评论 2 350

推荐阅读更多精彩内容

  • 小鑫给我发信息说:亲,我失恋了。 自己失恋,还给我发个“亲”,这孩子心得多大? 作为一个骨灰级闺蜜来讲,她的这个决...
    大野泽的风阅读 554评论 2 2
  • 父元素高度确定的单行文本 父元素高度确定的单行文本的竖直居中的方法是通过设置父元素的 height 和 line-...
    你好星期四阅读 310评论 0 0
  • 文城郭 丹凤眼,柳叶眉,不知她是谁? 慌慌张,忙忙碌,十年如朝暮。 山难行,湖难舟,遥看青云渡(笃)。 泛炊烟,看...
    城郭O阅读 129评论 1 1
  • 心上的锁事 已在黑与白的交叉口放下 偶尔的杂念 也在睡眼泛光下褪去 心也随之空下来 我的心不大 空的心,刚好容下你...
    云中听书阅读 295评论 3 8