MPC8360 UCC - HDLC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC8360 UCC - HDLC

2,736 Views
nametoname
Contributor I

There is an MPC8360 with OpenWRT runnung. UCC1 and UCC2 are already used for ethernet. So, I want to use HDLC on other UCC.

There is a 'generic HDLC driver' in kernel. Can I use it? I tried to make it alive, but the only thing I got is "hdlc: HDLC support module revision 1.22" on the start. No devices found, etc. Looks like I nedd to write device tree properly, but I coudn't google an answer. Now I'm using simple

ucc@2200 {

  device_type = "network";

  compatible = "ucc_hdlc";

  cell-index = <3>;

  reg = <0x2200 0x200>;

  interrupts = <34>; //0x22

  interrupt-parent = <0x2>;

  rx-clock-name = "none";

  tx-clock-name = "brgo2";

  };

but there is no result, as I said before.

Also I've tried to run it (at least) using AppNote 4026, but I get only "Unable to handle kernel paging request for data at address ..." while insmod my .ko even while reading registers, for my UCC and for already working UCCs with ethernet.

What should I do to make it work finally?

Tags (3)
0 Kudos
Reply
2 Replies

1,479 Views
Pavel
NXP Employee
NXP Employee

We have the following answer  concerning to this driver

General HDLC layer for Linux is an interface between low-level hardware drivers for synchronous serial (HDLC) cards and the rest of kernel networking. The following protocols are supported:

  • raw HDLC - IP protocol only and Ethernet device emulation
  • Cisco HDLC (HDLC encapsulation used by Cisco® routers) - IP, IPv6 and IPX protocols
  • Point-to-Point Protocol (PPP) - IP and probably IPX protocols (uses syncppp.c module)
  • X.25 (using standard X.25 stack)
  • Frame Relay (using ANSI, CCITT, Cisco or no LMI) - IP, IPv6 and IPX protocols - both DTE (normal) and DCE (FR switch side) modes are supported. Ethernet-bridged interface mode is available as well.

Generic HDLC layer is included in the official Linux kernel.

Ethernet framing using HDLC or FR PVC is compatible with 802.1Q VLAN and 802.1D Ethernet bridging.

With Linux 2.6.x, no patches are needed.

To include the general HDLC for WAN interface, please go to the Linux kernel configuration menu by checking "configure the kernel" option from Ltib configuration menu.

Under Linux configuration menu, please go to

"Device Drivers--->

                Network device support--->

                                Wan interfaces support--->" and check the "Generic HDLC layer" option.

0 Kudos
Reply

1,479 Views
nametoname
Contributor I

It is checked already. As in manual for "Generic HDLC":

Generic HDLC is a protocol driver only - it needs a low-level driver for your particular hardware.

I want to use only two lines (Tx and Rx) and one BRG clock - not any special hardware. So, this must be specified somehow. Should I write Linux driver myself, or there is a simple solution, something like writing in device tree "PA0 - tx, PA1 - rx, brg0 - clock" for pseudocode-ish example?