Page 1 of 1

Compile linux kernel

Posted: Thu Jan 29, 2009 12:54 am
by davideciarm
Hi at all! I have Ubuntu on my PC, i would compile the linux kernel for my ps2 slim.
i receive thes error during installation of application...why?
i use this tutorial: http://sourceforge.net/project/shownote ... _id=223793

extracted correctly gcc and binutils.
extracted ps2sdk-20070626.tar.bz2 in /usr/local/ps2dev/ (not writed in the tutorial.)
extracted kernel-headers and kernel-source and applicated patch. (where i do put my kernel src directory?)


now i would install USB Driver:

Code: Select all

sh # svn co svn://svn.ps2dev.org/ps2/trunk/usb_mass
sh # cd usb_mass
sh # cd iop
sh # make
and receive this:

Code: Select all

Makefile:28: /samples/Makefile.pref: Nessun file o directory
Makefile:29: /samples/Makefile.iopglobal: Nessun file o directory
make: *** No rule to make target `/samples/Makefile.iopglobal'.  Stop.
i had searched an usb_mass.irx and copied in /usr/local/ps2dev/ps2sdk/iop/irx.

same error for PS2LINK: then i had searched externaly ps2smap.irx and ps2link.irx.

Code: Select all

export PS2DEV="/usr/local/ps2dev"
export PS2SDK="$PS2DEV/ps2sdk"
export PS2LIB="$PS2SDK"
export PATH="${PS2DEV}/bin:${PS2DEV}/ee/bin:${PS2DEV}/iop/bin:${PS2DEV}/dvp/bin:${PS2DEV}/ps2sdk/bin:$PATH"

Code: Select all

export PS2_SRC_PREFIX=/home/davide/ps2src
export PS2SDKSRC="${PS2_SRC_PREFIX}/ps2sdk"
export GSKITSRC="${PS2_SRC_PREFIX}/gsKit"
export LIBTIFF="${PS2_SRC_PREFIX}/libtiff"
export LIBJPG="${PS2_SRC_PREFIX}/libjpg/libjpg"
export PS2ETH="${PS2_SRC_PREFIX}/ps2eth"
but now /home/davide/ps2src not exist!
with command cd $PS2SDKSRC folder not exist! i do mkdir for /home/davide/ps2src and /home/davide/ps2src/ps2sdk.

now:

Code: Select all

svn co svn://svn.ps2dev.org/ps2/trunk/gsKit
cd gsKit
make
and receive:

Code: Select all

GSKITSRC=/home/davide/ps2src/gsKit make -C ee
make[1]: Entering directory `/home/davide/ps2src/ps2sdk/gsKit/ee'
GSKITSRC=/home/davide/ps2src/gsKit make -C gs
make[2]: Entering directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs'
GSKITSRC=/home/davide/ps2src/gsKit make -C src
make[3]: Entering directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs/src'
../../../Makefile.global:13: /home/davide/ps2src/gsKit/ee/Rules.make: Nessun file o directory
make[3]: *** No rule to make target `/home/davide/ps2src/gsKit/ee/Rules.make'.  Stop.
make[3]: Leaving directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs/src'
make[2]: *** [all-src] Error 2
make[2]: Leaving directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs'
make[1]: *** [all-gs] Error 2
make[1]: Leaving directory `/home/davide/ps2src/ps2sdk/gsKit/ee'
make: *** [all-ee] Error 2
:: GSKITSRC=/home/davide/ps2src/gsKit but my gsKit is in /home/davide/ps2src/ps2dev/gsKit !!!!
why? what i do make incorrectly?

i had linked gsKit in the subdir:
ln -s /home/davide/ps2src/ps2sdk/gsKit /home/davide/ps2src/gsKit

now:

Code: Select all

$ make
GSKITSRC=/home/davide/ps2src/gsKit make -C ee
make[1]: Entering directory `/home/davide/ps2src/ps2sdk/gsKit/ee'
GSKITSRC=/home/davide/ps2src/gsKit make -C gs
make[2]: Entering directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs'
GSKITSRC=/home/davide/ps2src/gsKit make -C src
make[3]: Entering directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs/src'
ee-gcc -D_EE -O2 -G0 -Wall -O2 -fno-builtin-printf  -I/usr/local/ps2dev/ps2sdk/ee/include -I/usr/local/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr/local/ps2dev/gsKit/ee/gs/include -I/home/davide/ps2src/gsKit/ee/gs/include  -I/home/davide/ps2src/gsKit/ee/dma/include -I/ee -c gsCore.c -o gsCore.o
In file included from gsCore.c:14:
/home/davide/ps2src/gsKit/ee/gs/include/gsKit.h:17: string.h: Nessun file o directory
gsCore.c:17: stdio.h: Nessun file o directory
gsCore.c:18: kernel.h: Nessun file o directory
make[3]: *** [gsCore.o] Error 1
make[3]: Leaving directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs/src'
make[2]: *** [all-src] Error 2
make[2]: Leaving directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs'
make[1]: *** [all-gs] Error 2
make[1]: Leaving directory `/home/davide/ps2src/ps2sdk/gsKit/ee'
make: *** [all-ee] Error 2
string.h and stdio.h are common include, and are in folder /usr/include.
now i open file /home/davide/ps2src/ps2sdk/gsKit/Makefile.global and add "-I/usr/include" at end of line of EE_INCS +=

now:

Code: Select all

$ make
GSKITSRC=/home/davide/ps2src/gsKit make -C ee
make[1]: Entering directory `/home/davide/ps2src/ps2sdk/gsKit/ee'
GSKITSRC=/home/davide/ps2src/gsKit make -C gs
make[2]: Entering directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs'
GSKITSRC=/home/davide/ps2src/gsKit make -C src
make[3]: Entering directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs/src'
ee-gcc -D_EE -O2 -G0 -Wall -O2 -fno-builtin-printf  -I/usr/local/ps2dev/ps2sdk/ee/include -I/usr/local/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr/local/ps2dev/gsKit/ee/gs/include -I/home/davide/ps2src/gsKit/ee/gs/include  -I/home/davide/ps2src/gsKit/ee/dma/include -I/ee  -I/usr/include -c gsCore.c -o gsCore.o
gsCore.c:18: kernel.h: Nessun file o directory
make[3]: *** [gsCore.o] Error 1
make[3]: Leaving directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs/src'
make[2]: *** [all-src] Error 2
make[2]: Leaving directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs'
make[1]: *** [all-gs] Error 2
make[1]: Leaving directory `/home/davide/ps2src/ps2sdk/gsKit/ee'
make: *** [all-ee] Error 2
NOT FIND kernel.h!!!! :-(
kernel.h is located in: linux-2.4.17_ps2/include/linux, then i copy folder linux-2.4.17_ps2 in /home/davide/ps2src/linux-2.4.17_ps2.
edit again file /home/davide/ps2src/ps2sdk/gsKit/Makefile.global and add "-I/home/davide/ps2src/linux-2.4.17_ps2/include/linux" at end of line of EE_INCS +=


i had making most fixed...but not working! Why?
at end...

Code: Select all

 make
GSKITSRC=/home/davide/ps2src/gsKit make -C ee
make[1]: Entering directory `/home/davide/ps2src/ps2sdk/gsKit/ee'
GSKITSRC=/home/davide/ps2src/gsKit make -C gs
make[2]: Entering directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs'
GSKITSRC=/home/davide/ps2src/gsKit make -C src
make[3]: Entering directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs/src'
ee-gcc -D_EE -O2 -G0 -Wall -O2 -fno-builtin-printf  -I/usr/local/ps2dev/ps2sdk/ee/include -I/usr/local/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr/local/ps2dev/gsKit/ee/gs/include -I/home/davide/ps2src/gsKit/ee/gs/include  -I/home/davide/ps2src/gsKit/ee/dma/include -I/ee   -I/home/davide/ps2src/kernelloader/kernel    -c gsCore.c -o gsCore.o
In file included from /home/davide/ps2src/gsKit/ee/gs/include/gsKit.h:17,
                 from gsCore.c:14:
/home/davide/ps2src/kernelloader/kernel/string.h:5: warning: conflicting types for built-in function `memcpy'
/home/davide/ps2src/kernelloader/kernel/string.h:6: warning: conflicting types for built-in function `memset'
In file included from /home/davide/ps2src/gsKit/ee/gs/include/gsKit.h:26,
                 from gsCore.c:14:
/home/davide/ps2src/gsKit/ee/gs/include/gsFontM.h:92: parse error before `1.0'
/home/davide/ps2src/gsKit/ee/gs/include/gsFontM.h:92: warning: type defaults to `int' in declaration of `gsKit_fontm_print_scaled'
/home/davide/ps2src/gsKit/ee/gs/include/gsFontM.h:92: conflicting types for `gsKit_fontm_print_scaled'
/home/davide/ps2src/gsKit/ee/gs/include/gsFontM.h:89: previous declaration of `gsKit_fontm_print_scaled'
/home/davide/ps2src/gsKit/ee/gs/include/gsFontM.h:92: warning: data definition has no type or storage class
In file included from gsCore.c:15:
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h: In function `gsKit_heap_alloc':
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h:29: warning: left shift count >= width of type
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h:29: warning: left shift count >= width of type
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h:51: parse error before `void'
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h:54: `p_heap' undeclared (first use in this function)
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h:54: (Each undeclared identifier is reported only once
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h:54: for each function it appears in.)
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h:55: warning: control reaches end of non-void function
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h: In function `gsKit_heap_alloc_dma':
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h:73: warning: left shift count >= width of type
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h:73: warning: left shift count >= width of type
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h:79: parse error before `void'
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h:84: `p_heap' undeclared (first use in this function)
/home/davide/ps2src/gsKit/ee/gs/include/gsInline.h:85: warning: control reaches end of non-void function
gsCore.c: In function `gsKit_sync_flip':
gsCore.c:61: warning: left shift count >= width of type
gsCore.c:61: warning: left shift count >= width of type
gsCore.c: In function `gsKit_setactive':
gsCore.c:80: warning: left shift count >= width of type
gsCore.c:80: warning: left shift count >= width of type
gsCore.c:80: warning: left shift count >= width of type
gsCore.c:80: warning: left shift count >= width of type
gsCore.c:85: warning: left shift count >= width of type
gsCore.c:85: warning: left shift count >= width of type
gsCore.c:89: warning: left shift count >= width of type
gsCore.c:94: warning: left shift count >= width of type
gsCore.c:94: warning: left shift count >= width of type
gsCore.c:98: warning: left shift count >= width of type
gsCore.c: In function `gsKit_display_buffer':
gsCore.c:128: warning: left shift count >= width of type
gsCore.c:128: warning: left shift count >= width of type
gsCore.c: In function `gsKit_add_vsync_handler':
gsCore.c:181: warning: implicit declaration of function `DIntr'
gsCore.c:183: warning: implicit declaration of function `AddIntcHandler'
gsCore.c:185: warning: implicit declaration of function `EnableIntc'
gsCore.c:187: warning: implicit declaration of function `EIntr'
gsCore.c: In function `gsKit_remove_vsync_handler':
gsCore.c:196: warning: implicit declaration of function `DisableIntc'
gsCore.c:198: warning: implicit declaration of function `RemoveIntcHandler'
gsCore.c: In function `gsKit_clear':
gsCore.c:207: parse error before `strips'
gsCore.c:211: `strips' undeclared (first use in this function)
gsCore.c:214: `pos' undeclared (first use in this function)
gsCore.c:217: `remain' undeclared (first use in this function)
gsCore.c: In function `gsKit_set_test':
gsCore.c:246: warning: left shift count >= width of type
gsCore.c:246: warning: left shift count >= width of type
gsCore.c:246: warning: left shift count >= width of type
gsCore.c:246: warning: left shift count >= width of type
gsCore.c:229: warning: `p_store' might be used uninitialized in this function
gsCore.c: In function `gsKit_set_clamp':
gsCore.c:286: warning: left shift count >= width of type
gsCore.c:286: warning: left shift count >= width of type
gsCore.c:286: warning: left shift count >= width of type
gsCore.c:286: warning: left shift count >= width of type
gsCore.c:291: warning: left shift count >= width of type
gsCore.c:261: warning: `p_store' might be used uninitialized in this function
gsCore.c: In function `gsKit_set_primalpha':
gsCore.c:306: warning: left shift count >= width of type
gsCore.c:306: warning: left shift count >= width of type
gsCore.c:306: warning: left shift count >= width of type
gsCore.c:306: warning: left shift count >= width of type
gsCore.c:299: warning: `p_store' might be used uninitialized in this function
gsCore.c: In function `gsKit_set_texfilter':
gsCore.c:323: warning: left shift count >= width of type
gsCore.c:323: warning: left shift count >= width of type
gsCore.c:323: warning: left shift count >= width of type
gsCore.c:323: warning: left shift count >= width of type
gsCore.c:326: warning: left shift count >= width of type
gsCore.c:319: warning: `p_store' might be used uninitialized in this function
gsCore.c: In function `gsKit_set_dither_matrix':
gsCore.c:337: warning: left shift count >= width of type
gsCore.c:337: warning: left shift count >= width of type
gsCore.c:337: warning: left shift count >= width of type
gsCore.c:337: warning: left shift count >= width of type
gsCore.c:342: warning: left shift count >= width of type
gsCore.c:342: warning: left shift count >= width of type
gsCore.c:342: warning: left shift count >= width of type
gsCore.c:342: warning: left shift count >= width of type
gsCore.c:343: warning: left shift count >= width of type
gsCore.c:343: warning: left shift count >= width of type
gsCore.c:343: warning: left shift count >= width of type
gsCore.c:343: warning: left shift count >= width of type
gsCore.c:333: warning: `p_store' might be used uninitialized in this function
gsCore.c: In function `gsKit_set_dither':
gsCore.c:354: warning: left shift count >= width of type
gsCore.c:354: warning: left shift count >= width of type
gsCore.c:354: warning: left shift count >= width of type
gsCore.c:354: warning: left shift count >= width of type
gsCore.c:350: warning: `p_store' might be used uninitialized in this function
gsCore.c: In function `gsKit_set_drawfield':
gsCore.c:374: warning: left shift count >= width of type
gsCore.c:374: warning: left shift count >= width of type
gsCore.c:374: warning: left shift count >= width of type
gsCore.c:374: warning: left shift count >= width of type
gsCore.c:370: warning: `p_store' might be used uninitialized in this function
gsCore.c: In function `gsKit_set_finish':
gsCore.c:426: warning: left shift count >= width of type
gsCore.c:426: warning: left shift count >= width of type
gsCore.c:426: warning: left shift count >= width of type
gsCore.c:426: warning: left shift count >= width of type
gsCore.c:420: warning: `p_store' might be used uninitialized in this function
gsCore.c: In function `gsKit_queue_exec_real':
gsCore.c:443: parse error before `oldQueue'
gsCore.c:445: warning: left shift count >= width of type
gsCore.c:445: warning: left shift count >= width of type
gsCore.c:472: `oldQueue' undeclared (first use in this function)
make[3]: *** [gsCore.o] Error 1
make[3]: Leaving directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs/src'
make[2]: *** [all-src] Error 2
make[2]: Leaving directory `/home/davide/ps2src/ps2sdk/gsKit/ee/gs'
make[1]: *** [all-gs] Error 2
make[1]: Leaving directory `/home/davide/ps2src/ps2sdk/gsKit/ee'
make: *** [all-ee] Error 2
all error!!!! :-D
Please help me...i can't install this gsKit!!!!
thanks very much!

Re: Compile linux kernel

Posted: Sat Jan 31, 2009 5:04 am
by Mega Man
I assume that you have already detected that you don't need to compile this stuff, because this is only for kernelloader and not for the Linux kernel.

The README is wrongly ordered. The part "To further compile someting for PS2SDK, you need to setup the environment: ..." need to be moved to section "PS2SDK".