[prev in list] [next in list] [prev in thread] [next in thread]
List: leaf-cvs-commits
Subject: [Leaf-cvs-commits] src/bering-uclibc/apps/gpio gpio-1.3.1.tar.gz,NONE,1.1 buildtool.cfg,1.5,1.6 buil
From: Martin Hejl <hejl () projects ! sourceforge ! net>
Date: 2004-01-26 14:40:57
Message-ID: E1Al7v8-0002b8-6E () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/leaf/src/bering-uclibc/apps/gpio
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8387
Modified Files:
buildtool.cfg buildtool.mk gpio
Added Files:
gpio-1.3.1.tar.gz
Removed Files:
gpio-1.1.4.tar.gz
Log Message:
Updated to new version 1.3.1
Index: gpio
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/apps/gpio/gpio,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** gpio 14 Aug 2003 16:15:07 -0000 1.1
--- gpio 26 Jan 2004 14:40:09 -0000 1.2
***************
*** 1,3 ****
! #! /bin/sh
RCDLINKS="2,S97 3,S97 4,S97 5,S97 0,K3 1,K3 6,K3"
test -r /lib/modules/gpio.o || exit 1
--- 1,3 ----
! #!/bin/sh
RCDLINKS="2,S97 3,S97 4,S97 5,S97 0,K3 1,K3 6,K3"
test -r /lib/modules/gpio.o || exit 1
***************
*** 9,28 ****
start)
echo -n "Installing GPIO driver:"
- echo $major
insmod gpio
rm -f /dev/gpio[0-1]
!
! major=`cat /proc/devices |sed -e "/\([0-9]*\).*gpio.*/!D;s/\([0-9]*\).*/\1/"`
!
mknod /dev/gpio0 c $major 0
mknod /dev/gpio1 c $major 1
chgrp $group /dev/gpio[0-1]
chmod 664 /dev/gpio[0-1]
! echo "."
;;
stop)
! echo -n "Removing GPIO Driver:"
! rmmod gpio
! rm -f /dev/gpio[0-1]
echo "."
;;
--- 9,29 ----
start)
echo -n "Installing GPIO driver:"
insmod gpio
rm -f /dev/gpio[0-1]
! major=`cat /proc/devices |sed -e "/\([0-9]*\).*gpio.*/!D;s/\([0-9]*\).*/\1/"`
mknod /dev/gpio0 c $major 0
mknod /dev/gpio1 c $major 1
+ mknod /dev/gpio254 c $major 254
chgrp $group /dev/gpio[0-1]
+ chgrp $group /dev/gpio254
chmod 664 /dev/gpio[0-1]
! chmod 664 /dev/gpio254
! echo "."
;;
stop)
! echo -n "Removing GPIO Driver:"
! rmmod gpio
! rm -f /dev/gpio[0-1]
! rm -f /dev/gpio254
echo "."
;;
--- gpio-1.1.4.tar.gz DELETED ---
Index: buildtool.mk
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/apps/gpio/buildtool.mk,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** buildtool.mk 9 Oct 2003 14:10:44 -0000 1.5
--- buildtool.mk 26 Jan 2004 14:40:09 -0000 1.6
***************
*** 7,19 ****
include $(MASTERMAKEFILE)
! GPIO_DIR:=gpio-1.1.4
# Change it here or specify it on the "make" command line
! KERNELDIR = ../../linux/linux-2.4.20
export KERNELDIR
! # export a normal path cause we want to use the hostcc for this
! PATH=/bin:/usr/bin:/usr/local/bin:.
! export PATH
source:
--- 7,20 ----
include $(MASTERMAKEFILE)
! GPIO_DIR:=gpio-1.3.1
!
! OLDPATH:=$(PATH)
# Change it here or specify it on the "make" command line
! KERNELDIR = ../../linux/linux
export KERNELDIR
! INCLUDEDIRS = -I$(BT_STAGING_DIR)/include -I$(BT_STAGING_DIR)/usr/include
! export INCLUDEDIRS
source:
***************
*** 21,36 ****
build:
! make -C $(GPIO_DIR)
-mkdir $(BT_BUILD_DIR)/gpio
-mkdir -p $(BT_STAGING_DIR)/lib/modules
-mkdir -p $(BT_STAGING_DIR)/etc/init.d
cp $(GPIO_DIR)/gpio.o $(BT_BUILD_DIR)/gpio/
! cp $(GPIO_DIR)/gpio.o $(BT_STAGING_DIR)/lib/modules/
cp gpio $(BT_BUILD_DIR)/gpio/
cp gpio $(BT_STAGING_DIR)/etc/init.d
!
clean:
make -C $(GPIO_DIR) clean
rm -rf $(BT_BUILD_DIR)/gpio
rm -f $(BT_STAGING_DIR)/lib/modules/gpio.o
!
\ No newline at end of file
--- 22,49 ----
build:
! # export a normal path cause we want to use the hostcc for this
! PATH=/bin:/usr/bin:/usr/local/bin:.
! export PATH
! make -C $(GPIO_DIR)
! export PATH=$(OLDPATH)
! $(MAKE) CC=$(TARGET_CC) -C $(GPIO_DIR) -f Makefile.drivertest
! -$(BT_STRIP) -s --remove-section=.note --remove-section=.comment $(GPIO_DIR)/drivertest
-mkdir $(BT_BUILD_DIR)/gpio
-mkdir -p $(BT_STAGING_DIR)/lib/modules
-mkdir -p $(BT_STAGING_DIR)/etc/init.d
cp $(GPIO_DIR)/gpio.o $(BT_BUILD_DIR)/gpio/
! cp $(GPIO_DIR)/writelcd.o $(BT_BUILD_DIR)/gpio/
! cp $(BT_BUILD_DIR)/gpio/*.o $(BT_STAGING_DIR)/lib/modules/
cp gpio $(BT_BUILD_DIR)/gpio/
cp gpio $(BT_STAGING_DIR)/etc/init.d
! cp $(GPIO_DIR)/drivertest $(BT_BUILD_DIR)/gpio/
!
clean:
make -C $(GPIO_DIR) clean
+ make -C $(GPIO_DIR) -f Makefile.drivertest clean
rm -rf $(BT_BUILD_DIR)/gpio
rm -f $(BT_STAGING_DIR)/lib/modules/gpio.o
! #rm -f $(BT_STAGING_DIR)/lib/modules/4801gpio.o
! rm -f $(BT_STAGING_DIR)/lib/modules/writelcd.o
! #rm -f $(BT_STAGING_DIR)/lib/modules/4801writelcd.o
!
Index: buildtool.cfg
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/apps/gpio/buildtool.cfg,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** buildtool.cfg 9 Oct 2003 14:10:44 -0000 1.5
--- buildtool.cfg 26 Jan 2004 14:40:09 -0000 1.6
***************
*** 11,15 ****
</File>
! <File gpio-1.1.4.tar.gz>
Server = cvs-sourceforge
Revision = HEAD
--- 11,15 ----
</File>
! <File gpio-1.3.1.tar.gz>
Server = cvs-sourceforge
Revision = HEAD
***************
*** 24,72 ****
</File>
-
<Package>
<gpio>
! Version = 1.1.4
! Revision = 2
!
Help <<EOF
! Soekris Net45xx GPIO driver
! Provides basic control (read and write) over the 8 general purpose
! IO-pins of the Soekris Net4501 and the error-led (which happens to
be connected to another general purpose IO pin)
LEAF package by __PACKAGER__, __BUILDDATE__
! Accessing the GPIO pins (assuming all are output):
! echo 11111111 > /proc/driver/soekris_gpio --> turns all ports on
! echo 00000000 > /proc/driver/soekris_gpio --> turns all ports off
! echo 00000100 > /proc/driver/soekris_gpio --> turns all GPIO2 on,
! everything else off
!
! cat /proc/driver/soekris_gpio --> prints the current
! status of the gpio pins
!
! Note when GPIO are used as inputs:
! when "dangling" (not connected to anything)
! GPIO0 to GPIO3 are seen as "0"
! GPIO4 to GPIO 4 to GPIO7 are seen as "1"
!
! accessing the error LED:
! echo 1 > /proc/driver/soekris_error_led --> turns the led on
!
! cat /proc/driver/soekris_error_led
! --> prints the current status of the error led
!
! Setting input or output for a pin
! echo 10000001 /proc/driver/soekris_io_settings ->
! turns GPIO7 and GPIO0 to output, all the others to input
!
! cat /proc/driver/soekris_io_settings -->prints the current io-settings
!
! Devices:
! major ? (dynamic) minor 0 : set/read PIO0-7 (Net4501 mapping)
! major ? (dynamic) minor 1 : set/read error_led (Net4501)
! Which major number has been assigned can be determined by looking at
! /proc/devices
EOF
--- 24,40 ----
</File>
<Package>
<gpio>
! Version = 1.3.1
! Revision = 1
Help <<EOF
! Soekris Net45xx/4801 GPIO driver
! Provides basic control (read and write) over the general purpose
! IO-pins of the Soekris Net4501/4801 and the error-led (which happens to
be connected to another general purpose IO pin)
LEAF package by __PACKAGER__, __BUILDDATE__
! The driver automatically detects wether it is run on a 4501 or a 4801
EOF
***************
*** 98,102 ****
</Contents>
! </lcd4linx>
!
</Package>
\ No newline at end of file
--- 66,69 ----
</Contents>
! </gpio>
</Package>
\ No newline at end of file
--- NEW FILE: gpio-1.3.1.tar.gz ---
(This appears to be a binary file; contents omitted.)
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Leaf-cvs-commits mailing list
Leaf-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic