Installing Ubuntu in Samsung Smart TV natively

Here are software that related with Samsung E series TVs.
Please don't create any new topic here unless you have software to post/release.

sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Installing Ubuntu in Samsung Smart TV natively

Post by sectroyer »

lbalan79 wrote:
sectroyer wrote: Well one of the apps I attached is xterm :) So no need to compile this one ;) Also you should start by learning about autoconf/automake and setting toolchain :)
Yes.First step: I was able to get the hello world to run on the tv. But more complex applications do not compile dues to missing flag configs. I will need to set a fully functional crosscompile environment on this ubuntu and see what doesn't work.
cross compile you set up on x86 linux box/virtual machine on your computer and NOT on TV :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
lbalan79
SamyGO Project Donor
Posts: 133
Joined: Mon Jan 12, 2015 5:24 am

Re: Installing Ubuntu in Samsung Smart TV natively

Post by lbalan79 »

Nothing new but just showing Ubuntu Gnome running on the HU9000 as well.

I did have some issues with resolution. But I am sure is a mode config issue. Somehow gnome doesn't cover the entire screen at higher resolutions:

Code: Select all

root@(none):/# xrandr --output LVDS-1 --mode 1920x1080
root@(none):/# xrandr --output LVDS-1 --mode 1024x1080@60
root@(none):/# xrandr --output LVDS-1 --mode 1280x720@60
root@(none):/# xrandr --output LVDS-1 --mode 1920x1080@50
root@(none):/# xrandr --output LVDS-1 --mode 960x768@50
root@(none):/# xrandr --output LVDS-1 --mode 960x720@60
root@(none):/# xrandr --output LVDS-1 --mode 960x576@60
root@(none):/# xrandr --output LVDS-1 --mode 960x540@60 
PS: I did fix the /dev/pts issue by extracting the read only /dev from /dev/mmcblk0p9 and adding it to the new created image. shm of course still needs to be mounted.
You do not have the required permissions to view the files attached to this post.
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Installing Ubuntu in Samsung Smart TV natively

Post by sectroyer »

lbalan79 wrote: PS: I did fix the /dev/pts issue by extracting the read only /dev from /dev/mmcblk0p9 and adding it to the new created image. shm of course still needs to be mounted.
Just post which commands you used so others could follow you step-by-step ;)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
lbalan79
SamyGO Project Donor
Posts: 133
Joined: Mon Jan 12, 2015 5:24 am

Re: Installing Ubuntu in Samsung Smart TV natively

Post by lbalan79 »

Getting a proper populated /dev matching the tv read only partition.

1. Find the root partition:

Code: Select all

# cat /proc/cmdline
root=/dev/mmcblk0p9 rootfstype=squashfs console=ttyS0,115200n8 rootwait earlyprintk no_console_suspend ???????????????????? onboot=ATSC9-0006 quiet vmalloc=600M EME_BUFFINFO=0x9DF00000,256K jackpack sdp_sparsemem
2. Dump the root partition to some usb device:

Code: Select all

dd if=/dev/mmcblk0p9 of=/dtv/usb/sdb1/root.img
3. Unmount / unplug the usb device at /detv/usb/sdb1. On a different linux box mount root.img and the previously created linux.ext4 file (I did use ext4 instead of xfs). Note: make sure you have squashfs support compiled in the kernel in order to mount root.img .

4. On the mounted linux.ext4 delete /dev

5. Copy from root.img /dev preserving permissions, dates , etc to the linux.ext4 mounted drive : cp -rp
Now you will have a populated /dev matching the read only tv boot partition.

6. Create a new folder /dev/pts

7. Plug in again the usb drive into the tv.

Code: Select all

mount -o bind /dtv/pts [place where you mounted linux.ext4 on the tv]/dev/pts
mount -o bind /dev/shm [place where you mounted linux.ext4 on the tv]/dev/shm
I see some "event" points under dtv so probably binding those under /dev might also help with mouse input.
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Installing Ubuntu in Samsung Smart TV natively

Post by sectroyer »

BTW I think you could safely create in chroot /dtv/pts/ :) Just use our libc :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
astrakid
SamyGO Project Donor
Posts: 84
Joined: Mon Sep 14, 2015 3:19 pm

Re: Installing Ubuntu in Samsung Smart TV natively

Post by astrakid »

This is a very good result. are there any updates? would be great to get that working as well on my h-series tv. ;-)
regards,
astrakid
hu8200
SamyGO Project Donor
Posts: 26
Joined: Wed Dec 31, 2014 1:10 am

Re: Installing Ubuntu in Samsung Smart TV natively

Post by hu8200 »

hu8200 works
i have mouse and keyboard with unifying receiver and works like advanced touch remote, but in chrooted ubuntu works only mouse. i created few different nodes for keyboard, and does't work.
important!!! after "apt-get update" does not do an upgrade or dist-upgrade. it breaks python.
when I find the time, i'll try crosscompile gentoo arm /i'ts my favourite linux/

Code: Select all

# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 1988.60
Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x4
CPU part        : 0xc09
CPU revision    : 1

processor       : 1
model name      : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 1988.60
Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x4
CPU part        : 0xc09
CPU revision    : 1

processor       : 2
model name      : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 1988.60
Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x4
CPU part        : 0xc09
CPU revision    : 1

processor       : 3
model name      : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 1988.60
Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x4
CPU part        : 0xc09
CPU revision    : 1

Hardware        : Novatek-Cortex A9
Revision        : 0000
Serial          : 0000000000000000
good tutorial, but gnome working very slow. i need to try different window manager
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Installing Ubuntu in Samsung Smart TV natively

Post by sectroyer »

Post full tutorial on how did you get ubuntu running on H :) Few people asked about it :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
DaCapone
SamyGO Project Donor
Posts: 50
Joined: Sun Nov 03, 2013 6:54 pm

Re: Installing Ubuntu in Samsung Smart TV natively

Post by DaCapone »

sectroyer wrote:Post full tutorial on how did you get ubuntu running on H :) Few people asked about it :)
Yes he is right , so please please make a tut
hu8200
SamyGO Project Donor
Posts: 26
Joined: Wed Dec 31, 2014 1:10 am

Re: Installing Ubuntu in Samsung Smart TV natively

Post by hu8200 »

I've done everything like in tutorial on first page.
i don't know if its important, but i copied /dev from tv. if you want to do this you need to have other Linux with squashfs support in kernel
viewtopic.php?f=49&t=7898&start=50#p72990

Code: Select all

# cat /proc/cmdline 
console=tty1,115200 earlyprintk maxcpus=4 no_console_suspend quiet root=/dev/mmcblk0p7 rootfstype=squashfs mem=584M@68M mem=610M@2462M ???????????????????? ONBOOT:1007    ????

dd if=/dev/mmcblk0p7 of=/dtv/usb/sdXX/p7.img
on linux:

Code: Select all

mount -o loop /home/p7.img /mnt/img
cd /mnt/img
tar -cvpf dev dev.tar.bz
format pendrive to ext4. you can try with ext2 from tv

Code: Select all

mkfs.ext4 -L exceria -m 0 /dev/sdXX
copy dev.tar.bz to tv "/mnt/core"

Code: Select all

mkdir /mnt/core
mount /dev/sdXX /mnt/core
cd /mnt/core
wget http://old-releases.ubuntu.com/releases/ubuntu-core/releases/12.04/release/ubuntu-core-12.04-core-armel.tar.gz
tar -xvpf  ubuntu-core-12.04-core-armel.tar.gz
rm ubuntu-core-12.04-core-armel.tar.gz
tar -xvpf dev.tar.bz --overwrite --overwrite-dir
rm dev.tar.bz

cp /etc/resolv.conf /mnt/core/etc/resolv.conf
cp /etc/hosts /mnt/core/etc/hosts
cp /etc/HOSTNAME /mnt/core/etc/hostname
before chroot edit apt sources.list (lines like in tutorial)

Code: Select all

nano -w /mnt/core/etc/apt/sources.list
deb http://ports.ubuntu.com/ubuntu-ports/ precise main universe multiverse restricted
deb http://ports.ubuntu.com/ubuntu-ports/ precise-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ precise-updates main restricted

chroot /mnt/core /bin/bash
hostname localhost

mount -t sysfs sysfs /sys
mount -t proc proc /proc
mount -t usbfs none /proc/bus/usb
mount -t devpts devpts /dev/pts

export LD_LIBRARY_PATH=""
export HOME="/root"
export TMPDIR="/tmp"
export FONTCONFIG_FILE="/etc/fonts/fonts.conf"
export FONTCONFIG_PATH="/etc/fonts"
export PANGO_RC_FILE="/usr/lib/arm-linux-gnueabi/pango/pangorc"

apt-get update
dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl
apt-get install dialog apt-utils

apt-get install vim-tiny sudo ssh net-tools ethtool wireless-tools network-manager iputils-ping rsyslog alsa-utils

apt-get install gnome-session-fallback
when finish, on other session telnet or ssh, copy two pango files and change paths inside

Code: Select all

cp /mtd_exe/Runtime/pango/pango.modules /mnt/core/usr/lib/arm-linux-gnueabi/pango/
cp /mtd_exe/Runtime/pango/pangorc /mnt/core/usr/lib/arm-linux-gnueabi/pango/

Code: Select all

pangorc:
ModuleFiles = /usr/lib/arm-linux-gnueabi/pango/pango.modules
pango modules: (1 line for example)
/usr/lib/arm-linux-gnueabi/pango/1.6.0/modules/pango-arabic-lang.so ArabicScriptEngineLang PangoEngineLang PangoRenderNone arabic:*
now back to chrooted environment. you can add user "useradd xxxxx" or execute immediately one of the commands (ctrl+c terminate):

Code: Select all

firefox forum.samy.go --dislpay=:0
gnome-session --dislpay=:0
gnome-session-fallback
IMG_0906.JPG
IMG_0901.JPG
IMG_0902.JPG
IMG_0903.JPG
IMPORTANT!!! DO NOT UPGRADE "apt-get upgrade, apt-get dist-upgrade".
IT BREAKS PYTHON LIBRARY. I TRIED 3 TIMES

also tried other version with hf but without success "Illegal instruction"
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “[E] Software”