Ubuntu Utopic for nvidia shield tv

Search This thread

jagger11

Member
Dec 22, 2011
12
27
Hi,

It's available here (sorry, I'm not allowed to post links):

goo.gl / sl6rMu (you only need nvidia-shield-tv-utopic.arm64.img.2G.gz and nvidia_boot.img, the remaining files are used for development)

OS: Ubuntu Core Utopic ARM64
Packets: typical: sshd plus LXDE

How to:
1. root/unlock your nvidia shield tv
2. unpack the disk image: nvidia-shield-tv-utopic.arm64.img.2G.gz (zcat nvidia-shield-tv-utopic.arm64.img.2G.gz >nvidia-shield-tv-utopic.arm64.img.2G)
3. save it to a microsd card (min ~2.5GB): dd if=nvidia-shield-tv-utopic.arm64.img.2G of=/dev/sdh bs=4194304 oflag=sync
4. Put your minisd card into nvidia shield tv
5 Boot into linux
a). (in bootloader) fastboot boot nvidia_boot.img
or
b). save it permanently as a recovery image (fastboot flash recovery nvidia_boot.img) and boot into it (3 sec tap during shield tv boot, then choose 'boot recovery kernel')

user: android pass: changeme
user: root pass: changeme

What works:
- eth card
- usb hub
- wifi (probably, firmware is there and the card is able to scan networks)
- virtual terminal / framebuffer (you should be able to log in with an usb keyboard)

What doesn't work:
- bluetooth (probably, I haven't tested it)
- sometimes xorg doesn't display anything after boot, and it's necessary to restart lxdm: stop lxdm; start lxdm
- accelerated gfx driver (nvidia hasn't released aarch64 drviers yet)

There are also scripts and the kernel config I used to build the boot image on the drive
 
Last edited:

Steel01

Recognized Developer
Dec 14, 2008
1,348
2,897
I unfortunately won't have time to try this until later next week, so I want to ask a quick question. What kernel is this? Mainline or a modified Nvidia? I tinkered with a Fedora kernel a little while back and couldn't get it to boot.

In any case, next week I need to dive back into getting multirom working here, things like this is what I need it for.
 
  • Like
Reactions: banderos101

jagger11

Member
Dec 22, 2011
12
27
I unfortunately won't have time to try this until later next week, so I want to ask a quick question. What kernel is this? Mainline or a modified Nvidia? I tinkered with a Fedora kernel a little while back and couldn't get it to boot.

It's a compiled kernel from nvidia's repo

nv-tegra.nvidia.com / gitweb / ?p=linux-3.10.git;a=summary

The config is here: nvidia_shield_tv_root -> kernel_config -> 3.10.config-foster_e.txt

From what I remember the changes (to the stock config) were not extensive, things like disabling "Android paranoid sockets", enabling "Mount devtmpfs at boot", adding some features like namespaces
 

alwaysbless

Senior Member
Nov 24, 2012
125
26
San Diego
Hi,

It's available here (sorry, I'm not allowed to post links):

goo.gl / sW5K3T
https drive google.com / folderview ? id=0B86hdL7CeBvAfjBfNkhqMVB1dzZSS1VxUVBJZmFqSXNFYUhpN2lHcklhVzZtX0Z5OENxdU0

OS: Ubuntu Core Utopic ARM64
Packets: typical: sshd plus LXDE

How to:
1. root/unlock your nvidia shield tv
2. unpack the disk image: nvidia-shield-tv-utopic.arm64.img.2G.gz (zcat nvidia-shield-tv-utopic.arm64.img.2G.gz >nvidia-shield-tv-utopic.arm64.img.2G)
3. save it to a microsd card (min ~2.5GB): dd if=nvidia-shield-tv-utopic.arm64.img.2G of=/dev/sdh bs=4194304 oflag=sync
4. Put your minisd card into nvidia shield tv
5 Boot into linux
a). fastboot boot nvidia_boot.img, or
b). save it permanently as a recovery image (fastboot flash recovery nvidia_boot.img) and boot into it (3 sec tap during shield tv boot, then choose 'boot recovery kernel')

user: android pass: changeme
user: root pass: changeme

What works:
- eth card
- usb hub
- wifi (probably, firmware is there and the card is able to scan networks)
- virtual terminal / framebuffer (you should be able to log in with an usb keyboard)

What doesn't work:
- bluetooth (probably, I haven't tested it)
- sometimes xorg doesn't display anything after boot, and it's necessary to restart lxdm: stop lxdm; start lxdm

There are also scripts and the kernel config I used to build the boot image on the drive

First link is missing img for step 2, second link has img but cannot be downloaded due to it not being a public file.
 

jagger11

Member
Dec 22, 2011
12
27
First link is missing img for step 2, second link has img but cannot be downloaded due to it not being a public file.
Thanks, I fixed the goo.gl link

Files should be 'downloadable' now.

BTW, you only need nvidia-shield-tv-utopic.arm64.img.2G.gz and nvidia_boot.img - the remaining files are used for development
 
Last edited:
  • Like
Reactions: gmitra

vinod mopuri

New member
Jul 30, 2015
1
0
Request Help to boot ubuntu on NVIDIA SHIELD PRO

Hi Team,
This is vinod mopuri .Trying to install ubuntu (dual boot) on NVIDIA SHIELD PRO and followed steps as suggested but while booting NVDIA SHIELD doesn't ask from which device need to boot up.

Can any one suggest how to enable to boot from sd card instead of default path what i'm missing ?
Really appreciate your help in advance.

Steps followed :
1. root/unlock your nvidia shield tv
Vinod: How to do this ? please advice is it possible to have dual boot ?
2. unpack the disk image: nvidia-shield-tv-utopic.arm64.img.2G.gz (zcat nvidia-shield-tv-utopic.arm64.img.2G.gz >nvidia-shield-tv-utopic.arm64.img.2G)
vinod: Done,on linux machine
3. save it to a microsd card (min ~2.5GB): dd if=nvidia-shield-tv-utopic.arm64.img.2G of=/dev/sdh bs=4194304 oflag=sync
Vinod: Done (tried with linux and fat file system) on micro sd card.
4. Put your minisd card into nvidia shield tv
Vinod : Done.

--- VInod Mopuri
 
Last edited:

andryng

New member
Aug 2, 2015
1
0
Nice work!

I actually managed to boot arch linux with the same nvidia_boot.img. (Go to the arch linux arm site and select: Platforms, ARMv8, Generic.)

No luck with graphics acceleration thought. Hopefully the "Smaug" platform will bring those X11 drivers with it.

Cheers!
 

kdb424

Senior Member
Dec 28, 2010
816
350
32
Pittsburgh
You need to use fastboot to boot the image that was in the first post. That contains the the boot information. You can flash that's stated, or just boot it via fastboot to not change anything on the system.

Edit: sorry, thought I hit quote. Response to the guy unable to boot.
 

dieter.reuter

Member
Aug 3, 2015
13
1
I just tried it, but without luck.
I was able to flash the microSDcard and booting via fastboot.
1. adb reboot bootloader
2. fastboot boot nvidia_boot.img
- it seem's it doesn't read the image from sdcard

downloading 'boot.img'...
OKAY [ 0.751s]
booting...
OKAY [ 0.003s]
finished. total time: 0.753s

- I get the NVIDIA logo on the hdmi screen
- then it changes to a black screen
- now, nothing happens at all

BTW, I'm using the standard NVIDIA SHIELD ANDROID-TV, not the PRO model.
 
Last edited:

jagger11

Member
Dec 22, 2011
12
27
I just tried it, but without luck.
I was able to flash the microSDcard and booting via fastboot.
1. adb reboot bootloader
2. fastboot boot nvidia_boot.img
- it seem's it doesn't read the image from sdcard

downloading 'boot.img'...
OKAY [ 0.751s]
booting...
OKAY [ 0.003s]
finished. total time: 0.753s

- I get the NVIDIA logo on the hdmi screen
- then it changes to a black screen
- now, nothing happens at all

BTW, I'm using the standard NVIDIA SHIELD ANDROID-TV, not the PRO model.
I also have the non-PRO version. Some ideas
* did you unzip the image before flashing it
* is your microsd card seen correctly in android
* maybe it's actually booting, and you don't see anything on the screen, scan your network with 'nmap -sP 192.168.0.0/24' (or whatever network you're using) to check for new devices
 
  • Like
Reactions: zkrof nvo

granolamatt

New member
Aug 25, 2015
2
1
It's a compiled kernel from nvidia's repo

nv-tegra.nvidia.com / gitweb / ?p=linux-3.10.git;a=summary

The config is here: nvidia_shield_tv_root -> kernel_config -> 3.10.config-foster_e.txt

From what I remember the changes (to the stock config) were not extensive, things like disabling "Android paranoid sockets", enabling "Mount devtmpfs at boot", adding some features like namespaces

Looking for a little more help on building the kernel. I am having problems with the usb 3.0 getting deadlock and want to turn on more kernel info to find the problem. I cloned the git repo you mentioned and then checked out the branch rel-22r2-golden-fostermp. I used your config and your ubuntu image on the shield tv to compile the kernel and then made a boot img with your Makefile. However, the kernel will not boot. Is there another step I am missing? Everything looks like it should work but does not. I only have limited debug because my img only makes the nvidia logo flash on the screen.
 

jagger11

Member
Dec 22, 2011
12
27
Looking for a little more help on building the kernel. I am having problems with the usb 3.0 getting deadlock and want to turn on more kernel info to find the problem. I cloned the git repo you mentioned and then checked out the branch rel-22r2-golden-fostermp. I used your config and your ubuntu image on the shield tv to compile the kernel and then made a boot img with your Makefile. However, the kernel will not boot. Is there another step I am missing? Everything looks like it should work but does not. I only have limited debug because my img only makes the nvidia logo flash on the screen.
IIRC you need to use arch/arm64/boot/Image and not arch/arm64/boot/zImage - i.e. the one which is 15-20MB in size. The naming of zImage in the makefile is confusing.

One more thing, the initrd doesn't need to include the kernel, you can safely remove the kernel from the dir, which is used as root for initramfs, my mistake to put it there.
 

granolamatt

New member
Aug 25, 2015
2
1
IIRC you need to use arch/arm64/boot/Image and not arch/arm64/boot/zImage - i.e. the one which is 15-20MB in size. The naming of zImage in the makefile is confusing.

One more thing, the initrd doesn't need to include the kernel, you can safely remove the kernel from the dir, which is used as root for initramfs, my mistake to put it there.

Brilliant!! That did it, I can compile now to see what is going on. I am trying to attach a Nuand bladeRF to the shield TV and use it's gpu to process the RF. I am running into deadlock issues running it at 3.0 regardless of rate. However, if I run it through a 2.0 hub and force it to 2.0 it runs fine. Thought it was kernel related but same story in Android.

This will help me figure out what is going on. I can let you know as I find out more, specifically if I get cuda going in ubuntu on the shield tv and what I find out about the usb.

Your post is what gave me the idea and I bought a shield tv because of it. It is most helpful and I just want to say many thanks!!!
 
  • Like
Reactions: gmitra

gmitra

New member
Oct 12, 2015
1
0
Hello,

First off, thank you for this. It was great to get linux running on my shield tv.

Did anyone succeed in getting CUDA running? Or the cuda driver kernel module?

If yes, then which branch or tag from the nvidia 3.10 kernel repository worked for you?

Thanks
 

Imasius

New member
Nov 9, 2015
1
0
Hello,

thank you very much for the pre-built kernel and ubuntu images. I have 2 questions regarding the Pro model.

1) Can I use the same kernel image for the Pro version of the shield or do I have to compile one for myself?
2) Is it possible to install ubuntu onto the 500GB HDD itself? If yes, I would be really glad for some pointers.

Thanks
 

kdb424

Senior Member
Dec 28, 2010
816
350
32
Pittsburgh
Hello,

thank you very much for the pre-built kernel and ubuntu images. I have 2 questions regarding the Pro model.

1) Can I use the same kernel image for the Pro version of the shield or do I have to compile one for myself?
2) Is it possible to install ubuntu onto the 500GB HDD itself? If yes, I would be really glad for some pointers.

Thanks

1. Should be absolutely fine.
2. Nope. This should not be considered stable enough for a perminant solution, and would not suggest using it that way. Definately stick to micro SD for the time being.
 

hausi14

New member
Nov 8, 2015
2
0
Compiling kernel

Looking for a little more help on building the kernel. I am having problems with the usb 3.0 getting deadlock and want to turn on more kernel info to find the problem. I cloned the git repo you mentioned and then checked out the branch rel-22r2-golden-fostermp. I used your config and your ubuntu image on the shield tv to compile the kernel and then made a boot img with your Makefile. However, the kernel will not boot. Is there another step I am missing? Everything looks like it should work but does not. I only have limited debug because my img only makes the nvidia logo flash on the screen.

Where exactly is rel-22r2-golden-fostermp?
 

hausi14

New member
Nov 8, 2015
2
0
kernel does not compile

Where exactly is rel-22r2-golden-fostermp?

/bin/sh: 1: -Wp,-MD,arch/arm64/kernel/vdso32/.vgettimeofday.o.d: not found
/kernel/linux-3.10/arch/arm64/kernel/vdso32/Makefile:36: recipe for target 'arch/arm64/kernel/vdso32/vgettimeofday.o' failed
make[2]: *** [arch/arm64/kernel/vdso32/vgettimeofday.o] Error 127
scripts/Makefile.build:455: recipe for target 'arch/arm64/kernel/vdso32' failed
make[1]: *** [arch/arm64/kernel/vdso32] Error 2
Makefile:802: recipe for target 'arch/arm64/kernel' failed

I was able to find out the mentioned kernel. But now it does crash on vdso32. Does somebody have any idea?
 

Stevio2

Member
Nov 16, 2015
29
1
Is there any Ubuntu that does not require rooting the sheild that layers over Android, like Ubuntu on Android does. I had one uncompleted on on my tab years ago, but they abandoned it.

Thanks.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    Hi,

    It's available here (sorry, I'm not allowed to post links):

    goo.gl / sl6rMu (you only need nvidia-shield-tv-utopic.arm64.img.2G.gz and nvidia_boot.img, the remaining files are used for development)

    OS: Ubuntu Core Utopic ARM64
    Packets: typical: sshd plus LXDE

    How to:
    1. root/unlock your nvidia shield tv
    2. unpack the disk image: nvidia-shield-tv-utopic.arm64.img.2G.gz (zcat nvidia-shield-tv-utopic.arm64.img.2G.gz >nvidia-shield-tv-utopic.arm64.img.2G)
    3. save it to a microsd card (min ~2.5GB): dd if=nvidia-shield-tv-utopic.arm64.img.2G of=/dev/sdh bs=4194304 oflag=sync
    4. Put your minisd card into nvidia shield tv
    5 Boot into linux
    a). (in bootloader) fastboot boot nvidia_boot.img
    or
    b). save it permanently as a recovery image (fastboot flash recovery nvidia_boot.img) and boot into it (3 sec tap during shield tv boot, then choose 'boot recovery kernel')

    user: android pass: changeme
    user: root pass: changeme

    What works:
    - eth card
    - usb hub
    - wifi (probably, firmware is there and the card is able to scan networks)
    - virtual terminal / framebuffer (you should be able to log in with an usb keyboard)

    What doesn't work:
    - bluetooth (probably, I haven't tested it)
    - sometimes xorg doesn't display anything after boot, and it's necessary to restart lxdm: stop lxdm; start lxdm
    - accelerated gfx driver (nvidia hasn't released aarch64 drviers yet)

    There are also scripts and the kernel config I used to build the boot image on the drive
    5
    I unfortunately won't have time to try this until later next week, so I want to ask a quick question. What kernel is this? Mainline or a modified Nvidia? I tinkered with a Fedora kernel a little while back and couldn't get it to boot.

    It's a compiled kernel from nvidia's repo

    nv-tegra.nvidia.com / gitweb / ?p=linux-3.10.git;a=summary

    The config is here: nvidia_shield_tv_root -> kernel_config -> 3.10.config-foster_e.txt

    From what I remember the changes (to the stock config) were not extensive, things like disabling "Android paranoid sockets", enabling "Mount devtmpfs at boot", adding some features like namespaces
    2
    Looking for a little more help on building the kernel. I am having problems with the usb 3.0 getting deadlock and want to turn on more kernel info to find the problem. I cloned the git repo you mentioned and then checked out the branch rel-22r2-golden-fostermp. I used your config and your ubuntu image on the shield tv to compile the kernel and then made a boot img with your Makefile. However, the kernel will not boot. Is there another step I am missing? Everything looks like it should work but does not. I only have limited debug because my img only makes the nvidia logo flash on the screen.
    IIRC you need to use arch/arm64/boot/Image and not arch/arm64/boot/zImage - i.e. the one which is 15-20MB in size. The naming of zImage in the makefile is confusing.

    One more thing, the initrd doesn't need to include the kernel, you can safely remove the kernel from the dir, which is used as root for initramfs, my mistake to put it there.
    1
    I unfortunately won't have time to try this until later next week, so I want to ask a quick question. What kernel is this? Mainline or a modified Nvidia? I tinkered with a Fedora kernel a little while back and couldn't get it to boot.

    In any case, next week I need to dive back into getting multirom working here, things like this is what I need it for.
    1
    First link is missing img for step 2, second link has img but cannot be downloaded due to it not being a public file.
    Thanks, I fixed the goo.gl link

    Files should be 'downloadable' now.

    BTW, you only need nvidia-shield-tv-utopic.arm64.img.2G.gz and nvidia_boot.img - the remaining files are used for development