Sunday, November 07, 2010

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\ 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 (where 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 Where 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.



1 comment:

Anonymous said...

I'm newbie, hi