Linux для nvidia shield

Linux для nvidia shield

Nvidia Shield Tablet запись закреплена

Инструкция по перепрошивке на кастом.

За новость спасибо Сане Кузнецову (http://vk.com/id307376297).

I. Пункт первый. Получение рут-прав.
В настройках в разделе «Безопасность» ставим флажок «Неизвестные источники».
С 4pda или с официального сайта скачиваем и устанавливаем программу KingRoot.
После запуска программа покажет замок. Проматываем страницу вниз и жмём кнопку «Try it».
II. Пункт второй. Установка кастомного рекавери.
Кастомное рекавери позволяет удалять и изменять систему. Также позволяет очищать память, делать сброс настроек, создавать бэкап данных.
Всего есть два основных кастомных рекавери — TWRP и CWM. Я много раз пользовался TWRP различных версий (2.7.0.4, 2.8.7.1, 2.8.7 MultiROM) и один раз — CWM. CWM у меня отказался устанавливать прошивку, которая легко установилась через TWRP. Кроме того, TWRP имеет более понятный интерфейс с большими кнопками и флажками, CWM-овский интерфейс же больше приближен к текстовому интерфейсу стоковых рекавери. Ещё TWRP более функционален. Все дальнейшие инструкции будут написаны для TWRP, если вам принципиально пользоваться CWM, ищите инстукции на 4pda.
Есть два способа установить рекавери — через adb и через flashify. Есть и другие способы, но я их не проверял, и если при использовании их ваш девайс кирпичнётся, я не виноват.
Здесь опишем способ установки через flashify, как более простой.
1. Скачиваем с 4pda образ TWRP 2.8.7.1 из темы Nvidia Shield Tablet: перепрошивка (НЕ из темы Nvidia Shield: перепрошивка — там файлы для Nvidia Shield Portable, на таблете они не заработают, кроме того, последствия их установки непредсказуемы, вплоть до необратимого окирпичивания).
2. Скачиваем с Play Market программу Flashify.
3. Запускаем программу. Принимаем все «лицензионные соглашения».
4. Нажимаем среднюю кнопку — Recovery Image.
5. Нажимаем верхнюю кнопку — Choose a file.
6. Выбираем наш файл образа. Жмём YUP!
Пункт III. Разлочка бутлоадера. Единственный пункт, для которого нужен комп на Windows.
1. Загружаем устройство в режим бутлоадера. Для этого открываем программу Flashify, жмём кнопку настроек в верхнем правом углу и жмём Reboot Botloader.
2. На компе на диске C создаём две папки — NST и NSTDrivers.
3. Скачиваем архив с adb, кидаем файлы из архива в папку NST.
4. Скачиваем архив с adb-драйверами для нашего планшета, кидаем файлы из архива в папку NSTDrivers.
5. Не трогая кнопок на планшете, подключаем его кабелем к компьютеру.
6. Открываем Панель управления>Диспетчер устройств. Там находим наш планшет. Он может называться одним из следующих имён или как-то по другому: ADB, Android, Blaze, Bootloader.
Жмём на устройство правой кнопкой мыши, выбираем «Обновить драйвер».
Далее выбираем «Найти драйвер вручную», выделяем папку NSTDrivers, отмечаем флажок «С подпапками».
7. Открываем командную строку, вводим cd C:\NST и жмём Enter.
Далее вводим fastboot devices и жмём Enter — если всё правильно, программа должна выдать серийный номер планшета.
Далее вводим fastboot oem unlock — команда на разлочку бутлоадера — и жмём enter.
8. На планшете, не отсоединяя его от компа, кнопками громкости выбираем Continue и нажимаем на кнопку включения.
Если всё сделано правильно, в пункте Настройки>О планшете>Sequirity должно быть написано Неизвестно.
Пункт IV. Непосредственно прошивка.
1. Сначала надо скачать с 4pda архив с прошивкой.
Кроме того, если прошивка кастомная, надо скачать OpenGapps. Для этого заходим на официальный сайт OpenGapps, выбираем Platform: ARM, Android — версия андроид в прошивке, которую хотите установить (в CyanogenMod 12.1 — 5.1), Variant: Full. Жмём на кнопку загрузки.
После скачивания архивов с прошивкой и opengapps при помощи PowerGrasp или ES Проводника скидываем файлы на карту памяти.
2. Загружаемся в рекавери — для этого заходим во флэшифи, жмём кнопку настроек и жмём Reboot Recovery.
3. После перезагрузки на экране появятся либо 8 больших кнопок, либо экран с кнопкой, флажком и слайдером. Во втором случае отмечаем флажок и проводим пальцем по слайдеру. Появятся те же 8 кнопок.
4. Жмём на кнопку Wipe. Далее жмём Avdanced Wipe, отмечаем все пункты, кроме MicroSd Card и проводим пальцем по слайдеру.
ВНИМАНИЕ: ЭТО ДЕЙСТВИЕ УДАЛИТ ВСЕ ДАННЫЕ ИЗ ВНУТРЕННЕЙ ПАМЯТИ, ВСЕ ПРИЛОЖЕНИЯ, А ТАК ЖЕ УСТАНОВЛЕННУЮ СИСТЕМУ.
5. После завершения жмём на кнопку Home. Нас выкинет на начальный экран с 8 кнопками. Жмём Install. Появится файловый менеджер. Если нажать Up A Level, мы увидим много папок.
Зайдём в папку external_sd — это наша карта памяти. Найдём сначала файл с прошивкой и нажмём на него.
Потом нажмём Add more zips, найдём файл с OpenGapps, нажмём на него и проведём пальцем по слайдеру.
6. После завершения установки жмём Reboot system. Планшет включится и будет готов к работе.
Пункт V. Различная дополнительная информация.

Читайте также:  Оптимизация windows 10 под ссд

Источник

Linux для nvidia shield

So because Android can be kind of annoying sometimes for dev work, especially if you’re just interested in working on the aarch64 JIT or GLES code, booting a Linux distro can be pretty useful. This guide can also be extended to outright installing Ubuntu on the Shield TV by flashing the boot partition but we won’t cover that. Also note, everything about this guide is non-destructive , so unless you decide to flash anything, you can’t break your Shield TV.

I’m writing this guide assuming you have a functional UNIX environment of some sort and a non-pro Nvidia Shield TV 2015. The pro variant WILL NOT WORK with this specific guide, but the boot files are given for them as well in the XDA links below.

You’ll need a USB device or MicroSD at least 4 GB large. 8 GB or higher is highly recommended.

Quick and easy way to get up and running

I have not gotten around to figuring out how to compile those myself.

  1. Extract rootfs.tar.xz to either the root of a microSD card or a USB device.
  2. Boot your Shield TV into fastboot mode. Use Google to figure out how to do this. I recommend using ADB because the hardware method is difficult and frustrating.
  3. Connect your MicroSD or USB device to the Shield TV

if you extracted rootfs to a MicroSD, boot the microsd.img file with

If you extracted to a USB, boot the usb.img file with

and you’re done. This will give you a functional Ubuntu distro with GPU drivers. Except for Wifi. Due to licensing issues the Broadcom Wifi firmware can’t be included and you need to copy that yourself from Android. See the guide below.

Long way — create your own L4T ready rootfs

This is a good general guide to follow if you want to figure out how to boot your favorite distro instead of Ubuntu 16.04.

    Download the boot images from here (I have yet to figure out how to compile this, lazy): https://drive.google.com/file/d/0Bz5kaPQJx_AgZ3lvWWZFNmJFcmM/view

See here for explanation on the boot images

you want the «Jetson TX1 64-bit Driver Package» and the «Sample Root Filesystem». Download both of those
Extract the driver package

Extract the filesystem

Run the script that will install the GPU drivers (And a custom build of chromium?)

  • OPTIONAL: Copy the broadcom firmware files for wifi from Android located in Android at «/system/vendor/firmware/bcm4354/» to «/lib/firmware/brcm/fw_bcmdhd.bin» in your Linux rootfs directory.
  • Copy the rootfs to your microSD or USB device
  • Boot your Shield TV into fastboot mode. Use Google to figure out how to do this. I recommend using ADB because the hardware method is difficult and frustrating.
  • Connect your MicroSD or USB device to the Shield TV

    if you copied rootfs to a MicroSD, boot the microsd.img file with

    If you copied to a USB, boot the usb.img file with

    and you’re done. This will give you a functional Ubuntu distro with GPU drivers and optionally wifi.

    Again, I haven’t gotten around to figuring out how to compile those image files myself, but somebody on xda documented it (kind of). It’s certainly doable, and I imagine it’s entirely possible to boot whatever distro you want. I might look into that later. Also, if you want to just boot Linux without having to connect the shield to your computer every time, simply flash the image file to the boot partition. DO NOTE THOUGH, this will make it extremely difficult to get back into bootloader mode because you can no longer use ADB to reboot the device, and the capacitive power button is unimaginably irritating to consistently get into bootloader mode. If you flash the wrong image file on a Shield TV Pro, you will brick it!

    Читайте также:  Почему нельзя отключить обновление windows 10

    Do not try to «sudo apt-get dist-upgrade». You will blow up your rootfs. Also, the useful repos are disabled so it may be worth enabling them so you can install things.

    For wifi you’re going to need to copy the firmware files in/system/vendor/firmware/bcm4354/ in Shield TV Android to /lib/firmware/brcm/fw_bcmdhd.bin in Linux. I’ll update the guide with that. Dunno if I can put that in the pre-made rootfs due to licensing issues.

    As for your booting problem, I don’t know. The Shield TV doesn’t give much boot output until the kernel is fully loaded.

    (05-06-2017, 07:03 PM) Helios Wrote: So because Android can be kind of annoying sometimes for dev work, especially if you’re just interested in working on the aarch64 JIT or GLES code, booting a Linux distro can be pretty useful. This guide can also be extended to outright installing Ubuntu on the Shield TV by flashing the boot partition but we won’t cover that. Also note, everything about this guide is non-destructive , so unless you decide to flash anything, you can’t break your Shield TV.

    I’m writing this guide assuming you have a functional UNIX environment of some sort and a non-pro Nvidia Shield TV 2015. The pro variant WILL NOT WORK with this specific guide, but the boot files are given for them as well in the XDA links below.

    You’ll need a USB device or MicroSD at least 4 GB large. 8 GB or higher is highly recommended.

    Quick and easy way to get up and running

    I have not gotten around to figuring out how to compile those myself.

    1. Extract rootfs.tar.xz to either the root of a microSD card or a USB device.
    2. Boot your Shield TV into fastboot mode. Use Google to figure out how to do this. I recommend using ADB because the hardware method is difficult and frustrating.
    3. Connect your MicroSD or USB device to the Shield TV

    if you extracted rootfs to a MicroSD, boot the microsd.img file with

    If you extracted to a USB, boot the usb.img file with

    and you’re done. This will give you a functional Ubuntu distro with GPU drivers. Except for Wifi. Due to licensing issues the Broadcom Wifi firmware can’t be included and you need to copy that yourself from Android. See the guide below.

    Long way — create your own L4T ready rootfs

    This is a good general guide to follow if you want to figure out how to boot your favorite distro instead of Ubuntu 16.04.

      Download the boot images from here (I have yet to figure out how to compile this, lazy): https://drive.google.com/file/d/0Bz5kaPQJx_AgZ3lvWWZFNmJFcmM/view

    See here for explanation on the boot images

    you want the «Jetson TX1 64-bit Driver Package» and the «Sample Root Filesystem». Download both of those
    Extract the driver package

    sudo tar xpf Tegra210_Linux_R24.2.1_aarch64.tbz2cd Linux_for_Tegra
    Extract the filesystem

    sudo tar -jxpf (path to Tegra_Linux_Sample-Root-Filesystem_R24.2.1_aarch64.tbz2)cd ..
    Run the script that will install the GPU drivers (And a custom build of chromium?)

    sudo ./apply_binaries.sh

  • OPTIONAL: Copy the broadcom firmware files for wifi from Android located in Android at «/system/vendor/firmware/bcm4354/» to «/lib/firmware/brcm/fw_bcmdhd.bin» in your Linux rootfs directory.
  • Copy the rootfs to your microSD or USB device

    sudo cp -a rootfs/* $path_to_devicesync

  • Boot your Shield TV into fastboot mode. Use Google to figure out how to do this. I recommend using ADB because the hardware method is difficult and frustrating.
  • Connect your MicroSD or USB device to the Shield TV

    if you copied rootfs to a MicroSD, boot the microsd.img file with

    If you copied to a USB, boot the usb.img file with

    and you’re done. This will give you a functional Ubuntu distro with GPU drivers and optionally wifi.

    Читайте также:  Compiling с mac os

    Again, I haven’t gotten around to figuring out how to compile those image files myself, but somebody on xda documented it (kind of). It’s certainly doable, and I imagine it’s entirely possible to boot whatever distro you want. I might look into that later. Also, if you want to just boot Linux without having to connect the shield to your computer every time, simply flash the image file to the boot partition. DO NOTE THOUGH, this will make it extremely difficult to get back into bootloader mode because you can no longer use ADB to reboot the device, and the capacitive power button is unimaginably irritating to consistently get into bootloader mode. If you flash the wrong image file on a Shield TV Pro, you will brick it!

    Do not try to «sudo apt-get dist-upgrade». You will blow up your rootfs. Also, the useful repos are disabled so it may be worth enabling them so you can install things.

    ive followed all steps in this tutorial on my ubuntu machine and i get to booting the boot image however it hangs and reboots into android tv, here is the output i get

    /Downloads/boot_images$ sudo adb reboot bootloader

    /Downloads/boot_images$ sudo fastboot boot microsd.img
    downloading ‘boot.img’.
    FAILED (data transfer failure (Cannot send after transport endpoint shutdown))
    finished. total time: 12.267s

    I’m not sure if this is the right thread to ask these sort of questions, but:

    I’ve been considering how the Shield TV seems like it would make the perfect HTPC, but I’m a Windows kid. I’ve used Linux before and I’m not crazy intimidated by something as accessible as Ubuntu, just, I’m much more comfortable solving problems in Windows.

    How would a Shield TV running Ubuntu handle Steam In-home Streaming? Once you get a Shield TV into Linux, could you theoretically run windows in a VM with GPU passthrough? Does the Shield’s controllers work in Linux? Do other controllers work in Linux on a Shield TV? (I really like PS4 controllers with DS4Windows.) Will this hack work on the «2017 version» of the shield?

    And those things considered, would you say a Shield TV is good value as a HTPC? I’ve been considering saving up for a living room PC and just haven’t been able to justify throwing upwards of $300 to $400 or more.

    (10-09-2017, 09:20 AM) zovc Wrote: How would a Shield TV running Ubuntu handle Steam In-home Streaming?

    It wouldn’t. Steam does not have an aarch64 client. Only x86_64.

    Quote: Once you get a Shield TV into Linux, could you theoretically run windows in a VM with GPU passthrough?

    Quote: Does the Shield’s controllers work in Linux?

    Quote: Do other controllers work in Linux on a Shield TV? (I really like PS4 controllers with DS4Windows.)

    Yes. Just plug them in via USB. Doubt bluetooth works.

    Quote: Will this hack work on the «2017 version» of the shield?

    Probably not. The 2017 shield doesn’t have an mSD slot needed for booting.

    Quote: And those things considered, would you say a Shield TV is good value as a HTPC? I’ve been considering saving up for a living room PC and just haven’t been able to justify throwing upwards of $300 to $400 or more.

    If you keep it on Android, it’s reasonably useful as an HTPC. It can do nvidia gamestream (Which is basically the same as Steam’s). The Shield TV supports plugging in an NTFS external drive for local media (And Plex serving). Android has a Kodi port for local media playing. The Shield TV has streaming apps for most major services. The Shield TV *I think* has a plex server app so you can share out media to other systems.

    Note, my guide here is really targeted for getting an aarch64 dev environment going (Or a low powered server). Not really ideal for HTPC

    Источник

  • Оцените статью