News:

Latest versions:
Server plugin: 0.5.1
MVP dongle: 0.5.2
Raspberry Pi client: 0.5.2
Windows client: 0.5.2-1

Main Menu

Dongle creation guide

Started by Chris, January 24, 2006, 00:38:51

Previous topic - Next topic

Chris

I have added a guide to the web site about how to make dongles (finally). It is totally untested at the moment, would somebody volunteer to test it? I will fix whatever I can and add bits to it until the guide works.

You can find it under the link to make a normal development environment on the vomp page.

gerge

Thanks Chris!

I will try it tomorrow.

gerge

frithjof

I tryed with SUSE Linux 8.0

frithjof@linux80:~> cat /proc/version
Linux version 2.4.18-4GB (root@Pentium.suse.de) (gcc version 2.95.3 20010315 (SuSE)) #1 Wed Mar 27 13:57:05 UTC 2002
frithjof@linux80:~>

GNU bash, version 2.05.0(1)-release (i386-suse-linux)

frithjof@linux80:~> patch --version
patch 2.5.4
Copyright 1984-1988 Larry Wall
Copyright 1989-1999 Free Software Foundation, Inc.
-----------------------------------------------------------------------------------------

When I start
sh mvp-ppc405.sh

it reports

gcc-2.95.3/texinfo/util/texindex.c
gcc-2.95.3/texinfo/util/update-info
gcc-2.95.3/FAQ
gcc-2.95.3/faq.html
gcc-2.95.3/install/
gcc-2.95.3/install/binaries.html
gcc-2.95.3/install/build.html
gcc-2.95.3/install/configure.html
gcc-2.95.3/install/dec-osf-shlibstdc++.patch
gcc-2.95.3/install/download.html
gcc-2.95.3/install/finalinstall.html
gcc-2.95.3/install/glibc-2.2.patch
gcc-2.95.3/install/index.html
gcc-2.95.3/install/sco_osr5_g77.patch
gcc-2.95.3/install/specific.html
gcc-2.95.3/install/test.html
gcc-2.95.3/install/x86-sol2-gas.patch
gcc-2.95.3/install/BINARIES
gcc-2.95.3/install/BUILD
gcc-2.95.3/install/CONFIGURE
gcc-2.95.3/install/DOWNLOAD
gcc-2.95.3/install/FINALINSTALL
gcc-2.95.3/install/INDEX
gcc-2.95.3/install/SPECIFIC
gcc-2.95.3/install/TEST
gcc-2.95.3/.brik
+ '[' -d linux ']'
+ cd gcc-2.95.3
+ test -f /home/frithjof/vomp/crosstool/crosstool-0.25/patches/gcc-2.95.3/arm-linux.patch
+ patch -p1 -f
patching file gcc/config/arm/arm.c
patching file gcc/config/arm/arm.h
patching file gcc/config/arm/arm.md
patching file gcc/config/arm/elf.h
patching file gcc/config/arm/linux-gas.h
patching file gcc/config/arm/t-linux
patching file gcc/final.c
patching file gcc/function.c
patching file gcc/jump.c
patching file gcc/varasm.c
+ test -f /home/frithjof/vomp/crosstool/crosstool-0.25/patches/gcc-2.95.3/gcc2.95.3-ppc405.patch
+ patch -p1 -f
patching file gcc/config/rs6000/rs6000.c
Hunk #1 FAILED at 208.
1 out of 1 hunk FAILED -- saving rejects to file gcc/config/rs6000/rs6000.c.rej
patching file gcc/config/rs6000/rs6000.h
Hunk #2 FAILED at 2310.
Hunk #3 FAILED at 2350.
2 out of 3 hunks FAILED -- saving rejects to file gcc/config/rs6000/rs6000.h.rej
patching file gcc/config/rs6000/rs6000.md
Hunk #7 succeeded at 267 with fuzz 1.
patching file gcc/config/rs6000/t-newas
Hunk #1 FAILED at 38.
1 out of 1 hunk FAILED -- saving rejects to file gcc/config/rs6000/t-newas.rej
patching file gcc/configure
Hunk #1 FAILED at 5741.
1 out of 1 hunk FAILED -- saving rejects to file gcc/configure.rej
patching file gcc/configure.in
Hunk #1 FAILED at 3437.
1 out of 1 hunk FAILED -- saving rejects to file gcc/configure.in.rej
Done.
frithjof@linux80:~/vomp/crosstool/crosstool-0.25>

The file rs6000.c.orig at line 208 is:

    {"403", PROCESSOR_PPC403,
       MASK_POWERPC | MASK_SOFT_FLOAT | MASK_NEW_MNEMONICS | MASK_STRICT_ALIGN,
       POWER_MASKS | POWERPC_OPT_MASKS | MASK_POWERPC64},
    {"505", PROCESSOR_MPCCORE,
       MASK_POWERPC | MASK_NEW_MNEMONICS,
       POWER_MASKS | POWERPC_OPT_MASKS | MASK_POWERPC64},

The file rs6000.c.rej is:
***************
*** 208,213 ****
     {"403", PROCESSOR_PPC403,
        MASK_POWERPC | MASK_SOFT_FLOAT | MASK_NEW_MNEMONICS | MASK_STRICT_ALIGN,
        POWER_MASKS | POWERPC_OPT_MASKS | MASK_POWERPC64},
     {"505", PROCESSOR_MPCCORE,
        MASK_POWERPC | MASK_NEW_MNEMONICS,
        POWER_MASKS | POWERPC_OPT_MASKS | MASK_POWERPC64},
--- 208,216 ----
     {"403", PROCESSOR_PPC403,
        MASK_POWERPC | MASK_SOFT_FLOAT | MASK_NEW_MNEMONICS | MASK_STRICT_ALIGN,
        POWER_MASKS | POWERPC_OPT_MASKS | MASK_POWERPC64},
+    {"405", PROCESSOR_PPC403,
+       MASK_POWERPC | MASK_SOFT_FLOAT | MASK_NEW_MNEMONICS,
+       POWER_MASKS | POWERPC_OPT_MASKS | MASK_POWERPC64},
     {"505", PROCESSOR_MPCCORE,
        MASK_POWERPC | MASK_NEW_MNEMONICS,
        POWER_MASKS | POWERPC_OPT_MASKS | MASK_POWERPC64},

so I can do the patch with a text editor, but how

do I have to continue after that.

best regards frithjof




MarkC

How strange. As you've probably noticed, it's just a difference in whitespace between the patch and the original file. It used to work though...!
Looks like the patch on loggytronic.com needs fixing.

At this stage, the quickest and easiest solution is to remove the crosstool-0.25 directory and start again from the beginning.
Before running "sh mvp-ppc405.sh", change line 65 of crosstool-0.25/getandpatch.sh:

65c65
<               patch -p1 -f < $p
---
>               patch -p1 -l -f < $p

Patch will then ignore differences in whitespace. I don't think this will have any unwanted effects.

Good luck!
MarkC

frithjof

well, this helps for the first step.
Now I come to:
------------------------------------------
+ test -x /opt/crosstool/powerpc-405-linux-gnu/gcc-2.95.3-glibc-2.2.5/bin/powerpc-405-linux-gnu-gcc
+ echo Build glibc and linuxthreads
Build glibc and linuxthreads
+ mkdir -p build-glibc
+ cd build-glibc
+ echo
+ test '!' -f Makefile
+ BUILD_CC=gcc
+ CFLAGS=-O -mcpu=405
+ CC=powerpc-405-linux-gnu-gcc
+ AR=powerpc-405-linux-gnu-ar
+ RANLIB=powerpc-405-linux-gnu-ranlib
+ /home/frithjof/vomp/crosstool/crosstool-0.25/build/powerpc-405-linux-gnu/gcc-2.95.3-glibc-2.2.5/glibc-2.2.5/configure --host=powerpc-405-linux-gnu --prefix=/usr --build=i686-pc-linux-gnu --without-fp --without-tls --without-__thread --enable-kernel=2.4.3 --without-cvs --disable-profile --disable-debug --without-gd --enable-clocale=gnu --enable-add-ons=linuxthreads --with-headers=/opt/crosstool/powerpc-405-linux-gnu/gcc-2.95.3-glibc-2.2.5/powerpc-405-linux-gnu/include
creating cache ./config.cache
checking host system type... powerpc-405-linux-gnu
checking sysdep dirs... sysdeps/powerpc/elf linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread sysdeps/pthread linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix linuxthreads/sysdeps/powerpc sysdeps/unix/sysv/linux/powerpc sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/powerpc sysdeps/unix sysdeps/posix sysdeps/powerpc sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/powerpc/soft-fp sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for pwd... /bin/pwd
checking build system type... i686-pc-linux-gnu
checking for powerpc-405-linux-gnu-gcc... powerpc-405-linux-gnu-gcc
checking version of powerpc-405-linux-gnu-gcc... 2.95.3, ok
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.79.1, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.10.40, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.0, ok
checking for gsed... no
checking for sed... sed
checking version of sed... 3.02, ok
checking whether the C compiler (powerpc-405-linux-gnu-gcc -O -mcpu=405 ) works... no
checking whether the C compiler (powerpc-405-linux-gnu-gcc -O -mcpu=405 ) is a cross-compiler... (cached) yes
checking whether we are using GNU C... yes
checking build system type... i686-pc-linux-gnu
checking for gcc... gcc
checking how to run the C preprocessor... /lib/cpp
checking whether /opt/crosstool/powerpc-405-linux-gnu/gcc-2.95.3-glibc-2.2.5/powerpc-405-linux-gnu/bin/as is GNU as... yes
checking whether /opt/crosstool/powerpc-405-linux-gnu/gcc-2.95.3-glibc-2.2.5/powerpc-405-linux-gnu/bin/ld is GNU ld... yes
checking for powerpc-405-linux-gnu-mig... mig
checking whether ranlib is necessary... no
checking LD_LIBRARY_PATH variable... contains current directory
configure: error:
*** LD_LIBRARY_PATH shouldn't contain the current directory when
*** building glibc. Please change the environment variable
*** and run configure again.
Done.
-------------------------------------------------------------
frithjof@linux80:~/vomp/crosstool/crosstool-0.25> echo $LD_LIBRARY_PATH
/usr/lib/qt3/lib:/usr/lib/qt3/lib:
--------------------------------------------------------------
Attached is the config.log from:
/home/frithjof/vomp/crosstool/crosstool-0.25/build/powerpc-405-linux-gnu/gcc-2.95.3-glibc-2.2.5/build-glibc

I hope this helps.

Best regards

frithjof

here in germany many people have suse-linux on the desk top so it would be nice to
run the software at a suse linux distribution
( the binary vomp client 0.1.0 runs fime :D with my vdr 1.3.41 + 2 x MVP





MarkC

I've just built a toolchain and there's another problem at the end. You will probably get an error something like this:

We check GLIBC_EXTRA_CONFIG (--without-fp) to see if it contains
--without-fp to decide.
+ case "$GLIBC_EXTRA_CONFIG" in
+ cp -a /opt/crosstool/powerpc-405-linux-gnu/gcc-2.95.3-glibc-2.2.5/powerpc-405-linux-gnu/lib/nof/libstdc++-3-libc6.1-2-2.10.0.so /opt/crosstool/powerpc-405-linux-gnu/gcc-2.95.3-glibc-2.2.5/powerpc-405-linux-gnu/lib/nof/libstdc++-libc6.1-2.so.3 /opt/crosstool/powerpc-405-linux-gnu/gcc-2.95.3-glibc-2.2.5/powerpc-405-linux-gnu/lib
cp: cannot create regular file
`/opt/crosstool/powerpc-405-linux-gnu/gcc-2.95.3-glibc-2.2.5/powerpc-405-linux-gnu/lib/libstdc++-3-libc6.1-2-2.10.0.so':
Permission denied
Done.

This is because it's trying to overwrite a shared library that doesn't have write permissions.
The best thing to do is edit crosstool.sh, line 299, before running mvp-ppc405.sh:
299c299
<       cp -a ${PREFIX}/${TARGET}/lib/nof/*.so* ${PREFIX}/${TARGET}/lib
---
>       cp -af ${PREFIX}/${TARGET}/lib/nof/*.so* ${PREFIX}/${TARGET}/lib

If you have already started, don't worry, this is actually the very last part of the process! So you can just copy and paste the cp command, replacing -a with -af.
Then your toolchain should be complete and working.

MarkC

MarkC

Sorry, I started writing my last post before I saw yours!

Remove the colon from the end of your LD_LIBRARY_PATH, or just unset LD_LIBRARY_PATH.

It might be possible to get the scripts to resume half-way through, but personally I'd start again from the beginning, just to be sure it's right.

MarkC

frithjof

Thank you verry much, :D :D :D :D :D :D :D :D

now I can build a dongle and it connects to vomp server CVS 2006-02-09 !!!!!!!!!

GREAT WORK !!!!!!! it is realy goooooooood

Best regards from Germany

Frithjof


Chris


frithjof

Hi Chris,
thank you for the great work !!!

I am trying to get the source via cvs
  cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/vomp co -P client
but got response:

  cvs [checkout aborted]: unrecognized auth response from cvs.sourceforge.net: M -!- Client or Server timeout occurred!

I need the source because I added a new menu to display things like
  outdoor temperature , .....
It would be nice if you can help me

Best regards
Frithjof


davep

Quote from: frithjof on March 15, 2006, 08:38:52
Hi Chris,
thank you for the great work !!!

I am trying to get the source via cvs
  cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/vomp co -P client
but got response:

  cvs [checkout aborted]: unrecognized auth response from cvs.sourceforge.net: M -!- Client or Server timeout occurred!


SourceForge has been badly overloaded recently, it took me a couple of days to get a resync for the last set of updates. At the moment the CVS browser is not working. Keep trying!