Page 1 of 1

system reboots during rootfs loading

Posted: Thu Jul 03, 2008 1:20 pm
by paddy
Hi,

I had been using a mythfrontend on ubuntu 7.10 on an epia SP8000E as a front end and had it working reasonably well, but thought I would give minimyth a go.

I was trying to set the machine up to boot locally of a USB flash stick and followed the instructions for local boot.

If I used the automated install, I got a bad variable error and not much got installed on the flash disk.

If I used the manual install, everything seemed to go ok, but when I tried to boot from the USB drive, things started off ok, but during the part where rootfs seems to be loading, after a few minutes, the system rebooted and started the sequence again.


I think the instructions are pretty clear ( thanks for that!), though I am a little confused over the configuration directories. I created a conf/default directory in the {boot} directory, and placed the example minimyth.conf file in there. I tried with a "blank" and with my best guess at configuring it and got the same result.

My thinking was, lets just get the thing to boot into some shape or form then tidy up the configuration.

In the bios on the SP8000 I chose the USB-Zip as I guessed it was the nearest.

Can anyone see if I am being stupid somewhere.

Thanks,

My /minimyth directory listing is

Code: Select all

conf                   (directory)
themes              (directory)
kernel
ldlinux.sys
minimyth.md5
rootfs
syslinux.cfg
My /conf/default/minimyth.conf file is listed below.

Code: Select all

################################################################################
# minimyth.conf
#
# The required MiniMyth configuration file.
#
# For information on this file, see either
# <http>
# or
# <http>,
# where '{frontend}' is the IPv4 address or hostname of your MiniMyth frontend.
################################################################################

################################################################################
# The following line will fetch and include a file named 'minimyth-common.conf'
# from the MiniMyth read-only configuration directory. If you have multiple
# MiniMyth frontends with common configuration, then you can include this line
# in each 'minimyth.conf' file and put the common configuration in the file
# 'default/minimyth-common.conf'.
################################################################################
#mm_minimyth_conf_include minimyth-common.conf

################################################################################
# MiniMyth configuration variables.
#
MM_MINIMYTH_UPDATE_URL='http://minimyth.org/download/stable/latest/'
MM_MINIMYTH_BOOT_URL='file:/minimyth/'
MM_MINIMYTH_FETCH_MINIMYTH_SCRIPT='no'
################################################################################
#MM_MINIMYTH_BOOT_URL='http://tftp.home/minimyth/'

################################################################################
# DHCP overrides configuration variables.
#
MM_DHCP_HOST_NAME='mythfe'
# MM_DHCP_DOMAIN_NAME
# MM_DHCP_TCODE
MM_DHCP_DOMAIN_NAME_SERVERS='192.168.0.1'
MM_DHCP_NTP_SERVERS='time.windows.com'
MM_DHCP_LOG_SERVERS='Europe/London'
################################################################################

################################################################################
# Security configuration variables.
#
MM_SECURITY_ENABLED='no'
MM_SECURITY_USER_MINIMYTH_UID='1000'
MM_SECURITY_USER_MINIMYTH_GID='1000'
MM_SECURITY_FETCH_CREDENTIALS_CIFS='no'
MM_SECURITY_FETCH_CA_BUNDLE_CRT='no'
################################################################################
#MM_SECURITY_ENABLED='yes'
#MM_SECURITY_FETCH_CREDENTIALS_CIFS='yes'
#MM_SECURITY_FETCH_CA_BUNDLE_CRT='yes'

################################################################################
# ACPI configuration variables.
#
MM_ACPI_EVENT_BUTTON_POWER='sleep'
MM_ACPI_VIDEO_FLAGS='2'
################################################################################

################################################################################
# CPU configuration variables.
#
MM_CPU_FREQUENCY_GOVERNOR='userspace'
# MM_CPU_FETCH_MICROCODE_DAT
################################################################################
#MM_CPU_FREQUENCY_GOVERNOR='userspace'

################################################################################
# Audio configuration variables.
#
MM_AUDIO_TYPE='analog'
MM_AUDIO_CARD_NUMBER='auto'
MM_AUDIO_DEVICE_NUMBER='auto'
################################################################################
#MM_AUDIO_TYPE='digital'

################################################################################
# Video configurion variables.
#
MM_VIDEO_ASPECT_RATIO='16:9'
MM_VIDEO_DEINTERLACER='auto'
MM_VIDEO_FONT_SCALE='auto'
MM_VIDEO_MPEG2_DECODER='auto'
MM_VIDEO_PLAYBACK_PROFILE=MiniMyth'
MM_VIDEO_RESIZE_ENABLED=''
################################################################################
#MM_VIDEO_ASPECT_RATIO='16x9'
#MM_VIDEO_DEINTERLACER='auto'

################################################################################
# X configuration variables.
#
MM_X_ENABLED='yes'
MM_X_RESTART_ON_SLEEP_ENABLED='yes'
MM_X_WM_ENABLED='yes'
MM_X_VNC_ENABLED='yes'
MM_X_SCREENSAVER='none'
MM_X_SCREENSAVER_TIMEOUT='10'
MM_X_SCREENSAVER_HACK='blank'
MM_X_MYTH_PROGRAM='mythfrontend'
MM_X_OUTPUT_DVI='none'
MM_X_OUTPUT_VGA=auto'
MM_X_OUTPUT_TV='none'
MM_X_TV_TYPE='pal'
MM_X_TV_OUTPUT='Composite'
MM_X_TV_OVERSCAN='0.0'
MM_X_SYNC='auto'
MM_X_REFRESH='auto'
# MM_X_RESOLUTION
# MM_X_MODELINE=
# MM_X_MODE='auto'
# MM_X_MODELINE_0
# MM_X_MODELINE_1
# MM_X_MODELINE_2
# MM_X_MODE_0
# MM_X_MODE_1
# MM_X_MODE_2
# MM_X_HACK_HIDE_BLUE_LINE_ENABLED
# MM_X_FETCH_XINITRC
# MM_X_FETCH_XORG_CONF
################################################################################
#MM_X_OUTPUT_DVI='auto'
#MM_X_MODE='1280x720'

################################################################################
# Font configuration variables.
#
# MM_FONT_FILE_TTF_ADD
# MM_FONT_FILE_TTF_DELETE
################################################################################

################################################################################
# Myth master backend communication configuration variables.
#
MM_MASTER_SERVER='192.168.0.100'
MM_MASTER_DBUSERNAME='mythtv'
MM_MASTER_DBPASSWORD='tbc'
MM_MASTER_DBNAME='mythconverg'
# MM_MASTER_WOL_ENABLED
# MM_MASTER_WOL_MAC
# MM_MASTER_WOLSQLRECONNECTWAITTIME
# MM_MASTER_WOLSQLCONNECTRETRY
# MM_MASTER_WOLSQLCOMMAND
# MM_MASTER_WOL_ADDITIONAL_DELAY
################################################################################

################################################################################
# Myth plugin configuration variables.
#
# MM_PLUGIN_OPTICAL_DISK_ENABLED
# MM_PLUGIN_BROWSER_ENABLED
# MM_PLUGIN_GALLERY_ENABLED
# MM_PLUGIN_GAME_ENABLED
# MM_PLUGIN_MUSIC_ENABLED
# MM_PLUGIN_NEWS_ENABLED
# MM_PLUGIN_PHONE_ENABLED
# MM_PLUGIN_STREAM_ENABLED
# MM_PLUGIN_VIDEO_ENABLED
# MM_PLUGIN_WEATHER_ENABLED
# MM_PLUGIN_ZONEMINDER_ENABLED
################################################################################

################################################################################
# Extras directory configuration variables.
#
# MM_EXTRAS_URL
################################################################################

################################################################################
# CODECs directory configuration variables.
#
# MM_CODECS_URL
################################################################################

################################################################################
# Theme configuration variables.
#
# MM_THEME_NAME
# MM_THEMEOSD_NAME
# MM_THEME_URL
# MM_THEMEOSD_URL
# MM_THEMECACHE_URL
################################################################################
#MM_THEME_NAME='G.A.N.T.'
#MM_THEMEOSD_NAME='Titivillus-OSD'

################################################################################
# Remote media directory configuration variables.
#
# MM_MEDIA_GALLERY_MOUNTPOINT
# MM_MEDIA_GALLERY_URL
# MM_MEDIA_GAME_MOUNTPOINT
# MM_MEDIA_GAME_URL
# MM_MEDIA_MUSIC_MOUNTPOINT
# MM_MEDIA_MUSIC_URL
# MM_MEDIA_VIDEO_MOUNTPOINT
# MM_MEDIA_VIDEO_URL
# MM_MEDIA_DVD_RIP_MOUNTPOINT
# MM_MEDIA_DVD_RIP_URL
################################################################################
#MM_MEDIA_GALLERY_URL="cifs://${MM_TFTP_SERVER}/pictures?credentials=/etc/cifs/credentials_cifs"
#MM_MEDIA_GAME_URL="cifs://${MM_TFTP_SERVER}/games?credentials=/etc/cifs/credentials_cifs"
#MM_MEDIA_MUSIC_URL="cifs://${MM_TFTP_SERVER}/music?credentials=/etc/cifs/credentials_cifs"
#MM_MEDIA_VIDEO_URL="cifs://${MM_TFTP_SERVER}/videos?credentials=/etc/cifs/credentials_cifs"
#MM_MEDIA_DVD_RIP_URL="nfs://${MM_TFTP_SERVER}/home/public/minimyth/themecache"

################################################################################
# Game configuration variables.
#
# MM_GAME_SAVE_ENABLE
# MM_GAME_SAVE_LIST
# MM_GAME_BIOS_ROOT
# MM_GAME_GAME_ROOT
################################################################################

################################################################################
# Wii remote control configuration variables.
#
# MM_WIIMOTE_ENABLED
# MM_WIIMOTE_ADDRESS_0
# MM_WIIMOTE_ADDRESS_1
# MM_WIIMOTE_ADDRESS_2
# MM_WIIMOTE_ADDRESS_3
################################################################################

################################################################################
# LIRC configuration variables.
#
# MM_LIRC_AUTO_ENABLED
# MM_LIRC_DEVICE_BLACKLIST
# MM_LIRC_DRIVER
# MM_LIRC_DEVICE
# MM_LIRC_KERNEL_MODULE
# MM_LIRC_KERNEL_MODULE_OPTIONS
# MM_LIRC_IREXEC_ENABLED
# MM_LIRC_SLEEP_ENABLED
# MM_LIRC_WAKEUP_ENABLED
# MM_LIRC_FETCH_LIRCD_CONF
# MM_LIRC_FETCH_LIRCRC
################################################################################

################################################################################
# LCDPROC configuration variables.
#
# MM_LCDPROC_DRIVER
# MM_LCDPROC_DEVICE
# MM_LCDPROC_KERNEL_MODULE
# MM_LCDPROC_KERNEL_MODULE_OPTIONS
# MM_LCDPROC_FETCH_LCDD_CONF
################################################################################

################################################################################
# External equipment control configuration variables.
#
# MM_EXTERNAL_POWER_OFF
# MM_EXTERNAL_POWER_ON
# MM_EXTERNAL_VOLUME_DOWN
# MM_EXTERNAL_VOLUME_UP
# MM_EXTERNAL_VOLUME_MUTE
################################################################################
#MM_EXTERNAL_POWER_OFF='
#	/usr/bin/irsend <television> KEY_POWEROFF ;
#	/usr/bin/irsend <receiver> KEY_POWEROFF'
#MM_EXTERNAL_POWER_ON='
#	/usr/bin/irsend <television> KEY_POWERON ;
#	/usr/bin/irsend <receiver> KEY_POWERON'
#MM_EXTERNAL_VOLUME_DOWN='
#	/usr/bin/irsend <receiver> KEY_VOLUMEDOWN'
#MM_EXTERNAL_VOLUME_UP='
#	/usr/bin/irsend <receiver> KEY_VOLUMEUP'
#MM_EXTERNAL_VOLUME_MUTE='
#	/usr/bin/irsend <receiver> KEY_MUTE'

################################################################################
# SSH server configuration variables.
#
MM_SSH_SERVER_ENABLED='yes'
################################################################################
#MM_SSH_SERVER_ENABLED='yes'

################################################################################
# Cron configuration variables.
#
# MM_CRON_FETCH_CRONTAB
################################################################################

################################################################################
# MiniMyth Myth frontend configuration variables.
#
# MM_MYTHDB_JUMPPOINTS_{key}
# MM_MYTHDB_KEYBINDINGS_{key}
# MM_MYTHDB_SETTINGS_{key}
################################################################################
#MM_MYTHDB_JUMPPOINTS_MythGallery='MythGallery~Alt+G'
#MM_MYTHDB_JUMPPOINTS_Play_music='Play music~Alt+M'
#MM_MYTHDB_JUMPPOINTS_MythStream='MythStream~Alt+S'
#MM_MYTHDB_JUMPPOINTS_TV_Recording_Playback='TV Recording Playback~Alt+T'
#MM_MYTHDB_JUMPPOINTS_MythVideo='MythVideo~Alt+V'

#MM_MYTHDB_KEYBINDINGS_Music_FFWD='Music~FFWD~)'
#MM_MYTHDB_KEYBINDINGS_Music_RWND='Music~RWND~('
#MM_MYTHDB_KEYBINDINGS_Stream_FULLSCREEN='Stream~FULLSCREEN~W'
#MM_MYTHDB_KEYBINDINGS_TV_Playback_SEEKFFWD='TV Playback~SEEKFFWD~),Right'
#MM_MYTHDB_KEYBINDINGS_TV_Playback_SEEKRWND='TV Playback~SEEKRWND~(,Left'

#MM_MYTHDB_SETTINGS_GalleryMoviePlayerCmd='GalleryMoviePlayerCmd~xine -pfhq --no-splash --loop=loop'
#MM_MYTHDB_SETTINGS_VCDPlayerCommand='VCDPlayerCommand~xine -pfhq --no-splash  --loop=loop vcd://'
#MM_MYTHDB_SETTINGS_VideoDefaultPlayer='VideoDefaultPlayer~xine -pfhq --no-splash --loop=loop'

Posted: Thu Jul 03, 2008 5:41 pm
by Pablo
I was never able to get USB flash booting to work on my VIA EPIA boxes. While it works fine on my ASUS NVIDIA+AMD hardware, it would take forever to load the root file system on my VIA EPIA boxes.

Posted: Thu Jul 03, 2008 8:47 pm
by paddy
Thanks for the reply.

Have you had success with any form of local booting on the sp8000?

Cheers

Posted: Thu Jul 03, 2008 9:40 pm
by Pablo
paddy wrote:Thanks for the reply.

Have you had success with any form of local booting on the sp8000?

Cheers
Yes.

Using a CF-to-IDE adapter, I have been able to boot from a Compact Flash card.

Posted: Thu Jul 03, 2008 10:23 pm
by paddy
Great, I will probably give it a whirl. One other query though, from my limited knowledge a cf->IDE adapter effectively makes the CF effectively behave as an IDE disk. So before I go and buy one, can I prove that I can get my system working by hooking up an old 1GB IDE hard disk and installing on there. It shoud then be easier (?!) to install when I get the CF, or am I missing some subtleties?

Thanks again for any replies.

Posted: Fri Jul 04, 2008 2:46 am
by Pablo
paddy wrote:Great, I will probably give it a whirl. One other query though, from my limited knowledge a cf->IDE adapter effectively makes the CF effectively behave as an IDE disk. So before I go and buy one, can I prove that I can get my system working by hooking up an old 1GB IDE hard disk and installing on there. It shoud then be easier (?!) to install when I get the CF, or am I missing some subtleties?

Thanks again for any replies.
Yes, you should be able to boot MiniMyth from any media that is formated as FAT32 and labeled as 'minimyth'.

I am impressed that you have a 1GB IDE hard disk. It has been some time since I have had a 1GB IDE hard disk (or even a 1GB SCSI hard disk) around.

Posted: Tue Jul 08, 2008 9:34 pm
by paddy
I am making progress (maybe?????). Installed everything on the 1Gb IDE and let rip. Instead of rebooting the system hung with a blank screen which was still there after 10 mins. In the first two seconds of the blank screen, there were two shades of "black" so something happened.

I am possibly still a bit confused over dhcp. I have it set in the the minimyth.conf file to my home router 192.168.0.1, but the logs in the router never see a request from the minimyth box. I tried also setting the hostname to an IPV4 address but that didn't help. As a second check i tried the disk on a second pc to see if I could get further or at least some error messages ( an nforce 2, GA-400N), but same again. I also tried the debug on the boot line, but no text on screen and no log local file ( I corrected by error in the minimyth.conf). Is there an example minimyth.conf for local booting posted anywhere that I could use as a template

It looks to me as though I am being thick and have missed something, but am stumped if I can see it. Any thoughts?

Thanks

Posted: Wed Jul 09, 2008 1:33 am
by Pablo
paddy wrote:I am making progress (maybe?????). Installed everything on the 1Gb IDE and let rip. Instead of rebooting the system hung with a blank screen which was still there after 10 mins. In the first two seconds of the blank screen, there were two shades of "black" so something happened.
How far does it get?
Does the boot loader load the kernel image?
Does the boot loader load the root file system image?
It might be helpful to see the contents of your syslinux.cfg file as well as a directory listing of the partition's directory listing.
I am possibly still a bit confused over dhcp. I have it set in the the minimyth.conf file to my home router 192.168.0.1, but the logs in the router never see a request from the minimyth box. I tried also setting the hostname to an IPV4 address but that didn't help. As a second check i tried the disk on a second pc to see if I could get further or at least some error messages ( an nforce 2, GA-400N), but same again. I also tried the debug on the boot line, but no text on screen and no log local file ( I corrected by error in the minimyth.conf). Is there an example minimyth.conf for local booting posted anywhere that I could use as a template
If your DHCP server is able to provide typical DHCP options (client IP address, subnet mask, router address, DNS server address, NTP server address, client hostname and domain), Then there should be no need to set any of the DHCP override parameters in minimyth.conf.
It looks to me as though I am being thick and have missed something, but am stumped if I can see it. Any thoughts?

Thanks

Posted: Wed Jul 09, 2008 9:09 pm
by paddy
Hi,

I see on screen the kernel appearing to load ( all the dots appear..., liikewise loading the rootfs seems to be going ok,.). After lost of lines of dots loading rootfs, it is then the black screen appears. I may be seeing a small bit of text just after the dots for a split second before the black screen appears
the syslinux.cfg file is:

Code: Select all

DEFAULT minimyth-ram

LABEL minimyth-ram
	KERNEL kernel
	APPEND ro root=/dev/ram0 ramdisk_size=96000 initrd=rootfs MM_DEBUG="yes"
I have checked the volume and the label is minimyth.

As for the dhcp server ( a 3com officeconnect adsl wireless router) , the only thing I am not sure that it can deal out is a host name.

My only other thought, could it be a screen resolution thing preventing me from seeing anything ?

Cheers,

Posted: Thu Jul 10, 2008 1:52 pm
by paddy
I think I might have a problem with the old hard disk. I took it to an IT friend of mine who detected problems with it and they couldn't get it to boot either. I will try another disk soon. Thanks for your help