|
From: Bradlee L. <bra...@gm...> - 2009-01-21 22:20:35
|
I tried to run it, and it worked fine, but my program did not work.
What's the easiest way to compile the driver against the kernel? I
really don't want to go through the build process. If I sent someone
the .tar.gz file, could you return me a compiled module (lcm.o) that I
could use?
If it helps, here's the makefile sent with the driver:
------Makefile------
#
# Makefile for LCD driver and testprograms
#
CC = gcc
#
# Uncomment the correct line for your kernel-version!
#
#KERNEL = -DKERNEL20
KERNEL = -DKERNEL21
INSTALLDIR = /lib/modules/`uname -r`/misc/
#
# If you want some debugging output then add -DDEBUG to the CFLAGS
# Attention: This will fill your syslog quite fast!
#
CFLAGS = $(KERNEL) -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall \
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe \
-ffixed-8 -DMODULE -DMODVERSIONS -finline-functions \
-include /usr/src/linux-2.4/include/linux/modversions.h \
# -DLCM_DEBUG
LDLAGS = -O2 -Wall -I/usr/src/linux-2.4/include -Wstrict-prototypes \
-D__KERNEL__ -DMODULE -Xlinker \
-include /usr/src/linux-2.4/include/linux/modversions.h
OBJS = lcd_module.o lcd.o
lcm.o: lcm_module.c lcm_module.h lcm.h
$(CC) $(CFLAGS) -c lcm_module.c -o lcm.o
.PHONY: install clean
install:
[ -d $(INSTALLDIR) ] || mkdir -p $(INSTALLDIR)
install -c -m644 lcm.o $(INSTALLDIR)
clean:
rm -f *.o
-------------------------
On Wed, Jan 21, 2009 at 9:16 AM, Bradlee Landis <bra...@gm...> wrote:
> Hi,
>
> I've been trying to add custom code (about 104K in size) to devil
> linux (1.2) by remaking the bootcd.iso. When I run mkisofs, the iso is
> more than twice as big as the original (~580M vs the original 250M). I
> tried running mkisofs straight and it came out larger. The -z flag
> (which seems to suggest it compresses the image) only makes it larger.
>
> I also attempted to use the information at
> http://www.linuxfromscratch.org/hints/downloads/files/OLD/bootlfscd.txt,
> but I have not been able to find the boot.img file needed to make it
> bootable.
>
> Is there a special command that is used to make the original? Can I
> use the larger file without problems?
>
> Thanks,
> -Brad Landis
>
|