Help re-porting uClinux to the psp

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

wankel
Posts: 17
Joined: Sun Oct 18, 2009 2:16 pm

Post by wankel »

Just got a chance to work on this. I succesfully patched it, and placed the config file. In the last step where I install it is where Im running into trouble. I think its an issue with my paths since it cant find a lot of the libraries:

Code: Select all

applets/applets.c:15:20: error: assert.h: No such file or directory
In file included from include/libbb.h:13,
                 from include/busybox.h:10,
                 from applets/applets.c:16:
include/platform.h:102:23: error: byteswap.h: No such file or directory
include/platform.h:103:21: error: endian.h: No such file or directory
include/platform.h:135:24: error: arpa/inet.h: No such file or directory
include/platform.h:301:23: error: sys/mount.h: No such file or directory
In file included from include/busybox.h:10,
                 from applets/applets.c:16:
include/libbb.h:15:19: error: ctype.h: No such file or directory
include/libbb.h:16:20: error: dirent.h: No such file or directory
include/libbb.h:17:19: error: errno.h: No such file or directory
include/libbb.h:18:19: error: fcntl.h: No such file or directory
include/libbb.h:19:22: error: inttypes.h: No such file or directory
include/libbb.h:20:20: error: mntent.h: No such file or directory
include/libbb.h:21:19: error: netdb.h: No such file or directory
include/libbb.h:22:20: error: setjmp.h: No such file or directory
include/libbb.h:23:20: error: signal.h: No such file or directory
include/libbb.h:24:19: error: stdio.h: No such file or directory
include/libbb.h:25:20: error: stdlib.h: No such file or directory
include/libbb.h:28:20: error: string.h: No such file or directory
include/libbb.h:30:23: error: sys/ioctl.h: No such file or directory
include/libbb.h:31:22: error: sys/mman.h: No such file or directory
include/libbb.h:32:24: error: sys/socket.h: No such file or directory
include/libbb.h:33:22: error: sys/stat.h: No such file or directory
include/libbb.h:34:24: error: sys/statfs.h: No such file or directory
include/libbb.h:35:22: error: sys/time.h: No such file or directory
include/libbb.h:36:23: error: sys/types.h: No such file or directory
include/libbb.h:37:22: error: sys/wait.h: No such file or directory
include/libbb.h:38:21: error: termios.h: No such file or directory
include/libbb.h:39:18: error: time.h: No such file or directory
include/libbb.h:40:20: error: unistd.h: No such file or directory
include/libbb.h:41:19: error: utime.h: No such file or directory
have you had a chance to look into this?
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

Post by coolkehon »

nope not yet been really really busy with stuff
wankel
Posts: 17
Joined: Sun Oct 18, 2009 2:16 pm

Post by wankel »

lets keep this going people :)
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

Post by coolkehon »

i plan on doing so. I'm learning more about linux as I go. I'll update this when I make updates. just give me awhile ;)

edit:
fixed some missed grammer stuff :)
also does anyone have any apps already built that runs on uclinux psp that i could use.
just discovered vi was in busybox :P now i've got a text editor
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

Post by coolkehon »

I tried the pre-built toolchain on 32bit linux-mint Helena and copied the crto.o and other files like you said in your post earlier and got it to compile a simple hello world. Tried it and the command line arguments work now.

if I include <iostream> then it won't compile but <string> works and <cstdio> does too. hopefully I can get some apps to work that will make uclinux on the psp useful

edit:
if you have any ideas on how i can modify the uclinux kernel img to run a script on startup or edit the inittab etc please let me know
Post Reply