JMICRON & Linux
Followed Installation Steps

for Debian Etch
debian



Hello and welcome, Linux Users !

Introduction


This Webpage is a kind of progression howto (maybe), blog, and linux Story: "A JMicron Story".
Firstly, the choice of the distribution has been made for Debian. The reasons are as follows:
we wanna learn in depth, day after day, and be sure of having a reliable/stable machine.
Debian has been choosen after some trials with Ubuntu, Slack, Fedora, Suse...  that were by chance unsuccessful and good enough (for me). Ubuntu was crashing too often and the packages were/are still having lot of bugs, too much. It was impossible to make any further step, some kind of newbie "tweaking" of the machine (not just for a very simple use).
 
"Debian is amazing", as it is usually said, and this was right. Debian is highly stable (etch) and it is too so easy to work with. The packages are just working, and life so easy with Debian. No worries, it works like a charm and suffers of almost any issues and defects.
Thanks Debian, the machines and server, are rocks of stability ! bla bla bla...
 

The hardware

(I dont have camera for pics) Let's google...

JMICRON Motherboard:


Webpage, Official

http://www.asus.com/999/images/products/1295/1295_l.jpg
something like, but its not the real card:
motherboard


As you might see there is one  has SATA, and 2 normal old PCI.


Video : 7300 GT Nvidia:

something like:

nvidia


card



The Motherboard drawing (right one):







The JMICRON BIOS CONFIGURATION:




The Problem: The Design of the card !


This nvidia 7300 GT, in the PCIEX16_16  slot,  has a too big cooler that takes all space and I am loosing one old PCI slot.

And you do believe that they think, the ASUS Electronic Engineers ??
and
three harddisks to plug + 2 cdroms.
How with only one IDE slot and controlled by JMICRON ?



Then, the following card has been bought:

Promise Pci Ultra 133 TX2 Controller

http://homepage.mac.com/sandwich/ecentre_images/aec-6280m_300x300.gif

having 2 IDE harddisks on IDE0

if the 2 cdroms IDE are on the IDE1
    the cdroms are not working, detected, but bios issue

So, ==> I cannot plug any cdroms !!


TV


There is pinnacle tuner card  in the last remaining old PCI slot (out of 2, I recall !!)   :) 


Configuring the BIOS

pic3:
ONBOARD PCIE GBE LAN ENABLE
LAN OPTION : ROM     DISABLE

AND THE MAIN PROBLEM:

A/ if
JMICRON SATA/PATA CONTROLLER: ENABLE
    JMICRON SATA CONTROLLER MODE IDE
then the SATA harddisk cannot be read !!  error check ... of sda sata
but cdrom in IDE slot of the motherboard is detected and works !!


B/ JMICRON SATA/PATA CONTROLLER: DISABLE
    JMICRON SATA CONTROLLER MODE DISABLE
then, no cdroms of the motherboard

C/
Impossible to plug the 2 harddisks to the motherboard
not recognized even in JMICRON SATA/PATA CONTROLLER: DISABLE/ENABLE


Installing Debian Etch


1/ This Webpage is a kind of progression howto (maybe), blog, and linux Story: JMicron Story.
First, any way to install Debian Etch:
 
Download, the backend of Debian Sarge

I booted with this ISO:
http://mirror.home-dn.net/d-i/2.6.19/sarge-custom-1115.iso
(scratch on the burnt cdrom)
 
Then loaded the kernel of this
sarge-custom-1115.iso
 
then, console, and mounted in /cdrom the:
http://mirror.home-dn.net/d-i/2.6.20/sarge-custom-0304.iso
 
and Finally Install Debian.
 
2/  Installing slowly Debian as Server (sarge)

3/  dist-upgrading to etch with /etc/apt/sources.list

deb http://ftp.debian.org/debian etch main contrib non-free
deb-src http://ftp.debian.org/debian etch main contrib non-free


deb http://security.debian.org/ etch/updates main
#deb-src http://security.debian.org/ etch/updates main
deb http://www.debian-multimedia.org etch main
deb http://www.debian-multimedia.org stable main
#deb http://security.debian.org/debian-security/ etch main

# testing
##deb http://ftp.de.debian.org/debian/ testing main contrib non-free
##deb-src http://ftp.de.debian.org/debian/ testing main contrib non-free

# unstable
##deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
##deb-src http://ftp.de.debian.org/debian/ unstable main contrib non-free

    deb http://kernel-archive.buildserver.net/debian-kernel etch main
    deb http://kernel-archive.buildserver.net/debian-kernel trunk main


# deb http://download.tuxfamily.org/syzygy42 feisty avant-window-navigator
# deb-src http://download.tuxfamily.org/syzygy42 feisty avant-window-navigator

deb http://www.backports.org/debian/ etch-backports main contrib non-free
deb http://www.backports.org/debian/ sarge-backports main contrib non-free




4/ and choose the packages I want (xorg and full list of programs I like (openbox) )
 


The Uname -a, the wonderful kernel jp backported !!

2.6.20.1-1-68

Other Kernels and any newers !! :

NO SOUND IN TVTIME !!!
I need a : Analog Mix'  !!

my script:

#/bin/sh

/usr/bin/amixer set 'Analog Mix' "$1+" ;

osd_cat -p bottom -d 1 -s 1 -o 120   -A center -f "-adobe-new century schoolbook-medium-i-normal--34-240-100-100-p-182-iso8859-1" -c green -b percentage -P $(amixer get 'Analog Mix' | grep Left: | awk -F" " '{print $5}' | tr -d "[]") -T "Volume"

Having the Linux-Headers on this very special kernel

From http://www.linuxquestions.org/questions/showthread.php?t=567367

Finding the kernel, sources:

wget http://www.eu.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.1.tar.bz2


Compiling the kernel:
make-kpkg --rootcmd=fakeroot --initrd --append-to-version=-frenchn00b --revision=1.00 kernel_image kernel_headers

and booting the frenchn00b new kernel !




Now, the Nvidia and xinerama

http://www.linuxquestions.org/linux/answers/Applications_GUI_Multimedia/HOWTO_Installing_nVidia_Grapics_Drivers_on_Debian_Etch

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
    FontPath    "/usr/share/fonts/X11/misc"
    FontPath    "/usr/X11R6/lib/X11/fonts/misc"
    FontPath    "/usr/share/fonts/X11/cyrillic"
    FontPath    "/usr/X11R6/lib/X11/fonts/cyrillic"
    FontPath    "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath    "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath    "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath    "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath    "/usr/share/fonts/X11/Type1"
    FontPath    "/usr/X11R6/lib/X11/fonts/Type1"
    FontPath    "/usr/share/fonts/X11/100dpi"
    FontPath    "/usr/X11R6/lib/X11/fonts/100dpi"
    FontPath    "/usr/share/fonts/X11/75dpi"
    FontPath    "/usr/X11R6/lib/X11/fonts/75dpi"
    # path to defoma fonts
    FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
    Load    "bitmap"
    Load    "ddc"
    Load    "dri"
    Load    "extmod"
    Load    "freetype"
    Load    "glx"
    Load    "int10"
    Load    "vbe"

Load "freetype"
Load "type1"
Load "dbe"
#Load "glx"
#Load "extmod"
Load "v4l"

EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc105"
    Option        "XkbLayout"    "fr"
    Option        "XkbVariant"    "latin9"
EndSection

Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device"        "/dev/input/mice"
    Option        "Protocol"        "ImPS/2"
    Option        "Emulate3Buttons"    "true"
EndSection

Section "Device"
    Identifier    "VGA"
    Driver        "nvidia"
    BusID        "PCI:1:0:0"
    Screen        0
        Option        "NoLogo"    "True"
EndSection

Section "Device"
    Identifier    "DVI"
    Driver        "nvidia"
    BusID        "PCI:1:0:0"
    Option        "NoLogo"    "True"
    Screen        1
EndSection



Section "Monitor"
    Identifier    "Monitor Small"
    Option        "DPMS"
    HorizSync    28-84
    VertRefresh    43-60
EndSection

Section "Monitor"
    Identifier    "Monitor Big"
    Option        "DPMS"
    HorizSync    28-84
    VertRefresh    43-60
Endsection




Section "Screen"
    Identifier    "ScreenVGA"
    Device        "VGA"
    Monitor        "Monitor Small"
    DefaultDepth    24
    SubSection "Display"
        Depth        24
        Modes        "1024x768" "800x600" "640x480"

    EndSubSection

EndSection





Section "Screen"
    Identifier "ScreenDVI"
    Device        "DVI"
    Monitor        "Monitor Big"
    DefaultDepth    24
    SubSection "Display"
        Depth 24
        # 1680x1050
        Modes "1680x1050" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection





#Section "ServerLayout"
#    Identifier    "Default Layout"
#    Screen        "Screen0"
#    InputDevice    "Generic Keyboard"
#    InputDevice    "Configured Mouse"
#    Option "Clone" "off"
#    Option "Xinerama" "off"
#EndSection

Section "ServerLayout"
    Identifier "Multihead"
        Screen 0     "ScreenVGA" 0 0
        Screen 1     "ScreenDVI" LeftOf "ScreenVGA"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection


Section "ServerFlags"
    Option "xinerama" "true"
    Option "DefaultServerLayout" "Multihead"
EndSection



#Section "DRI"
#    Mode    0666
#EndSection
#
#
#
 


HAMA: Not working at all

http://www.linuxquestions.org/questions/showthread.php?t=567568


 

ntp-date crashes the X and xinerama has no rightscreen 

so, I decided to develop a program, avoiding ntp-date ...
that's was nice idea but
when I run it in /etc/rc2.d
 
the dual screen is not working, and I have to restart X thousand time to get them both running

no HWCLOCK, then xinerama runs perfectly !!!!

the lucky hwclock script:


elinks "http://www.timeanddate.com/worldclock/city.html?n=XXXXXXXXXXXXXXXXX"  > timetown.htm

cat timetown.htm | grep CEST > timetown

pyear="$( cat timetown | awk ' NR==1 { print $5 } ' | awk '{ gsub (",", "") ; print } ' )"
pmonth="07"
pday="$(cat timetown | awk ' NR==1 { print $4 } ' | awk '{ gsub (",", "") ; print } ' )"

ptime="$( cat timetown | awk ' NR==1 { print $7 } ' | awk '{ gsub (",", "") ; print } ' )"

pheure="$(echo "$ptime" | awk ' { n=split($1 , vk , ":") ; print vk[1] } ')"
echo $pheure + 12 | bc

echo "the text:--$pyear/$pmonth/$pday $ptime--"

if [ "$(cat timetown | awk ' NR==1 { print $8 } ' | awk '{ gsub (",", "") ; print } ')" == "PM" ] ; then
pheure="$(echo $pheure + 12 | bc )"
pmin="$(echo "$ptime" | awk ' { n=split($1 , vk , ":") ; print vk[2] } ')"
psec="$(echo "$ptime" | awk ' { n=split($1 , vk , ":") ; print vk[3] } ')"
ptime="$pheure:$pmin:$psec"
fi
echo "the text:--$pyear/$pmonth/$pday $ptime--"
valuetime="$pmonth/$pday/$pyear $ptime"
echo "the time is $valuetime"
sudo hwclock --directisa --set --date="$valuetime"
sudo hwclock --directisa --hctosys
echo "$valuetime configured to"
echo "the date:"
date


--directisa is a necessity since of BIOS maybe ...





Update, now, the final version of xorg.conf has been achieved 

it has xinerama double screen + left one is dvi and with rigth tiny vga one 14" (that model exists still):


   *-pci:0
description: PCI bridge
product: P965/G965 PCI Express Root Port
vendor: Intel Corporation
physical id: 1
bus info: pci@00:01.0
version: 02
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport-driver
*-display
description: VGA compatible controller
product: G70 [GeForce 7300 GT]
vendor: nVidia Corporation
physical id: 0
bus info: pci@01:00.0
version: a1
size: 256MB
width: 64 bits
clock: 33MHz
capabilities: vga bus_master cap_list
configuration: driver=nvidia latency=0
resources: iomemory:fd000000-fdffffff iomemory:c0000000-cfffffff iomemory:fc000000-fcffffff ioport:ac00-ac7f irq:16




#xorg.conf 

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Sat May 26 01:04:16 PDT 2007

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

# Section "ServerLayout"
# Identifier "Default Layout"
# Screen "ScreenDVI" 0 0
# InputDevice "Generic Keyboard"
# InputDevice "Configured Mouse"
# EndSection
## device
## Section "Device"
## Identifier "Generic Video Card"
## Driver "nvidia"
## EndSection
## Section "Monitor"
## Identifier "Generic Monitor"
## HorizSync 28.0 - 51.0
## VertRefresh 43.0 - 60.0
## Option "DPMS"
## EndSection
## screen

#Section "ServerFlags"
# Option "xinerama" "true"
# Option "DefaultServerLayout" "Multihead"
#EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "ScreenDVI" 0 0
Screen 1 "ScreenVGA" RightOf "ScreenDVI"
Option "Xinerama" "On"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

Section "Files"

# path to defoma fonts
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
Load "v4l"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "fr"
Option "XkbVariant" "latin9"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
EndSection

Section "Monitor"
Identifier "Monitor Small"
HorizSync 28.0 - 84.0
VertRefresh 43.0 - 60.0
Option "DPMS"
Option "UseDisplayDevice" "CRT-1"
EndSection

Section "Monitor"
Identifier "Monitor Big"
HorizSync 28.0 - 84.0
VertRefresh 43.0 - 60.0
Option "DPMS"
Option "UseDisplayDevice" "DFP-0"
EndSection

Section "Device"
Identifier "VGA"
Driver "nvidia"
BusID "PCI:1:0:0"
Screen 0
EndSection

Section "Device"
Identifier "DVI"
Driver "nvidia"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Screen"
Identifier "ScreenVGA"
Device "VGA"
Monitor "Monitor Small"
DefaultDepth 24
Option "NoLogo" "True"
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "Screen"
Identifier "ScreenDVI"
Device "DVI"
Monitor "Monitor Big"
DefaultDepth 24
Option "NoLogo" "True"
SubSection "Display"

# 1680x1050
Depth 24
Modes "1680x1050" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection





Results:

 
Either SATA is not working with cdroms   with the wonderful kernel 2.6.20.1-1-68 (sound to my tvtime)

Either 2 ide harddisk  + sata and no cdroms with the wonderful kernel 2.6.20.1-1-68 (sound to my tvtime)
 
Either, newer kernels: no sound in tvtime












  !!














POWERED BY DEBIAN, JUST NOTHING BETTER