Skip to content

Commit

Permalink
devices: nvidia*: Rework for jetson/foster split in variants
Browse files Browse the repository at this point in the history
Change-Id: I829efb9f320643511ea6593e82eea978997b8166
  • Loading branch information
npjohnson committed Aug 4, 2024
1 parent f9ea336 commit 08082b0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 24 deletions.
5 changes: 3 additions & 2 deletions _data/devices/foster_tab_variant2.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
architecture: arm64
battery: None
before_recovery_install: foster
bluetooth: {spec: '4.1'}
cameras: []
codename: foster_tab
Expand All @@ -9,9 +8,11 @@ cpu_cores: '4'
cpu_freq: 1.9 GHz
current_branch: 21
dimensions: None
download_boot: With the device off, press the <kbd>FRC REC</kbd> button, then tap power. Release the <kbd>FRC REC</kbd> button once apx enumerates.
flash_codename: p2371
gpu: NVIDIA GM20B (Maxwell)
image: foster.png
install_method: fastboot_nexus
install_method: apx
kernel: {repo: android_kernel_nvidia_kernel, version: '4.9'}
maintainers: [webgeek1234, npjohnson]
models: [jetson_cv]
Expand Down
5 changes: 3 additions & 2 deletions _data/devices/foster_variant2.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
architecture: arm64
battery: None
before_recovery_install: foster
bluetooth: {spec: '4.1'}
cameras: []
codename: foster
Expand All @@ -9,9 +8,11 @@ cpu_cores: '4'
cpu_freq: 1.9 GHz
current_branch: 21
dimensions: None
download_boot: With the device off, press the <kbd>FRC REC</kbd> button, then tap power. Release the <kbd>FRC REC</kbd> button once the apx enumerates.
flash_codename: p2371
gpu: NVIDIA GM20B (Maxwell)
image: foster.png
install_method: fastboot_nexus
install_method: apx
kernel: {repo: android_kernel_nvidia_kernel, version: '4.9'}
maintainers: [webgeek1234, npjohnson]
models: [jetson_cv]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,4 @@ To discern if you have this model, you can run the following command on stock:
adb -d shell getprop ro.hardware
```

If this command returns anything other than `foster_e_hdd` or `jetson_cv`, proceed with the install process. If it returns `foster_e_hdd` please take note that the `fastboot oem unlock` command the instrutions below will have you run can take up to 90 minutes. This is due to the fact that the device is securely wiping near to 500 GB of hard disk.

If it returns `jetson_cv`, or if you have a fresh Jetson TX1, the installation instructions require a Linux host to install, and getting Linux up and running won't be covered here.
1. Download a [flash package](https://download.lineageos.org/devices/foster).
* It will be named `p2371_flash_package.tar.xz`
{% include alerts/note.html content="These flash packages were built by LineageOS Developer Aaron Kling (webgeek1234) from officially supported LineageOS repositories, using Tegraflash and device configurations from NVIDIA Linux4Tegra releases and a few custom scripts." %}
{% include alerts/note.html content="If you are in need of flash packages for LineageOS 20.0 or older, you can find them [here](https://www.androidfilehost.com/?w=files&flid=328892)." %}

2. Install `xz` and `python3`. To do so, run `sudo apt -y install xz-utils python3` (Debian based hosts) or `sudo dnf -y install xz-utils python3` (Redhat based hosts).
3. Run the following command in the folder which you downloaded the flash package to `tar -xvf p2371_flash_package.tar.xz`.
3. Power off the device, and boot it into download mode:
* With the device off, press the <kbd>FRC REC</kbd> button, then tap power. Release the <kbd>FRC REC</kbd> button once the device enumerates in APX mode, to discern this, run `sudo dmesg` on your host, and look for "Product: APX", if it doesn't show, please try this step again or try a different USB cable/port until it enumerates.
4. Now, from the same terminal as before, run:
```
sudo ./flash.sh
```
{% include alerts/note.html content="Please note this will require your user's sudo password, as the script requires direct hardware access, which requires root privledges." %}
5. The script will flash the boot stack and boot directly to LineageOS Recovery. Now, please skip to the section labeled "[Installing LineageOS from recovery](https://wiki.lineageos.org/devices/foster/install#installing-lineageos-from-recovery)":
If this command returns `foster_e_hdd`, please take note that the `fastboot oem unlock` command the instrutions below will have you run can take up to 90 minutes. This is due to the fact that the device is securely wipinga a 500 GB hard disk.
5 changes: 3 additions & 2 deletions _includes/templates/recovery_install_apx.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Tegraflash is only available for Linux. It will also not run properly in a VM.
{% else %}
* It will be named `{{ device.flash_codename }}_flash_package.tar.xz`
{% endif %}
{% include alerts/note.html content="These flash packages were built by LineageOS Developer Aaron Kling (webgeek1234) from officially supported LineageOS repositories, using Tegraflash and device configurations from NVIDIA Linux4Tegra releases and a few custom scripts." %}
{% include alerts/note.html content="If you are in need of flash packages for LineageOS 20.0 or older, you can find them [here](https://www.androidfilehost.com/?w=files&flid=328892)." %}

2. Install `xz` and `python3`. To do so, run `sudo apt -y install xz-utils python3` (Debian based hosts) or `sudo dnf -y install xz-utils python3` (Redhat based hosts).
Expand All @@ -24,11 +23,13 @@ Tegraflash is only available for Linux. It will also not run properly in a VM.
{% else %}
* `tar -xvf {{ device.flash_codename }}_flash_package.tar.xz`
{% endif %}
{% include alerts/note.html content="To discern if the device is in APX mode, run `sudo dmesg` on your host, and look for 'Product: APX', if it doesn't show, please try this step again or try a different USB cable/port until it enumerates." %}

3. Power off the device, and boot it into download mode:
* {{ device.download_boot }}
4. Now, from the same terminal as before, run:
```
sudo ./flash.sh
```
{% include alerts/note.html content="Please note this will require your user's sudo password, as the script requires direct hardware access, which requires root privledges." %}
5. The script will flash the boot stack and boot directly to recovery.
5. The script will flash the boot stack and boot directly to LineageOS Recovery. Now, please skip to the section labeled "[Installing LineageOS from recovery](https://wiki.lineageos.org/devices/{{ device.codename }}/install#installing-lineageos-from-recovery)":

0 comments on commit 08082b0

Please sign in to comment.