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...

UnrealEngine GenerateProjectFiles.bat error - could be due to missing RPCUtility.exe

Tried to run  GenerateProjectFiles.bat to build Unreal Engine from source ( link ),  but got error like below: C:\>Users\x\UnrealEngine>GenerateProjectFiles.bat Setting up Unreal Engine 4 project files... GenerateProjectFiles ERROR: It looks like you're missing some files that are required in order to generate projects.  Please check that you've downloaded and unpacked the engine source code, binaries, content and third-party dependencies before running this script. To fix, run setup.bat like: C:\Users\x\prj\UnrealEngine>setup.bat Note that you have to say no to the prompt Would you like to overwrite your changes (y/n)? .