[原創]QNX660 Momentics打補訂方法-打patch方法

如果你認爲本系列文章對你有所幫助,請大家有錢的捧個錢場,點擊此處贊助,贊助額0.1元起步,多少隨意

聲明:本文只用於個人學習交流,若不慎造成侵權,請及時聯繫我,立即予以改正

鋒影

email:[email protected]

 

在安裝好qnx660 ide後,由於QNX Momentics IDE版本文件是2014年左右的版本,相對較老,

此時sdp會有相關的幾個patch仍需要打入纔算拿到最新,最優的狀態。

具體安裝順序如下:

qnx-sdp-6.6-201402230339.exe

patch-660-4036-RS5682_660-Graphics-GA.tar

patch-660-4418-LoLAA-io-audio_debug.tar

patch-660-4024-applypatch.tar

patch-660-4187-ide.tar

patch-660-4367-RS6069_cpp-headers.tar

patch-660-4669-kernellibc.tar

.

Installing this patch

  1. Log in as the user who installed QNX SDP 6.6.
  2. On Windows hosts, run cmd.exe; on Linux hosts, start a command shell.
  3. Set up your QNX SDP 6.6 environment:
    • On Windows hosts, run:
      base_directory\qnx660-env.bat
    • On Linux hosts, run:
      source base_directory/qnx660-env.sh

    where base_directory is where you installed QNX SDP 6.6.

  4. Download the patch-660-4418-LoLAA-io-audio.tar archive to your host environment.
  5. Verify that the patch's checksum matches the one given on our website.
  6. Use the applypatch utility to install the patch:
    applypatch download_path/patch-660-4418-LoLAA-io-audio.tar
        

    where download_path is the location of the patch file. For more information about applypatch, see its entry in the Utilities Reference.


Note: You might see warnings that the previously installed versions of these header files are newer than the ones in the patch:
  • ado_isa.h
  • ado_pci.h
  • ado_pcm/dcmd_bluetooth.h
  • ado_pcm/dcmd_radio.h
  • mixer/ac97_devctl.h
  • mixer/ac97_dll.h
  • mixer/ak4531_dll.h
  • mixer/hda_dll.h
  • sys/asound.h

The only change to these files is the version information; it doesn't matter which copy of them that you use.


Installing the updated symbol files (optional)

If you've installed the symbol files for QNX SDP 6.6, you should update them from the accompanying patch-660-4418-LoLAA-io-audio_debug.tar file that's in the Download area of our website. To install these files, continue from the steps above and do the following:

  1. Download patch-660-4418-LoLAA-io-audio_debug.tar from the Download area of our website into the working directory of your choice.
  2. Determine the base directory of your QNX SDP installation by using the qconfig command.
  3. cd base_directory/install
  4. tar -xvf path_to_working_dir/patch-660-4418-LoLAA-io-audio_debug.tar

    The symbol files are installed in patches/660-4418/debug. You can either replace the existing symbol files or direct the debugger to use the files in this directory.

  5. If you want to replace the existing symbol files, back up the following files, which are installed under $QNX_TARGET:
    • armle-v7/sbin/io-audio.sym
    • armle-v7/lib/libasound.so.2.sym
    • armle-v7/usr/bin/wave.sym
    • armle-v7/usr/bin/waverec.sym
    • armle-v7/usr/bin/pcm_logger.sym
    • armle-v7/usr/bin/mix_ctl.sym
    • armle-v7/usr/lib/libaudio_manager.so.2.sym

    and then copy the new symbol files to replace them.

  6. In order to use the new symbol files in place, you can either:
    • start gdb with the --with-separate-debug-dir=base_directory/install/patches/660-4418/debug option

    or:

    • use the set debug-file-directory base_directory/install/patches/660-4418/debug command in gdb

    For more information, see https://sourceware.org/gdb/current/onlinedocs/gdb/Separate-Debug-Files.html#Separate-Debug-Files.

Uninstalling this patch

  1. Log in as the user who installed QNX SDP 6.6.
  2. On Windows hosts, run cmd.exe; on Linux hosts, start a command shell.
  3. Set up your QNX SDP 6.6 environment:
    • On Windows hosts, run:
      base_directory\qnx660-env.bat
    • On Linux hosts, run:
      source base_directory/qnx660-env.sh

    where base_directory is where you installed QNX SDP 6.6.

  4. Use the applypatch utility to uninstall the patch:
    applypatch -U 4418

安裝方法如下:

Installing this patch

  1. Log in as the user who installed QNX SDP 6.6.
  2. On Windows hosts, run cmd.exe; on Linux hosts, start a command shell.
  3. Set up your QNX SDP 6.6 environment:
    • On Windows hosts, run:
      base_directory\qnx660-env.bat
    • On Linux hosts, run:
      source base_directory/qnx660-env.sh

    where base_directory is where you installed QNX SDP 6.6.

  4. Download the patch-660-4418-LoLAA-io-audio.tar archive to your host environment.
  5. Verify that the patch's checksum matches the one given on our website.
  6. Use the applypatch utility to install the patch:
    applypatch download_path/patch-660-4418-LoLAA-io-audio.tar
        

    where download_path is the location of the patch file. For more information about applypatch, see its entry in the Utilities Reference.


Note: You might see warnings that the previously installed versions of these header files are newer than the ones in the patch:
  • ado_isa.h
  • ado_pci.h
  • ado_pcm/dcmd_bluetooth.h
  • ado_pcm/dcmd_radio.h
  • mixer/ac97_devctl.h
  • mixer/ac97_dll.h
  • mixer/ak4531_dll.h
  • mixer/hda_dll.h
  • sys/asound.h

The only change to these files is the version information; it doesn't matter which copy of them that you use.


Installing the updated symbol files (optional)

If you've installed the symbol files for QNX SDP 6.6, you should update them from the accompanying patch-660-4418-LoLAA-io-audio_debug.tar file that's in the Download area of our website. To install these files, continue from the steps above and do the following:

  1. Download patch-660-4418-LoLAA-io-audio_debug.tar from the Download area of our website into the working directory of your choice.
  2. Determine the base directory of your QNX SDP installation by using the qconfig command.
  3. cd base_directory/install
  4. tar -xvf path_to_working_dir/patch-660-4418-LoLAA-io-audio_debug.tar

    The symbol files are installed in patches/660-4418/debug. You can either replace the existing symbol files or direct the debugger to use the files in this directory.

  5. If you want to replace the existing symbol files, back up the following files, which are installed under $QNX_TARGET:
    • armle-v7/sbin/io-audio.sym
    • armle-v7/lib/libasound.so.2.sym
    • armle-v7/usr/bin/wave.sym
    • armle-v7/usr/bin/waverec.sym
    • armle-v7/usr/bin/pcm_logger.sym
    • armle-v7/usr/bin/mix_ctl.sym
    • armle-v7/usr/lib/libaudio_manager.so.2.sym

    and then copy the new symbol files to replace them.

  6. In order to use the new symbol files in place, you can either:
    • start gdb with the --with-separate-debug-dir=base_directory/install/patches/660-4418/debug option

    or:

    • use the set debug-file-directory base_directory/install/patches/660-4418/debug command in gdb

    For more information, see https://sourceware.org/gdb/current/onlinedocs/gdb/Separate-Debug-Files.html#Separate-Debug-Files.

Uninstalling this patch

  1. Log in as the user who installed QNX SDP 6.6.
  2. On Windows hosts, run cmd.exe; on Linux hosts, start a command shell.
  3. Set up your QNX SDP 6.6 environment:
    • On Windows hosts, run:
      base_directory\qnx660-env.bat
    • On Linux hosts, run:
      source base_directory/qnx660-env.sh

    where base_directory is where you installed QNX SDP 6.6.

  4. Use the applypatch utility to uninstall the patch:
    applypatch -U 4418
發佈了18 篇原創文章 · 獲贊 64 · 訪問量 27萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章