Skip to main content

Loading Freescale P1020 board support package via tftp in Momentics

Relevant information:
  Development System: Windows XP Sp3 with QNX SDP 6.5.0 (this is only to demonstrate loading via tftp. BSP for P1020 in QNX foundry was documented as targeted for QNX 6.4.1)
  Target: P1020RDB

Host machine preparation:
Step 1. Download Freescale P1020 board support package, see this link. As of this writing, we only have support for QNX 6.4.1. I have it saved in D:\tmp\bsp-nto641-freescale-p1020-rdb-trunk-201009282107.zip. Take note that they continually update this package so the name may change.

Step 2. Extract the zip file, it should look like this: D:\tmp\bsp-nto641-freescale-p1020-rdb-trunk-201009282107.

Step 3. Open QNX Momentics (assuming you have this installed already).

Step 4. Open Resource Perspective (Window -> Open Perspective -> Other..., then select Resource).

Step 5. In Resource Perspective, create new project, i.e.:
  a) File -> New -> Project...
  b) Select General -> Project
  c) For project name type data, leave the  rest as default values.
  d) From Project Explorer, select data then do New -> Folder.
  e) Click Advanced >>.
  f) Click Link to folder in the file system.
  g) Browse to D:\tmp\bsp-nto641-freescale-p1020-rdb-trunk-201009282107\images. (Change folder structure as appropriate).
  h) Click Finish.

Step 6. Open Preferences ( Window -> Preferences) and navigate to QNX -> Tftp Server -> User Search Paths.

Step 7. Do click on New...

Step 8. Click on Browse Workspace... select data -> images then click on OK.

Step 9. Close Preferences dialog box.

Step 10. Change to QNX System Builder Perspective.

Step 11. From TFTP Server view (located in lower left in default layout or do Window -> Show View -> TFTP Server). Select Tftp Server Input -> User Search Path. Now we are ready for the host development machine.

Step 12. Install Tera Term or something similar. Set serial port (baud rate = 115200, data = 8bit, parity = none, stop = 1bit, flow control = none).

Target machine preparation:
Step 1. Connect P1020 (UART0) to your development machine.

Step 2. Connect CAT-5 (ethernet) cable to the same switch as your development machine. You can use the port closest to the first USB connector.

Step 3. Power on P1020, wait for the uboot prompt (note that you may have to press ESC to prevent it from booting into the default boot media).

Step 4.  Type setevn ipaddr 192.168.0.254 (where 192.168.0.254 is an available address in your network, this should also be reachable by your development machine).

Step 5. Save changes, type saveenv.

Step 6. Load QNX image, type tftpboot 0x100000 192.168.0.108:ifs-p1020rdb.raw. Where 192.168.0.108 is the IP address of the development machine.

Step 7: Jump to QNX OS, type go 0x100000.

You should now have QNX running in your P1020RDB board.

Enjoy

~ts

Comments

Anonymous said…
I'm newbie, hi

Popular posts from this blog

Error! Could not locate dkms.conf file install VirtualBox 4.1.8 on Ubuntu 11.10

Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed properly except that VirtualBox installation was complaining about missing dkms.conf file, see error message below. $: sudo /etc/init.d/vboxdrv setup * Stopping VirtualBox kernel modules [ OK ] * Uninstalling old VirtualBox DKMS kernel modules Error! Could not locate dkms.conf file. File: does not exist. [ OK ] * Trying to register the VirtualBox kernel modules using DKMS [ OK ] * Starting VirtualBox kernel modules [ OK ] Though it looks like installation was fine but I am concerned about its effects to VirtualBox functionality. To fix this, do: $: cd /var/lib/dkms/vboxhost $: sudo rm -r 4.1.4 $: sudo /etc/init.d/vboxdrv setup Of course you have to re

The following add-ins could not be started MonoDevelop.GnomePlatform

Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: The following add-ins could not be started: The root of the trace shows MonoDevelop.GnomePlatform,2.8 A quick search shows that MonoDevelop depends on libgnomeui . This should have been part of dependencies when installing the application but well.... Below is the screen shot of the error message. References: http://software.1713.n2.nabble.com/MonoDevelop-and-openSUSE-12-1-td7462957.html [2013/04/09] - Same issue observed in OpenSUSE 12.3 and also the same fix. [2014/11/02] - Same issue observed in OpenSUSE 13.3, mondevelop 3.0.6 and the same fix.