minimyth Bloated edition

Announce/Discuss projects you are working on for MiniMyth

Moderator: Pablo

Hairlocks
Contributor
Posts: 107
Joined: Wed Aug 27, 2003 12:23 pm
Location: Reading, UK
Contact:

minimyth Bloated edition

Post by Hairlocks »

I have created gentoo version of minimyth with mythtv-0.16 that mounts / over nfs and has everything including,

2.6.8.1-epia kernel with modules for all the tv capture cards.
mythbackend and all the plugins
ssh and login
mplayer, xine


Advantages with gentoo;
emerge world will update all the out of date packages in one command

Disadvantages;
It currently takes 2.7 GB of disk space. This can be reduced to about 1 GB by removing all the gentoo package managment (disabling emerge)

I was going to use directfb instead of X but had a few issues mainly with half the myth plugins. So far I have only tested it with it's local mythbackend as I don't have a development server, if anyone would like to give this a try then I will try to get a way of distributing it somehow?

John
pumkin
Member
Posts: 21
Joined: Mon Nov 17, 2003 9:36 pm
Contact:

Post by pumkin »

I can spare some space to try it right now, I am still running your custom 0.2 version, so I need to upgrade anyway :)

get in touch with me and we can work out howt o transfer it.
Hairlocks
Contributor
Posts: 107
Joined: Wed Aug 27, 2003 12:23 pm
Location: Reading, UK
Contact:

Post by Hairlocks »

Ok, the compressed tar is about 1.1Gb which I can split if neccesary. I will try to find somewhere for general download, but at the moment, pm me and we can sort something out. I am going to need to change a few things before and create another compressed tar first though! (change the root password etc)
ozuzo
Member
Posts: 42
Joined: Wed Jul 07, 2004 9:36 pm
Location: Amsterdam, NL

Post by ozuzo »

I've got plenty disk space and enough bandwidth to be able to put it up (at least until it becomes hugely popular :-). Just for my information - does you version support S/PDIF? If not, I'll probably stick to my current version...
Hairlocks
Contributor
Posts: 107
Joined: Wed Aug 27, 2003 12:23 pm
Location: Reading, UK
Contact:

Post by Hairlocks »

It is available at

http://ftp.solace.mh.se/pub/pvr/minimyt ... c1.tar.bz2
ftp://ftp.solace.mh.se/pub/pvr/minimyth ... c1.tar.bz2

the root password is mythtv

you will need to change
/etc/resolv.conf
/etc/fstab
/etc/mythtv/mysql.txt
relink /etc/localtime to the correct place

the kernel is in /boot if you want to rebuild it
export KBUILD_OUTPUT=/var/tmp/kernel-output/2.8.6.1-epia1

It should have S/PDIF support, alsamixer and amixer are included

another questions, opinions, suggestions and bug reports are welcome

John
Eduardo
Contributor
Posts: 212
Joined: Thu Mar 04, 2004 6:30 pm
Location: Winnipeg, Canada

Post by Eduardo »

Does your release include perl so that the mythvideo IMDB lookups work?

Ed.
Hairlocks
Contributor
Posts: 107
Joined: Wed Aug 27, 2003 12:23 pm
Location: Reading, UK
Contact:

Post by Hairlocks »

Yes, it includes perl. It should have everything you would ever need, or if not just type emerge product_name to install want you want with all the dependances.
lmatter
Contributor
Posts: 632
Joined: Sat Aug 23, 2003 5:13 pm
Location: California, USA

Post by lmatter »

I tried this out. On my nehemiah I got a lot of errors about not being able to create symlinks from /var/lib/init.d/softscripts. Since I can't scroll back on that machine (no keyboard) I can't see any previous errors.

It doesn't boot on my other EPIA's so I assume it is optimized for Nehemiah.

I edited resolv.conf and changed fstab so the root mounts correctly; didn't bother with /data yet. Also changed mysql.txt.

Larry
Hairlocks
Contributor
Posts: 107
Joined: Wed Aug 27, 2003 12:23 pm
Location: Reading, UK
Contact:

Post by Hairlocks »

I get all the errors about can't create softlinks, but when I look in the filesystem, it has created them. I assume it is a nfs related problem but I haven't solved it yet.

As for the other EPIAs, I did try to build it so it would work on all of them, but I only own Nehemiahs, so I can't test it. Where does it fail?

Another file in need of editing atm is
/etc/X11/xorg.conf
for the TVtype
Nem
Contributor
Posts: 76
Joined: Sat Aug 30, 2003 12:09 am
Location: Cambridge, UK

Post by Nem »

Hi Hairlocks,

Nice to see someone else using Gentoo for MiniMyth. I have been running with gentoo since March of this year (thats why I have been quiet on the forums here) and its been treating me well so far. To read my inital musing on this see here ... http://linpvr.org/forum/viewtopic.php?t ... ght=gentoo

I have a couple of different root filesystems one using 2.4 and one using 2.6 kernels. The 2.6 one is setup to use the unichrome drivers but so far the quality is pretty poor. Does your system use these, if so whats the quality like ?

I was going to release my root file system a while ago but (as you have seen) the size is prohibative. Have you given any thought to making a build script which could be released instead? I have been toying with this idea but I fell down when building as I wanted to build chrooted on a more powerful machine, but some packages seem to like being built only when the target kernel is running. Of course you can get round this by building on the actual EPIA, but bulding on a NFSRooted system takes ages! :-S

Anyway, let me know your thoughts,

Regards,

Darren
P.S. As I haven't been around for a while I just wanted to send a wave to Larry *waves*, I hope all is well and nice to see this project is still actively moving forward.
Last edited by Nem on Sun Nov 21, 2004 3:41 am, edited 1 time in total.
Nem
Contributor
Posts: 76
Joined: Sat Aug 30, 2003 12:09 am
Location: Cambridge, UK

Post by Nem »

Hairlocks,

Actually, now there is someone else to talk to about this... :D

Where are you starting up your Myth from. I'm using /etc/conf.d/local.start (included below). Maybe I should be using /etc/init.d/somescript instead.

Code: Select all

touch /fastboot

#now using ~/mythtv/mysql.txt instead
#cp /mysql.txt /usr/local/share/mythtv/mysql.txt

/bin/mount -t nfs -n 192.168.0.2:/Mp3s /Mp3s
/bin/mount -t nfs -n 192.168.0.2:/B1/Films /Films
/bin/mount -t nfs -n 192.168.0.2:/Files/Shared/Photos /Photos
/bin/mount -t nfs -n 192.168.0.2:/Mp3s/Mp3sRip /Mp3sRip

alsactl restore

#set dvd drive spindown
hdparm -S 1 /dev/dvd

#setup ntp
ntpdate 192.168.0.1
/etc/init.d/ntpd start
/usr/local/sbin/lircd /etc/lircd.conf

##
## Start an X server on the console
##
#nice -n -4 /usr/bin/X11/X -once &
/usr/bin/X11/X -once &
export DISPLAY=":0"
sleep 5

##
## Start x11vnc
##
/usr/X11R6/bin/x11vnc -many -q -bg&

##
## Start a window manager (lest we can't switch focus so
## mplayer can get keyboard
##
/usr/bin/fvwm2&

##
## Start MythTV front-end
##
#nice -n -5 /usr/local/bin/mythfrontend >> /var/log/mythtv/mythfrontend.log 2>&1 &
/root/mythfrontendRUNNER&


##
## This sends keypresses to non-MythTV programs (part of lirc)
##
#nice -n -4 /usr/local/bin/irxevent /etc/mythtv/lircrc &
/usr/local/bin/irxevent /etc/mythtv/lircrc &

##
## Turn off the X11 screen saver
##
#/usr/bin/X11/xset -dpms s off

sleep 5
#set X background to black
xsetroot -display :0 -solid black

#always return true so that local.stop works
true
xsetroot never seems to work even with the sleep command in there, any ideas on this ?

Also have you got any general feeback on what has worked well for you on the gentoo platform, or what doesn't? One thing I would say that might put folks off using gentoo would be the boot time. It not an issue for me as I never shut my frontend down, but I know larry was quite keen on optimising this. I have been thinking of trying to get suspend to ram working, but so far I haven't pulled my finger out on got on with it.

Regards,

Darren
sgargash
Member
Posts: 13
Joined: Wed Nov 24, 2004 8:41 am

Post by sgargash »

I've been playing with this for the last week or so. It's really nice and far easier to experiment with than a cramfs image.

Should your build have support for the unichrome driver?
sgargash
Member
Posts: 13
Joined: Wed Nov 24, 2004 8:41 am

Post by sgargash »

I've never used gentoo before, so this may more properly be a gentoo question.

I'm trying to add lirc support, but when I try to "emerge lirc", it fails with the following error:

* Due to the 2.6 kernel build system, external module compilation
* with a normal setup requires write access to //usr/src/linux
* There are several ways to fix/prevent this.
* Users can willingly let portage make this writable by doing
* # config-kernel --allow-writable yes
* However, this is considered a security risk!
*
* The prefered method is to enable Gentoo's new 'koutput' method
* for kernel modules. See the doc
* http://www.gentoo.org/doc/en/2.6-koutput-user.xml
* To enable this, you'll need to run
* # config-kernel --output-dir /var/tmp/kernel-output
* and then install a new kernel

I've tried following the instructions on the web page by setting KBUILD_OUTPUT. That didn't work. I tried to "emerge config-kernel", which also fails because of a masked package.

But all of this is getting me pretty far off track. I just want a remote control. It looks like the image uses an ati_remote, but I can't find any of the lirc utilities in the image. How are other people using their remote controls?
sgargash
Member
Posts: 13
Joined: Wed Nov 24, 2004 8:41 am

Post by sgargash »

I found an answer here:

http://forums.gentoo.org/viewtopic.php?t=239082

I've now built the lirc module and tools. Onto getting it to work.
sgargash
Member
Posts: 13
Joined: Wed Nov 24, 2004 8:41 am

Post by sgargash »

A further piece of information. The kernel appears to be compiled with a different version of gcc (3.4) that the version of gcc that's in the filesystem (3.3). So if you try to modprobe lirc, it will fail. I rebuilt the kernel using the local tools, changed the config so the normal serial drivers are modules, and now I can modprobe lirc_serial.
Post Reply