「nvflash の使用方法」の編集履歴(バックアップ)一覧はこちら
nvflash の使用方法 - (2011/01/13 (木) 12:57:04) の1つ前との変更点
追加された行は緑色になります。
削除された行は赤色になります。
nvflash は Tegra 向けのイメージデータ読み書きツール。Advent vega や ux100 のメーカから提供されている ROM Update Utility は内部で nvflash が実行されている。
*注意
nvflash はパーティションの読み書きが自由できる事から、システムのバックアップとリストアに使用できそうだが、system が正常に読み取りできない事が確認されており、P10AN01 では、今のところ、バックアップツールとして使用する方法が確立されていない。
*P10AN01 を PC に認識させる(P10AN01 の APX モード移行)
+電源を落とす
+AC アダプターを接続する(必須)
+USB ケーブル(両端 USB A オス)で PC と接続する
+Back ボタンを1秒押す
+Back ボタンを押したまま、power ボタンを一秒押す
+PC のデバイスコントローラーで APX デバイスとして認識された事を確認する。
専用の USB ドライバをインストールしていない場合は、 NVIDIA Developer Zone の Operating System Images & Support Packs のドライバか p10an01 の発売元から提供されているドライバを適用する必要があるかもしれない。
*Windows
後述のコマンドはパスなどは省略しているので、事前に nvflash へのパスを通しておくこと。
**RAM にブートローダーをロードする
このコマンドは後述のコマンドを実行する前に必ず一度実行する必要がある。ここでロードされるブートローダは、ROM Update Utility や NVIDIA のサポートパックから入手しておく必要がある。
> nvflash --bl bootloader.bin --go
**パーティションの読み込み
--read の引数に読み取りたいパーティション番号を指定する
読み取りたいパーティションとその番号は、後述の方法で確認できる。
> nvflash -r --read 1 1.img
**パーティションの書き込み
--download の引数に書き込ませるパーティション番号を指定する
> nvflash -r --download 1 1.img
**パーティションテーブルを取得する
--getpartitiontable の引数にパーティションテーブルの情報を保存する。
> nvflash -r --getpartitiontable partitiontable.txt
**nvflash のヘルプ
--help (or -h)
displays this page
--cmdhelp cmd(or -ch)
displays command help
--resume (or -r)
send the following commands to an already-running bootloader
--quiet (or -q)
surpress excessive console output
--wait (or -w)
waits for a device connection (currently a USB cable)
--create
full initialization of the target device using the config file
--download N filename
download partition filename to N
--setboot N
sets the boot partition to partition N
--format_partition N
formats contents of partition N
--read N filename
reads back partition N into filename
--getpartitiontable filename
reads back the partition table into filename
--getbit filename
reads back BIT into filename
--getbct
reads back the BCT from mass storage
--odm C Data
ODM custom 32bit command 'C' with associated 32bit data
--go
continues normal execution of the downloaded bootloader
options =
--configfile filename
indicates the configuration file used with the following commands:
--create, --format_all
--bct filename
indicates the file containing the BCT
--sbk 0x00000000 00000000 00000000 00000000
indicates the secure boot key for the target device
--bl filename
downloads and runs the bootloader specified by filename
--odmdata N
sets 32bit customer data into a field in the BCT, either hex or
decimal
--diskimgopt N
sets 32bit data required for disk image convertion tool
--format_all
formats all existing partitions on the target device using the config file,
including partitions and the bct
--setbootdevtype S
sets the boot device type fuse value for the device name.
allowed device name string mentioned below:
emmc, nand_x8, nand_x16, nor, spi
--setbootdevconfig N
sets the boot device config fuse value either hex or decimal
--verifypart N
verifies data for partition id = N specified. N=-1
indicates all partitions
Intended to be used with --create command only.
--setbct
updates the chip specific settings of the BCT in mass storage to
the bct supplied,used with --create, should not be with --read,and
--format(delete)_all,format(delete)_partition,--download, and--read
--sync
issues force sync commad
--rawdeviceread S N filename
reads back N sectors starting from sector S into filename
--rawdevicewrite S N filename
writes back N sectors from filename to device starting from sector S
*Linux
使い方は Windows と一緒。ライブラリの扱いの問題があるので、環境変数 LD_LIBRARY_PATH を一時的に設定する必要があるようだ。
LD_LIBRARY_PATH=. ./nvflash --read 1 1.img
nvflash は Tegra 向けのイメージデータ読み書きツール。Advent vega や ux100 のメーカから提供されている ROM Update Utility は内部で nvflash が実行されている。
*注意
nvflash はパーティションの読み書きが自由にできる事から、システムのバックアップとリストアに使用できそうだが、system が正常に読み取りできない事が確認されており、P10AN01 では、今のところ、バックアップツールとして使用する方法が確立されていない。
*P10AN01 を PC に認識させる(P10AN01 の APX モード移行)
+電源を落とす
+AC アダプターを接続する(必須)
+USB ケーブル(両端 USB A オス)で PC と接続する
+Back ボタンを1秒押す
+Back ボタンを押したまま、power ボタンを一秒押す
+PC のデバイスコントローラーで APX デバイスとして認識された事を確認する。
専用の USB ドライバをインストールしていない場合は、 NVIDIA Developer Zone の Operating System Images & Support Packs のドライバか p10an01 の発売元から提供されているドライバを適用する必要があるかもしれない。
*Windows
後述のコマンドはパスなどは省略しているので、事前に nvflash へのパスを通しておくこと。
**RAM にブートローダーをロードする
このコマンドは後述のコマンドを実行する前に必ず一度実行する必要がある。ここでロードされるブートローダは、ROM Update Utility や NVIDIA のサポートパックから入手しておく必要がある。
> nvflash --bl bootloader.bin --go
**パーティションの読み込み
--read の引数に読み取りたいパーティション番号を指定する
読み取りたいパーティションとその番号は、後述の方法で確認できる。
> nvflash -r --read 1 1.img
**パーティションの書き込み
--download の引数に書き込ませるパーティション番号を指定する
> nvflash -r --download 1 1.img
**パーティションテーブルを取得する
--getpartitiontable の引数にパーティションテーブルの情報を保存する。
> nvflash -r --getpartitiontable partitiontable.txt
**nvflash のヘルプ
--help (or -h)
displays this page
--cmdhelp cmd(or -ch)
displays command help
--resume (or -r)
send the following commands to an already-running bootloader
--quiet (or -q)
surpress excessive console output
--wait (or -w)
waits for a device connection (currently a USB cable)
--create
full initialization of the target device using the config file
--download N filename
download partition filename to N
--setboot N
sets the boot partition to partition N
--format_partition N
formats contents of partition N
--read N filename
reads back partition N into filename
--getpartitiontable filename
reads back the partition table into filename
--getbit filename
reads back BIT into filename
--getbct
reads back the BCT from mass storage
--odm C Data
ODM custom 32bit command 'C' with associated 32bit data
--go
continues normal execution of the downloaded bootloader
options =
--configfile filename
indicates the configuration file used with the following commands:
--create, --format_all
--bct filename
indicates the file containing the BCT
--sbk 0x00000000 00000000 00000000 00000000
indicates the secure boot key for the target device
--bl filename
downloads and runs the bootloader specified by filename
--odmdata N
sets 32bit customer data into a field in the BCT, either hex or
decimal
--diskimgopt N
sets 32bit data required for disk image convertion tool
--format_all
formats all existing partitions on the target device using the config file,
including partitions and the bct
--setbootdevtype S
sets the boot device type fuse value for the device name.
allowed device name string mentioned below:
emmc, nand_x8, nand_x16, nor, spi
--setbootdevconfig N
sets the boot device config fuse value either hex or decimal
--verifypart N
verifies data for partition id = N specified. N=-1
indicates all partitions
Intended to be used with --create command only.
--setbct
updates the chip specific settings of the BCT in mass storage to
the bct supplied,used with --create, should not be with --read,and
--format(delete)_all,format(delete)_partition,--download, and--read
--sync
issues force sync commad
--rawdeviceread S N filename
reads back N sectors starting from sector S into filename
--rawdevicewrite S N filename
writes back N sectors from filename to device starting from sector S
*Linux
使い方は Windows と一緒。ライブラリの扱いの問題があるので、環境変数 LD_LIBRARY_PATH を一時的に設定する必要があるようだ。
LD_LIBRARY_PATH=. ./nvflash --read 1 1.img
表示オプション
横に並べて表示:
変化行の前後のみ表示: