ユーザ用ツール

サイト用ツール


u-bootのカスタマイズ

**文書の過去の版を表示しています。**

U-Bootのカスタマイズ

Jetson TX2 NX Moduleで、U-BootのTX2 NX向けバージョンのバグを修正する必要に迫られて、一度、U-Bootを自分でビルドして実際に書き込んで使用したことはあるが、そのときは、詳細な記録を残していなかったので、今回、Jetson Nano Moduleの環境にて、U-Bootのカスタマイズ、というか、具体的に変更する必要のあるネタは今のところないので、とりあえず、自分でビルドしてそれを使ってみるとして、その記録をここに残す。

U-Bootのビルド

32.7.1 Release Notes

https://developer.download.nvidia.com/embedded/L4T/r32_Release_v7.1/Jetson_Linux_Driver_Package_Release_Notes_R32.7.1_GA.pdf?_WGgKwjJxb7q7sje7RDMOPrUef0LWxRhS5EGYVw62YJLB-Cz2BXy08ufELuY_VdN4ZJXQ-H5aD9RvAGPrKKhQIp-CDP6g6y1RJDSryNgSLZNPMoF-bNEX0wX8UsSUl0QmPRijgappDtfxk5K4Ho20r1nAHTk3yJDdb6iVKVGAb-Y2GMcPA9aEEQuq-d_BJ4kNWeYipo&t=eyJscyI6ImdzZW8iLCJsc2QiOiJodHRwczpcL1wvd3d3Lmdvb2dsZS5jb21cLyJ9

に、

Release tag tegra-l4t-r32.7.1

とあるので、これを使うのか。

NVIDIA Jetson Linux Developer Guide 32.7.1 Release のDownloading and Building U-Bootのセクション

https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3271/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/uboot_guide.html#wwpID0E0UL0HA

を参照しつつやってみる。(TX2 NXのときもそうしたはず)

$ git clone -n git://nv-tegra.nvidia.com/3rdparty/u-boot.git
Cloning into 'u-boot'...
remote: Enumerating objects: 691094, done.
remote: Counting objects: 100% (691094/691094), done.
remote: Compressing objects: 100% (108227/108227), done.
remote: Total 691094 (delta 573623), reused 691060 (delta 573589), pack-reused 0
Receiving objects: 100% (691094/691094), 136.85 MiB | 1.54 MiB/s, done.
Resolving deltas: 100% (573623/573623), done.
$ cd u-boot/
$ git checkout tegra-l4t-r32.7.1
Updating files: 100% (16598/16598), done.
Note: switching to 'tegra-l4t-r32.7.1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 4335beb692 tegra: config: update TX2-NX uboot env offset
$ git checkout -b jetson_nano_module_u-boot_customization tegra-l4t-r32.7.1
Switched to a new branch 'jetson_nano_module_u-boot_customization'
$ ls
Kbuild	     Makefile  board	  configs  dts	     include  scripts
Kconfig      README    cmd	  disk	   env	     lib      test
Licenses     api       common	  doc	   examples  net      tools
MAINTAINERS  arch      config.mk  drivers  fs	     post
$ git branch
* jetson_nano_module_u-boot_customization
$ 
u-bootのカスタマイズ.1661306424.txt.gz · 最終更新: 2022/08/24 11:00 by makotoa67