QNX sdp7.0移植至Beaglebone black board(U-Boot啟動)

1.制作啟動sd卡

主要過程為格式化為fat32格式戚篙,并設(shè)置為主活動分區(qū),以下時(shí)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導(dǎo)入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
的順序?qū)⑽募饺?中準(zhǔn)備的SD 卡中孤钦。

4.uEnv文件

在SD卡根目錄新建文件 uEnv.txt,內(nèi)容如下:
uenvcmd=mmcinfo;fatload mmc 0 81000000 ifs-ti-am335x-beaglebone.bin; go 81000000

5 上電啟動

將SD卡插入BBB板中,上電時(shí)按住S2鍵约巷,強(qiáng)制從SD卡啟動偎痛。此時(shí)從串口終端可看到啟動過程。并進(jìn)入QNX系統(tǒng)

其他

1.串口連接方式: 使用FDTI的usb轉(zhuǎn)串口線独郎,黑色 綠色 白色分別連接BBB板J1的1踩麦,4,5腳,其中J1的白點(diǎn)處為1腳氓癌。
2.win7上使用putty作為串口終端谓谦,如果遇到putty無法輸入情況,一般為串口線松了贪婉。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末反粥,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子疲迂,更是在濱河造成了極大的恐慌才顿,老刑警劉巖,帶你破解...
    沈念sama閱讀 218,607評論 6 507
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件尤蒿,死亡現(xiàn)場離奇詭異郑气,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)腰池,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,239評論 3 395
  • 文/潘曉璐 我一進(jìn)店門尾组,熙熙樓的掌柜王于貴愁眉苦臉地迎上來忙芒,“玉大人,你說我怎么就攤上這事讳侨『侨” “怎么了?”我有些...
    開封第一講書人閱讀 164,960評論 0 355
  • 文/不壞的土叔 我叫張陵跨跨,是天一觀的道長潮峦。 經(jīng)常有香客問我,道長歹叮,這世上最難降的妖魔是什么跑杭? 我笑而不...
    開封第一講書人閱讀 58,750評論 1 294
  • 正文 為了忘掉前任,我火速辦了婚禮咆耿,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘爹橱。我一直安慰自己萨螺,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,764評論 6 392
  • 文/花漫 我一把揭開白布愧驱。 她就那樣靜靜地躺著慰技,像睡著了一般。 火紅的嫁衣襯著肌膚如雪组砚。 梳的紋絲不亂的頭發(fā)上吻商,一...
    開封第一講書人閱讀 51,604評論 1 305
  • 那天,我揣著相機(jī)與錄音糟红,去河邊找鬼艾帐。 笑死,一個胖子當(dāng)著我的面吹牛盆偿,可吹牛的內(nèi)容都是我干的柒爸。 我是一名探鬼主播碍舍,決...
    沈念sama閱讀 40,347評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼译打,長吁一口氣:“原來是場噩夢啊……” “哼逗柴!你這毒婦竟也來了坎藐?” 一聲冷哼從身側(cè)響起爆哑,我...
    開封第一講書人閱讀 39,253評論 0 276
  • 序言:老撾萬榮一對情侶失蹤赋续,失蹤者是張志新(化名)和其女友劉穎照藻,沒想到半個月后饺鹃,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體罐农,經(jīng)...
    沈念sama閱讀 45,702評論 1 315
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡条霜,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,893評論 3 336
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了啃匿。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片蛔外。...
    茶點(diǎn)故事閱讀 40,015評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡蛆楞,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出夹厌,到底是詐尸還是另有隱情豹爹,我是刑警寧澤,帶...
    沈念sama閱讀 35,734評論 5 346
  • 正文 年R本政府宣布矛纹,位于F島的核電站臂聋,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏或南。R本人自食惡果不足惜孩等,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,352評論 3 330
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望采够。 院中可真熱鬧肄方,春花似錦、人聲如沸蹬癌。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,934評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽逝薪。三九已至隅要,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間董济,已是汗流浹背步清。 一陣腳步聲響...
    開封第一講書人閱讀 33,052評論 1 270
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留虏肾,地道東北人廓啊。 一個月前我還...
    沈念sama閱讀 48,216評論 3 371
  • 正文 我出身青樓,卻偏偏與公主長得像询微,于是被迫代替她去往敵國和親崖瞭。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,969評論 2 355

推薦閱讀更多精彩內(nèi)容

  • 小鑫給我發(fā)信息說:親,我失戀了藻雌。 自己失戀雌续,還給我發(fā)個“親”,這孩子心得多大胯杭? 作為一個骨灰級閨蜜來講驯杜,她的這個決...
    大野澤的風(fēng)閱讀 556評論 2 2
  • 父元素高度確定的單行文本 父元素高度確定的單行文本的豎直居中的方法是通過設(shè)置父元素的 height 和 line-...
    你好星期四閱讀 315評論 0 0
  • 文城郭 丹鳳眼,柳葉眉做个,不知她是誰鸽心? 慌慌張滚局,忙忙碌,十年如朝暮顽频。 山難行藤肢,湖難舟,遙看青云渡(篤)糯景。 泛炊煙嘁圈,看...
    城郭O閱讀 132評論 1 1
  • 心上的鎖事 已在黑與白的交叉口放下 偶爾的雜念 也在睡眼泛光下褪去 心也隨之空下來 我的心不大 空的心,剛好容下你...
    云中聽書閱讀 296評論 3 8