Ubuntu Utopic for nvidia shield tv

Search This thread

Thanks_Meter

Member
Feb 1, 2013
44
6
u-boot would be really great. Maybe anybody can find out, if there are the UART pins available on the mainboard. I've just opened my Shield months ago, but wasn't able to see any UART pins. But I guess, it could be there - one have to dismount the mainboard, maybe the UART pins are hidden below...:fingers-crossed:

Maybe there is a way to use an USB to serial converter for this if there is something like CONFIG_USB_SERIAL_CONSOLE in the uboot config.
 

crnkoj

Senior Member
Feb 16, 2011
1,835
397
u-boot would be really great. Maybe anybody can find out, if there are the UART pins available on the mainboard. I've just opened my Shield months ago, but wasn't able to see any UART pins. But I guess, it could be there - one have to dismount the mainboard, maybe the UART pins are hidden below...:fingers-crossed:

I agree. I have thought of putting u-boot in Boot partition and put kernel/rootfs/dtb on SD or USB drive.

I have built u-boot's for Jetson TK1 and TX1 and tested on TK1. The problem is none has figured out how to add serial console port for SATV (Shield Android TV) and it's difficult to test u-boot without console logs.

I have read netconsole and OTG console for some ARM processors, but u-boot's for Jetson TK1 and TX do not have netconsole or OTG console implemented.

I do honestly not believe that UART is there or if its there, that its functioning.
How did oy umanage to build the u-boot? do you have any tutorial? did you just download teh srouces for uboot from l4t and than compile it? probably we need to use other dtb from the kernel for the shield in there and possibly some other changes (like EMMC/UMS). might have to try blindly to boot it...
 

yahoo2016

Senior Member
Nov 24, 2015
392
88
I do honestly not believe that UART is there or if its there, that its functioning.
How did oy umanage to build the u-boot? do you have any tutorial? did you just download teh srouces for uboot from l4t and than compile it? probably we need to use other dtb from the kernel for the shield in there and possibly some other changes (like EMMC/UMS). might have to try blindly to boot it...

I used "source_sync.sh" in L4T for TK1 and TX1 to download u-boot source code and built u-boot images, see posts there:

https://devtalk.nvidia.com/default/topic/905345/built-tx1-u-boot-from-source/

I suspect u-boot has dtb built-in for itself. The dtb in dtb partition is for kernel.
 
Last edited:

yahoo2016

Senior Member
Nov 24, 2015
392
88
As far as I know u-boot does not use dtbs for its own. For this reason you must do things like setting up the pinmux or configurating the drivers manually in c-code (like linux kernel prior to 3.8).
My point was bootloaders (u-boot or fastboot) do not need the dtb in dtb partition (which is for kernel only) to function, replacing dtb in dtb partition should not cause bootloaders or recovery mode to fail.

Some members bricked their SATV by replacing dtbs, I don't believe it's dtb issue, but issue of post V1.3 bootloader. When wrong dtb was put in dtb partition, kernel failed to load, but recovery mode should still work.

That's why I recommend to revert to ROM 1.3 which has more reliable recovery mode.
 

kgersen

Senior Member
Jul 11, 2011
53
22
some guys managed to get a full Linux 4 Tegra 64 bit to run on the Shield: http://blog.hypriot.com/post/gettin...ighend-arm-gaming-console-for-fun-and-profit/

no X11 yet and so far they haven't published their changes but they will.

It's a promising start, something to watch and if you can help them , they're asking for it:

Maybe there are some of you who - after reading this article - want to get started hacking on the ShieldTV, too. We really would appreciate getting some help here to move faster. That’s why we will publish the technical details in the coming weeks, so you can have a look and start hacking yourself.
 

tbm13

Member
Feb 26, 2014
16
3

praveenonwww

Member
Feb 26, 2016
10
2
Have any body tried Flashing Ubuntu with the step provided in the first of this thread for NVIDIA SHIELD ANDROID TV Pro Developer Only OS Image 3.0.0 from https://developer.nvidia.com/gameworksdownload#?search=SHIELD%20ANDROID%20TV%20Pro%20Developer&tx=$additional,shield.
 

yahoo2016

Senior Member
Nov 24, 2015
392
88
Last edited:

mateusdsrs

Member
Oct 22, 2015
5
2
Lajeado, Rio Grande do Sul
I have trouble to boot Ubuntu, after insert de SD card with linux image and boot nvidia_linux.img the shield restart and show nvidia start screen after this displays a black screen, after some moments with black screen restart it from zero .

tricks tempted

*change SD card
* flash de nvidia_boot on recovery shield partition
*download images the kernel e OS again

Thanks
 
Last edited:

mateusdsrs

Member
Oct 22, 2015
5
2
Lajeado, Rio Grande do Sul
I have trouble to boot Ubuntu, after insert de SD card with linux image and boot nvidia_linux.img the shield restart and show nvidia start screen after this displays a black screen, after some moments with black screen restart it from zero .

tricks tempted

*change SD card
* flash de nvidia_boot on recovery shield partition
*download images the kernel e OS again

Thanks

I think founded the problem, it´s the version of system of nvidia shield tv is 3.1, i can´t boot nome linux with any kernel image.
i go to back the system for 2.1 to can boot ubuntu.
 

BlInK311

Member
Apr 22, 2013
6
0
I think founded the problem, it´s the version of system of nvidia shield tv is 3.1, i can´t boot nome linux with any kernel image.
i go to back the system for 2.1 to can boot ubuntu.

I am having the same issues where I cant boot into Ubuntu. My nvidia shield tv does have SW version 3.1 and I tested 3.0 that nvidia has an image for on their dev site. That didn't work either. Is there a prebuild image of 2.1 available? Or did you build it from sources?
 

KzRSylveR

New member
May 31, 2016
2
0
I have the same issue, black screen after booting on nvidia_boot.img with nvidia-shield-tv-utopic.arm64.img.2G image on the SDCard... I'm seeking the 2.1 image to downgrade and try to boot on linux, but I don't find this image...
 

mateusdsrs

Member
Oct 22, 2015
5
2
Lajeado, Rio Grande do Sul
I have the same issue, black screen after booting on nvidia_boot.img with nvidia-shield-tv-utopic.arm64.img.2G image on the SDCard... I'm seeking the 2.1 image to downgrade and try to boot on linux, but I don't find this image...
BlInK311 and KzRSylveR I solved the problem of black screen after changing some system components will list exactly what I'm using . I believe that the upgrade 3.0 / 3.1 has a version of the previous boot obsolete.


*Write the SD Card with de Image the Ubuntu System ( I have used Ubuntu Xenial Image )
*Insert the sdcard In Shield TV
*Enable Dev options on Android tv
*install the adb/fastboot
*Reboot to bootloader with commands | adb devices and adb reboot bootloader
* Unlock the boot loader with fastboot oem unlock
*Download this kernel image from this link https://drive.google.com/file/d/0Bz5kaPQJx_AgcUJ2TlBTUW9ZR0k/view
* Boot the kernel with with this command fastboot boot boot.img
 
  • Like
Reactions: KzRSylveR

KzRSylveR

New member
May 31, 2016
2
0
BlInK311 and KzRSylveR I solved the problem of black screen after changing some system components will list exactly what I'm using . I believe that the upgrade 3.0 / 3.1 has a version of the previous boot obsolete.
*Write the SD Card with de Image the Ubuntu System ( I have used Ubuntu Xenial Image )
*Insert the sdcard In Shield TV
*Enable Dev options on Android tv
*install the adb/fastboot
*Reboot to bootloader with commands | adb devices and adb reboot bootloader
* Unlock the boot loader with fastboot oem unlock
*Download this kernel image from this link
* Boot the kernel with with this command fastboot boot boot.img

Thanks for your reply, could you tell me where you dl this Ubuntu Xenial Image ?

Edit : I have trying with your boot.img, the screen stop to the nvidia logo, so no black screen, but after a long time Android booting instead of my SDCard with linux on it
 
Last edited:

mateusdsrs

Member
Oct 22, 2015
5
2
Lajeado, Rio Grande do Sul
Thanks for your reply, could you tell me where you dl this Ubuntu Xenial Image ?

Edit : I have trying with your boot.img, the screen stop to the nvidia logo, so no black screen, but after a long time Android booting instead of my SDCard with linux on it

Sometimes the Ubuntu boot does not work on the first try , try at least twice , I lost a lot of time to figure it out.

Link of Ubuntu Xenial https://drive.google.com/open?id=0B...ZSS1VxUVBJZmFqSXNFYUhpN2lHcklhVzZtX0Z5OENxdU0

Note: do not know why but Ubuntu Utopic in my case does not recognize the wired network card and a wireless network card.
The Xenial despite not having video driver, but works well stable
 
  • Like
Reactions: KzRSylveR

heebe

New member
Jun 2, 2016
2
0
My problem is that Utopic, Xenial and Hypriot images boot great but they run stable only for 2-5 minutes. Then suddenly the whole device reboots and falls back into Android. I have experimented with these three images using two sd cards. All combinations show this rebooting behaviour. I have found no trails or hints in log files.

Has anyone else seen similar issues? Original android seems to work stableI have no trails or hints in log files.
 

frankjt

New member
Jul 17, 2012
2
0
A note to the enforced rebooting of 3.0 / 3.1 systems, a possible cause is,
in addition to the kernel config, the device tree configuration of the tegra watchdog timer. Since version 3.0 the timer´s heartbeat is set to 120 seconds.
Within this time interval the system software, e.g. systemd, has to send at least
one ping to the watchdog device, otherwise the system reboots after a hardware
reset. In order to avoid that with systemd, in /etc/systemd/system.conf the option RuntimeWatchdogSec must be set to a non-zero value, e.g. 40s :
RuntimeWatchdogSec=40
(See man page of systemd-system.conf)
systemd will now send a ping to the hardware every 20 seconds.
 

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