forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A new port of uClinux on PSP (with accessibility to ms0)
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
bcarroll



Joined: 12 May 2008
Posts: 11

PostPosted: Mon May 12, 2008 1:00 am    Post subject: stupid question.. patching buildroot Reply with quote

Can someone please tell me how to "Apply buildroot-20071216.linuxonpsppatch"?

I am trying to follow the instructions in the "Building the MIPS(el) toolchain for uClinux on PSP" document but cannot figure this step out.
Back to top
View user's profile Send private message
SpikeX



Joined: 14 Jan 2007
Posts: 8
Location: Germany

PostPosted: Mon May 12, 2008 1:42 am    Post subject: Re: stupid question.. patching buildroot Reply with quote

bcarroll wrote:
Can someone please tell me how to "Apply buildroot-20071216.linuxonpsppatch"?


First you need a buildroot version near to 20071216, otherwise you will possibly get some errors while patching.

And then for applying the patch, simply cd to your buildroot source directory and type:
patch -p4 < /path/to/your/buildroot-20071216.linuxonpsppatch
Back to top
View user's profile Send private message
Eprat



Joined: 12 May 2008
Posts: 1

PostPosted: Mon May 12, 2008 8:30 pm    Post subject: Trying to compile libstdc++ for psp Reply with quote

Hi,
I am desperately trying to compile the last toolchain for psp. Everything goes right until i try to compile libstdc++. I have tried with gcc-4.2.1 and gcc-4.3.0. I have the same error messages:

/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/./gcc/xgcc -shared-libgcc -B/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/./gcc -nostdinc++ -L/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/src -L/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/src/.libs -B/usr/mipsel-linux-uclibc/bin/ -B/usr/mipsel-linux-uclibc/lib/ -isystem /usr/mipsel-linux-uclibc/include -isystem /usr/mipsel-linux-uclibc/sys-include -Winvalid-pch -Wno-deprecated -x c++-header -g -Os -fno-jump-tables -I/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc -I/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include -I/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1/libstdc++-v3/libsupc++ -O0 -g /home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1/libstdc++-v3/include/precompiled/stdc++.h -o mipsel-linux-uclibc/bits/stdc++.h.gch/O0g.gch
In file included from /home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/bits/locale_facets.h:47,
from /home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/bits/basic_ios.h:44,
from /home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/ios:50,
from /home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/ostream:45,
from /home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/bitset:59,
from /home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1/libstdc++-v3/include/precompiled/stdc++.h:56:
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:50: error: expected ';' before '*' token
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:54: error: '__ctype_mask_t' does not name a type
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:55: error: 'mask' does not name a type
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:56: error: 'mask' does not name a type
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:57: error: 'mask' does not name a type
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:58: error: 'mask' does not name a type
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:59: error: 'mask' does not name a type
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:60: error: 'mask' does not name a type
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:61: error: 'mask' does not name a type
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:62: error: 'mask' does not name a type
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:63: error: 'mask' does not name a type
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:64: error: 'mask' does not name a type
/home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/mipsel-linux-uclibc/bits/ctype_base.h:65: error: 'mask' does not name a type
In file included from /home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/bits/basic_ios.h:44,
from /home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/ios:50,
from /home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/ostream:45,
from /home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1-final/mipsel-linux-uclibc/libstdc++-v3/include/bitset:59,
from /home/eprat/workspace/psp/buildroot/toolchain_build_mipsel/gcc-4.2.1/libstdc++-v3/include/precompiled/stdc++.h:56:



If anyone have an idea?
Thanks
Back to top
View user's profile Send private message
bcarroll



Joined: 12 May 2008
Posts: 11

PostPosted: Tue May 13, 2008 10:11 am    Post subject: Reply with quote

thanks SpikeX for the help....

I have gotten a little further with compiling buildroot... but am still getting errors along the way.

any chance of someone putting up a pre-patched buildroot?

this would make building much easier.
Back to top
View user's profile Send private message
vijay



Joined: 03 Jan 2008
Posts: 25

PostPosted: Wed May 14, 2008 12:32 pm    Post subject: Reply with quote

can someone please share buildroot version 20071216 ........ i cant seem to find it
thanx
Back to top
View user's profile Send private message
bcarroll



Joined: 12 May 2008
Posts: 11

PostPosted: Thu May 15, 2008 5:57 am    Post subject: Reply with quote

do the other patches need to be renamed or will they be applied with the default file names?

- Copy gcc-4.2.1.linuxonpsppatch to $(BUILDROOT)/toolchain/gcc/4.2.1/
- Copy uclibc-0.9.29.linuxonpsppatch to $(BUILDROOT)/toolchain/uClibc/
- Copy elf2flt.linuxonpsppatch to $(BUILDROOT)/toolchain/elf2flt/
- Apply buildroot-20071216.linuxonpsppatch

A step by step tutorial would be great....
Back to top
View user's profile Send private message
bcarroll



Joined: 12 May 2008
Posts: 11

PostPosted: Fri May 16, 2008 6:02 am    Post subject: Reply with quote

sim,
I cloned your buildroot repository
hg clone http://hg.sequanux.org/buildroot-psp

but all of the files end in .i and are not named correctly (Makefile is _m_a_k_e_f_i_l_e.i)

did I miss a step?
Back to top
View user's profile Send private message
vijay



Joined: 03 Jan 2008
Posts: 25

PostPosted: Sun May 18, 2008 4:34 am    Post subject: Reply with quote

no one has the buildroot-20071216 ....... i compiled this toolchain before but now i reinstalled my linux, the buildroot which i used to have is gone now ;
please some one share it
Back to top
View user's profile Send private message
SpikeX



Joined: 14 Jan 2007
Posts: 8
Location: Germany

PostPosted: Sun May 18, 2008 8:03 am    Post subject: Reply with quote

For buildroot version 20071216 the following should do the trick:
svn co --revision 20650 svn://uclibc.org/trunk/buildroot

20650 is the last revision before 12/16/2007 and so it should be equivalent to the 20071216 snapshot. I didn't try to compile this version yet, but patching works without any problems.
Back to top
View user's profile Send private message
vijay



Joined: 03 Jan 2008
Posts: 25

PostPosted: Mon May 19, 2008 11:55 am    Post subject: Reply with quote

@SpikeX
hey thanx ....... it worked ; i got a running toolchain :)

@riverfal
i compiled the busybox but i forgot how to add devices in /dev/* ; last time i saw from your website .......... but now i missed the link .......
please can u help me

if anyone knows how to ...... please tell me

thanx ,
Back to top
View user's profile Send private message
Drajwer



Joined: 24 Aug 2007
Posts: 6

PostPosted: Fri May 23, 2008 7:43 pm    Post subject: Reply with quote

Im wondering, does anyone got basic SIO keyboard to work with ? I have SIO keyboard, but when enabled SIO port I got crap chars instead of pressed keys. How to fix it ? Anyone got it to work?
Back to top
View user's profile Send private message
bcarroll



Joined: 12 May 2008
Posts: 11

PostPosted: Wed May 28, 2008 1:25 pm    Post subject: Reply with quote

has anyone (Jackson) given any thought to including the buildroot-20071216 source in the download section?
Back to top
View user's profile Send private message
bcarroll



Joined: 12 May 2008
Posts: 11

PostPosted: Sat May 31, 2008 4:25 am    Post subject: Reply with quote

Anyone have a workaround (or solution) for this issue:
root@slackware9:/usr/src/buildroot-20071216/build_mipsel/psposk2# make
mipsel-linux-g++ -Wl,-elf2flt -static oskmain.o osk.o oskstates.o osk_psp.o Eng.o EngActive.o Cap.o CapActive.o Num.o NumActive.o -o psposk2
/usr/src/buildroot-20071216/build_mipsel/staging_dir/usr/bin/../lib/gcc/mipsel-linux-uclibc/4.2.1/../../../../mipsel-linux-uclibc/bin/ld: warning: cannot find entry symbol lf2flt; defaulting to 0000000000400140
/usr/src/buildroot-20071216/build_mipsel/staging_dir/usr/lib/libc.a(_ppfs_parsespec.os): In function `_ppfs_parsespec':
_ppfs_parsespec.c:(.text+0xb4): undefined reference to `__GI___ctype_b'
collect2: ld returned 1 exit status
make: *** [psposk2] Error 1
Back to top
View user's profile Send private message
bcarroll



Joined: 12 May 2008
Posts: 11

PostPosted: Tue Jun 03, 2008 6:17 am    Post subject: Reply with quote

Is the PSPSDK required for building the kernel?
I noticed a bunch of errors related to mising pspsdk header files during the kernel compilation.
Back to top
View user's profile Send private message
vijay



Joined: 03 Jan 2008
Posts: 25

PostPosted: Tue Jun 03, 2008 4:48 pm    Post subject: Reply with quote

ye it is
u have to modify the path to pspsdk in config gile
Back to top
View user's profile Send private message
bcarroll



Joined: 12 May 2008
Posts: 11

PostPosted: Fri Jun 06, 2008 11:19 pm    Post subject: Reply with quote

I finally got everything compiled without any errors....
but now I am unable to load the kernel. I saw a previous post from roge (didn't see any follow-ups for this one) about decompressing the kernel.. then the psp shut down. I am having this same issue. Any ideas how to resolve?

---edit---

After:
make clean && make ARCH=mips CROSS_COMPILE=mipsel-linux- vmlinux.bin

The kernel now loads... but dies (locks up the PSP) on /init with
BINFMT_FLAT: bad header magic

Does this mean the problem is with my compile of busybox?
Back to top
View user's profile Send private message
bcarroll



Joined: 12 May 2008
Posts: 11

PostPosted: Sat Jun 07, 2008 5:32 am    Post subject: Reply with quote

problem was with busybox compile...
typo in the make cmd line... -W1 and -Wl do very different things.

Now I have a new problem....
Code:

WARNING: R_MIPS_GPREL32 is not supported
ERROR: reloc type R_MIPS_GPREL32 unsupported in this context
218 bad relocs
Failed: mipsel-linux-gcc -static -Wl,-elf2flt -o busybox_unstripped........edited..
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1


Please help
Back to top
View user's profile Send private message
andrewwan1980



Joined: 05 Oct 2007
Posts: 38

PostPosted: Mon Jun 09, 2008 8:18 pm    Post subject: Reply with quote

Will I be able to run Wine on uClinuxPSP to run Windows 95 (not XP) apps... like Visual C++ 6.0? I guess it's a question whether X Windows runs on uClinuxPSP first...
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Mon Jun 09, 2008 11:43 pm    Post subject: Reply with quote

Oh, come on! How much memory do you think it takes to run Win95 and Visual C6?!

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Jun 10, 2008 12:58 am    Post subject: Reply with quote

andrewwan1980 wrote:
Will I be able to run Wine on uClinuxPSP to run Windows 95 (not XP) apps... like Visual C++ 6.0? I guess it's a question whether X Windows runs on uClinuxPSP first...


Wine still requires an x86 CPU. As the name says, it's not an emulator.
Back to top
View user's profile Send private message AIM Address
andrewwan1980



Joined: 05 Oct 2007
Posts: 38

PostPosted: Tue Jun 10, 2008 5:32 am    Post subject: Reply with quote

Okay, will we be able to use gcc/g++ and compile our own source codes under uClinux-PSP? I guess we need to port gcc/g++ to uClinux-PSP right? Same with X Windows, and KDevelop, etc.

Matan at http://www.hacker.co.il/psp/bochs/ says he boots up Windows 95 under bochs quite fast, and Solitaire was playable too. So am thinking maybe Visual C++ 6.0 would run...

J.F. are you the guy who did JFduke?
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Jun 10, 2008 6:41 am    Post subject: Reply with quote

andrewwan1980 wrote:
Okay, will we be able to use gcc/g++ and compile our own source codes under uClinux-PSP? I guess we need to port gcc/g++ to uClinux-PSP right? Same with X Windows, and KDevelop, etc.

Matan at http://www.hacker.co.il/psp/bochs/ says he boots up Windows 95 under bochs quite fast, and Solitaire was playable too. So am thinking maybe Visual C++ 6.0 would run...


Gcc is too big for uclinux on the PSP. Remember, uclinux is for systems without an MMU, so NO VIRTUAL MEMORY! Whan memory you have is all there is. Just as you have to use a cross-compiler to compile the kernel, you'll need to use the cross-compiler for all apps as well.

Quote:
J.F. are you the guy who did JFduke?


Nope. That's someone else entirely.
Back to top
View user's profile Send private message AIM Address
Ferdinant



Joined: 13 Feb 2008
Posts: 6

PostPosted: Mon Jun 23, 2008 9:17 pm    Post subject: The prebuild toolchain Reply with quote

You waited for this, you got it now:

The prebuild Buildroottoolchain is now avalible from Jackson Mo at: http://jacksonm80.googlepages.com/linuxonpsp.htm

Sorry for my bad english ;)
Back to top
View user's profile Send private message
noquarter



Joined: 23 Jul 2006
Posts: 17

PostPosted: Wed Jun 25, 2008 7:59 am    Post subject: Reply with quote

The link to the file on his webpage is broken.
Back to top
View user's profile Send private message
meetpatty



Joined: 12 Apr 2008
Posts: 1

PostPosted: Sun Jun 29, 2008 8:31 pm    Post subject: Reply with quote

Has anyone had success using ncurses? I tried to cross compile ncurses 5.6 and ended up with ncurses.h missing function prototypes and I'm getting undefined references to initscr etc.
Back to top
View user's profile Send private message
mrbanjo



Joined: 03 Jul 2008
Posts: 1

PostPosted: Thu Jul 03, 2008 7:03 am    Post subject: Reply with quote

Hi

I was wondering if it is possible to get ADOM http://www.adom.de/ to run? I get some error about bad header magic, is it because of the file system? Any suggestions? And sorry if this is a rather stupid question, but I have tried to get the game to work for a long time, but since it is my first linux ecperience it is quite tricky :)
Back to top
View user's profile Send private message
SpikeX



Joined: 14 Jan 2007
Posts: 8
Location: Germany

PostPosted: Wed Jul 23, 2008 5:59 am    Post subject: Reply with quote

mrbanjo wrote:
I was wondering if it is possible to get ADOM http://www.adom.de/ to run? I get some error about bad header magic, is it because of the file system? Any suggestions?

The "Bad header magic" has nothing to do with the filesystem. The linux-binary on adom.de is an ELF-binary but the PSP needs a FLAT-binary ;)
Back to top
View user's profile Send private message
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Wed Jul 23, 2008 1:54 pm    Post subject: Reply with quote

meetpatty wrote:
Has anyone had success using ncurses? I tried to cross compile ncurses 5.6 and ended up with ncurses.h missing function prototypes and I'm getting undefined references to initscr etc.

Believe it or not, I did try that before when I tried to port the text mode mouse daemon, but encountered so many compatibility issues that I decided to write my own daemon instead to do away with ncurses library. Turns out it's easier than making ncurses work on psp :)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Wed Jul 23, 2008 1:58 pm    Post subject: Reply with quote

SpikeX wrote:
mrbanjo wrote:
I was wondering if it is possible to get ADOM http://www.adom.de/ to run? I get some error about bad header magic, is it because of the file system? Any suggestions?

The "Bad header magic" has nothing to do with the filesystem. The linux-binary on adom.de is an ELF-binary but the PSP needs a FLAT-binary ;)

I remember I have patched the elf2flt tool (by adding code to handle the mmu-less mips arch) to convert elf executables into FLAT binaries that can run on psp. Did you try that?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SpikeX



Joined: 14 Jan 2007
Posts: 8
Location: Germany

PostPosted: Wed Jul 23, 2008 11:41 pm    Post subject: Reply with quote

M.Jackson wrote:
SpikeX wrote:
mrbanjo wrote:
I was wondering if it is possible to get ADOM http://www.adom.de/ to run? I get some error about bad header magic, is it because of the file system? Any suggestions?

The "Bad header magic" has nothing to do with the filesystem. The linux-binary on adom.de is an ELF-binary but the PSP needs a FLAT-binary ;)

I remember I have patched the elf2flt tool (by adding code to handle the mmu-less mips arch) to convert elf executables into FLAT binaries that can run on psp. Did you try that?

I didn't try it, but I think it wouldn't work anyway because the prebuit ELF on the website is most probable (they don't wrote anything about that) built for x86 and not for MIPS.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 8 of 10

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group