There is a new audio format around: the monkey's audio codec or file. To make the conversion you will need the shntools (RPM) and MAC (RPM). Notice that both RPMs are for Fedora 7, but they work. If found a Fedora 8 version, please let me know. This document is a customized version from other two documents: this and this.
- Set some variables:
CUE_FILE=<full path name to the CUE file>
#---
# assuming that the APE/FLAC file has the same name as the CUE file
APE_FILE="`basename \"${CUE_FILE}\" .cue`.ape"
WAV_FILE="`basename \"${CUE_FILE}\" .cue`.wav"
FLAC_FILE="`basename \"${CUE_FILE}\" .cue`.flac"
#---
- Convert APE file to WAV and to FLAC (if instead of an APE file it is a FLAC file you should skip this step):
#---
mac "${APE_FILE}" "${WAV_FILE}" -d
flac --best "${WAV_FILE}" "${FLAC_FILE}"
rm -f "${WAV_FILE}"
#---
- Break and convert to flac:
#---
cuebreakpoints "${CUE_FILE}" | shnsplit -o flac "${FLAC_FILE}"
#---
- Rename single tracks into music names, based on CUE file:
[UPDATE]
This script does NOT check character set validity. It means that it may not work for some particular case (or the general case in some languages). A simple example would be a CUE file in French in ISO-8859-1 (Windows default) and a Linux in Unicode (UTF-8). Oder problem also related with character set is the protection for non-valid character like ":" or "/", which may not be used within a file name. In any case the script will simply not rename the file (which will be left to the user to do). So, in the worst case, you will need to rename the failed files by hand. Useful for that will be to run the following command:
#---
grep -e "^[[:space:]]\+TITLE" "${CUE_FILE}"
#---
[UPDATE]
#---
COUNT=1;
## the first TITLE is for the album name, discard it
grep -e "^[[:space:]]\+TITLE" "${CUE_FILE}" \
| sed -e "s/.*\"\(.*\)\".*/\1/g" \
| while read TRACK_NAME;
do \
## just a little fine tune to have track names like
### "artist - 01 - track.flac" and "artist - 10 - track.flac"
if [ ${COUNT} -lt 10 ];
then \
NUM="0${COUNT}";
else \
NUM="${COUNT}";
fi;
ARTIST=`grep -e "^[[:space:]]\+PERFORMER" "${CUE_FILE}" \
| head -${COUNT} | tail -1 | \
sed -e "s/.*\"\(.*\)\".*/\1/g"`
## rename in the format: "<artist> - <track number> - <track name>.flac"
mv split-track${NUM}.flac "${ARTIST} - ${NUM} - ${TRACK_NAME}".flac;
COUNT=$(($COUNT+1));
done
#---
Tuesday, December 04, 2007
Wednesday, November 28, 2007
Java... what a hell?!?
Recently I experience a problem with Java (both 1.5 and 1.6, up to update 3), which throws the following message error in your face:
The error is: xcb_xlib.c:50: xcb_xlib_unlock: Assertion 'c->xlib.lock'
It does not affects all Java programs (my Eclipse was still running) but some. Not weirdly enough it seems actually a Java problem instead of a Fedora problem. Anyway, to workaround the problem the procedure is even more weird (extracted from here):
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/java//jre/lib/i386/xawt/libmawt.so
The error is: xcb_xlib.c:50: xcb_xlib_unlock: Assertion 'c->xlib.lock'
It does not affects all Java programs (my Eclipse was still running) but some. Not weirdly enough it seems actually a Java problem instead of a Fedora problem. Anyway, to workaround the problem the procedure is even more weird (extracted from here):
sed -i 's/XINERAMA/FAKEEXTN/g' /usr/java/
Wednesday, November 21, 2007
[updated3] My Fedora 8 road map
- Basic system setup
-- Adjust [/etc/resolv.conf]
-- Adjust [/etc/fstab]
-- Adjust [/etc/sysconfig/network-scripts/ifcfg-eth0]
- Add repositories:
-- Freshrpms
-- Adobe (flash plugin)
-- Livna
-- Correct conflict between livna and freshrpms (in favor of freshrpms):
Edit your [/etc/yum.repos.d/livna.repo] file to look like this:
...
#mirrorlist=http://rpm.livna.org/mirrorlist-7
exclude=vlc*,mplayer,libdvbpsi*,ffmpeg*,mencoder*
enabled=1
...
-- Update your system:
#---
yum -y upgrade
#---
- Install additional software:
-- Multimedia:
#---
yum -y install \
mplayer \
mencoder \
mplayerplug-in\
vlc \
grip \
ogle \
flash-plugin \
k3b \
k3b-extras-nonfree \
bittorrent \
bittorrent-gui
#---
-- Email with sylpheed-claws
#---
yum -y install \
bogofilter \
claws-mail \
claws-mail-plugins \
#---
-- XMMS with its most precious plug-ins
#---
yum -y install \
xmms \
xmms-libs \
xmms-skins.noarch \
xmms-mp3 \
xmms-faad2 \
xmms-flac \
xmms-wma \
xmms-cdread \
xmms-arts \
xmms-esd \
xmms-musepack \
xmms-acme
#---
-- Pidgin, a very good IM client
#---
yum -y install \
pidgin \
pidgin-encryption \
pidgin-guifications \
pidgin-otr
#---
-- For kernel modules
#---
yum -y install \
kernel-devel \
kernel-headers
#---
-- Nautilus plug-ins
#---
yum -y install \
nautilus-open-terminal \
nautilus-search-tool \
nautilus-flac-converter \
nautilus-extensions
#---
-- Misc
--- Diagrams and images, usually old stuff that I'm used to
#---
yum -y install \
graphviz \
dia \
gv \
xfig \
xpdf \
eog \
gnuplot \
grace
#---
--- Editors and related
#---
yum -y install \
gvim \
kile \
diction
#---
--- My beloved spreadsheet program
#---
yum -y install \
gnumeric
#---
--- Unrar and related programs
#---
yum -y install \
unrar \
p7zip
#---
--- My beloved debugging program
#---
yum -y install \
ddd
#---
- Install and setup third-part programs
-- VirtualBox/VMware
-- Skype
-- Acrobat Reader
-- Real Player
-- Sun Java
-- Eclipse
P.S.: For Real Player you will need to install the following package (broken dependency on Real Player RPM):
#---
yum -y install \
compat-libstdc++-33
#---
- Setup printers
- Backup [/etc] and [/boot/grub]
#---
tar -czf bkp-system.`/bin/date +"%Y%m%d-%H%M"`.tgz /etc /boot/grub
#---
- Some issues:
Acrobat Reader install its Firefox/Mozilla plug-in, which has a memory leak. I recommend to remove it. To do so:
#---
rm -f /usr/lib/mozilla/plugins/nppdf.so
#---
-- Adjust [/etc/resolv.conf]
-- Adjust [/etc/fstab]
-- Adjust [/etc/sysconfig/network-scripts/ifcfg-eth0]
- Add repositories:
-- Freshrpms
-- Adobe (flash plugin)
-- Livna
-- Correct conflict between livna and freshrpms (in favor of freshrpms):
Edit your [/etc/yum.repos.d/livna.repo] file to look like this:
...
#mirrorlist=http://rpm.livna.org/mirrorlist-7
exclude=vlc*,mplayer,libdvbpsi*,ffmpeg*,mencoder*
enabled=1
...
-- Update your system:
#---
yum -y upgrade
#---
- Install additional software:
-- Multimedia:
#---
yum -y install \
mplayer \
mencoder \
mplayerplug-in\
vlc \
grip \
ogle \
flash-plugin \
k3b \
k3b-extras-nonfree \
bittorrent \
bittorrent-gui
#---
-- Email with sylpheed-claws
#---
yum -y install \
bogofilter \
claws-mail \
claws-mail-plugins \
#---
-- XMMS with its most precious plug-ins
#---
yum -y install \
xmms \
xmms-libs \
xmms-skins.noarch \
xmms-mp3 \
xmms-faad2 \
xmms-flac \
xmms-wma \
xmms-cdread \
xmms-arts \
xmms-esd \
xmms-musepack \
xmms-acme
#---
-- Pidgin, a very good IM client
#---
yum -y install \
pidgin \
pidgin-encryption \
pidgin-guifications \
pidgin-otr
#---
-- For kernel modules
#---
yum -y install \
kernel-devel \
kernel-headers
#---
-- Nautilus plug-ins
#---
yum -y install \
nautilus-open-terminal \
nautilus-search-tool \
nautilus-flac-converter \
nautilus-extensions
#---
-- Misc
--- Diagrams and images, usually old stuff that I'm used to
#---
yum -y install \
graphviz \
dia \
gv \
xfig \
xpdf \
eog \
gnuplot \
grace
#---
--- Editors and related
#---
yum -y install \
gvim \
kile \
diction
#---
--- My beloved spreadsheet program
#---
yum -y install \
gnumeric
#---
--- Unrar and related programs
#---
yum -y install \
unrar \
p7zip
#---
--- My beloved debugging program
#---
yum -y install \
ddd
#---
- Install and setup third-part programs
-- VirtualBox/VMware
-- Skype
-- Acrobat Reader
-- Real Player
-- Sun Java
-- Eclipse
P.S.: For Real Player you will need to install the following package (broken dependency on Real Player RPM):
#---
yum -y install \
compat-libstdc++-33
#---
- Setup printers
- Backup [/etc] and [/boot/grub]
#---
tar -czf bkp-system.`/bin/date +"%Y%m%d-%H%M"`.tgz /etc /boot/grub
#---
- Some issues:
Acrobat Reader install its Firefox/Mozilla plug-in, which has a memory leak. I recommend to remove it. To do so:
#---
rm -f /usr/lib/mozilla/plugins/nppdf.so
#---
Tuesday, November 20, 2007
How to get language switch in pidgin
To get language switch in pidgin you need a plugin called switch-spell, which does not come in a RPM package (as far as I know). This means that you need to get the sources (here, in download) and compile it. To make the job easier here goes the necessary packages:
dbus-devel
dbus-glib-devel
libpurple-devel
aspell-devel
gtkspell-devel
pidgin-devel
And the yum command:
#---
yum -y install \
dbus-devel \
dbus-glib-devel \
libpurple-devel \
aspell-devel \
gtkspell-devel \
pidgin-devel
#---
After that just extract the sources and compile:
#---
./configure
make && make install
#---
Have fun!
P.S.: Just remember the previous post, if you get a "fails sanity check" error.
dbus-devel
dbus-glib-devel
libpurple-devel
aspell-devel
gtkspell-devel
pidgin-devel
And the yum command:
#---
yum -y install \
dbus-devel \
dbus-glib-devel \
libpurple-devel \
aspell-devel \
gtkspell-devel \
pidgin-devel
#---
After that just extract the sources and compile:
#---
./configure
make && make install
#---
Have fun!
P.S.: Just remember the previous post, if you get a "fails sanity check" error.
Funny thing: "fails sanity check"
Ok that is a very funny error and I have never got it, until today. But why should I get such an error trying to compile something if I do have GCC and any other prereq whatsoever? The point is, and do not ask me why, GCC package does not requires glibc-headers. So you may get that following funny, and for me cryptic message, even though I have had "/lib/cpp" (go figure!):
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
Anyway, just install the package and everything will go as you expect.
#---
yum -y install glibc-headers
#---
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
Anyway, just install the package and everything will go as you expect.
#---
yum -y install glibc-headers
#---
Tuesday, November 13, 2007
Fedora 8 screw big time
For those who got the "Invalid Module Format" trying to install/configure any module after installing Fedora 8 here is why. (It affects VMware (version Workstation 6.0.2 build-59824) and VirtualBox (version 1.5.2) BIG TIME!)
1. You have installed "kernel-devel" afterwards using yum (that is what I used);
2. Fedora 8 install kernel.i586 and yum (version 3.2.7) kernel-devel.i686 (notice the difference in the architecture?);
3. You can NOT upgrade your kernel to a i686 version.
How do I fixed the problem?
1. Install the "kernel-xen" and boot your box with it;
2. Remove ALL kernel instances (NOT kernel-xen, which your are using now);
2.1. You will need to remove 2 more packages too:
rpm -e xorg-x11-drv-nouveau xorg-x11-drivers
rpm -e kernel.i586 kernel-devel
3. Re-install the kernel:
yum -y install kernel.i686 kernel-devel.i686 xorg-x11-drv-nouveau xorg-x11-drivers
4. Reboot with the new kernel
5. Recompile the modules or, in case of vmware and virtual box, setup:
vmware-config.pl
/etc/init.d/vboxdrv setup
6. Enjoy!
For those who got the "Invalid Module Format" trying to install/configure any module after installing Fedora 8 here is why. (It affects VMware (version Workstation 6.0.2 build-59824) and VirtualBox (version 1.5.2) BIG TIME!)
1. You have installed "kernel-devel" afterwards using yum (that is what I used);
2. Fedora 8 install kernel.i586 and yum (version 3.2.7) kernel-devel.i686 (notice the difference in the architecture?);
3. You can NOT upgrade your kernel to a i686 version.
How do I fixed the problem?
1. Install the "kernel-xen" and boot your box with it;
2. Remove ALL kernel instances (NOT kernel-xen, which your are using now);
2.1. You will need to remove 2 more packages too:
rpm -e xorg-x11-drv-nouveau xorg-x11-drivers
rpm -e kernel.i586 kernel-devel
3. Re-install the kernel:
yum -y install kernel.i686 kernel-devel.i686 xorg-x11-drv-nouveau xorg-x11-drivers
4. Reboot with the new kernel
5. Recompile the modules or, in case of vmware and virtual box, setup:
vmware-config.pl
/etc/init.d/vboxdrv setup
6. Enjoy!
Labels:
fedora8,
kernel,
virtualbox,
vmware,
yum
Thursday, June 14, 2007
[updated] Some life changing (g)VI(M) scripts
Ok first I need to say that I use gvim for both text, using LaTeX, and code, mainlly C/C++, writting. So the focus is on both aspects.
LaTeX:
. LaTeX-Suite: here and here
- ~/vimrc:
filetype plugin on
set grepprg=grep\ -nH\ $*
- Comments: it works only if you start vim with a ".tex" file.
. Instead of vimspell use the native VIM spell-checker (for VIM 7.0 or greater, Fedora 8 or greater).
- ~/vimrc:
nmap <F10> :setl spell spl=de_de<CR>
nmap <F11> :setl spell spl=en_gb<CR>
nmap <F12> :setl spell spl=<CR>
- Comments: the out-of-the-box VIM come just with the English US dictionary, so to add more dictionaries, with your special flavour, just execute manually (once per language) the fallowing command in VIM:
:setl spell spl=xx_xx
Where "xx_xx" is the language you want to use, for instance: pt_br, es_es, es_mx, en_gb, en_ca, de_de, de_ch, for Brazilian Portuguese, Spanish Spanish, Mexican Spanish, British English, Canadian English, German German, Switzer German.
The languages supported are all languages present in OpenOffice.
[DEPRECATED]
. vimspell: here
- ~/vimrc:
" VimSpell settings
highlight SpellErrors ctermfg=Red guifg=Red
\ cterm=underline gui=underline term=reverse
au VimEnter * SpellAutoEnable
let spell_update_time = 2000
" file types to allow correction on
let spell_auto_type = "all"
" on-the-fly type correction
let spell_insert_mode = 0
" which corrector to use
let spell_executable = "aspell"
" languages
let spell_language_list = "en_GB,de_DE,pt_BR"
let spell_auto_jump = 0
- Comments: It is a must for every one that writes something besides code without comments :-)
[DEPRECATED]
Programming:
. csupport: here, but usually already on vim/gvim package.
- ~/vimrc:
let g:C_AuthorName = 'Your name'
let g:C_Email = 'your.email@your.provider'
- Comments: It helps, A LOT!
. Tags menu: here
- ~/vimrc:
let Tmenu_ctags_cmd = '/usr/bin/ctags'
let Tmenu_max_submenu_items = 20
let Tmenu_max_tag_length = 10
let Tmenu_sort_type = "name"
- Comments: it creates, using gvim, a menu item called "Tags" with the current file tags.
. taglist: here
- ~/.vimrc:
nnoremap <silent> <F8> :TlistToggle<CR>
- Comments: This is THE killer tag browser and that map above makes it reachable by pressing <F8>. Check it out.
Related posts: gVim revisited.
LaTeX:
. LaTeX-Suite: here and here
- ~/vimrc:
filetype plugin on
set grepprg=grep\ -nH\ $*
- Comments: it works only if you start vim with a ".tex" file.
. Instead of vimspell use the native VIM spell-checker (for VIM 7.0 or greater, Fedora 8 or greater).
- ~/vimrc:
nmap <F10> :setl spell spl=de_de<CR>
nmap <F11> :setl spell spl=en_gb<CR>
nmap <F12> :setl spell spl=<CR>
- Comments: the out-of-the-box VIM come just with the English US dictionary, so to add more dictionaries, with your special flavour, just execute manually (once per language) the fallowing command in VIM:
:setl spell spl=xx_xx
Where "xx_xx" is the language you want to use, for instance: pt_br, es_es, es_mx, en_gb, en_ca, de_de, de_ch, for Brazilian Portuguese, Spanish Spanish, Mexican Spanish, British English, Canadian English, German German, Switzer German.
The languages supported are all languages present in OpenOffice.
[DEPRECATED]
. vimspell: here
- ~/vimrc:
" VimSpell settings
highlight SpellErrors ctermfg=Red guifg=Red
\ cterm=underline gui=underline term=reverse
au VimEnter * SpellAutoEnable
let spell_update_time = 2000
" file types to allow correction on
let spell_auto_type = "all"
" on-the-fly type correction
let spell_insert_mode = 0
" which corrector to use
let spell_executable = "aspell"
" languages
let spell_language_list = "en_GB,de_DE,pt_BR"
let spell_auto_jump = 0
- Comments: It is a must for every one that writes something besides code without comments :-)
[DEPRECATED]
Programming:
. csupport: here, but usually already on vim/gvim package.
- ~/vimrc:
let g:C_AuthorName = 'Your name'
let g:C_Email = 'your.email@your.provider'
- Comments: It helps, A LOT!
. Tags menu: here
- ~/vimrc:
let Tmenu_ctags_cmd = '/usr/bin/ctags'
let Tmenu_max_submenu_items = 20
let Tmenu_max_tag_length = 10
let Tmenu_sort_type = "name"
- Comments: it creates, using gvim, a menu item called "Tags" with the current file tags.
. taglist: here
- ~/.vimrc:
nnoremap <silent> <F8> :TlistToggle<CR>
- Comments: This is THE killer tag browser and that map above makes it reachable by pressing <F8>. Check it out.
Related posts: gVim revisited.
Sunday, June 10, 2007
Almost a year
That's it: this blog was dead for almost a year and is time to do some catch up, if I still have any reader. But anyway this is more for me than for you and I can also practice my English (as you can see need a lot of improvements).
Nevertheless here comes some things that I'm very excited about:
- CDT 4.0 RC3 for Eclipse 3.3
- Fedora 7
First why is CDT to be excited about, because it has a refactoring tool that actually works. Ok it is just a renaming tool, so what? That means that they are really into keeping track of your code, including documentation. So I believe that they are bringing all those cool refactoring tools, like move, in no time. Then a C/C++ programmer can have all those nice things about Java IDE in a C/C++ free IDE.
And what about Fedora 7, there is nothing REALLY new on it. Well, first they are free from the RH packaging tools, which means that hopefully there will be some Fedora "the way I wanted" 7. But here some critics about Fedora: they should be more careful about the RPMs, which have broken dependencies, like VLC. We are talking about VLC, which is a major end-user application. The new version has also some stability issues, specially xorg. But the new xorg is kicking asses!!! If you don't saw it, please DO.
The new xorg is already with the 3D Desktop concept in it. They must polish some rough edges, like maximizing, but it looks good, very good. It is a mixture of OSX (with that very nice+ behaviour) with 3D Desktop environment. But has I said, it needs some refinement, maybe on the next major upgrade.
Nevertheless here comes some things that I'm very excited about:
- CDT 4.0 RC3 for Eclipse 3.3
- Fedora 7
First why is CDT to be excited about, because it has a refactoring tool that actually works. Ok it is just a renaming tool, so what? That means that they are really into keeping track of your code, including documentation. So I believe that they are bringing all those cool refactoring tools, like move, in no time. Then a C/C++ programmer can have all those nice things about Java IDE in a C/C++ free IDE.
And what about Fedora 7, there is nothing REALLY new on it. Well, first they are free from the RH packaging tools, which means that hopefully there will be some Fedora "the way I wanted" 7. But here some critics about Fedora: they should be more careful about the RPMs, which have broken dependencies, like VLC. We are talking about VLC, which is a major end-user application. The new version has also some stability issues, specially xorg. But the new xorg is kicking asses!!! If you don't saw it, please DO.
The new xorg is already with the 3D Desktop concept in it. They must polish some rough edges, like maximizing, but it looks good, very good. It is a mixture of OSX (with that very nice
Thursday, June 22, 2006
Flash and FC5
To make the flash plugin works on Fedora Core 5 I sugest the following link:
http://macromedia.mplug.org/
Where you get the RPM: flash-plugin-7.0.63-1.i386.rpm
And after installing it, as root, run:
/usr/lib/flash-plugin/setup
http://macromedia.mplug.org/
Where you get the RPM: flash-plugin-7.0.63-1.i386.rpm
And after installing it, as root, run:
/usr/lib/flash-plugin/setup
Sunday, February 05, 2006
Kernel 2.6.15-1.1830_FC4 fixes DMA problem and new updated ethernet problems
The recent kernel, 2.6.15-1.1830_FC4, fixes the DMA problem on SiS 965 with driver SiS 5513. And the recent updates, I couldn't detect what was it, fixed the problems with SiS190 Ethernet controller.
Maibe I need a new hardware to find new problems :-).
Maibe I need a new hardware to find new problems :-).
Sunday, January 08, 2006
My patches to kernel 2.6.14-1.1656_FC4, try 1
My patches to kernel 2.6.14-1.1656_FC4, try 1
That is a patch to allow:
DMA Support to Southbridge SiS 965 with driver SiS 5513.
NTFS Read support.
Fix SiS190 Ethernet controller, [sis190].
Make SATA SiS, [sata_sis], part of kernel, instead of a module.
Supported (tested) kernels:
2.6.14-1.1656_FC4
Approach:
Apply all patches that I published, and apply to that situation.
Remarks:
SiS 5513, try 3
SiS 190, try 3
1. Get and install the kernel source that applies:
2.6.14-1.1656_FC4
2. Create the patch files mentioned on the remarks.
3. Create the script to change the defaults values on kernel configuration, called [/usr/src/redhat/SOURCES/make-config.sh]:
#!/bin/bash
# Please note that this script do NOT check if the [.config] was already patched
#
find /usr/src/redhat/SOURCES/ -name "*.config" -print | while read FILE
do
mv ${FILE} ${FILE}.orig
cat ${FILE}.orig | sed -e "s/\(CONFIG_SCSI=\)./\1y/" -e "s/\(CONFIG_SCSI_SATA_SIS=\).*/\1y/" -e "s/\(CONFIG_SIS190=\)./\1m/" -e "s/\(CONFIG_BLK_DEV_SIS5513=\)./\1y/" -e "s/# CONFIG_NTFS_FS is not set/CONFIG_NTFS_FS=m\n# CONFIG_NTFS_DEBUG is not set\n# CONFIG_NTFS_RW is not set\n/" > ${FILE}
done
4. Create the kernel spec patch, called [/usr/src/redhat/SPEC/kernel-2.6.spec.2.6.14.1-1656.patch]:
--- a/kernel-2.6.spec 2006-01-08 12:26:50.000000000 +0100
+++ b/kernel-2.6.spec 2006-01-08 12:30:37.000000000 +0100
@@ -19,7 +19,8 @@ Summary: The Linux kernel (the core of t
%define sublevel 14
%define kversion 2.6.%{sublevel}
%define rpmversion 2.6.%{sublevel}
-%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+#%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+%define rhbsys sis
%define release %(R="$Revision: 1.1656 $"; RR="${R##: }"; echo ${RR%%?})_FC4%{rhbsys}
%define signmodules 0
%define make_target bzImage
@@ -307,6 +308,7 @@ Patch1301: linux-2.6-net-sundance-ip100A
Patch1302: linux-2.6-net-atm-lanai-nodev-rmmod.patch
Patch1303: linux-2.6-net-acenic-use-after-free.patch
Patch1304: linux-2.6-net-sk98lin-vpd.patch
+Patch1305: linux-2.6-sis190.patch
Patch1400: linux-2.6-pcmcia-disable-warning.patch
@@ -348,6 +350,8 @@ Patch1771: linux-2.6-sata-promise-pata-p
Patch1782: linux-2.6-selinux-mls-compat.patch
Patch1783: linux-2.6-usbhid-wacom.patch
Patch1790: linux-2.6-block-reduce-stack.patch
+Patch1795: linux-2.6-pci_ids.patch
+Patch1796: linux-2.6-sis5513.patch
# ACPI patches.
Patch1800: linux-2.6-acpi-enable-ecburst.patch
@@ -728,6 +732,8 @@ cd linux-%{kversion}
%patch1303 -p1
# sk98lin vpd fix
%patch1304 -p1
+# sis190 fix hangup
+%patch1305 -p1
# disable pcmcia warnings
%patch1400 -p1
@@ -803,6 +809,9 @@ cd linux-%{kversion}
%patch1783 -p1
# Decrease stack usage in block layer
%patch1790 -p1
+# Fix DMA on SiS965 southbridge with SiS5513 driver
+%patch1795 -p1
+%patch1796 -p1
# ACPI patches.
# Enable EC burst
5. Execute the script to change kernel defaults:
###
cd /usr/src/redhat/SOURCES/
sh ./make-config.sh
###
6. Apply the kernel spec patch:
###
cd /usr/src/redhat/SPECS/
patch -p1 kernel-2.6.spec.2.6.14.1-1656.patch
###
7. Build the rpms:
###
rpmbuild -bb --target=i686 kernel-2.6.spec
###
Please always address to my hardware, os and kernel patching general procedures before posting a question.
That is a patch to allow:
DMA Support to Southbridge SiS 965 with driver SiS 5513.
NTFS Read support.
Fix SiS190 Ethernet controller, [sis190].
Make SATA SiS, [sata_sis], part of kernel, instead of a module.
Supported (tested) kernels:
2.6.14-1.1656_FC4
Approach:
Apply all patches that I published, and apply to that situation.
Remarks:
SiS 5513, try 3
SiS 190, try 3
1. Get and install the kernel source that applies:
2.6.14-1.1656_FC4
2. Create the patch files mentioned on the remarks.
3. Create the script to change the defaults values on kernel configuration, called [/usr/src/redhat/SOURCES/make-config.sh]:
#!/bin/bash
# Please note that this script do NOT check if the [.config] was already patched
#
find /usr/src/redhat/SOURCES/ -name "*.config" -print | while read FILE
do
mv ${FILE} ${FILE}.orig
cat ${FILE}.orig | sed -e "s/\(CONFIG_SCSI=\)./\1y/" -e "s/\(CONFIG_SCSI_SATA_SIS=\).*/\1y/" -e "s/\(CONFIG_SIS190=\)./\1m/" -e "s/\(CONFIG_BLK_DEV_SIS5513=\)./\1y/" -e "s/# CONFIG_NTFS_FS is not set/CONFIG_NTFS_FS=m\n# CONFIG_NTFS_DEBUG is not set\n# CONFIG_NTFS_RW is not set\n/" > ${FILE}
done
4. Create the kernel spec patch, called [/usr/src/redhat/SPEC/kernel-2.6.spec.2.6.14.1-1656.patch]:
--- a/kernel-2.6.spec 2006-01-08 12:26:50.000000000 +0100
+++ b/kernel-2.6.spec 2006-01-08 12:30:37.000000000 +0100
@@ -19,7 +19,8 @@ Summary: The Linux kernel (the core of t
%define sublevel 14
%define kversion 2.6.%{sublevel}
%define rpmversion 2.6.%{sublevel}
-%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+#%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+%define rhbsys sis
%define release %(R="$Revision: 1.1656 $"; RR="${R##: }"; echo ${RR%%?})_FC4%{rhbsys}
%define signmodules 0
%define make_target bzImage
@@ -307,6 +308,7 @@ Patch1301: linux-2.6-net-sundance-ip100A
Patch1302: linux-2.6-net-atm-lanai-nodev-rmmod.patch
Patch1303: linux-2.6-net-acenic-use-after-free.patch
Patch1304: linux-2.6-net-sk98lin-vpd.patch
+Patch1305: linux-2.6-sis190.patch
Patch1400: linux-2.6-pcmcia-disable-warning.patch
@@ -348,6 +350,8 @@ Patch1771: linux-2.6-sata-promise-pata-p
Patch1782: linux-2.6-selinux-mls-compat.patch
Patch1783: linux-2.6-usbhid-wacom.patch
Patch1790: linux-2.6-block-reduce-stack.patch
+Patch1795: linux-2.6-pci_ids.patch
+Patch1796: linux-2.6-sis5513.patch
# ACPI patches.
Patch1800: linux-2.6-acpi-enable-ecburst.patch
@@ -728,6 +732,8 @@ cd linux-%{kversion}
%patch1303 -p1
# sk98lin vpd fix
%patch1304 -p1
+# sis190 fix hangup
+%patch1305 -p1
# disable pcmcia warnings
%patch1400 -p1
@@ -803,6 +809,9 @@ cd linux-%{kversion}
%patch1783 -p1
# Decrease stack usage in block layer
%patch1790 -p1
+# Fix DMA on SiS965 southbridge with SiS5513 driver
+%patch1795 -p1
+%patch1796 -p1
# ACPI patches.
# Enable EC burst
5. Execute the script to change kernel defaults:
###
cd /usr/src/redhat/SOURCES/
sh ./make-config.sh
###
6. Apply the kernel spec patch:
###
cd /usr/src/redhat/SPECS/
patch -p1 kernel-2.6.spec.2.6.14.1-1656.patch
###
7. Build the rpms:
###
rpmbuild -bb --target=i686 kernel-2.6.spec
###
Please always address to my hardware, os and kernel patching general procedures before posting a question.
Wednesday, January 04, 2006
My patches to kernel 2.6.14-1.1653_FC4, try 2
My patches to kernel 2.6.14-1.1653_FC4, try 2
Apologise:
I apologise for my last post where I say that was everything alright, I was wrong.
That is a patch to allow:
DMA Support to Southbridge SiS 965 with driver SiS 5513.
NTFS Read support.
Fix SiS190 Ethernet controller, [sis190].
Make SATA SiS, [sata_sis], part of kernel, instead of a module.
Supported (tested) kernels:
2.6.14-1.1653_FC4
Approach:
Apply all patches that I published, and apply to that situation.
Remarks:
SiS 5513, try 3
SiS 190, try 3
1. Get and install the kernel source that applies:
2.6.14-1.1653_FC4
2. Create the patch files mentioned on the remarks.
3. Create the script to change the defaults values on kernel configuration, called [/usr/src/redhat/SOURCES/make-config.sh]:
#!/bin/bash
# Please note that this script do NOT check if the [.config] was already patched
#
find /usr/src/redhat/SOURCES/ -name "*.config" -print | while read FILE
do
mv ${FILE} ${FILE}.orig
cat ${FILE}.orig | sed -e "s/\(CONFIG_SCSI=\)./\1y/" -e "s/\(CONFIG_SCSI_SATA_SIS=\).*/\1y/" -e "s/\(CONFIG_SIS190=\)./\1m/" -e "s/\(CONFIG_BLK_DEV_SIS5513=\)./\1y/" -e "s/# CONFIG_NTFS_FS is not set/CONFIG_NTFS_FS=m\n# CONFIG_NTFS_DEBUG is not set\n# CONFIG_NTFS_RW is not set\n/" > ${FILE}
done
4. Create the kernel spec patch, called [/usr/src/redhat/SPEC/kernel-2.6.spec.2.6.14.1-1653.patch]:
--- kernel-2.6.spec 2006-01-04 19:27:27.000000000 +0100
+++ kernel-2.6.spec.2.6.14.1-1653.orig 2005-12-26 09:04:38.000000000 +0100
@@ -19,8 +19,7 @@ Summary: The Linux kernel (the core of t
%define sublevel 14
%define kversion 2.6.%{sublevel}
%define rpmversion 2.6.%{sublevel}
-#%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
-%define rhbsys sis
+%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
%define release %(R="$Revision: 1.1653 $"; RR="${R##: }"; echo ${RR%%?})_FC4%{rhbsys}
%define signmodules 0
%define make_target bzImage
@@ -308,7 +307,6 @@ Patch1301: linux-2.6-net-sundance-ip100A
Patch1302: linux-2.6-net-atm-lanai-nodev-rmmod.patch
Patch1303: linux-2.6-net-acenic-use-after-free.patch
Patch1304: linux-2.6-net-sk98lin-vpd.patch
-Patch1305: linux-2.6-sis190.patch
Patch1400: linux-2.6-pcmcia-disable-warning.patch
@@ -354,8 +352,7 @@ Patch1771: linux-2.6-sata-promise-pata-p
Patch1780: linux-2.6-net-bonding-feature-consolidation.patch
Patch1781: linux-2.6-net-bridge-feature-consolidation.patch
Patch1782: linux-2.6-selinux-mls-compat.patch
-Patch1783: linux-2.6-pci_ids.patch
-Patch1784: linux-2.6-sis5513.patch
+
# ACPI patches.
Patch1800: linux-2.6-acpi-enable-ecburst.patch
@@ -735,8 +732,6 @@ cd linux-%{kversion}
%patch1303 -p1
# sk98lin vpd fix
%patch1304 -p1
-# sis190 fix
-%patch1305 -p1
# disable pcmcia warnings
%patch1400 -p1
@@ -818,9 +813,6 @@ cd linux-%{kversion}
%patch1780 -p1
%patch1781 -p1
%patch1782 -p1
-# Fix DMA on SiS965 southbridge with SiS5513 driver
-%patch1783 -p1
-%patch1784 -p1
# ACPI patches.
# Enable EC burst
5. Execute the script to change kernel defaults:
###
cd /usr/src/redhat/SOURCES/
sh ./make-config.sh
###
6. Apply the kernel spec patch:
###
cd /usr/src/redhat/SPECS/
patch -p1 kernel-2.6.spec.2.6.14.1-1653.patch
###
7. Build the rpms:
###
rpmbuild -bb --target=i686 kernel-2.6.spec
###
Please always address to my hardware, os and kernel patching general procedures before posting a question.
Apologise:
I apologise for my last post where I say that was everything alright, I was wrong.
That is a patch to allow:
DMA Support to Southbridge SiS 965 with driver SiS 5513.
NTFS Read support.
Fix SiS190 Ethernet controller, [sis190].
Make SATA SiS, [sata_sis], part of kernel, instead of a module.
Supported (tested) kernels:
2.6.14-1.1653_FC4
Approach:
Apply all patches that I published, and apply to that situation.
Remarks:
SiS 5513, try 3
SiS 190, try 3
1. Get and install the kernel source that applies:
2.6.14-1.1653_FC4
2. Create the patch files mentioned on the remarks.
3. Create the script to change the defaults values on kernel configuration, called [/usr/src/redhat/SOURCES/make-config.sh]:
#!/bin/bash
# Please note that this script do NOT check if the [.config] was already patched
#
find /usr/src/redhat/SOURCES/ -name "*.config" -print | while read FILE
do
mv ${FILE} ${FILE}.orig
cat ${FILE}.orig | sed -e "s/\(CONFIG_SCSI=\)./\1y/" -e "s/\(CONFIG_SCSI_SATA_SIS=\).*/\1y/" -e "s/\(CONFIG_SIS190=\)./\1m/" -e "s/\(CONFIG_BLK_DEV_SIS5513=\)./\1y/" -e "s/# CONFIG_NTFS_FS is not set/CONFIG_NTFS_FS=m\n# CONFIG_NTFS_DEBUG is not set\n# CONFIG_NTFS_RW is not set\n/" > ${FILE}
done
4. Create the kernel spec patch, called [/usr/src/redhat/SPEC/kernel-2.6.spec.2.6.14.1-1653.patch]:
--- kernel-2.6.spec 2006-01-04 19:27:27.000000000 +0100
+++ kernel-2.6.spec.2.6.14.1-1653.orig 2005-12-26 09:04:38.000000000 +0100
@@ -19,8 +19,7 @@ Summary: The Linux kernel (the core of t
%define sublevel 14
%define kversion 2.6.%{sublevel}
%define rpmversion 2.6.%{sublevel}
-#%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
-%define rhbsys sis
+%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
%define release %(R="$Revision: 1.1653 $"; RR="${R##: }"; echo ${RR%%?})_FC4%{rhbsys}
%define signmodules 0
%define make_target bzImage
@@ -308,7 +307,6 @@ Patch1301: linux-2.6-net-sundance-ip100A
Patch1302: linux-2.6-net-atm-lanai-nodev-rmmod.patch
Patch1303: linux-2.6-net-acenic-use-after-free.patch
Patch1304: linux-2.6-net-sk98lin-vpd.patch
-Patch1305: linux-2.6-sis190.patch
Patch1400: linux-2.6-pcmcia-disable-warning.patch
@@ -354,8 +352,7 @@ Patch1771: linux-2.6-sata-promise-pata-p
Patch1780: linux-2.6-net-bonding-feature-consolidation.patch
Patch1781: linux-2.6-net-bridge-feature-consolidation.patch
Patch1782: linux-2.6-selinux-mls-compat.patch
-Patch1783: linux-2.6-pci_ids.patch
-Patch1784: linux-2.6-sis5513.patch
+
# ACPI patches.
Patch1800: linux-2.6-acpi-enable-ecburst.patch
@@ -735,8 +732,6 @@ cd linux-%{kversion}
%patch1303 -p1
# sk98lin vpd fix
%patch1304 -p1
-# sis190 fix
-%patch1305 -p1
# disable pcmcia warnings
%patch1400 -p1
@@ -818,9 +813,6 @@ cd linux-%{kversion}
%patch1780 -p1
%patch1781 -p1
%patch1782 -p1
-# Fix DMA on SiS965 southbridge with SiS5513 driver
-%patch1783 -p1
-%patch1784 -p1
# ACPI patches.
# Enable EC burst
5. Execute the script to change kernel defaults:
###
cd /usr/src/redhat/SOURCES/
sh ./make-config.sh
###
6. Apply the kernel spec patch:
###
cd /usr/src/redhat/SPECS/
patch -p1 kernel-2.6.spec.2.6.14.1-1653.patch
###
7. Build the rpms:
###
rpmbuild -bb --target=i686 kernel-2.6.spec
###
Please always address to my hardware, os and kernel patching general procedures before posting a question.
SiS Ethernet 0190 [sis190] patch, try 3
SiS Ethernet 0190 [sis190] patch, try 3
Supported (tested) kernels:
2.6.14-1.1653_FC4
2.6.14-1.1656_FC4
Problem:
On original Fedora kernel the module for SiS Ethernet controller model 190/191 hang the system if there is no response on the network, like an DHPC server failure.
Bugzilla:
Number 176969 at http://bugzilla.redhat.com/
1. You need to disable network and reboot, to avoid system hang:
chkconfig --level 345 network off
2. Get and install the kernel source that applies:
3. Unpack the kernel:
cd /usr/src/redhat/SPEC
rpmbuild -bp --target=i686 kernel-2.6.spec
4. Get the SiS driver for Linux
To take the driver by yourself go to SiS download center and chose:
Network Driver -> SiS190 Gigabit & SiS191 LAN -> Linux -> GO
Than proceed to the download of "SiS190 / SiS191 Gigabit LAN / LAN driver for Linux kernal 2.6.9 or later."
5. Extract the file [sis190.c] and make a patch from it:
tar -vxzf sis190191_linux.tar.gz -C /tmp/ # file from SiS
mkdir -p /tmp/a/drivers/net/
mkdir -p /tmp/b/drivers/net/
cp /tmp/sis190_20041220/sis190.c /tmp/b/drivers/net/
cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.c /tmp/a/drivers/net
cd /tmp/
diff -Nup a/drivers/net/sis190.c b/drivers/net/sis190.c > /usr/src/redhat/SOURCES/linux-2.6-sis190.patch # create a patch file for later
cp /tmp/b/drivers/net/sis190.c /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/ # this will patch the actual expansion to make a new module right now.
6. Prepare the kernel to compile the modules:
cd /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/
cp /usr/src/redhat/SOURCES/kernel-2.6.14-i686.config .config # for normal i686
# cp /usr/src/redhat/SOURCES/kernel-2.6.14-i686-smp.config .config # for i686 SMP
5. Compile the modules and copy override the old driver
cd /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/
make modules
cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.ko /lib/modules/2.6.14-1.1644_FC4/kernel/drivers/net/sis190.ko # for normal i686
depmode -eaF /boot/System.map-2.6.14-1.1653_FC4 2.6.14-1.1644_FC4 # for normal i686
#cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.ko /lib/modules/2.6.14-1.1644_FC4smp/kernel/drivers/net/sis190.ko # for i686 SMP
#depmode -eaF /boot/System.map-2.6.14-1.1644_FC4smp 2.6.14-1.1653_FC4smp # for i686 SMP
6. Reenable the network and reboot
chkconfig --level 345 network on
shutdown -r now
Please always address to my hardware, os and kernel patching general procedures before posting a question.
Supported (tested) kernels:
2.6.14-1.1653_FC4
2.6.14-1.1656_FC4
Problem:
On original Fedora kernel the module for SiS Ethernet controller model 190/191 hang the system if there is no response on the network, like an DHPC server failure.
Bugzilla:
Number 176969 at http://bugzilla.redhat.com/
1. You need to disable network and reboot, to avoid system hang:
chkconfig --level 345 network off
2. Get and install the kernel source that applies:
3. Unpack the kernel:
cd /usr/src/redhat/SPEC
rpmbuild -bp --target=i686 kernel-2.6.spec
4. Get the SiS driver for Linux
To take the driver by yourself go to SiS download center and chose:
Network Driver -> SiS190 Gigabit & SiS191 LAN -> Linux -> GO
Than proceed to the download of "SiS190 / SiS191 Gigabit LAN / LAN driver for Linux kernal 2.6.9 or later."
5. Extract the file [sis190.c] and make a patch from it:
tar -vxzf sis190191_linux.tar.gz -C /tmp/ # file from SiS
mkdir -p /tmp/a/drivers/net/
mkdir -p /tmp/b/drivers/net/
cp /tmp/sis190_20041220/sis190.c /tmp/b/drivers/net/
cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.c /tmp/a/drivers/net
cd /tmp/
diff -Nup a/drivers/net/sis190.c b/drivers/net/sis190.c > /usr/src/redhat/SOURCES/linux-2.6-sis190.patch # create a patch file for later
cp /tmp/b/drivers/net/sis190.c /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/ # this will patch the actual expansion to make a new module right now.
6. Prepare the kernel to compile the modules:
cd /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/
cp /usr/src/redhat/SOURCES/kernel-2.6.14-i686.config .config # for normal i686
# cp /usr/src/redhat/SOURCES/kernel-2.6.14-i686-smp.config .config # for i686 SMP
5. Compile the modules and copy override the old driver
cd /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/
make modules
cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.ko /lib/modules/2.6.14-1.1644_FC4/kernel/drivers/net/sis190.ko # for normal i686
depmode -eaF /boot/System.map-2.6.14-1.1653_FC4 2.6.14-1.1644_FC4 # for normal i686
#cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.ko /lib/modules/2.6.14-1.1644_FC4smp/kernel/drivers/net/sis190.ko # for i686 SMP
#depmode -eaF /boot/System.map-2.6.14-1.1644_FC4smp 2.6.14-1.1653_FC4smp # for i686 SMP
6. Reenable the network and reboot
chkconfig --level 345 network on
shutdown -r now
Please always address to my hardware, os and kernel patching general procedures before posting a question.
Monday, December 26, 2005
My patches to kernel 2.6.14-1.1653_FC4
My patches to kernel 2.6.14-1.1653_FC4
Apologise:
I apologise for my last post where I say that was everything alright, I was wrong.
That is a patch to allow:
DMA Support to Southbridge SiS 965 with driver SiS 5513.
NTFS Read support.
Make SiS190 Ethernet controller, [sis190], part of kernel, instead of a module.
Make SATASiS, [sata_sis], part of kernel, instead of a module.
Supported (tested) kernels:
2.6.14-1.1653_FC4
Approach:
Apply all patches that I published, and apply to that situation.
Remarks:
SiS 5513, try 3
1. Get and install the kernel source that applies:
2.6.14-1.1653_FC4
2. Create the patch files mentioned on the remarks.
3. Create the script to change the defaults values on kernel configuration, called [/usr/src/redhat/SOURCES/make-config.sh]:
#!/bin/bash
# Please note that this script do NOT check if the [.config] was already patched
#
find /usr/src/redhat/SOURCES/ -name "*.config" -print | while read FILE
do
mv ${FILE} ${FILE}.orig
cat ${FILE}.orig | sed -e "s/\(CONFIG_SCSI=\)./\1y/" -e "s/\(CONFIG_SCSI_SATA_SIS=\).*/\1y/" -e "s/\(CONFIG_SIS190=\)./\1y/" -e "s/\(CONFIG_BLK_DEV_SIS5513=\)./\1y/" -e "s/# CONFIG_NTFS_FS is not set/CONFIG_NTFS_FS=m\n# CONFIG_NTFS_DEBUG is not set\n# CONFIG_NTFS_RW is not set\n/" > ${FILE}
done
4. Create the kernel spec patch, called [/usr/src/redhat/SPEC/kernel-2.6.spec.2.6.14.1-1653.patch]:
--- kernel-2.6.spec.orig 2005-12-26 09:04:38.000000000 +0100
+++ kernel-2.6.spec 2005-12-26 09:08:49.000000000 +0100
@@ -19,7 +19,8 @@ Summary: The Linux kernel (the core of t
%define sublevel 14
%define kversion 2.6.%{sublevel}
%define rpmversion 2.6.%{sublevel}
-%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+#%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+%define rhbsys sis
%define release %(R="$Revision: 1.1653 $"; RR="${R##: }"; echo ${RR%%?})_FC4%{rhbsys}
%define signmodules 0
%define make_target bzImage
@@ -352,6 +353,8 @@ Patch1771: linux-2.6-sata-promise-pata-p
Patch1780: linux-2.6-net-bonding-feature-consolidation.patch
Patch1781: linux-2.6-net-bridge-feature-consolidation.patch
Patch1782: linux-2.6-selinux-mls-compat.patch
+Patch1783: linux-2.6-pci_ids.patch
+Patch1784: linux-2.6-sis5513.patch
# ACPI patches.
@@ -813,6 +816,9 @@ cd linux-%{kversion}
%patch1780 -p1
%patch1781 -p1
%patch1782 -p1
+# Fix DMA on SiS965 southbridge with SiS5513 driver
+%patch1783 -p1
+%patch1784 -p1
# ACPI patches.
# Enable EC burst
5. Execute the script to change kernel defaults:
###
cd /usr/src/redhat/SOURCES/
sh ./make-config.sh
###
6. Apply the kernel spec patch:
###
cd /usr/src/redhat/SPECS/
patch -p1 kernel-2.6.spec.2.6.14.1-1653.patch
###
7. Build the rpms:
###
rpmbuild -bb --target=i686 kernel-2.6.spec
###
Please always address to my hardware, os and kernel patching general procedures before posting a question.
Apologise:
I apologise for my last post where I say that was everything alright, I was wrong.
That is a patch to allow:
DMA Support to Southbridge SiS 965 with driver SiS 5513.
NTFS Read support.
Make SiS190 Ethernet controller, [sis190], part of kernel, instead of a module.
Make SATASiS, [sata_sis], part of kernel, instead of a module.
Supported (tested) kernels:
2.6.14-1.1653_FC4
Approach:
Apply all patches that I published, and apply to that situation.
Remarks:
SiS 5513, try 3
1. Get and install the kernel source that applies:
2.6.14-1.1653_FC4
2. Create the patch files mentioned on the remarks.
3. Create the script to change the defaults values on kernel configuration, called [/usr/src/redhat/SOURCES/make-config.sh]:
#!/bin/bash
# Please note that this script do NOT check if the [.config] was already patched
#
find /usr/src/redhat/SOURCES/ -name "*.config" -print | while read FILE
do
mv ${FILE} ${FILE}.orig
cat ${FILE}.orig | sed -e "s/\(CONFIG_SCSI=\)./\1y/" -e "s/\(CONFIG_SCSI_SATA_SIS=\).*/\1y/" -e "s/\(CONFIG_SIS190=\)./\1y/" -e "s/\(CONFIG_BLK_DEV_SIS5513=\)./\1y/" -e "s/# CONFIG_NTFS_FS is not set/CONFIG_NTFS_FS=m\n# CONFIG_NTFS_DEBUG is not set\n# CONFIG_NTFS_RW is not set\n/" > ${FILE}
done
4. Create the kernel spec patch, called [/usr/src/redhat/SPEC/kernel-2.6.spec.2.6.14.1-1653.patch]:
--- kernel-2.6.spec.orig 2005-12-26 09:04:38.000000000 +0100
+++ kernel-2.6.spec 2005-12-26 09:08:49.000000000 +0100
@@ -19,7 +19,8 @@ Summary: The Linux kernel (the core of t
%define sublevel 14
%define kversion 2.6.%{sublevel}
%define rpmversion 2.6.%{sublevel}
-%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+#%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+%define rhbsys sis
%define release %(R="$Revision: 1.1653 $"; RR="${R##: }"; echo ${RR%%?})_FC4%{rhbsys}
%define signmodules 0
%define make_target bzImage
@@ -352,6 +353,8 @@ Patch1771: linux-2.6-sata-promise-pata-p
Patch1780: linux-2.6-net-bonding-feature-consolidation.patch
Patch1781: linux-2.6-net-bridge-feature-consolidation.patch
Patch1782: linux-2.6-selinux-mls-compat.patch
+Patch1783: linux-2.6-pci_ids.patch
+Patch1784: linux-2.6-sis5513.patch
# ACPI patches.
@@ -813,6 +816,9 @@ cd linux-%{kversion}
%patch1780 -p1
%patch1781 -p1
%patch1782 -p1
+# Fix DMA on SiS965 southbridge with SiS5513 driver
+%patch1783 -p1
+%patch1784 -p1
# ACPI patches.
# Enable EC burst
5. Execute the script to change kernel defaults:
###
cd /usr/src/redhat/SOURCES/
sh ./make-config.sh
###
6. Apply the kernel spec patch:
###
cd /usr/src/redhat/SPECS/
patch -p1 kernel-2.6.spec.2.6.14.1-1653.patch
###
7. Build the rpms:
###
rpmbuild -bb --target=i686 kernel-2.6.spec
###
Please always address to my hardware, os and kernel patching general procedures before posting a question.
SiS IDE Controller 5513 [sis5513] with Southbridge SiS 965 patch, try 3
SiS IDE Controller 5513 [sis5513] with Southbridge SiS 965 patch, try 3
Supported (tested) kernels:
2.6.14-1.1653_FC4
2.6.14-1.1656_FC4
Problem:
On original Fedora kernel there is no support to DMA on the SiS IDE controller model 5513 with Southbridge SiS model 965.
Bugzilla:
Number 176560 at http://bugzilla.redhat.com/
Inspired on:
http://lkml.org/lkml/2005/10/5/293
Approach:
Modify the module source to recognise the controller hardware.
In this case the south bridge controller: SiS965.
Remarks:
RPM kernel spec file part will be covered on the kernel specific part.
1. Get and install the kernel source that applies:
2. Patch to the file [pci_ids.h], at [/usr/src/redhat/SOURCES/linux-2.6-pci_ids.patch]:
--- a/include/linux/pci_ids.h 2005-12-26 09:00:09.000000000 +0100
+++ b/include/linux/pci_ids.h 2005-12-26 09:00:27.000000000 +0100
@@ -672,6 +672,7 @@
#define PCI_DEVICE_ID_SI_961 0x0961
#define PCI_DEVICE_ID_SI_962 0x0962
#define PCI_DEVICE_ID_SI_963 0x0963
+#define PCI_DEVICE_ID_SI_965 0x0965
#define PCI_DEVICE_ID_SI_5107 0x5107
#define PCI_DEVICE_ID_SI_5300 0x5300
#define PCI_DEVICE_ID_SI_5511 0x5511
3. Patch to the file [sis5513.c], at [/usr/src/redhat/SOURCES/linux-2.6-sis5513.patch]:
--- a/drivers/ide/pci/sis5513.c 2005-12-26 08:59:29.000000000 +0100
+++ b/drivers/ide/pci/sis5513.c 2005-12-26 09:02:44.000000000 +0100
@@ -20,6 +20,7 @@
* ATA16/33 support from specs
* ATA133 support for SiS961/962 by L.C. Chang
* ATA133 961/962/963 fixes by Vojtech Pavlik
+ * ATA133 inspired on http://lkml.org/lkml/2005/10/5/293
*
* Documentation:
* SiS chipset documentation available under NDA to companies only
@@ -74,7 +75,7 @@
#define ATA_100a 0x04 // SiS730/SiS550 is ATA100 with ATA66 layout
#define ATA_100 0x05
#define ATA_133a 0x06 // SiS961b with 133 support
-#define ATA_133 0x07 // SiS962/963
+#define ATA_133 0x07 // SiS962/963/965
static u8 chipset_family;
@@ -87,6 +88,8 @@ static const struct {
u8 chipset_family;
u8 flags;
} SiSHostChipInfo[] = {
+ { "SiS965", PCI_DEVICE_ID_SI_965, ATA_133 },
+
{ "SiS745", PCI_DEVICE_ID_SI_745, ATA_100 },
{ "SiS735", PCI_DEVICE_ID_SI_735, ATA_100 },
{ "SiS733", PCI_DEVICE_ID_SI_733, ATA_100 },
Supported (tested) kernels:
2.6.14-1.1653_FC4
2.6.14-1.1656_FC4
Problem:
On original Fedora kernel there is no support to DMA on the SiS IDE controller model 5513 with Southbridge SiS model 965.
Bugzilla:
Number 176560 at http://bugzilla.redhat.com/
Inspired on:
http://lkml.org/lkml/2005/10/5/293
Approach:
Modify the module source to recognise the controller hardware.
In this case the south bridge controller: SiS965.
Remarks:
RPM kernel spec file part will be covered on the kernel specific part.
1. Get and install the kernel source that applies:
2. Patch to the file [pci_ids.h], at [/usr/src/redhat/SOURCES/linux-2.6-pci_ids.patch]:
--- a/include/linux/pci_ids.h 2005-12-26 09:00:09.000000000 +0100
+++ b/include/linux/pci_ids.h 2005-12-26 09:00:27.000000000 +0100
@@ -672,6 +672,7 @@
#define PCI_DEVICE_ID_SI_961 0x0961
#define PCI_DEVICE_ID_SI_962 0x0962
#define PCI_DEVICE_ID_SI_963 0x0963
+#define PCI_DEVICE_ID_SI_965 0x0965
#define PCI_DEVICE_ID_SI_5107 0x5107
#define PCI_DEVICE_ID_SI_5300 0x5300
#define PCI_DEVICE_ID_SI_5511 0x5511
3. Patch to the file [sis5513.c], at [/usr/src/redhat/SOURCES/linux-2.6-sis5513.patch]:
--- a/drivers/ide/pci/sis5513.c 2005-12-26 08:59:29.000000000 +0100
+++ b/drivers/ide/pci/sis5513.c 2005-12-26 09:02:44.000000000 +0100
@@ -20,6 +20,7 @@
* ATA16/33 support from specs
* ATA133 support for SiS961/962 by L.C. Chang
* ATA133 961/962/963 fixes by Vojtech Pavlik
+ * ATA133 inspired on http://lkml.org/lkml/2005/10/5/293
*
* Documentation:
* SiS chipset documentation available under NDA to companies only
@@ -74,7 +75,7 @@
#define ATA_100a 0x04 // SiS730/SiS550 is ATA100 with ATA66 layout
#define ATA_100 0x05
#define ATA_133a 0x06 // SiS961b with 133 support
-#define ATA_133 0x07 // SiS962/963
+#define ATA_133 0x07 // SiS962/963/965
static u8 chipset_family;
@@ -87,6 +88,8 @@ static const struct {
u8 chipset_family;
u8 flags;
} SiSHostChipInfo[] = {
+ { "SiS965", PCI_DEVICE_ID_SI_965, ATA_133 },
+
{ "SiS745", PCI_DEVICE_ID_SI_745, ATA_100 },
{ "SiS735", PCI_DEVICE_ID_SI_735, ATA_100 },
{ "SiS733", PCI_DEVICE_ID_SI_733, ATA_100 },
Thursday, December 15, 2005
New kernel 2.6.14-1.1653_FC4 fixes all
Ok the new kernel 2.6.14-1.1653_FC4 fixes all problems regarding my hardware: it has boot support to SiS182, module [sata_sis], and also does not hang the system with the network driver, [sis190], and actualy works.
So there is no need, I hope, for any further kernel patch consearnig my hardware.
Now I will have time to post about other topics that I find interesting.
So there is no need, I hope, for any further kernel patch consearnig my hardware.
Now I will have time to post about other topics that I find interesting.
Wednesday, December 14, 2005
My patches to kernel 2.6.14-1.1644_FC4
My patches to kernel 2.6.14-1.1644_FC4
That is a patch to allow:
SiS SATA 0182 support at the startup of Fedora Core 4 (I do not have an IDE hard drive to boot my Linux)
Problem:
On original Fedora kernel the module [sata_sis] is not loaded at boot time.
Approach:
Apply all patches that I published, and apply to that situation.
Remarks:
sis190
1. Get and install the kernel source that applies:
2.6.14-1.1644_FC4
2. Apply the above mentioned patches on the Remarks:
3. Include the module [sata_sis] to the initial image:
mkinitrd -f --with=sata_sis --with=libata --with=scsi_mod /boot/initrd-2.6.14-1.1644_FC4.img 2.6.14-1.1644_FC4 # normal i686
#mkinitrd -f --with=sata_sis --with=libata --with=scsi_mod /boot/initrd-2.6.14-1.1644_FC4smp.img 2.6.14-1.1644_FC4smp # i686 SMP
Please always address to my hardware, os and kernel patching general procedures before posting a question.
That is a patch to allow:
SiS SATA 0182 support at the startup of Fedora Core 4 (I do not have an IDE hard drive to boot my Linux)
Problem:
On original Fedora kernel the module [sata_sis] is not loaded at boot time.
Approach:
Apply all patches that I published, and apply to that situation.
Remarks:
sis190
1. Get and install the kernel source that applies:
2.6.14-1.1644_FC4
2. Apply the above mentioned patches on the Remarks:
3. Include the module [sata_sis] to the initial image:
mkinitrd -f --with=sata_sis --with=libata --with=scsi_mod /boot/initrd-2.6.14-1.1644_FC4.img 2.6.14-1.1644_FC4 # normal i686
#mkinitrd -f --with=sata_sis --with=libata --with=scsi_mod /boot/initrd-2.6.14-1.1644_FC4smp.img 2.6.14-1.1644_FC4smp # i686 SMP
Please always address to my hardware, os and kernel patching general procedures before posting a question.
SiS Ethernet 0190 [sis190] patch, try 2
SiS Ethernet 0190 [sis190] patch, try 2
Supported (tested) kernels:
2.6.14-1.1644_FC4
Problem:
On original Fedora kernel the module for SiS Ethernet controller model 190/191 hang the system.
Bugzilla:
bug 175807
0. You need to disable network and reboot, to avoid system hang:
chkconfig --level 345 network off
1. Get and install the kernel source that applies:
2. Unpack the kernel:
cd /usr/src/redhat/SPEC
rpmbuild -bp --target=i686 kernel-2.6.spec
2. Get the SiS driver for Linux
To take the driver by yourself go to SiS download center and chose:
Network Driver -> SiS190 Gigabit & SiS191 LAN -> Linux -> GO
Than proceed to the download of "SiS190 / SiS191 Gigabit LAN / LAN driver for Linux kernal 2.6.9 or later."
3. Extract the file [sis190.c] and put it on the right place:
tar -vxzf sis190191_linux.tar.gz # file from SiS
cp sis190_20041220/sis190.c /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/
4. Prepare the kernel to compile the modules:
cd /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/
cp /usr/src/redhat/SOURCES/kernel-2.6.14-i686.config .config # for normal i686
# cp /usr/src/redhat/SOURCES/kernel-2.6.14-i686-smp.config .config # for i686 SMP
5. Compile the modules and copy override the old driver
cd /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/
make modules
cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.ko /lib/modules/2.6.14-1.1644_FC4/kernel/drivers/net/sis190.ko # for normal i686
depmode -eaF /boot/System.map-2.6.14-1.1644_FC4 2.6.14-1.1644_FC4 # for normal i686
#cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.ko /lib/modules/2.6.14-1.1644_FC4smp/kernel/drivers/net/sis190.ko # for i686 SMP
#depmode -eaF /boot/System.map-2.6.14-1.1644_FC4smp 2.6.14-1.1644_FC4smp # for i686 SMP
6. Reenable the network and reboot
chkconfig --level 345 network on
shutdown -r now
Please always address to my hardware, os and kernel patching general procedures before posting a question.
Supported (tested) kernels:
2.6.14-1.1644_FC4
Problem:
On original Fedora kernel the module for SiS Ethernet controller model 190/191 hang the system.
Bugzilla:
bug 175807
0. You need to disable network and reboot, to avoid system hang:
chkconfig --level 345 network off
1. Get and install the kernel source that applies:
2. Unpack the kernel:
cd /usr/src/redhat/SPEC
rpmbuild -bp --target=i686 kernel-2.6.spec
2. Get the SiS driver for Linux
To take the driver by yourself go to SiS download center and chose:
Network Driver -> SiS190 Gigabit & SiS191 LAN -> Linux -> GO
Than proceed to the download of "SiS190 / SiS191 Gigabit LAN / LAN driver for Linux kernal 2.6.9 or later."
3. Extract the file [sis190.c] and put it on the right place:
tar -vxzf sis190191_linux.tar.gz # file from SiS
cp sis190_20041220/sis190.c /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/
4. Prepare the kernel to compile the modules:
cd /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/
cp /usr/src/redhat/SOURCES/kernel-2.6.14-i686.config .config # for normal i686
# cp /usr/src/redhat/SOURCES/kernel-2.6.14-i686-smp.config .config # for i686 SMP
5. Compile the modules and copy override the old driver
cd /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/
make modules
cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.ko /lib/modules/2.6.14-1.1644_FC4/kernel/drivers/net/sis190.ko # for normal i686
depmode -eaF /boot/System.map-2.6.14-1.1644_FC4 2.6.14-1.1644_FC4 # for normal i686
#cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.ko /lib/modules/2.6.14-1.1644_FC4smp/kernel/drivers/net/sis190.ko # for i686 SMP
#depmode -eaF /boot/System.map-2.6.14-1.1644_FC4smp 2.6.14-1.1644_FC4smp # for i686 SMP
6. Reenable the network and reboot
chkconfig --level 345 network on
shutdown -r now
Please always address to my hardware, os and kernel patching general procedures before posting a question.
Saturday, November 05, 2005
My patches to kernel 2.6.12-1.1381_FC3
That is a patch to allow:
SiS SATA 0182 support at the startup (I do not have an IDE hard drive to boot my Linux)
SiS Ethernet 0190 module driver
SiS 5513 IDE DMA support
Problem:
On original Fedora kernel there is no support on [sata_sis] module to the model 182 and it is not loaded at boot time.
There is no module to the SiS Ethernet controller model 190/191.
And there is no support to DMA on the SiS IDE controller model 5513.
Approach:
Apply all patches that I published, and apply to that situation, and modify the spec file to cope with the rpm kernel generation.
Remarks:
You should read and apply the partial patches already published, as follows:
sata_sis
sis190
sis5513
1. Get and install the kernel source that applies:
2.6.12-1.1381_FC3
2. Apply the above mentioned patches on the Remarks:
3. Script to pre-change all [.config] files:
Approach:
I prefer this script rather to create patches. I think it is more clear to understand what is going on here.
Basically I instruct the kernel to:
3.1. Add the SCSI support as a kernel internal instead of a loadable module:
CONFIG_SCSI=y
3.2. Add the SATA SCSI support for SiS as an internal:
CONFIG_SCSI_SATA_SIS=y
3.3. Add a NEW line to include the new driver, as a loadable module, for SiS Ethernet controller model 190/191 (that has no conterparter on this kernel).
CONFIG_SIS190=m
3.4. The script:
### /usr/src/redhat/SOURCES/make-config.sh ###
cat > /usr/src/redhat/SOURCES/make-config.sh << __END__
#!/bin/bash
# Please note that this script do NOT check if the [.config] was already patched
#
find /usr/src/redhat/SOURCES/ -name "*.config" -print | while read FILE
do
mv \${FILE} \${FILE}.orig
cat \${FILE}.orig | sed -e "s/\(CONFIG_SCSI=\)./\1y/" -e "s/\(CONFIG_SCSI_SATA_SIS=\).*/\1y/" -e "s/\(CONFIG_SIS900=m\)/\1\nCONFIG_SIS190=m/" > \${FILE}
done
__END__
chmod 700 /usr/src/redhat/SOURCES/make-config.sh
### /usr/src/redhat/SOURCES/make-config.sh ###
Note: Note that this script do NOT check if the files were already patched.
3.5. Executing the scritp, JUST ONCE:
/usr/src/redhat/SOURCES/make-config.sh
4. Patch the kernel spec file:
4.1. Patch file:
### /usr/src/redhat/SPECS/kernel-2.6.spec.patch ###
cat > /usr/src/redhat/SPECS/kernel-2.6.spec.patch << __END__
--- a/kernel-2.6.spec 2005-10-21 09:41:01.000000000 +0200
+++ b/kernel-2.6.spec 2005-11-05 16:31:20.000000000 +0100
@@ -19,7 +19,11 @@
%define sublevel 12
%define kversion 2.6.%{sublevel}
%define rpmversion 2.6.%{sublevel}
-%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+#
+# I just do no like Fedora standard names for self-made kernels, so I call it just [sis]
+#
+#%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+%define rhbsys sis
%define release %(R="$Revision: 1.1381 $"; RR="${R##: }"; echo ${RR%%?})_FC3%{rhbsys}
%define signmodules 0
%define make_target bzImage
@@ -162,6 +166,7 @@
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-%{kversion}.tar.bz2
+Source1: linux-2.6.12-sis190.tar.bz2
Source10: COPYING.modules
Source11: genkey
@@ -201,6 +206,8 @@
Patch301: linux-2.6.12-serial-of.patch
Patch302: linux-2.6.10-ppc-headerabuse.patch
Patch303: linux-2.6-windtunnel-printk.patch
+Patch304: linux-2.6.12-sis190-Kconfig.patch
+Patch305: linux-2.6.12-sis190-Makefile.patch
# 400 - 499 ia64
Patch400: linux-2.6.3-ia64-build.patch
@@ -248,6 +255,8 @@
Patch1060: linux-2.6.3-crash-driver.patch
Patch1070: linux-2.6.0-sleepon.patch
+Patch1080: linux-2.6.12-sis5513.patch
+
# SCSI bits.
Patch1101: linux-2.6.9-scsi-advansys-enabler.patch
Patch1102: linux-2.6.9-scsi-megaraid-legacy.patch
@@ -255,6 +264,8 @@
Patch1104: linux-2.6.12-scsicam-geom-fix.patch
Patch1105: linux-2.6-scsi-sym2-alloc_lcb_tags-atomic.patch
Patch1106: linux-2.6-scsi-aic-dma39bit.patch
+Patch1107: linux-2.6.12-sata_sis182-light.patch
+Patch1108: linux-2.6.12-sata_sis182.patch
# NFS bits.
Patch1200: linux-2.6.9-NFSD-non-null-getxattr.patch
@@ -418,6 +429,10 @@
rm -rf linux-%{kversion}
cp -rl vanilla linux-%{kversion}
+#
+# Here I'm ashamed, I really do not known how to do that with more elegancy
+#
+tar -xjf %{SOURCE1}
cd linux-%{kversion}
#
@@ -451,6 +466,9 @@
%patch301 -p1
%patch302 -p1
%patch303 -p1
+# Patch for sis190 NIC
+%patch304 -p1
+%patch305 -p1
#
# ia64
@@ -554,6 +572,11 @@
%patch1070 -p1
#
+# SiS 5513 DMA support
+#
+%patch1080 -p1
+
+#
# SCSI Bits.
#
# Enable Advansys driver
@@ -568,6 +591,11 @@
%patch1105 -p1
# Fix aic7xxx >4GB
%patch1106 -p1
+# Fix sata_sis suport to sis182
+# light version, just an ID tag added
+%patch1107 -p1
+# complete version from SiS, but does not boot
+#%patch1108 -p1
#
# Various upstream NFS/NFSD fixes.
__END__
### /usr/src/redhat/SPECS/kernel-2.6.spec.patch ###
4.2. Applying the patch:
cd /usr/src/redhat/SPECS/
patch -p1 < kernel-2.6.spec.patch
5. Making the RPMs from spec:
cd /usr/src/redhat/SPECS/
5.1. Clean previous build (do NOT forget this):
rpmbuild --clean kernel-2.6.spec ### clean all
5.2. Build all for your platform, it may be one of them so please take the one that applies to you:
# rpmbuild -ba --target=i586 kernel-2.6.spec ### to install from a CD
# rpmbuild -ba --target=i686 kernel-2.6.spec ### I use this one
# rpmbuild -ba --target=x86_64 kernel-2.6.spec ### AMD64
Note: Of course there are more options, but for a regular user these ones above must cover most of the cases.
5.3. Take time to see a film, read a book or something else, because it will take long (from 2 to 3 hours).
6. Install the new kernel, that will be written at: [/usr/src/redhat/RPMS/], in my case:
rpm -Uvhi /usr/src/redhat/RPMS/i686/kernel-2.6.12-1.1381_FC3sis.i686.rpm
rpm -Uvhi /usr/src/redhat/RPMS/i686/kernel-smp-2.6.12-1.1381_FC3sis.i686.rpm
7. Test it and adjust the GRUB configuration to boot with the new kernel (if it wasn't already done), it is at: [/etc/grub.conf]
8. Say thanks if it works or what goes wrong :-).
Please always address to my hardware, os and kernel patching general procedures before posting a question.
SiS SATA 0182 support at the startup (I do not have an IDE hard drive to boot my Linux)
SiS Ethernet 0190 module driver
SiS 5513 IDE DMA support
Problem:
On original Fedora kernel there is no support on [sata_sis] module to the model 182 and it is not loaded at boot time.
There is no module to the SiS Ethernet controller model 190/191.
And there is no support to DMA on the SiS IDE controller model 5513.
Approach:
Apply all patches that I published, and apply to that situation, and modify the spec file to cope with the rpm kernel generation.
Remarks:
You should read and apply the partial patches already published, as follows:
sata_sis
sis190
sis5513
1. Get and install the kernel source that applies:
2.6.12-1.1381_FC3
2. Apply the above mentioned patches on the Remarks:
3. Script to pre-change all [.config] files:
Approach:
I prefer this script rather to create patches. I think it is more clear to understand what is going on here.
Basically I instruct the kernel to:
3.1. Add the SCSI support as a kernel internal instead of a loadable module:
CONFIG_SCSI=y
3.2. Add the SATA SCSI support for SiS as an internal:
CONFIG_SCSI_SATA_SIS=y
3.3. Add a NEW line to include the new driver, as a loadable module, for SiS Ethernet controller model 190/191 (that has no conterparter on this kernel).
CONFIG_SIS190=m
3.4. The script:
### /usr/src/redhat/SOURCES/make-config.sh ###
cat > /usr/src/redhat/SOURCES/make-config.sh << __END__
#!/bin/bash
# Please note that this script do NOT check if the [.config] was already patched
#
find /usr/src/redhat/SOURCES/ -name "*.config" -print | while read FILE
do
mv \${FILE} \${FILE}.orig
cat \${FILE}.orig | sed -e "s/\(CONFIG_SCSI=\)./\1y/" -e "s/\(CONFIG_SCSI_SATA_SIS=\).*/\1y/" -e "s/\(CONFIG_SIS900=m\)/\1\nCONFIG_SIS190=m/" > \${FILE}
done
__END__
chmod 700 /usr/src/redhat/SOURCES/make-config.sh
### /usr/src/redhat/SOURCES/make-config.sh ###
Note: Note that this script do NOT check if the files were already patched.
3.5. Executing the scritp, JUST ONCE:
/usr/src/redhat/SOURCES/make-config.sh
4. Patch the kernel spec file:
4.1. Patch file:
### /usr/src/redhat/SPECS/kernel-2.6.spec.patch ###
cat > /usr/src/redhat/SPECS/kernel-2.6.spec.patch << __END__
--- a/kernel-2.6.spec 2005-10-21 09:41:01.000000000 +0200
+++ b/kernel-2.6.spec 2005-11-05 16:31:20.000000000 +0100
@@ -19,7 +19,11 @@
%define sublevel 12
%define kversion 2.6.%{sublevel}
%define rpmversion 2.6.%{sublevel}
-%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+#
+# I just do no like Fedora standard names for self-made kernels, so I call it just [sis]
+#
+#%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && echo || echo .`whoami`)
+%define rhbsys sis
%define release %(R="$Revision: 1.1381 $"; RR="${R##: }"; echo ${RR%%?})_FC3%{rhbsys}
%define signmodules 0
%define make_target bzImage
@@ -162,6 +166,7 @@
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-%{kversion}.tar.bz2
+Source1: linux-2.6.12-sis190.tar.bz2
Source10: COPYING.modules
Source11: genkey
@@ -201,6 +206,8 @@
Patch301: linux-2.6.12-serial-of.patch
Patch302: linux-2.6.10-ppc-headerabuse.patch
Patch303: linux-2.6-windtunnel-printk.patch
+Patch304: linux-2.6.12-sis190-Kconfig.patch
+Patch305: linux-2.6.12-sis190-Makefile.patch
# 400 - 499 ia64
Patch400: linux-2.6.3-ia64-build.patch
@@ -248,6 +255,8 @@
Patch1060: linux-2.6.3-crash-driver.patch
Patch1070: linux-2.6.0-sleepon.patch
+Patch1080: linux-2.6.12-sis5513.patch
+
# SCSI bits.
Patch1101: linux-2.6.9-scsi-advansys-enabler.patch
Patch1102: linux-2.6.9-scsi-megaraid-legacy.patch
@@ -255,6 +264,8 @@
Patch1104: linux-2.6.12-scsicam-geom-fix.patch
Patch1105: linux-2.6-scsi-sym2-alloc_lcb_tags-atomic.patch
Patch1106: linux-2.6-scsi-aic-dma39bit.patch
+Patch1107: linux-2.6.12-sata_sis182-light.patch
+Patch1108: linux-2.6.12-sata_sis182.patch
# NFS bits.
Patch1200: linux-2.6.9-NFSD-non-null-getxattr.patch
@@ -418,6 +429,10 @@
rm -rf linux-%{kversion}
cp -rl vanilla linux-%{kversion}
+#
+# Here I'm ashamed, I really do not known how to do that with more elegancy
+#
+tar -xjf %{SOURCE1}
cd linux-%{kversion}
#
@@ -451,6 +466,9 @@
%patch301 -p1
%patch302 -p1
%patch303 -p1
+# Patch for sis190 NIC
+%patch304 -p1
+%patch305 -p1
#
# ia64
@@ -554,6 +572,11 @@
%patch1070 -p1
#
+# SiS 5513 DMA support
+#
+%patch1080 -p1
+
+#
# SCSI Bits.
#
# Enable Advansys driver
@@ -568,6 +591,11 @@
%patch1105 -p1
# Fix aic7xxx >4GB
%patch1106 -p1
+# Fix sata_sis suport to sis182
+# light version, just an ID tag added
+%patch1107 -p1
+# complete version from SiS, but does not boot
+#%patch1108 -p1
#
# Various upstream NFS/NFSD fixes.
__END__
### /usr/src/redhat/SPECS/kernel-2.6.spec.patch ###
4.2. Applying the patch:
cd /usr/src/redhat/SPECS/
patch -p1 < kernel-2.6.spec.patch
5. Making the RPMs from spec:
cd /usr/src/redhat/SPECS/
5.1. Clean previous build (do NOT forget this):
rpmbuild --clean kernel-2.6.spec ### clean all
5.2. Build all for your platform, it may be one of them so please take the one that applies to you:
# rpmbuild -ba --target=i586 kernel-2.6.spec ### to install from a CD
# rpmbuild -ba --target=i686 kernel-2.6.spec ### I use this one
# rpmbuild -ba --target=x86_64 kernel-2.6.spec ### AMD64
Note: Of course there are more options, but for a regular user these ones above must cover most of the cases.
5.3. Take time to see a film, read a book or something else, because it will take long (from 2 to 3 hours).
6. Install the new kernel, that will be written at: [/usr/src/redhat/RPMS/], in my case:
rpm -Uvhi /usr/src/redhat/RPMS/i686/kernel-2.6.12-1.1381_FC3sis.i686.rpm
rpm -Uvhi /usr/src/redhat/RPMS/i686/kernel-smp-2.6.12-1.1381_FC3sis.i686.rpm
7. Test it and adjust the GRUB configuration to boot with the new kernel (if it wasn't already done), it is at: [/etc/grub.conf]
8. Say thanks if it works or what goes wrong :-).
Please always address to my hardware, os and kernel patching general procedures before posting a question.
SiS IDE Controller 5513 [sis5513] patch, try 2
Supported (tested) kernels:
2.6.12-1.1381_FC3
Problem:
On original Fedora kernel there is no support to DMA on the SiS IDE controller model 5513.
Go figure why on the file [sis5513] there is no string to address DMA setup to the "SiS5513" chipset, maybe sooner support and no rework after that.
Approach:
Modify the module source to recognise the controller hardware.
In this case the south bridge controller: SiS965.
Remarks:
RPM kernel spec file part will be covered on the kernel specific part.
1. Get and install the kernel source that applies:
2. Patch to the file [sis5513.c]:
### /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch ###
cat > /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch << __END__
--- a/drivers/ide/pci/sis5513.c 2005-11-05 19:26:57.000000000 +0100
+++ b/drivers/ide/pci/sis5513.c 2005-11-05 19:31:10.000000000 +0100
@@ -87,6 +87,8 @@
u8 chipset_family;
u8 flags;
} SiSHostChipInfo[] = {
+ { "SiS695", PCI_DEVICE_ID_SI_965, ATA_133 },
+
{ "SiS745", PCI_DEVICE_ID_SI_745, ATA_100 },
{ "SiS735", PCI_DEVICE_ID_SI_735, ATA_100 },
{ "SiS733", PCI_DEVICE_ID_SI_733, ATA_100 },
--- a/include/linux/pci_ids.h 2005-11-05 19:38:13.000000000 +0100
+++ b/include/linux/pci_ids.h 2005-11-05 19:39:18.000000000 +0100
@@ -661,6 +661,7 @@
#define PCI_DEVICE_ID_SI_961 0x0961
#define PCI_DEVICE_ID_SI_962 0x0962
#define PCI_DEVICE_ID_SI_963 0x0963
+#define PCI_DEVICE_ID_SI_965 0x0965
#define PCI_DEVICE_ID_SI_5107 0x5107
#define PCI_DEVICE_ID_SI_5300 0x5300
#define PCI_DEVICE_ID_SI_5511 0x5511
__END__
### /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch ###
Please always address to my hardware, os and kernel patching general procedures before posting a question.
2.6.12-1.1381_FC3
Problem:
On original Fedora kernel there is no support to DMA on the SiS IDE controller model 5513.
Go figure why on the file [sis5513] there is no string to address DMA setup to the "SiS5513" chipset, maybe sooner support and no rework after that.
Approach:
Modify the module source to recognise the controller hardware.
In this case the south bridge controller: SiS965.
Remarks:
RPM kernel spec file part will be covered on the kernel specific part.
1. Get and install the kernel source that applies:
2. Patch to the file [sis5513.c]:
### /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch ###
cat > /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch << __END__
--- a/drivers/ide/pci/sis5513.c 2005-11-05 19:26:57.000000000 +0100
+++ b/drivers/ide/pci/sis5513.c 2005-11-05 19:31:10.000000000 +0100
@@ -87,6 +87,8 @@
u8 chipset_family;
u8 flags;
} SiSHostChipInfo[] = {
+ { "SiS695", PCI_DEVICE_ID_SI_965, ATA_133 },
+
{ "SiS745", PCI_DEVICE_ID_SI_745, ATA_100 },
{ "SiS735", PCI_DEVICE_ID_SI_735, ATA_100 },
{ "SiS733", PCI_DEVICE_ID_SI_733, ATA_100 },
--- a/include/linux/pci_ids.h 2005-11-05 19:38:13.000000000 +0100
+++ b/include/linux/pci_ids.h 2005-11-05 19:39:18.000000000 +0100
@@ -661,6 +661,7 @@
#define PCI_DEVICE_ID_SI_961 0x0961
#define PCI_DEVICE_ID_SI_962 0x0962
#define PCI_DEVICE_ID_SI_963 0x0963
+#define PCI_DEVICE_ID_SI_965 0x0965
#define PCI_DEVICE_ID_SI_5107 0x5107
#define PCI_DEVICE_ID_SI_5300 0x5300
#define PCI_DEVICE_ID_SI_5511 0x5511
__END__
### /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch ###
Please always address to my hardware, os and kernel patching general procedures before posting a question.
Subscribe to:
Posts (Atom)