Table of Contents

WIP : Debian

MISC

Obsolete notes to be ignored

[[RzR]]

[[Gentoo]] from Alin Năstac

ls */*.cpp | sed -e 's|\(.*\).cpp|ln -s \1.cpp \1.c|g'
mv amu/amas.cpp amu/amas.c
mv amu/amu.cpp amu/amu.c
mv amu/bsp_pci.cpp amu/bsp_pci.c
mv amu/bsp_usb.cpp amu/bsp_usb.c
mv msw/msw.cpp msw/msw.c
for t in  /usr/local/src/tmp/* ; do  patch -b -p1 < $t ; done
# bewan-adsl-0.9.3-kernel-changes.patch  bewan-adsl-0.9.3-no-strip.patch  bewan-adsl-0.9.3-smp.patch

[[Debian]]

svn co svn://svn.debian.org/svn/kernel/dists/trunk/modules/unicorn/unicorn  # [[Debian]]
make && insmod
wget http://www.bewan.fr/bewan/utilisateurs/telechargement/pilotes/adsl/linux/A1012-A1006-A904-A888-A983-0.9.3.tgz
sudo apt-get install subversion unp wget automake1.4 libgtk1.2-dev
svn co svn://svn.debian.org/svn/kernel/dists/trunk/modules/unicorn # [[Debian]]
cd unicorn
ln -fs /usr/local/src/A1012-A1006-A904-A888-A983-0.9.3.tgz  unicorn_0.9.3.orig.tar.gz
unp unicorn_0.9.3.orig.tar.gz
cd unicorn
debuild && sudo debi && sudo m-a a-i --text unicorn
rm -v /lib/modules/$(uname -r)/extra/unicorn*eth*  /lib/modules/$(uname -r)/extra/unicorn*pci*
modprobe -v unicorn_usb_atm

[[dpkg]] : https://alioth.debian.org/users/rzr-guest/

svn co svn+ssh://${USER}-guest@svn.debian.org/svn/kernel/dists/trunk/modules/unicorn/
# password serveral time

Test on [[free.fr]]

lynx -dump http://r0ro.free.fr/tutoriaux/drivers/freedegroupe.ins
[[BroadbandInsFormat]]
ScriptVersion=1.1
TabName=BeWAN
ServiceName="free degroupe"
[[PhysicalLayer]]
xDSLmodulation=3
[[ATMPVCs]]
MaxPVC=1
ConcurrentPVC=1
PVC1name="free"
PVC1VPI=8
PVC1VCI=36
[[PVCEncapsulations]]
PVC1Encapsulation=5
[[NetworkLayer]]
PVC1AddressAssignment=
PVC1StaticIP=81.57.102.79
PVC1StaticIPMask=255.255.255.0
DefaultGateway=81.57.102.254
DNSServer=212.27.32.176
AltDNSServer=212.27.32.177

Error : SHIRQ

make[3]: Entering directory `/usr/local/src/linux-source-2.6.24-rc7' CC [M] /usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.o /usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c: In function 'find_unicorn': /usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:933: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:492) /usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c: In function 'start_device': /usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:995: error: 'SA_SHIRQ' undeclared (first use in this function) /usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:995: error: (Each undeclared identifier is reported only once /usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:995: error: for each function it appears in.) make[4]: *** [/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.o] Error 1 make[3]: *** [_module_/usr/src/modules/unicorn/unicorn_pci] Error 2 make[3]: Leaving directory `/usr/local/src/linux-source-2.6.24-rc7' make[3]: Entering directory `/usr/local/src/linux-source-2.6.24-rc7' CC [M] /usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.o /usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c: In function 'fill_isoc_urb': /usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c:151: error: 'struct urb' has no member named 'lock' make[4]: *** [/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.o] Error 1 make[3]: *** [_module_/usr/src/modules/unicorn/unicorn_usb] Error 2 make[3]: Leaving directory `/usr/local/src/linux-source-2.6.24-rc7'

Error : Module param

http://lwn.net/Articles/107303/

/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:2159: error: syntax error before string constant
/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:2159: warning: type defaults to 'int' in declaration of 'MODULE_PARM'
/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:2159: warning: function declaration isn't a prototype
/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:2159: warning: data definition has no type or storage class

Bugs

invalid format :

find . -name "Makefile" -exec sed -i -e "s/CC=gcc/CC?=gcc/g"  {} \;
find . -name "Makefile" -exec sed -i -e "s/LD=ld/LD?=ld/g"  {} \;

This trouble does not happend anymore :

// TODO //#~pcoval{
// unicorn/include/unicorn.h
// #define KVER 2_6_14_4
// /usr/local/src/linux-2.6.14.4/net/core/skbuff.c
#if ( KVER == 26144 )
#define skb_unlink(skb) {}
#endif
// TODO //#~pcoval}

not compiling : 0.8.7 and 2.6.14.4-k7-amiloa

BUG : KBUILD_MODNAME
root@marcel:~/tmp # cat /proc/version
Linux version 2.6.22-14-386 (buildd@terranova) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 Tue Dec 18 07:34:24 UTC 2007
include/linux/pci.h:604: error: 'KBUILD_MODNAME' undeclared (first use in this function)
rgrep KBUILD_MODNAME /usr/src/linux-headers-$(uname -r)
/usr/src/linux-headers-2.6.22-14-386/include/linux/usb.h:       return usb_register_driver(driver, THIS_MODULE, KBUILD_MODNAME);
grep -rHn  KBUILD_MODNAME /usr/src/modules/unicorn/  | grep define
/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:7:#define KBUILD_MODNAME "unicorn_atm_pci" //#~rzr:TODO
/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c:7:#define KBUILD_MODNAME "unicorn_usb_atm" //#~rzr:TODO

http://bugs.debian.org/448820

TODO

MORE

@TaG: ModeM AdsL UnicorN unicorn BeWAN

<iframe width="420" height="315" src="//www.youtube-nocookie.com/embed/77Q8dxGK8S8" frameborder="0" allowfullscreen></iframe>

unicorn-source.txt · Last modified: 2020/09/08 20:50 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki