Added another 16MB RAM. Two 8 MB SIMMs.
Only way now to add more is to use 16MB memory sticks.
Sunday, October 13, 2019
Thursday, October 10, 2019
AbiWord 2.0.14 (1)
Latest version is 3.0.2 from 2016
Gitlab has newer version but it needs gtk+3.
https://gitlab.gnome.org/World/AbiWord/commits/master
Needs fribidi-0.10.9. Built it.
I will use 2.0.14 version of AbiWord.
Build time: 22 hours.
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x40036000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0x402fb000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40402000)
libz.so.1 => /lib/libz.so.1 (0x40454000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x40467000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x404d7000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x404ec000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x40500000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x4050a000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0x40545000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x405b9000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x405f1000)
libdl.so.2 => /lib/libdl.so.2 (0x405f5000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x405fa000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x406b4000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x406bc000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x406d3000)
libm.so.6 => /lib/libm.so.6 (0x4079e000)
libfribidi.so.0 => /usr/lib/libfribidi.so.0 (0x407c1000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x407d1000)
libpopt.so.0 => /usr/lib/libpopt.so.0 (0x40802000)
libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x4080a000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4081b000)
libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x4088a000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x40892000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x408b8000)
librt.so.1 => /lib/librt.so.1 (0x408bc000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x408cf000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x4099d000)
libc.so.6 => /lib/libc.so.6 (0x409a6000)
libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40ac3000)
libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x40acb000)
/lib/ld-linux.so.2 (0x40000000)
libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x40ad6000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40ada000)
libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0x40ae2000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40ae5000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x40af4000)
libexpat.so.0 => /usr/X11R6/lib/libexpat.so.0 (0x40b1c000)
Gitlab has newer version but it needs gtk+3.
https://gitlab.gnome.org/World/AbiWord/commits/master
System Requirements
- GTK+ 2.12 or newer
- At least 16MB RAM (embedded systems probably won't require more than 8)
Needs fribidi-0.10.9. Built it.
I will use 2.0.14 version of AbiWord.
Download
wget https://www.abisource.com/downloads/abiword/2.0.14/source/abiword-2.0.14.tar.gz
Build time: 22 hours.
ldd AbiWord-2.0libglade-2.0.so.0 => /usr/lib/libglade-2.0.so.0 (0x40020000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x40036000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0x402fb000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40402000)
libz.so.1 => /lib/libz.so.1 (0x40454000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x40467000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x404d7000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x404ec000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x40500000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x4050a000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0x40545000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x405b9000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x405f1000)
libdl.so.2 => /lib/libdl.so.2 (0x405f5000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x405fa000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x406b4000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x406bc000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x406d3000)
libm.so.6 => /lib/libm.so.6 (0x4079e000)
libfribidi.so.0 => /usr/lib/libfribidi.so.0 (0x407c1000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x407d1000)
libpopt.so.0 => /usr/lib/libpopt.so.0 (0x40802000)
libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x4080a000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4081b000)
libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x4088a000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x40892000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x408b8000)
librt.so.1 => /lib/librt.so.1 (0x408bc000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x408cf000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x4099d000)
libc.so.6 => /lib/libc.so.6 (0x409a6000)
libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40ac3000)
libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x40acb000)
/lib/ld-linux.so.2 (0x40000000)
libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x40ad6000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40ada000)
libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0x40ae2000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40ae5000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x40af4000)
libexpat.so.0 => /usr/X11R6/lib/libexpat.so.0 (0x40b1c000)
X Window System: X.org (3)
X.Org
There is no X Window present in system. I renamed all folders.compile package and install:
12.1 ver Slackware source
d/pkg-config
install it
x/x11
build proto
installpkg *
-rw-r--r-- 1 root root 7220 2019-09-14 03:49 compositeproto-0.4-noarch-1.tgz
-rw-r--r-- 1 root root 5481 2019-09-14 03:49 damageproto-1.1.0-noarch-1.tgz
-rw-r--r-- 1 root root 4390 2019-09-14 03:49 dmxproto-2.2.2-noarch-1.tgz
-rw-r--r-- 1 root root 2462 2019-09-14 03:50 evieext-1.0.2-noarch-1.tgz
-rw-r--r-- 1 root root 3727 2019-09-14 03:50 fixesproto-4.0-noarch-1.tgz
-rw-r--r-- 1 root root 2802 2019-09-14 03:50 fontcacheproto-0.1.2-noarch-1.tgz
-rw-r--r-- 1 root root 10074 2019-09-14 03:51 fontsproto-2.0.2-noarch-1.tgz
-rw-r--r-- 1 root root 21378 2019-09-14 03:51 glproto-1.4.9-noarch-1.tgz
-rw-r--r-- 1 root root 13646 2019-09-14 03:52 inputproto-1.4.3-noarch-1.tgz
-rw-r--r-- 1 root root 24512 2019-09-14 03:52 kbproto-1.0.3-noarch-1.tgz
-rw-r--r-- 1 root root 8715 2019-09-14 03:52 printproto-1.0.4-noarch-1.tgz
-rw-r--r-- 1 root root 19869 2019-09-14 03:53 randrproto-1.2.1-noarch-1.tgz
-rw-r--r-- 1 root root 4127 2019-09-14 03:53 recordproto-1.13.2-noarch-1.tgz
-rw-r--r-- 1 root root 16887 2019-09-14 03:54 renderproto-0.9.3-noarch-1.tgz
-rw-r--r-- 1 root root 1470 2019-09-14 03:54 resourceproto-1.0.2-noarch-1.tgz
-rw-r--r-- 1 root root 3505 2019-09-14 03:54 scrnsaverproto-1.1.0-noarch-1.tgz
-rw-r--r-- 1 root root 13937 2019-09-14 03:55 trapproto-3.4.3-noarch-1.tgz
-rw-r--r-- 1 root root 7535 2019-09-14 03:55 videoproto-2.2.2-noarch-1.tgz
-rw-r--r-- 1 root root 1968 2019-09-14 03:55 xcmiscproto-1.1.2-noarch-1.tgz
-rw-r--r-- 1 root root 38006 2019-09-14 03:56 xextproto-7.0.2-noarch-1.tgz
-rw-r--r-- 1 root root 1987 2019-09-14 03:56 xf86bigfontproto-1.1.2-noarch-1.tgz
-rw-r--r-- 1 root root 4617 2019-09-14 03:57 xf86dgaproto-2.0.3-noarch-1.tgz
-rw-r--r-- 1 root root 7824 2019-09-14 03:57 xf86driproto-2.0.3-noarch-1.tgz
-rw-r--r-- 1 root root 2981 2019-09-14 03:57 xf86miscproto-0.9.2-noarch-1.tgz
-rw-r--r-- 1 root root 2186 2019-09-14 03:58 xf86rushproto-1.1.2-noarch-1.tgz
-rw-r--r-- 1 root root 4659 2019-09-14 03:58 xf86vidmodeproto-2.2.2-noarch-1.tgz
-rw-r--r-- 1 root root 3333 2019-09-14 03:58 xineramaproto-1.1.2-noarch-1.tgz
-rw-r--r-- 1 root root 76632 2019-09-14 04:00 xproto-7.0.12-noarch-1.tgz
-rw-r--r-- 1 root root 2077 2019-09-14 04:01 xproxymanagementprotocol-1.0.2-noarch-1.tgz
-
to build in data you need:
./x11.Build app xkbcomp
./x11.Build app xkbcomp
No package 'x11' found
No package 'xkbfile' found
Skip that for now
Start bulding ./buld utils
install them:
-rw-r--r-- 1 root root 3201 2019-09-14 05:02 gccmakedep-1.0.2-noarch-1.tgz
-rw-r--r-- 1 root root 28211 2019-09-14 05:04 imake-1.0.2-i486-1.tgz
-rw-r--r-- 1 root root 6667 2019-09-14 05:05 lndir-1.0.1-i486-1.tgz
-rw-r--r-- 1 root root 17403 2019-09-14 05:07 makedepend-1.0.1-i486-1.tgz
-rw-r--r-- 1 root root 5665 2019-09-14 05:08 util-macros-1.1.6-noarch-1.tgz
-rw-r--r-- 1 root root 227374 2019-09-14 05:08 xorg-cf-files-1.0.2-noarch-1.tgz
install them:
-rw-r--r-- 1 root root 3201 2019-09-14 05:02 gccmakedep-1.0.2-noarch-1.tgz
-rw-r--r-- 1 root root 28211 2019-09-14 05:04 imake-1.0.2-i486-1.tgz
-rw-r--r-- 1 root root 6667 2019-09-14 05:05 lndir-1.0.1-i486-1.tgz
-rw-r--r-- 1 root root 17403 2019-09-14 05:07 makedepend-1.0.1-i486-1.tgz
-rw-r--r-- 1 root root 5665 2019-09-14 05:08 util-macros-1.1.6-noarch-1.tgz
-rw-r--r-- 1 root root 227374 2019-09-14 05:08 xorg-cf-files-1.0.2-noarch-1.tgz
Next,
Start bulding ./buld xbc
istall
-rw-r--r-- 1 root root 33601 2019-09-14 05:27 xcb-proto-1.0-noarch-1.tgz
configure: error: Package requirements (xau pthread-stubs) were not met:
No package 'xau' foundNo package 'pthread-stubs' found
Start bulding ./buld xserver
pixman missing
build lib pixman
memory fail, add 16MB swap. build again.fail.32 MB,
make spawns 7 sh builds for cc1, no wonder that it failed.
whay? changed build script to not include -j 7 option. :D
fails /usr/bin/ld: cannot find -lgtk-x11-2.0
ffs lets buld gtk and gtk2. at the start fail.
ok.
lets do
libXau
xtrans
make lib libpthread
xcb -> still prbolems->sh: dot: command not found when building docs ->but we have lib
make lib libX11 "-O2"
X11 will be built with the following settings:
Loadable i18n module support: no
Loadable xcursor library support: yes
Use XCB: yes
Threading support: yes
Use Threads safe API: yes
Threads stubs in libX11: no
XCMS: yes
Internationalization support: yes
XF86BigFont support: yes
XKB support: yes
XLOCALEDIR environment variable support: yes
Manual pages suffix: none
Compose table cache enabled: yes
make lib libX11 "-Os"
make lib libX11 "-Os.Min"
disable XF86BigFont, ipv6,man pages
X11 will be built with the following settings:
Loadable i18n module support: no
Loadable xcursor library support: yes
Use XCB: yes
Threading support: yes
Use Threads safe API: yes
Threads stubs in libX11: no
XCMS: yes
Internationalization support: yes
XF86BigFont support: no
XKB support: yes
XLOCALEDIR environment variable support: yes
Manual pages suffix: none
Compose table cache enabled: yes
build lib libXext
XEXT not found. hmmm.
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/:$PKG_CONFIG_PATH
export PKG_CONFIG=/usr/bin/
and build again., oh well, libXdmcp was not built and pkg config listed it as missing,
pkg-config --exists --print-errors "xproto x11 xextproto xau"
it gives errors. after build and install its ok.
rebuild libX11, then libXext
Use this order:
https://cgit.freedesktop.org/xorg/util/modular/tree/build.sh?h=X11R7.6
build lib libxtrans +
build lib libXau +
build lib libXdmcp +
build xcb pthread-stubs +
build xcb libxcb +
build xcb util +
build lib libX11 +
build lib libXext +
build lib libdmx +//DMX − X Window System DMX (Distributed Multihead X) extension
build lib libfontenc +
build lib libFS +//X Font Service client library
build lib libICE +
build lib libSM +
build lib libXt +
build lib libXmu +
build lib libXpm+
build lib libXaw +
build lib libXfixes +
build lib libXcomposite +
build lib libXrender +
build lib libXdamage +
build lib libXcursor +
build lib libXfont +
build lib libXft -> needs fontconfig +
build lib libXi+
build lib libXinerama +
build lib libxkbfile +
build lib libXrandr +
build lib libXres +
build lib libXScrnSaver +
build lib libXtst +
build lib libXv +
build lib libXvMC +
build lib libXxf86dga libXxf86misc +
build lib libXxf86vm +
build lib libpciaccess +
build pixman "" mmx???? needs manual change. still gtk x11 libs missing
lets build gtk x11
then gtk+2 2.12.9
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.13.5 atk >= 1.9.0 pango >= 1.17.3 cairo >= 1.2.0) were not met:
Requested 'glib-2.0 >= 2.13.5' but version of GLib is 2.6.1
Requested 'pango >= 1.17.3' but version of Pango is 1.8.0
No package 'cairo' found
glib +
pango needs cario so build cario:
cairo will be compiled with the following surface backends:
image: yes (always builtin)
Xlib: yes
Xlib Xrender: yes
Quartz: no (disabled, use --enable-quartz to enable)
XCB: no (disabled, use --enable-xcb to enable)
Win32: no (disabled, use --enable-win32 to enable)
OS2: no (disabled, use --enable-os2 to enable)
PostScript: yes
PDF: yes
SVG: yes
glitz: no (disabled, use --enable-glitz to enable)
BeOS: no (disabled, use --enable-beos to enable)
DirectFB: no (disabled, use --enable-directfb to enable)
the following font backends:
FreeType: yes
Win32: no (disabled, use --enable-win32 to enable)
ATSUI: no (disabled, use --enable-atsui to enable)
the following features:
PNG functions: yes
and the following debug options:
gcov support: no
test surfaces: no
pdf testing: no (requires poppler-glib >= 0.4.1)
svg testing: no (requires librsvg-2.0 >= 2.15.0)
then pango
now back to gtk+2
needs swap 32bm lets build x11 lib pixman -> finaly create new patch to exclude mmx and replace current patch data needs app's driver needs xserver + build driver + build app + build data + build font +
Install
and still get 'fixed' font missing on startup.
Well. Removed all newly added packages and in XFree86 dir:
make installAtleast i have it running.
It was total waste of time :D
Until next time you X.Org.
Wednesday, October 9, 2019
Some (re)builds of libs and programs
atk-1.10.0
pango-1.20.0 -> xft.pc was missing, actually was in X11R6 dir. changed configure to exclude xrender (is part of xft.pc)
gtk+2 to include xft. and with -Os compile option.
mc-4.6.0 - v4.6.1+ complains when Ctrl+O:
Solution probably but will not implement.
Something to do with posix_openpt. Need to change this.
gzip-1.3.12
bzip2-1.0.5
tar-1.16.1
procps-3.2.7
If possible i disable NLS.
Now going for Abiword 2.0.14.
pango-1.20.0 -> xft.pc was missing, actually was in X11R6 dir. changed configure to exclude xrender (is part of xft.pc)
gtk+2 to include xft. and with -Os compile option.
mc-4.6.0 - v4.6.1+ complains when Ctrl+O:
Cannot open master side of pty: No such file or directory (2)https://www.dahelp.ru/zametki/mc-cannot-open-master-side-of-pty
Solution probably but will not implement.
Something to do with posix_openpt. Need to change this.
gzip-1.3.12
bzip2-1.0.5
tar-1.16.1
procps-3.2.7
If possible i disable NLS.
Now going for Abiword 2.0.14.
Labels:
Abiword,
atk-1.10.0,
bzip2-1.0.5,
gtk+2,
gzip-1.3.12,
mc-4.6.0,
pango-1.20.0,
procps-3.2.7,
tar-1.16.1
Saturday, October 5, 2019
gtk+2-2.12.9 build
Build packages from source:
atk ????
libdatrie
libthai 0.1.9, needs datrie
freetype 2.1.5 pango, cario?
cairo-1.4.14
glib2 2.14.0 glib-2.0
pango 1.20.0
gtk+2 needs glib-2.0 2.13.5 atk 1.9.0(need to build it) pango 1.17.3 cairo 1.2.0
Installed gtk+2
Started X Window and runned gtk-demo.
Complained allot about missing fonts. All squares. Also fc-chache complained missing function.
https://bugs.freedesktop.org/show_bug.cgi?id=8281
Oh well. XFree86 has his own freetype and fontconfig. Used by default. Removed them
In font.conf added line <dir>/usr/X11R6/lib/X11/fonts</dir>
Not sure about rebuilding all again. In order cairo, pango and gtk+2. :D
There are only some files where gcc -O2 is ok, pixbuf is one. Otherwise i think using -Os would be better, less memory usage by binary.
Now what? GIMP, Firefox ?
libdatrie
libthai 0.1.9, needs datrie
freetype 2.1.5 pango, cario?
cairo-1.4.14
glib2 2.14.0 glib-2.0
pango 1.20.0
gtk+2 needs glib-2.0 2.13.5 atk 1.9.0(need to build it) pango 1.17.3 cairo 1.2.0
Memory: 64MB swap (-j1 needs 32MB swap) +16MB RAM
Build time: 16 hours (-j2 was not sane idea)
Build time: 16 hours (-j2 was not sane idea)
Installed gtk+2
Started X Window and runned gtk-demo.
Complained allot about missing fonts. All squares. Also fc-chache complained missing function.
https://bugs.freedesktop.org/show_bug.cgi?id=8281
Oh well. XFree86 has his own freetype and fontconfig. Used by default. Removed them
In font.conf added line <dir>/usr/X11R6/lib/X11/fonts</dir>
fc-cacheAnd now gtk-demo runs fine.
Not sure about rebuilding all again. In order cairo, pango and gtk+2. :D
There are only some files where gcc -O2 is ok, pixbuf is one. Otherwise i think using -Os would be better, less memory usage by binary.
Now what? GIMP, Firefox ?
Labels:
cairo-1.4.14,
freetype,
gtk+2,
gtk+2-2.12.9,
libdatrie,
libthai 0.1.9,
pango 1.20.0
Wednesday, October 2, 2019
Speed up compile and rebuilding with ccache-2.4
Rebuilding on this old 486 takes forever sometimes. ccache allows to speed up this process.
Create links
What is first:
After some re-buildings:
Build
From source.Install
Create links
ln -s ccache /usr/local/bin/gccSet cache:
ln -s ccache /usr/local/bin/g++
ln -s ccache /usr/local/bin/cc
ln -s ccache /usr/local/bin/c++
ccache -M 250M
What is first:
type -a gcc
After some re-buildings:
ccache -s
ccache -s
cache directory /root/.ccache
cache hit 339
cache miss 317
called for link 75
compile failed 10
preprocessor error 11
not a C/C++ file 11
autoconf compile/link 313
no input file 58
files in cache 634
cache size 3.2 Mbytes
max cache size 250.0 Mbytes
Sunday, September 29, 2019
mpg123 codec and MPlayer 1.1.1 test
My compile of mplayer did not have mpg123 codec. So it uses ffmp2float decoder for mp3.
In 486 PC i downloaded mpg123-1.22.4.tar.bz2
Replaced write_alsa function in alsa.c with this one:
static int write_alsa(audio_output_t *ao, unsigned char *buf, int bytes)This is present in mpg123-1.14.4 and changed in later versions. If above change is not made then it will not play mp3 files and cpu usage is 100%.
{
snd_pcm_t *pcm=(snd_pcm_t*)ao->userptr;
snd_pcm_uframes_t frames;
snd_pcm_sframes_t written;
frames = snd_pcm_bytes_to_frames(pcm, bytes);
written = snd_pcm_writei(pcm, buf, frames);
if (written == -EINTR) /* interrupted system call */
written = 0;
else if (written == -EPIPE) { /* underrun */
if (snd_pcm_prepare(pcm) >= 0)
written = snd_pcm_writei(pcm, buf, frames);
}
if (written >= 0)
return snd_pcm_frames_to_bytes(pcm, written);
else
{
if(snd_pcm_state(pcm) == SND_PCM_STATE_SUSPENDED)
{
/* Iamnothappyabouthisnothappyreallynot. */
snd_pcm_resume(pcm);
if(snd_pcm_state(pcm) == SND_PCM_STATE_SUSPENDED)
{
error("device still suspended after resume hackery... giving up");
return -1;
}
}
return 0;
}
}
Patch file for download.
Then created package.
Configuration line was:
./configure --prefix=/usr i486-kola-linux --enable-int-quality=yes --enable-buffer=yes --enable-modules=no --with-optimization=3Installed it on 486 and also on my virtual box so i can compile mplayer 1.1.1
After transferring new mplayer binary to 486 made test. Player command line options: -lavdopts lowres=0:skiploopfilter=all:skipidct=bidir -framedrop -af channels 1
Friday, September 27, 2019
mpg123 retest after sound is back
So i still have test file i made older post.
Sad thing is i have lost source changes i made to the lib to get it working. It may be on my Pentium III machine.
But i think i can get it to compile and work again. Maybe will try newer version.
In this video i ran it in X Window. But it will work also strait no console.
Sad thing is i have lost source changes i made to the lib to get it working. It may be on my Pentium III machine.
But i think i can get it to compile and work again. Maybe will try newer version.
In this video i ran it in X Window. But it will work also strait no console.
./mpg123 http://live-mp3-128.kexp.org:80/kexp128.mp3
alsa-driver-1.0.23 compile
First downloaded alsa-driver-1.0.25
ftp://ftp.alsa-project.org/pub/driver/
made package and installed.
after boot got:
snd.o: unresolved symbol lock_kernel
Reading here about it:
https://www.alsa-project.org/pipermail/alsa-devel/2011-November/046173.html
So, going back to 1.0.23 version
Need to dig deeper so i can compile v1.0.25. But for now v1.0.23 is ok.
After building v1.0.23 and installing it i removed v1.0.25. But a lone driver snd-es18xx was present in modules dir. It was compiled for older kernel. I removed it and ran:
Now kernel will not complain about missing drivers.
Here is build and install process:
I need to compile also alsa programs. System has some older version and complains about it on bootup.
ftp://ftp.alsa-project.org/pub/driver/
made package and installed.
after boot got:
snd.o: unresolved symbol lock_kernel
Reading here about it:
https://www.alsa-project.org/pipermail/alsa-devel/2011-November/046173.html
So, going back to 1.0.23 version
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.23.tar.bz2Still there is defined CONFIG_SND_HAVE_NEW_IOCTL on older versions. This is where lock_kernel and unlock_kernel originates.
Need to dig deeper so i can compile v1.0.25. But for now v1.0.23 is ok.
After building v1.0.23 and installing it i removed v1.0.25. But a lone driver snd-es18xx was present in modules dir. It was compiled for older kernel. I removed it and ran:
depmod
Now kernel will not complain about missing drivers.
Here is build and install process:
I need to compile also alsa programs. System has some older version and complains about it on bootup.
Saturday, September 14, 2019
Make hell of compilation in Linux enviroment
So i have 486dx4 CPU running 120MHz. And i want to build X.org. etc.
It takes insane time in make process, and it repeats in every package and directory.
Like checking:
It takes insane time in make process, and it repeats in every package and directory.
Like checking:
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking return type of signal handlers... void
checking for rename... yes
checking for fchmod... yes
checking for special C compiler options needed for large files... no
Its not fast, and every make will do this. Why isn't there per source build one check and that is it. Like why? If source code is small it takes longer in make checking then compiling...
Like make one include file and done.
Friday, September 13, 2019
Mplayer 1.1.1
I needed to recompile Mplayer again, so started with version 1.4.0
Building it on virtual machine and transfer later to 486 PC.
I have gcc 3.4.6
After ./configure --options.....
i get:
Downloaded 1.3.0. Same problem.
Downloaded 1.1.1.
./configure --yasm='' --target=i486-Linux --disable-ftp --disable-tv-v4l1 --disable-tv --disable-qtx --disable-real --disable-win32dll --disable-gif --disable-mmx --disable-3dnow --disable-sse --disable-sse2 --disable-fastmemcpy --disable-xanim --disable-vm --disable-vesa --disable-svga --disable-jpeg --disable-gl --disable-mga --disable-sdl --disable-fbdev --disable-caca --disable-aa --disable-dga1 --disable-dga2 --disable-tga --disable-md5sum --disable-pnm --disable-mng --disable-libvorbis --disable-esd --enable-libmpeg2-internal --enable-libmpeg2 --disable-decoder=mlp --disable-mencoder --disable-freetype --disable-ass --disable-postproc --disable-unrarexec --disable-vidix --disable-vidix-pcidb --disable-encoder=mlp --disable-parser=mlp --disable-protocol=mlp --disable-demuxer=mlp --disable-muxer=mlp --disable-yuv4mpeg --disable-cmov --disable-fast-clz --disable-fast-cmov --disable-mtrr --enable-xv --disable-ladspa --disable-smb
I get dsputil errors on mlp and truehd.
Had to manualy disable in source code decoders. But problematic part still remained (dsputil.c):
And i got my compiled binary.
Building it on virtual machine and transfer later to 486 PC.
I have gcc 3.4.6
After ./configure --options.....
i get:
Checking for inttypes.h (required) ... noAfter searching i found out that it depends on compiler version libdc++, i think its present since gcc 4.0
Checking for sys/bitypes.h (inttypes.h predecessor) ...
Error: Cannot find header either inttypes.h or bitypes.h. There is no chance for compilation to succeed.
Downloaded 1.3.0. Same problem.
Downloaded 1.1.1.
./configure --yasm='' --target=i486-Linux --disable-ftp --disable-tv-v4l1 --disable-tv --disable-qtx --disable-real --disable-win32dll --disable-gif --disable-mmx --disable-3dnow --disable-sse --disable-sse2 --disable-fastmemcpy --disable-xanim --disable-vm --disable-vesa --disable-svga --disable-jpeg --disable-gl --disable-mga --disable-sdl --disable-fbdev --disable-caca --disable-aa --disable-dga1 --disable-dga2 --disable-tga --disable-md5sum --disable-pnm --disable-mng --disable-libvorbis --disable-esd --enable-libmpeg2-internal --enable-libmpeg2 --disable-decoder=mlp --disable-mencoder --disable-freetype --disable-ass --disable-postproc --disable-unrarexec --disable-vidix --disable-vidix-pcidb --disable-encoder=mlp --disable-parser=mlp --disable-protocol=mlp --disable-demuxer=mlp --disable-muxer=mlp --disable-yuv4mpeg --disable-cmov --disable-fast-clz --disable-fast-cmov --disable-mtrr --enable-xv --disable-ladspa --disable-smb
I get dsputil errors on mlp and truehd.
Had to manualy disable in source code decoders. But problematic part still remained (dsputil.c):
#if CONFIG_MLP_DECODER || CONFIG_TRUEHD_DECODERCommented this also out.
ff_mlp_init(c, avctx);
#endif
And i got my compiled binary.
Thursday, September 12, 2019
Linux kernel 2.4.37.11 rebuild on 486 (2)
Booting up, dmseg and startx
Linux version 2.4.37.11 (root@dialog:) (gcc version 3.4.6) #2 Wed Sep 11 12:44:15 EEST 2019
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000001000000 (usable)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
16MB LOWMEM available.
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
DMI not present.
Kernel command line: BOOT_IMAGE=Linux-2.4.37.11 ro root=301
Initializing CPU#0
Console: colour VGA+ 80x25
Calibrating delay loop... 59.80 BogoMIPS
Memory: 13580k/16384k available (1449k kernel code, 2420k reserved, 478k data, 80k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
CPU: After generic, caps: 00000001 00000000 00000000 00000000
CPU: Common caps: 00000001 00000000 00000000 00000000
CPU: AMD 486 DX/4-WB stepping 04
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xfc020, last bus=0
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
isapnp: Scanning for PnP cards...
isapnp: Card 'D-Link DE-220P PnP ISA Card'
isapnp: Card 'ESS ES1868 Plug and Play AudioDrive'
isapnp: 2 Plug & Play cards detected total
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
pty: 512 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10f
Floppy drive(s): fd0 is 1.2M, fd1 is 1.44M
FDC 0 is an 8272A
ne.c: ISAPnP reports Generic PNP at i/o 0x240, irq 5.
ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com)
Last modified Nov 1, 2000 by Paul Gortmaker
NE*000 ethercard probe at 0x240: 00 80 c8 f0 00 9a
eth0: NE2000 found at 0x240, using IRQ 5.
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hda: FUJITSU MPB3032ATU, ATA DISK drive
hdc: SAMSUNG MP0402H, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: 6335280 sectors (3244 MB), CHS=785/128/63
hdc: attached ide-disk driver.
hdc: host protected area => 1
hdc: 78242976 sectors (40060 MB) w/8192KiB Cache, CHS=4870/255/63
Partition check:
hda: hda1 hda2
hdc: hdc1
ide: late registration of driver.
hdh: _NEC CD-RW NR-9300A, ATAPI CD/DVD-ROM drive
ide3 at 0x168-0x16f,0x36e on irq 12
hdh: attached ide-cdrom driver.
hdh: ATAPI 48X CD-ROM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.12
ide3: ESS ES1868 Plug and Play AudioDrive IDE interface
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 80k freed
Adding Swap: 32252k swap-space (priority -1)
X Window System (2)
Make it
make World > World.log 2>&1
And i fallow it in another terminal window
tail World.log -f
Compile time: 24 hours
It took so long because it built all tools and libs.
I removed or renamed old version of X, then:
make install
ln -s /etc/X11/app-defaults /usr/X11R6/lib/X11
ln -s /etc/X11/fs /usr/X11R6/lib/X11
ln -s /etc/X11/lbxproxy /usr/X11R6/lib/X11
ln -s /etc/X11/proxymngr /usr/X11R6/lib/X11
ln -s /etc/X11/rstart /usr/X11R6/lib/X11
ln -s /etc/X11/twm /usr/X11R6/lib/X11
ln -s /etc/X11/xdm /usr/X11R6/lib/X11
ln -s /etc/X11/xinit /usr/X11R6/lib/X11
ln -s /etc/X11/xsm /usr/X11R6/lib/X11
ln -s /etc/X11/xserver /usr/X11R6/lib/X11
chmod ug-w /usr/X11R6/lib # Make sure the permissions are OK
/sbin/ldconfig /usr/X11R6/lib # For Linux
reboot
Testing it
Well it worked fine. But it built allot useless modules, extensions etc.
So i changed config files, added s3 driver support. And did rebuild.
Took another 24 hours almost.
Window manager i use is icewm 1.0.6.
So i changed config files, added s3 driver support. And did rebuild.
Took another 24 hours almost.
Window manager i use is icewm 1.0.6.
Linux kernel 2.4.37.11 rebuild on 486 (1)
Download and config
Lets rebuild Linux kernel on 486.Made directory at
mkdir /usr/src/linux-2.4.37.11Downloaded tgz file into that directory over a network.
cd /usr/src/linux-2.4.37.11
wget https://mirrors.edge.kernel.org/pub/linux/kernel/v2.4/linux-2.4.37.11.tar.gz df -hBe sure that there is enogh free space. 170MB is needed.
tar -xzf linux-2.4.37.11.tar.gz
make menuconfig
edit your conf
make depInstall modules to temp, will copy later to right place.
make clean
make bzImage
make modules
make modules_install INSTALL_MOD_PATH=/tmp/linux
Wednesday, September 4, 2019
X Window System (1)
X11R7
So X11 latest version is X11R7.7. Downloaded and cant find S3 ViRGE drivers. Hmmm.https://www.x.org/releases/X11R7.7/doc/xorg-docs/ReleaseNotes.html
Removed in this Release section reveals that in this release its removed. :(
Previous version has it:
https://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html
Can we add it back?
Build script: https://cgit.freedesktop.org/xorg/util/modular/tree/?h=X11R7.6
Well, looking at the source its hell to compile.
More updated version in gitlab https://gitlab.freedesktop.org/xorg
Xfree86
I currently have Xfree86.XFree86 Version 4.2.1 / X Window SystemLatest version is:
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 3 September 2002
XFree86 Version 4.8.0
Release Date: 15 December 2008
X Protocol Version 11, Revision 0
And its really easy to compile. New host.def and some changes in xfree.cf
make WorldAnd done. Like what? :D
Still, my new video card S3 ViRGE i bought so i can use hw accelerated yuv for Mpleyer has some problems.
Mplayer Xv req
http://www.mplayerhq.hu/DOCS/HTML/en/xv.html
It must support YUY2 packed, and YV12 planar pixel formats to be usable with MPlayer.
In S3 driver there is.
s3v_xv.c
/* Looks like ViRGE only supports YUY2 and Y211?, */
Hardware manual (link 10MB)
I need to compile X server, and Mplayer again to see if it all actually works.
Building it
Downloaded all from this: http://ftp.xfree86.org/pub/XFree86/4.8.0/source/
States that XFree86-4.8.0-src-7.tgz has hardcopy of documents, so i will not need it.
Made directory at
mkdir /usr/src/XFree86
cd /usr/src/XFree86
Downloaded tgz files into that directory over a network.
wget ftp://ftp.xfree86.org/pub/XFree86/4.8.0/source/XFree86-4.8.0-src-1.tgz
wget ftp://ftp.xfree86.org/pub/XFree86/4.8.0/source/XFree86-4.8.0-src-2.tgz
wget ftp://ftp.xfree86.org/pub/XFree86/4.8.0/source/XFree86-4.8.0-src-3.tgz
wget ftp://ftp.xfree86.org/pub/XFree86/4.8.0/source/XFree86-4.8.0-src-4.tgz
wget ftp://ftp.xfree86.org/pub/XFree86/4.8.0/source/XFree86-4.8.0-src-5.tgz
wget ftp://ftp.xfree86.org/pub/XFree86/4.8.0/source/XFree86-4.8.0-src-6.tgz
df -hBe sure that there is enogh free space. 280 MB is needed.
Exctract and make preparations.
tar -xzf XFree86-4.8.0-src-1.tgz
tar -xzf XFree86-4.8.0-src-2.tgz
tar -xzf XFree86-4.8.0-src-3.tgz
tar -xzf XFree86-4.8.0-src-4.tgz
tar -xzf XFree86-4.8.0-src-5.tgz
tar -xzf XFree86-4.8.0-src-6.tgz
mkdir build
cd build
lndir ../xc
Last line is to make a shadow directory of symbolic links. So all new files will not be in source tree.
Made a new host.def and some changes in xfree86.cf in xc/config/cf. So it has what i need.
Monday, September 2, 2019
GCC 3.4.6 build
GCC 3.4.6
My 486 system has old compiler, version 3.3.4.
To bring it sort of up to date i need to compile newer version.
Using only c,c++,obj-c parts of it.
Build script and package creation is done by script witch is based on slackware (11.0) source files.
Compile is done on 486.
First build
Changed config script so no ada, fortran java.
--enable-languages=c,c++,objc
10 hours later it failed. :D
This error was not dominant but present:
gcc: Internal error: Terminated (program cc1)https://stackoverflow.com/questions/30887143/make-j-8-g-internal-compiler-error-killed-program-cc1plus
dmesg
Out of Memory: Killed process 14779 (cc1).Out of Memory: Killed process 14779 (cc1).Out of Memory: Killed process 15487 (sh).Out of Memory: Killed process 15487 (sh).Out of Memory: Killed process 16049 (cc1).Out of Memory: Killed process 16049 (cc1).Out of Memory: Killed process 15488 (genattrtab).Out of Memory: Killed process 15488 (genattrtab).Out of Memory: Killed process 16202 (cc1).Out of Memory: Killed process 16202 (cc1).Out of Memory: Killed process 16071 (make).Out of Memory: Killed process 16071 (make).Out of Memory: Killed process 16977 (cc1).Out of Memory: Killed process 16977 (cc1).Out of Memory: Killed process 16207 (make).Out of Memory: Killed process 16207 (make).
Adding more swap it seems is needed. Lets hope so.
Created a zero-filled regular file of 16M and turned it on (until restart):
dd if=/dev/zero of=/.swapfile bs=16 count=1M
mkswap /.swapfile
swapon /.swapfile
swapon -s
To disable swap if needed:
swapoff /.swapfileRemoved objc also. And removed j 2 from make comand. :D
Compile started again.
9 hours later fail again. Killed it.
cc1: out of memory allocating 9867200 bytes after a total of 7585952 bytes
dd if=/dev/zero of=/.swapfile bs=32 count=1MTry again.
Finaly done.
Compile time: 1 day 11 hours.Memory usage: 16 MB RAM+64MB swap (minimum swap free was 11MB by top)
Install
installpkg gcc-3.4.6-i486-1.tgz
installpkg gcc-g++-3.4.6-i486-1.tgz
Saturday, August 31, 2019
Lilo
The change
I have two hard disks. First (primary master) is original Windows 95 drive.
Second disk (primary slave) is added drive with linux installed.
So to boot linux i have to boot to dos and load linux from a command line.
But how can i had boot manager?
Adding Lilo
Well, i compiled lilo-24.2 (https://www.joonet.de/lilo/ftp/sources/) on my virtual machine. Copyed files over to 486 PC.
Made configuration file changes in /etc/lilo.conf
So that lilo boot is installed on windows 95 drive and second stage is booted from linux drive.
Got warning: "sector and map file are on different disks"
And when booting up got: "timestamp mismatch"
What the hell.
Now i have unbootable machine.
Still i was in luck, as i made floppy drive that had grub and Freedos. I was able to fix windows 95 disk mbr and got to boot again linux from there.
Still after many tries i was still on the same errors.
Finaly i was thinking, maybe if i change the order of disks i can get rid of first warning.
Ok booting from floppy and i get no root file system error and kernel panic. Requesting me to check filesystem in readonly mode. What? Cant change any config files.
Realized that /etc/fstab has wrong info info about drives. hdb was now hda, drive where linux is at.
Ok
Booted again from windows drive. I had version where initrd file was present so i can mount hda and change /etc/fstab file. Done. Booted.
Still second error.
God deem.
Made lots of changes, but still no luck.
Googelgin around: https://www.linuxquestions.org/questions/slackware-14/lilo-timestamp-mismatch-232224/
Sugest to uninstall lilo like lilo -U and reinstall then with lilo -v
No luck.
Finaly. Downloaded source code to 486 PC and made make.
Complains that gcc must be 3.3.5, i have 3.3.4 (checkit file). Made version lower in config file. Hit make again. After a while when it was done i hit:
make install
Then:
lilo -M /dev/hda MBRRebooted and got Lilo boot screen.
lilo -v
:D
Final config file:
# LILO configuration file
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
change-rules
reset
vga = normal
map = /boot/map
other = /dev/hdc
label = win
image = /boot/vmlinuz-2.4.37.11
root = /dev/hda1
label = Linux-2.4.37.11
read-only
image = /boot/vmlinuz-ide-2.4.29
root = /dev/hda1
label = Linux-2.4.29
read-only
Back to Linux
Linux 2.4.37.11
Managed to compile Linux kernel 2.4.37.11 and upload it to 486 PC.
Tested some things and one is lynx, for fun.
https://pastebin.com/6Yi3BRSA If it matters.
Show cpuinfo.
Subscribe to:
Posts (Atom)