# How to flash only Kernel image to Jetson TX2 28R3

**URL:** <https://forums.developer.nvidia.com/t/how-to-flash-only-kernel-image-to-jetson-tx2-28r3/77889>\
**Category:** Jetson TX2\
**Created:** [July 11, 2019, 12:38pm UTC](https://forums.developer.nvidia.com/t/how-to-flash-only-kernel-image-to-jetson-tx2-28r3/77889 "2019-07-11T12:38:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![liliasojd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@liliasojd](https://forums.developer.nvidia.com/u/liliasojd)\
**Post date:** [July 11, 2019, 12:38pm UTC](https://forums.developer.nvidia.com/t/how-to-flash-only-kernel-image-to-jetson-tx2-28r3/77889/1 "2019-07-11T12:38:26Z")

</div>

I build kernel from source and copy it to /Linux for Tegra/kernel and /Linux for Tegra/rootfs/boot  
then use ./flash.sh -k kernel jetson-tx2 mmcblk0p1，reboot TX2  
then use command uname -a，I found nothing changed(kernel build time)  
but if use ./flash.sh jetson-tx2 mmcblk0p1 ,kernel will be change

and if use ./flash.sh -k kernel-dtb jetson-tx2 mmcblk0p1,the dtb will be change

---

<div class="post-metadata">

**Author:** ![liliasojd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@liliasojd](https://forums.developer.nvidia.com/u/liliasojd)\
**Post date:** [July 11, 2019, 12:46pm UTC](https://forums.developer.nvidia.com/t/how-to-flash-only-kernel-image-to-jetson-tx2-28r3/77889/2 "2019-07-11T12:46:35Z")

</div>

TX2 28R2.1

---

<div class="post-metadata">

**Author:** ![wilkinsw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/wilkinsw/32/15482_2.png) [@wilkinsw](https://forums.developer.nvidia.com/u/wilkinsw)\
**Post date:** [July 11, 2019, 6:36pm UTC](https://forums.developer.nvidia.com/t/how-to-flash-only-kernel-image-to-jetson-tx2-28r3/77889/3 "2019-07-11T18:36:58Z")

</div>

The kernel Image can actually be copied directly to /boot on the TX2 (using scp or rsync).

This is the script I use:

```auto
#!/bin/bash
  
set -e

if [$# -ne 2]; then
  echo "$0 [tx1,tx2] [target]"
  exit 1
fi

if ["$1" = "tx1"]; then
  scp $SOURCEDIR/compiled-$1/arch/arm64/boot/Image $2:/boot
  rsync -avhe ssh $SOURCEDIR/compiled-$1/modules/lib/modules/* $2:/lib/modules
fi

if ["$1" = "tx2"]; then
  scp $SOURCEDIR/compiled-$1/arch/arm64/boot/Image $2:/boot
  rsync -avhe ssh $SOURCEDIR/compiled-$1/modules/lib/modules/* $2:/lib/modules
fi

```

Note: you will get permission issues as the image is owned by root. You can either transfer it to a temporary directory and then copy them with sudo to their final destination or just set the permissions to be less secure.

---

<div class="post-metadata">

**Author:** ![liliasojd](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@liliasojd](https://forums.developer.nvidia.com/u/liliasojd)\
**Post date:** [July 12, 2019, 3:04am UTC](https://forums.developer.nvidia.com/t/how-to-flash-only-kernel-image-to-jetson-tx2-28r3/77889/4 "2019-07-12T03:04:05Z")

</div>

TX2 28R2.1

> [@](#):
>
> The kernel Image can actually be copied directly to /boot on the TX2 (using scp or rsync).
> 
> This is the script I use:
> 
> ```auto
> #!/bin/bash
>   
> set -e
> 
> if [$# -ne 2]; then
> echo "$0 [tx1,tx2] [target]"
> exit 1
> fi
> 
> if ["$1" = "tx1"]; then
> scp $SOURCEDIR/compiled-$1/arch/arm64/boot/Image $2:/boot
> rsync -avhe ssh $SOURCEDIR/compiled-$1/modules/lib/modules/* $2:/lib/modules
> fi
> 
> if ["$1" = "tx2"]; then
> scp $SOURCEDIR/compiled-$1/arch/arm64/boot/Image $2:/boot
> rsync -avhe ssh $SOURCEDIR/compiled-$1/modules/lib/modules/* $2:/lib/modules
> fi
> 
> ```
> 
> Note: you will get permission issues as the image is owned by root. You can either transfer it to a temporary directory and then copy them with sudo to their final destination or just set the permissions to be less secure.

I have try，It’s OK,Thanks

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 6:33pm UTC](https://forums.developer.nvidia.com/t/how-to-flash-only-kernel-image-to-jetson-tx2-28r3/77889/5 "2021-10-18T18:33:06Z")

</div>

Closed on October 18, 2021, 6:33pm UTC


