[Shield Android TV General] ahmed68:
i have all file to flash the original sshd , anybody can help how to flash it

# flash.sh: Flash the target board.

#	flash.sh performs the best in LDK release environment.

#

# Usage: Place the board in recovery mode and run:

#

#	flash.sh [options] <target_board> <root_device>

#

#	for more detail enter 'flash.sh -h'

#

# Examples:

# ./flash.sh <target_board> mmcblk0p1	- boot <target_board> from eMMC

# ./flash.sh <target_board> mmcblk1p1	- boot <target_board> from SDCARD

# ./flash.sh <target_board> sda1	- boot <target_board> from USB device

# ./flash.sh -N <IPaddr>:/nfsroot <target_board> eth0	- boot <target_board> from NFS

# ./flash.sh -k LNX <target_board> mmcblk1p1	- update <target_board> kernel

# ./flash.sh -k EBT <target_board> mmcblk1p1	- update <target_board> bootloader

#

# Optional Environment Variables:

# BCTFILE ---------------- Boot control table configuration file to be used.

# BOARDID ---------------- Pass boardid to override EEPROM value

# BOOTLOADER ------------- Bootloader binary to be flashed

# BOOTPARTLIMIT ---------- GPT data limit. (== Max BCT size + PPT size)

# BOOTPARTSIZE ----------- Total eMMC HW boot partition size.

# CFGFILE ---------------- Partition table configuration file to be used.

# CMDLINE ---------------- Target cmdline. See help for more information.

# DEVSECTSIZE ------------ Device Sector size. (default = 512Byte).

# DTBFILE ---------------- Device Tree file to be used.

# EMMCSIZE --------------- Size of target device eMMC (boot0+boot1+user).

# FLASHAPP --------------- Flash application running in host machine.

# FLASHER ---------------- Flash server running in target machine.

# IGNOREFASTBOOTCMDLINE -- Block fastboot from filling unspecified kernel

# cmdline parameters with its defaults.

# INITRD ----------------- Initrd image file to be flashed.

# ITSFILE ---------------- Multi image u-boot package template file.

# KERNEL_IMAGE ----------- Linux kernel zImage file to be flashed.

# MTS -------------------- MTS file name such as mts_si.

# MTSPREBOOT ------------- MTS preboot file name such as mts_preboot_si.

# NFSARGS ---------------- Static Network assignments.

#	<C-ipa>:<S-ipa>:<G-ipa>:<netmask>

# NFSROOT ---------------- NFSROOT i.e. <my IP addr>:/exported/rootfs_dir.

# ODMDATA ---------------- Odmdata to be used.

# ROOTFSSIZE ------------- Linux RootFS size (internal emmc/nand only).

# ROOTFS_DIR ------------- Linux RootFS directory name.

# TEGRABOOT -------------- lowerlayer bootloader such as nvtboot.bin.

# UBOOTSCRIPT ------------ U-boot HUSH boot script file.

# UBOOT_TEXT_BASE -------- U-boot Image Load Address.

# UIMAGE_LABEL ----------- Kernel version for U-boot image header.

# UIMAGE_NAME ------------ uImage file name.

# WB0BOOT ---------------- Warmboot code such as nvtbootwb0.bin

#

---------- Post added at 05:46 PM ---------- Previous post was at 05:44 PM ----------

*** PARTITION LAYOUT(23 partitions) ***

[ BCT] BH 0 8191 4.0MiB

[ NVC] BH 8192 16383 4.0MiB nvtboot.bin

[ PPT] UH 0 4095 2.0MiB

[ GP1] UH 4096 8191 2.0MiB

[ APP] UH 8192 29368319 14336.0MiB system.img

[ TBC] UV 29368320 29372415 2.0MiB nvtboot_cpu.bin

[ EBT] UV 29372416 29380607 4.0MiB u-boot-dtb.bin

[ BPF] UV 29380608 29384703 2.0MiB bpmp.bin

[ WB0] UV 29384704 29396991 6.0MiB warmboot.bin

[ RP1] UV 29396992 29405183 4.0MiB tegra210-jetson-tx1-p2597-2180-a01-devkit.dtb

[ TOS] UV 29405184 29417471 6.0MiB tos.img

[ EKS] UV 29417472 29421567 2.0MiB

[ FX] UV 29421568 29425663 2.0MiB

[ SOS] UV 29425664 29466623 20.0MiB

[ EXI] UV 29466624 29597695 64.0MiB

[ LNX] UV 29597696 29728767 64.0MiB

[ DTB] UV 29728768 29736959 4.0MiB tegra210-jetson-tx1-p2597-2180-a01-devkit.dtb

[ NXT] UV 29736960 29741055 2.0MiB

[ MXB] UV 29741056 29753343 6.0MiB

[ MXP] UV 29753344 29765631 6.0MiB

[ USP] UV 29765632 29769727 2.0MiB

[ UDA] UV 29769728 61067263 15282.0MiB

[ GPT] UH 61067264 61071359 2.0MiB

copying flasher(/root/64_TX1/Linux_for_Tegra_64_tx1/bootloader/t210ref/cboot.bin)... done.

Existing flashapp(/root/64_TX1/Linux_for_Tegra_64_tx1/bootloader/tegraflash.py) reused.

Usage: sudo ./flash.sh [options] <target_board> <rootdev>

Where,

target board: Valid target board name.

rootdev: Proper root device.

options:

-b <bctfile> --------- nvflash boot control table config file.

-c <cfgfile> --------- nvflash partition table config file.

-d <dtbfile> --------- device tree file.

-e <emmc size> ------- Target device's eMMC size.

-f <flashapp> -------- Path to flash application: nvflash or tegra-rcm.

-h ------------------- print this message.

-i ------------------- pass user kernel commandline as-is to kernel.

-k <partition id> ---- partition name or number specified in flash.cfg.

-m <mts preboot> ----- MTS preboot such as mts_preboot_si.

-n <nfs args> -------- Static nfs network assignments

<Client IP>:<Server IP>:<Gateway IP>:<Netmask>

-o <odmdata> --------- ODM data.

-p <bp size> --------- Total eMMC HW boot partition size.

-r ------------------- skip building and reuse existing system.img.

-s <ubootscript> ----- HUSH bootscript file for U-Boot.

-t <tegraboot> ------- tegraboot binary such as nvtboot.bin

-u <dbmaster> -------- PKC server in <user>@<IP address> format.

-w <wb0boot> --------- warm boot binary such as nvtbootwb0.bin

-x <tegraid> --------- 0x40 for jetson-tk1.

-y <fusetype> -------- PKC for secureboot, NS for non-secureboot.

-z <sn> -------------- Serial Number of target board.

-B <boardid> --------- BoardId.

-C <cmdline> --------- Kernel commandline arguments.

WARNING:

Each option in this kernel commandline gets

higher preference over the same option from

fastboot. In case of NFS booting, this script

adds NFS booting related arguments, if -i option

is omitted.

-F <flasher> --------- Flash server such as fastboot.bin.

-I <initrd> ---------- initrd file. Null initrd is default.

-K <kernel> ---------- Kernel image file such as zImage or Image.

-L <bootloader> ------ Bootloader such as cboot.bin or u-boot-dtb.bin.

-M <mts boot> -------- MTS boot file such as mts_si.

-N <nfsroot> --------- i.e. <my IP addr>:/my/exported/nfs/rootfs.

-P <end of PPT + 1> -- Primary GPT start address + size of PPT + 1.

-R <rootfs dir> ------ Sample rootfs directory.

-S <size> ------------ Rootfs size in bytes. Valid only for internal

rootdev. KiB, MiB, GiB short hands are allowed,

for example, 1GiB means 1024 * 1024 * 1024 bytes.

-T <its file> -------- ITS file name. Valid only for u-boot.

--no-flash ----------- perform all steps except physically flashing the board.

This will create a system.img.