![]() |
![]() |
|
|
Compare Products, Prices & Stores For: COMPUTERS, COMPONENTS, COMPUTER ACCESSORIES, COMPUTER MEMORY, HARDWARE, INPUT DEVICES, NETWORKING, PDAs & MOBILE ELECTRONICS, SOFTWARE, STORAGE & MEDIA, DIGITAL CAMERAS, HOME AUDIO, TV& VIDEO |
|
|
|
|
|
|
#1
|
||||
|
||||
|
MIPS Tivo cross compiler on cygwin
Here is a MIPS Tivo cross compiler and cross debugger build script for cygwin.
Notes: 1. I could not recompile glibc on cygwin, so I just used libraries and include files from usr.local.mips-tivo.tar.bz2. 2. It uses a special gcc version patched for MIPS which is available only as a source RPM. I could not figure out how to unpack it under cygwin, so I have directions how to do it under Linux. 3. By default, everything is installed under "c:\Program Files\TivoGcc". Versions used: cygwin 1.3.22 binutils 2.14.90.0.6 gcc 3.2-7.1 gdb 20030906 insight 20030902 glibc 2.2.3 (not built) Last edited by tmesis; 09-07-2003 at 12:45 PM. |
|
#2
|
||||
|
||||
|
I'm making headway but still haven't gotten a cross-compiler setup up with Cygwin. I'll keep you posted as I work through the errors.
NutKase
__________________
"God, and DealDataBase, help those that help themselves." --Shamelessly stolen from psxboy ------------------------------------------------ 2 each, SA S2 287hr 7.2.1a's with Lifetime. Hacks: 1 Manually Monte'd -140, Bash,Telnet,FTP,TivoWebPlus, Superpatch-67all Unscrambled/HMO,MFS_FTP Ver. N,TyTools, tivoserver Fully hacked SA S1 |
|
#3
|
||||
|
||||
|
Re: Re: Cygwin Compiler Update
quote: -------------------------------------------------------------------------------- Originally posted by tmesis I have /usr/bin/msgfmt. It seems it came from gettext-devel package. Try to install it. -------------------------------------------------------------------------------- Thanks, I already got it. My most current hiccup is with a link to libintl.la and arparse.a and arparse.c NutKase "If it was easy... everybody would be doing it!"
__________________
"God, and DealDataBase, help those that help themselves." --Shamelessly stolen from psxboy ------------------------------------------------ 2 each, SA S2 287hr 7.2.1a's with Lifetime. Hacks: 1 Manually Monte'd -140, Bash,Telnet,FTP,TivoWebPlus, Superpatch-67all Unscrambled/HMO,MFS_FTP Ver. N,TyTools, tivoserver Fully hacked SA S1 |
|
#4
|
||||
|
||||
|
nutkase: did you try installing everything during the cygwin install? if not, that might be faster in the short run (though figuring out the minium install has its benefits)
|
|
#5
|
||||
|
||||
|
Quote:
![]() NutKase
__________________
"God, and DealDataBase, help those that help themselves." --Shamelessly stolen from psxboy ------------------------------------------------ 2 each, SA S2 287hr 7.2.1a's with Lifetime. Hacks: 1 Manually Monte'd -140, Bash,Telnet,FTP,TivoWebPlus, Superpatch-67all Unscrambled/HMO,MFS_FTP Ver. N,TyTools, tivoserver Fully hacked SA S1 |
|
#6
|
|||
|
|||
|
Has anybody done this on a Windows host?
I have installed the latest Cygwin, but I can't figure out how to build the appropriate MIPS tool chain. Thanks. |
|
#7
|
||||
|
||||
|
Quote:
I usually cut and paste each command in my script separately into cygwin bash prompt, so that I can notice if anything starts failing. A few days ago I succesfully rebuilt my cross-compiler with gcc 3.3.2, gdb 6.0. |
|
#8
|
|||
|
|||
|
Where to begin...
First, I can't execute the shell script. I start the Cygwin bash shell, and I can see that it is there via 'ls -l', but I don't know how to execute it. This I attribute to my Windows-ness. Second, I can't execute the first command in the script by hand (the wget for the binutils file). I have downloaded and installed wget, and I can run it, but I can't get it to use the proxy I need. I have searched on google, and found that I need to specify '--proxy=on' in the wget command line, and put 'http_proxy=http://whatever.com:8080/' in 1) a file called .wgetrc, 2) a file called wgetrc, or 3) an environment variable. I have tried all three, and I can't make it work. I have even tried putting the .wgetrc/wgetrc files in multiple places, and I have even tried using upper- and lower-case for the environment variable. But wget never uses the proxy; it just resolves the host and tries to connect to it directly, which of course fails. Thanks. |
|
#9
|
|||
|
|||
|
EDIT: I figured it out...
The wgetrc file needs to go in /egc (c:\cygwin\etc). I execute the bash script by typing 'bash [script name]' from the Windows CMD.EXE prompt. I haven't felt this stupid in 15 years... Last edited by InterMurph; 12-17-2003 at 01:26 PM. |
|
#10
|
|||
|
|||
|
Now I'm on the second step of the script, which tells me:
Quote:
Quote:
Quote:
Thanks again. |
|
#11
|
|||
|
|||
|
Unfortunately I don't have a way to post the 40+ MB bz2 file. I was however able to create it myself under cygwin. I'm not sure what problem you're running into, but here's some output from my copies of the files so you can check what you've downloaded.
RPM VERSION C:\Temp\tivocompile\test>rpm RPM version 4.1 MD5 OF DOWNLOADED RPM C:\Temp\tivocompile\test>md5sum gcc-3.2-7.1.src.rpm 75b4f481e1ee55332f381a6fd0bac0ed *gcc-3.2-7.1.src.rpm RPM SIGNATURE CHECKS C:\Temp\tivocompile\test>rpm -K -v gcc-3.2-7.1.src.rpm gcc-3.2-7.1.src.rpm: Header SHA1 digest: OK (f2e25d8b76104b79c8fd74eeb4ddf095250e33c4) MD5 digest: OK (c0926b6dbf5c21e64494c3756ac33769) FILE SIZE 12/05/2003 05:26 PM 20,807,996 gcc-3.2-7.1.src.rpm ACTUAL RPM INSTALL C:\Temp\tivocompile\test>rpm -ivh gcc-3.2-7.1.src.rpm warning: user hjl does not exist - using root <... removed lots of redudant copies of this error message ...> warning: user hjl does not exist - using root 1:gcc ########################################### [100%] I don't actually have my cross-compiler working yet, my build fails during testing of the compiled cross-compiler (ld.so.1 can't be loaded during linking of some test program), I haven't spent enough time to dig into the details yet... |
|
#12
|
||||
|
||||
|
Updated script
I updated the script to the newest binutils, gcc, gdb. Seems to work fine on simple tests. Installing is much simplified since there is no need to extract gcc-3.2-7.1 under linux.
BTW, there is an example of how to use http_proxy env variable as well. Enjoy. |
|
#13
|
|||
|
|||
|
Thanks, tmesis. Your new script is working so far for me; it downloaded all the files, and it is now building.
Thanks! |
|
#14
|
|||
|
|||
|
I encountered a problem with getting usr.local.mips-tivo.tar.bz2. I ended up with a 15K file called usr.local.mips-tivoltar.bz2@use_mirror=unc, which was an HTML file.
I replace it with the next-level link, http://unc.dl.sourceforge.net/source...-tivo.tar.bz2, and it is now downloading. |
|
#15
|
|||
|
|||
|
Next problem:
On line 36, you get gcc-3.3.2.tar.gz. On line 124, you are trying to extract gcc-3.3.2.targ.bz2 via bzip2: 'tar xjf gcc-$GCC_VER.tar.bz2' I replaced it with 'tar xfz gcc-$GCC_VER.tar.gz' and it seems to work. Starting again... |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|