Minimyth hangs on boot / Loading Kernel Modules

Help with booting MiniMyth

Moderator: Pablo

Post Reply
errorsmith
New Member
Posts: 8
Joined: Tue Jan 24, 2012 2:13 pm

Minimyth hangs on boot / Loading Kernel Modules

Post by errorsmith » Tue Jan 24, 2012 2:30 pm

Hi

I'm trying to set up a diskless frontend using the latest stable relase of minimyth.
Its an older PC Chips Board with an AMD2000Pro CPU and onboard SIS650 Graphics, SIS900 Onboard NIC and 768MB RAM.
It is already set up to boot via pxe, so I just had to add a configuration for minimyth to my pxelinux configuration file.
I'am able to pxe boot Tiny Core Linux and some LiveCDs. So in general I have pxe working.

Unfortunately the machine does not boot minimyth.
It seems to me like it is stuck when loading the kernel modules.
Last line on the screen is

Code: Select all

[drm]initialized drm 1.1.0 20060810
The pxe configuration is as follows:

Code: Select all

label mythfrontend
    menu label Mythfrontend (Minimyth)
    kernel http://intern.dynamik.home/images/minimyth/kernel
    append ro root=/dev/ram0 ramdisk_size=192000 initrd=http://intern.dynamik.home/images/minimyth/rootfs MM_MINIMYTH_BOOT_URL=http://intern.dynamik.home/images/minimyth/ MM_DHCP_TCODE=Europe/Berlin MM_DEBUG=yes vga=771 verbose debug
When the box hangs, I can ping it, but not telnet into it (connection refused).



What can I do to get it up and running or what can I do to debug this issue?



With kind regards,
Errorsmith

JoeHenley
Contributor
Posts: 185
Joined: Sun Aug 06, 2006 4:12 pm

Re: Minimyth hangs on boot / Loading Kernel Modules

Post by JoeHenley » Tue Jan 24, 2012 4:32 pm

Errorsmith,

When my front-ends boot (pxe and nfs), that drm line is the last of the kernel items listed in syslog. The next items started are all from the minimyth code:
------------------ snip ------------------------------
Jan 14 09:22:45 theodore kernel: agpgart-sis 0000:00:00.0: AGP aperture is 128M @ 0xd0000000
Jan 14 09:22:45 theodore kernel: [drm] Initialized drm 1.1.0 20060810
Jan 14 09:22:46 theodore minimyth: starting CPU frequency scaling ...
Jan 14 09:22:46 theodore minimyth: starting virtual console ...
Jan 14 09:22:46 theodore minimyth: starting telnet server ...
Jan 14 09:22:46 theodore minimyth: configuring ssh server ...
---------------- snip ----------------------------

The sequence listed in the syslog is not "exact", but is close. So the issue you are having may be in minimyth (eg., minimyth.conf file, etc.), not in the kernel/boot.

Also, just a suggestion; ... I'm not sure (my ignorance) that the MM parameters in the append line are correct. I put items like that in my minimyth.conf file. You may be correct, I just haven't seen it done that way.

Good luck,

Joe Henley

errorsmith
New Member
Posts: 8
Joined: Tue Jan 24, 2012 2:13 pm

Re: Minimyth hangs on boot / Loading Kernel Modules

Post by errorsmith » Tue Jan 24, 2012 7:11 pm

Hi

You were right. According to the logs of my server minimyth.conf is fetched. So apparently at least it tries to boot.
Regarding the bootline:
The docs say this:
In addition to MM_DEBUG and MM_MINIMYTH_BOOT_DEVICE you can include any variables found in the MiniMyth Configuration File on the boot line.
For me it reads that I can do it like this. Assuming my minimyth.conf did not get feteched from the server I tried to add some variables to the bootline in order to make it work or at least to get some (more) output from the bootprocess.

So is there a way to get any debug output from minimyth?

As it gets loaded, it might be relevant. This is my minimyth.conf:

Code: Select all

MM_MINIMYTH_BOOT_URL='http://intern.dynamik.home/images/minimyth/'
MM_DHCP_TCODE='europe/berlin'
MM_SECURITY_ENABLED='no'
MM_AUDIO_TYPE='analog'
MM_VIDEO_ASPECT_RATIO='4:3'
MM_X_ENABLED='no'
MM_X_MODE='1024x768'
MM_X_RESOLUTION='1024x768'
MM_X_XKB_LAYOUT='de'
MM_X_OUTPUT_VGA='auto'
MM_MASTER_SERVER='192.168.23.35'
MM_MASTER_DBUSERNAME='mythtv'
MM_MASTER_DBPASSWORD='***********'
MM_MASTER_DBNAME='mythconverg'
MM_MASTER_WOL_ENABLED='no'
MM_PLUGIN_INFORMATION_CENTER_ENABLED='yes'
MM_PLUGIN_OPTICAL_DISK_ENABLED='no'
MM_PLUGIN_BROWSER_ENABLED='no'
MM_PLUGIN_GALLERY_ENABLED='no'
MM_PLUGIN_GAME_ENABLED='no'
MM_PLUGIN_MUSIC_ENABLED='no'
MM_PLUGIN_NETVISION_ENABLED='no'
MM_PLUGIN_NEWS_ENABLED='no'
MM_PLUGIN_STREAM_ENABLED='no'
MM_PLUGIN_VIDEO_ENABLED='no'
MM_PLUGIN_WEATHER_ENABLED='no'
MM_PLUGIN_ZONEMINDER_ENABLED='no'
MM_THEME_NAME='G.A.N.T.'
MM_THEME_URL='http://intern.dynamik.home/images/minimyth/themes/'
MM_THEMECACHE_URL='none'
MM_SSH_SERVER_ENABLED='no'
MM_BACKEND_ENABLED='no'
With kind regards,
Errorsmith

JoeHenley
Contributor
Posts: 185
Joined: Sun Aug 06, 2006 4:12 pm

Re: Minimyth hangs on boot / Loading Kernel Modules

Post by JoeHenley » Tue Jan 24, 2012 8:58 pm

Hi Errorsmith,

Since you know the minimyth.conf is being loaded, and since it contains the parameters I questionned being in the "append" line, you coulld safely remove them from the append line and count on them being included via the minimyth.conf.

I re-read the explanation on the minimyth docs page and found: "In addition to MM_DEBUG and MM_MINIMYTH_BOOT_DEVICE you can include any variables found in the MiniMyth Configuration File on the boot line. However, with the exception of some of the DHCP override variables, there is little reason to include these variables on the boot line." So you're right about it being OK to include them on the appand line, and I'm right about it being better to put them in minimyth.conf. ;-) But I think the point is to NOT put them in both places.

Looking further at your minimyth.conf file, I think you should change the "MM_X_ENABLED='no' " to yes.

I _think_ debug should be enabled by the use of "debug" on the append line -- just as you have done. Maybe by removing the duplicate of MM_DEBUG=yes would help. Not sure, but it's worth a try.

Good luck, and let us know how you progress,

Joe Henley

errorsmith
New Member
Posts: 8
Joined: Tue Jan 24, 2012 2:13 pm

Re: Minimyth hangs on boot / Loading Kernel Modules

Post by errorsmith » Tue Jan 24, 2012 9:36 pm

Hi

Thanks for your reply. I played a bit with the boot line parameters.
In fact I need my append line just as I posted above. The reason for this is, my setup is a bit nonstandard. As I have multiple systems preconfigured for pxe boot, I can't use my tftp-root directory. Instead I have to use a subdirectory. So my directory structure looks like this:

Code: Select all

tftpboot
|
+-ipxescripts
+-pxelinux.cfg
|       |
|       +-default
|
+-images
|   |
|   +minimyth
|      |
|      +-themes
|      |     |
|      |     +MythCenter.sfs
|      |
|      +-conf
|      |  |
|      |  +-puck
|      |     |
|      |     +minimyth.conf
|      |   
|      +-kernel
|      +-rootfs    
|
I need to tell minimyth where to get its files from. If I omit the boot-url parameter minimyth doesn't boot. TC Code is pretty much standard as my dhcp isn't (yet) configured to deliver the tc code. vga=771 is needed because the onboard sis doesn't like the standard mode.

Anyway. Somehow I managed to get the machine to boot a bit further. It even tries to launch X but fails. The giant leap for me is: I can telnet into it. So far it seems to break while loading a theme, even doesn't try to load it from my server. hm...

I'll investigate this further and get back here.

with kind regards,
Errorsmith

errorsmith
New Member
Posts: 8
Joined: Tue Jan 24, 2012 2:13 pm

Re: Minimyth hangs on boot / Loading Kernel Modules

Post by errorsmith » Wed Jan 25, 2012 7:52 am

I got it working.
I'm not sure about the theme issue. It seems it doesn't like when I use the MM_THEME_URL directive. If set it to my themes directory I doesn't load any theme file. If don't set it, it loads the file. Anyway, now I have audio problems, but I'll make a new thread for this.

with kind regards,
Errorsmith

Post Reply