SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Media Extender
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Media Extender Discussion related to any SageTV Media Extender used directly by SageTV. Questions, issues, problems, suggestions, etc. relating to a SageTV supported media extender should be posted here. Use the SageTV HD Theater - Media Player forum for issues related to using an HD Theater while not connected to a SageTV server.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-15-2007, 12:30 AM
bastafidli bastafidli is offline
Sage Expert
 
Join Date: Dec 2007
Location: Charlottesville, VA
Posts: 728
Login into linux running on HD Media Extender + GPL

I saw this on avs forums

http://www.avsforum.com/avs-vb/showthread.php?t=955297

"I've just started "exploring" the linux version it is running. You can telnet right into it and log in as root. No password at all."

I have verified it and it works quite nicely.

BTW, is Sage supplying the sources for the Linux in compliance with GPL?

Thanks
Reply With Quote
  #2  
Old 12-15-2007, 01:13 AM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
Quote:
Originally Posted by bastafidli View Post

BTW, is Sage supplying the sources for the Linux in compliance with GPL?

Thanks

From the STX-HD100 manual:
Quote:
Third Party Software Libraries

This product contains the following open source software which is covered under their associated licenses: the linux kernal, busybox, udhcp, init, telnetd, inetd, phoneme advanced, libjpeg, libpng and ffmpeg.

For source code availability; please contact support@sagetv.com
A couple people have posted asking Sage for GPL'ed code in the past and that Sage complied.
__________________
- Jack
__________________________________________
Server: AMD Phenom 9750, 2GB RAM, 2 Hauppauge PVR500, 1 Firewired DCT6200, 1 HDHomerun tuning 2 QAM channels, Vizio 37" HDTV LCD, 1 USB-UIRT

Clients: 1 MediaMVP, 1 Placeshifter Client, & 1 SageTV Client.

Last edited by ke6guj; 12-15-2007 at 01:16 AM.
Reply With Quote
  #3  
Old 12-15-2007, 01:43 AM
SHS's Avatar
SHS SHS is offline
Moderator
 
Join Date: Mar 2003
Location: Vinita, Oklahoma
Posts: 4,589
If I'm rigth you most only get a partial source that available under GPL, the rest is most like can't distributed becuases of NDA from the chipmaker.
Partial source will most likely be linux kernel, busybox, udhcp, init, telnetd, inetd, phoneme advanced, libjpeg, libpng and ffmpeg which listed in the manual on page 10.
email: supportATsagetvDOTcom
Reply With Quote
  #4  
Old 12-15-2007, 05:26 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I posted that over at AVS last night since I was surprised at how open the system was. I was a little disappointed actually, I was settling in behind the keyboard thinking it would take a while to figure out the logon and password and the first thing I tried worked.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #5  
Old 12-15-2007, 11:26 AM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Just mounted my USB flash drive...

Code:
em86xx[/root]# mkdir /tmp/usb
em86xx[/root]# insmod /lib/ehci-hcd.o
em86xx[/root]# lsmod
Module                  Size  Used by    Tainted: P
ehci-hcd               20080   0 (unused)
em8xxx               1825252   1
llad                   24072   1 [em8xxx]
em86xx[/root]# mount /dev/scsi/host0/bus0/target0/lun0/part1 /tmp/usb
em86xx[/root]# cd /tmp/usb
em86xx[usb]# ls
hpxw9400.zip
pnpRipper3.exe
zPDFCreator-0_9_3-AD_DeploymentPackage-WithoutToolbar.msi
zd700000-arch.zip
Reply With Quote
  #6  
Old 12-15-2007, 12:19 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
I wonder how much we're allowed to discuss on this? I'm not sure where the line is on "reverse engineering" - or is this pretty much wide open since we're talking about linux?

Basically, I have the firmware mounted on my linux system here and could very easily rewrite somethings to automatically mount a usb hard drive when connected to the system, and then repackage that firmware and reflash it to the STX. Just wondering if that info is allowed to be shared...
Reply With Quote
  #7  
Old 12-15-2007, 03:45 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Looks like the distro is at least based on uClinux.

http://en.wikipedia.org/wiki/%CE%9CClinux
Reply With Quote
  #8  
Old 12-15-2007, 04:21 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
You can get an image of the firmware the STX loads yourself by doing this:

dd if=/dev/mtd/2 of=/tmp/usb/firmware.bin

This assumes that you mounted a usb flash drive like I did above. My drive is 2gb and formatted as FAT so the kernel supports read-write to it (as opposed to NTFS).

From there, you can mount that image like:

mkdir /tmp/firm
mount -o loop /tmp/usb/firmware.bin /tmp/firm

This is read-only, but you can see that this is just a romfs image. If you were to change something in here, and repackage it, you could reflash it using:

/utils/flashcp -v /tmp/usb/newfirmware.bin /dev/mtd/2

There's an easier way to get the firmware...

Last edited by KJake; 12-15-2007 at 04:48 PM.
Reply With Quote
  #9  
Old 12-15-2007, 04:46 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Any comment on whether we could use binaries from DDWRT or some other ARM based distro? In particular wake on lan.

B
Reply With Quote
  #10  
Old 12-15-2007, 05:13 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Quote:
Originally Posted by bcjenkins View Post
Any comment on whether we could use binaries from DDWRT or some other ARM based distro? In particular wake on lan.

B
I don't see why not. As long as it is compiled for ARM and doesn't have dynamic library requirements, it should work. Keep in mind that there is 64Mbyte of flash memory in the unit, but it looks like the system is only setup to create a 8Mbyte partition in memory for the romfs. Please correct me if I'm wrong. If I'm not, there's not a whole lot of room for extra binaries (~1.5Mbyte).

Code:
0x00000000-0x00020000 : "BootLoader"
0x00020000-0x007e0000 : "Romfs"
0x007e0000-0x00800000 : "Settings"
This is probably controlled by the bootloader. At this point I'm not sure if it is hardcoded or not.

Looks like the IR driver supports RC6 and NEC encoded signals as well, not sure that Sage will understand them though.
Reply With Quote
  #11  
Old 12-15-2007, 05:49 PM
KJake KJake is offline
Sage Icon
 
Join Date: May 2003
Location: West Michigan
Posts: 1,117
Looks like the bootloader has a restore mode built-in where it can download a firmware image named and flash it. This is probably the recovery mode that people have been talking about but not describing in detail. It looks like with a keypress on boot-up that it will go into recovery mode, send out a DHCP request and look for a TFTP server and download a new stx1000.bin.

The bootloader loads the 4 key .lz files from the flash area, with linux.bin.lz being the main linux kernel. .lz stands for LZMA compression by the way.

Instructions for rolling your own distro for this box...
http://mvixcommunity.com/showtopic.php?tid/46/
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to connect with wireless media extender junkleeeenmi SageTV Media Extender 23 02-19-2008 10:07 PM
Harmony Remote and Sage Media Extender ybrew SageTV Media Extender 2 01-09-2007 02:29 PM
SageTV Media Center Software for Windows Now Available for Linux dkardatzke Announcements 0 01-06-2005 09:56 AM


All times are GMT -6. The time now is 05:32 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.