From 08082b0181187574e38d5d1c123405c7d7c3b90f Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Sun, 4 Aug 2024 18:11:00 -0400 Subject: [PATCH] devices: nvidia*: Rework for jetson/foster split in variants Change-Id: I829efb9f320643511ea6593e82eea978997b8166 --- _data/devices/foster_tab_variant2.yml | 5 +++-- _data/devices/foster_variant2.yml | 5 +++-- .../before_recovery_install_foster.md | 19 +------------------ _includes/templates/recovery_install_apx.md | 5 +++-- 4 files changed, 10 insertions(+), 24 deletions(-) diff --git a/_data/devices/foster_tab_variant2.yml b/_data/devices/foster_tab_variant2.yml index 840f3a769b..2af67f12a4 100644 --- a/_data/devices/foster_tab_variant2.yml +++ b/_data/devices/foster_tab_variant2.yml @@ -1,6 +1,5 @@ architecture: arm64 battery: None -before_recovery_install: foster bluetooth: {spec: '4.1'} cameras: [] codename: foster_tab @@ -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 FRC REC button, then tap power. Release the FRC REC 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] diff --git a/_data/devices/foster_variant2.yml b/_data/devices/foster_variant2.yml index 23d0d8e34d..ff1740f864 100644 --- a/_data/devices/foster_variant2.yml +++ b/_data/devices/foster_variant2.yml @@ -1,6 +1,5 @@ architecture: arm64 battery: None -before_recovery_install: foster bluetooth: {spec: '4.1'} cameras: [] codename: foster @@ -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 FRC REC button, then tap power. Release the FRC REC 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] diff --git a/_includes/templates/device_specific/before_recovery_install_foster.md b/_includes/templates/device_specific/before_recovery_install_foster.md index c6e4fb412d..3a2681758f 100644 --- a/_includes/templates/device_specific/before_recovery_install_foster.md +++ b/_includes/templates/device_specific/before_recovery_install_foster.md @@ -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 FRC REC button, then tap power. Release the FRC REC 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. diff --git a/_includes/templates/recovery_install_apx.md b/_includes/templates/recovery_install_apx.md index a5d22e016a..ae806beaa8 100644 --- a/_includes/templates/recovery_install_apx.md +++ b/_includes/templates/recovery_install_apx.md @@ -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). @@ -24,6 +23,8 @@ 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: @@ -31,4 +32,4 @@ Tegraflash is only available for Linux. It will also not run properly in a VM. 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)":