michu
Still Fresh
well I just need another module for my gp2x, so my gps recever will work... I'll post here my steps i did to successfully build the modules:
get the kernel source:
# svn export http://svn.gp2x.com/gp2x/tag/kernel/2.0.0/
I use the gph toolchain, so i set up my path:
# export PATH="$PATH:/gp2xsdk/Tools/bin"
edit the Makefile in the root dir, edit this line:
export CROSS_COMPILE = arm-gp2x-linux-
now edit the file arch/arm/Makefile, change those lines (this option: -mshort-load-bytes had been renamed to -malignment-traps):
CFLAGS_BOOT :=$(apcs-y) $(arch-y) $(tune-y) -mshort-load-bytes -msoft-float -Uarm
CFLAGS +=$(apcs-y) $(arch-y) $(tune-y) -mshort-load-bytes -msoft-float -Uarm
to:
CFLAGS_BOOT :=$(apcs-y) $(arch-y) $(tune-y) -malignment-traps -msoft-float -Uarm
CFLAGS +=$(apcs-y) $(arch-y) $(tune-y) -malignment-traps -msoft-float -Uarm
change the kernel config... now
and build the stuff:
# make dep
# make modules
well it looks nice, the module was build. so I copied this module and the usbserial.o module on my gp2x, when i try to insert them i get this error:
[root@gp2x root]$insmod usbserial
Using /lib/modules/2.4.25/kernel/drivers/usb/serial/usbserial.o
insmod: couldn't find the kernel version the module was compiled for
-> i assume the compilation wasnt successfully..(or wrong target) any hints?
cheers michu /neophob.com
get the kernel source:
# svn export http://svn.gp2x.com/gp2x/tag/kernel/2.0.0/
I use the gph toolchain, so i set up my path:
# export PATH="$PATH:/gp2xsdk/Tools/bin"
edit the Makefile in the root dir, edit this line:
export CROSS_COMPILE = arm-gp2x-linux-
now edit the file arch/arm/Makefile, change those lines (this option: -mshort-load-bytes had been renamed to -malignment-traps):
CFLAGS_BOOT :=$(apcs-y) $(arch-y) $(tune-y) -mshort-load-bytes -msoft-float -Uarm
CFLAGS +=$(apcs-y) $(arch-y) $(tune-y) -mshort-load-bytes -msoft-float -Uarm
to:
CFLAGS_BOOT :=$(apcs-y) $(arch-y) $(tune-y) -malignment-traps -msoft-float -Uarm
CFLAGS +=$(apcs-y) $(arch-y) $(tune-y) -malignment-traps -msoft-float -Uarm
change the kernel config... now
and build the stuff:
# make dep
# make modules
well it looks nice, the module was build. so I copied this module and the usbserial.o module on my gp2x, when i try to insert them i get this error:
[root@gp2x root]$insmod usbserial
Using /lib/modules/2.4.25/kernel/drivers/usb/serial/usbserial.o
insmod: couldn't find the kernel version the module was compiled for
-> i assume the compilation wasnt successfully..(or wrong target) any hints?
cheers michu /neophob.com