This repository has been archived by the owner on Oct 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update readme files for the bookworm v12 release
Signed-off-by: John Clark <inindev@gmail.com>
- Loading branch information
Showing
4 changed files
with
93 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,34 @@ | ||
#### <i>Note: This script should be run from an arm64 device such as a raspberry pi4.</i> | ||
## stock debian bookworm linux for the nanopi r4s | ||
|
||
<i>Note: This script is intended to be run from a 64 bit arm device such as an odroid m1 or a raspberry pi4.</i> | ||
|
||
<br/> | ||
|
||
**build debian bookworm using debootstrap** | ||
``` | ||
sudo sh make_debian_img.sh | ||
``` | ||
|
||
<i>the build will produce the target file mmc_2g.img.xz</i> | ||
|
||
<br/> | ||
|
||
**copy the image to mmc media** | ||
``` | ||
sudo sh -c 'xzcat mmc_2g.img.xz > /dev/sdX && sync' | ||
``` | ||
|
||
<br/> | ||
|
||
**multiple build options are available by editing make_debian_img.sh** | ||
``` | ||
media='mmc_2g.img' # or block device '/dev/sdX' | ||
deb_dist='bookworm' | ||
hostname='deb-arm64' | ||
acct_uid='debian' | ||
acct_pass='debian' | ||
enterprise_dtb='true' | ||
disable_ipv6='true' | ||
extra_pkgs='pciutils, sudo, wget, u-boot-tools, xxd, xz-utils, zip, unzip' | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## linux device tree for the nanopi r4s | ||
|
||
<br/> | ||
|
||
**build device tree images for the nanopi r4s** | ||
``` | ||
sh make_dtb.sh | ||
``` | ||
|
||
<i>the build will produce the target files: rk3399-nanopi-r4s.dtb and rk3399-nanopi-r4s-enterprise.dtb</i> | ||
|
||
<br/> | ||
|
||
**optional: create symbolic links** | ||
``` | ||
sh make_dtb.sh links | ||
``` | ||
|
||
<i>convenience link to various rk3399 device tree files will be created in the project directory</i> | ||
|
||
<br/> | ||
|
||
**optional: clean target** | ||
``` | ||
sh make_dtb.sh clean | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## u-boot 2023.01 for the nanopi r4s | ||
|
||
<i>Note: This script is intended to be run from a 64 bit arm device such as an odroid m1 or a raspberry pi4.</i> | ||
|
||
<br/> | ||
|
||
**1. build u-boot images for the nanopi r4s** | ||
``` | ||
sh make_uboot.sh | ||
``` | ||
|
||
<i>the build will produce the target files idbloader.img, and u-boot.itb</i> | ||
|
||
<br/> | ||
|
||
**2. copy u-boot to mmc or file image** | ||
``` | ||
dd bs=4K seek=8 if=idbloader.img of=/dev/sdX conv=notrunc | ||
dd bs=4K seek=2048 if=u-boot.itb of=/dev/sdX conv=notrunc | ||
sync | ||
``` | ||
|
||
<br/> | ||
|
||
**4. optional: clean target** | ||
``` | ||
sh make_uboot.sh clean | ||
``` | ||
|