Jump to content

[Linux] Dúvida!


Recommended Posts


Antes de mais peço a alguem que Por Favor me dê um site para sacar codecs para linux e um Readme para saber como instalar em Português de preferência.  👍


The software for the UNICORN ADSL PCI card consists of two loadable drivers,

the unicorn_atm.o and unicorn_pci.o. The unicorn driver is a standard Linux

ATM driver, that performs segmentation and reassembly (SAR) and flow control.

The unicorn_pci driver contains the ADSL modem software and hardware related

functions. It has been tested with the Linux 2.4.x kernels. Note that to use

PPPoE, PPPoA or RFC2684 protocols, the kernel may need to be patched.


To compile the drivers, unzip and untar the file. In the unicorn directory you

will find the two subdirectories unicorn_atm and unicorn_bus.

You may compile the drivers based on the include files in the kernel source

or standard kernel include files. Set the variable KERNELDIR in the Makefile's

to point to your kernel sources if the first option in chosen.

If you choose the latter, you may need to copy the contents of the kernel

source "include/net" directory into "/usr/include/net/".

Go into these subdirectories and do a "make" and a "make install".

If the compile option "USE_HW_TIMER" is set, the performance is increased,

but the CPU load increased.

Use the same compiler as you use when compiling the linux kernel. The driver has

been tested using gcc-2.96, gcc-2.95.2, gcc-2.91.66 and gcc 3.0.3.


To start the ADSL software, do a "modprobe unicorn_pci". Check in the syslog that

the drivers are started OK. The ADSL line should come up automatically. The status

can also be checked using the "proc" interface (/proc/net/atm/UNICORN\:0".

SHOWTIME in the log or in the status means that ADSL connction is up and ATM cells

may be transmitted and received.

Depending on your network setup, you will need additional software as with any other

ADSL ATM card. For bridged ethernet (RFC2684), the br2684.o module and brctl is needed.

For PPPoE, any pppoe client over the bridged interface (nas0) should work

(Roaring Penguin pppoe client has been tested).

The scripts directory contains some example startup scripts.

Bridged (RFC2684) and PPP over Ethernet:

Depending on your kernel, you may need to patch the kernel and enable the option

"RFC1483/2684 Bridged protcols" under "Networking options". Also ATM support needs

to be enabled.

Also the user space daemon "brctl" is needed. Instructions on how to apply the

patch and the brctl and patch sources can be found at http://www.zoftware.org/adsl-pppoe.

PPP over ATM:

For PPP over ATM, the module pppoatm.o is needed, together with the pppd plugin

pppoatm.so and a version of pppd that supports plugins.

Currently version ppp-2.4.0b2 supports PPPoATM plugins. A patched version ready for

PPPoATM can be found at http://www.sourceforge.net/.

PPPoATM specific pppd options:

llc-encaps: use LLC encapsulation for PPPoATM

vc-encaps: use VC multiplexing for PPPoATM (default)


Some ADSL paramters can be controlled by setting the moule paramters.



ActTimeout: Timeout in ms on the duration of the activation state.

ActivationMode: This parameter sets in what mode the ADSL modem should be activated.

ANSI mode is 1, G.lite is 2, G.dmt is 4 and MULTI mode is 3.

If you know what mode your DSLAM operates in, use this mode. If not select either

ANSI or MULTI mode.

DownstreamRate: The maximum downstream rate in Kbit/sec.

AutoActivation: Set this to 1 if you your ADSL modem to start auotmatically (default 1).

DebugLevel: To debug the driver, set this to a value different from 0 and enable DEBUG

when compiling.

MswDebugLevel: 0 - High level, all traces enabled, 1 - Medium level, info and warnings

enabled, 2 - Low level, only warnings and errors are traced.

LCD_Trig: Persistency time (in msec) of Loss of Cell Deliniation defects before

disorderly shutdown (15000 default).

LCD_LOF_Trig: Persistency time (in msec) of Loss of Signal and Loss of Frame defects before

disorderly shutdown (5000 default).

TrainingDelay: Delay in msec used in training sequence. Default 80.

useRFCFixedRate: If 1, rate adaptive disabled. To use with ECI DSLAM in ITU mode.

_no_TS652: If set to 1, enable gain table for use without TS652.



mac_address: If this is specified, the bridged ethernet (RFC2684) will use this

mac (ethernet) address instead of a randomly generated address. Specified as a

12 character ASCII string of hexadecimal numbers.

atmready_timeout: The time in seconds to wait for ADSL link up when opening the ATM

socket (default 20 seconds).

DebugLevel: Set this if you need to debug the driver.


mswtest contains a simple program to start/stop and get statistics from the ADSL card.

Depending on your distribution, you may need to install atm support (atm-2.4.0) to

compile this program.

E gostaria que me traduzissem não tudo, mas o essencial para puder instalar o meu modem em Linux Ubuntu. Eu não percebo muito inglês.  😄

Espero que me ajudem para ver se dentro de pouco tenho o meu linux a "bombar".

Eu sei que é muito, mas... Não vos quero dar muito trabalho!

Cumps.  😁

Link to comment
Share on other sites

sudo apt-get install w32codecs;


Quanto ao modem, acede à pasta em que ele se encontra com comandos 'cd nomedapasta'

Depois fa zum 'tar xvf nomedotar.tar.gz (ou .bz2) (se não der extrai graficamente)

Ele vai criar dois directórios, fazes ./configure, make, sudo make install nos dois

Para iniciar a ligação fazes só, no final:

modprobe unicorn_pci

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.