<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>PowerQUICC Processorsのトピックsethdlc returning invalid argument error</title>
    <link>https://community.nxp.com/t5/PowerQUICC-Processors/sethdlc-returning-invalid-argument-error/m-p/1223548#M3545</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working in LS1021-ATWR board with QorIQ SDK. I am verifying&amp;nbsp; HDLC interface. I downloaded sethdlc source from&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://mirrors.edge.kernel.org/pub/linux/utils/net/hdlc/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://mirrors.edge.kernel.org/pub/linux/utils/net/hdlc/&lt;/A&gt;&amp;nbsp;and build it for arm using&amp;nbsp;&lt;STRONG&gt;arm-linux-gnueabihf-gcc sethdlc.c -o sethdlc&amp;nbsp;&lt;/STRONG&gt;command. when i run it in the board, am getting invalid argument error&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;root@ls1021-atwr:~# ifconfig hdlc0&lt;BR /&gt;hdlc0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00&lt;BR /&gt;POINTOPOINT NOARP MTU:1500 Metric:1&lt;BR /&gt;RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;TX packets:0 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;collisions:0 txqueuelen:16&lt;BR /&gt;RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)&lt;/P&gt;&lt;P&gt;root@ls1021-atwr:~# &lt;STRONG&gt;./sethdlc hdlc0 hdlc&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;hdlc0: Unable to set HDLC protocol information: Invalid argument 22&lt;/STRONG&gt;&lt;BR /&gt;root@ls1021-atwr:~# ./sethdlc hdlc0&lt;BR /&gt;hdlc0: interface e1 clock type unknown slotmap 10110010111000101101010000000001&lt;BR /&gt;no protocol set&lt;BR /&gt;root@ls1021-atwr:~#&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;Can someone help me to resolve this issue?&lt;/P&gt;</description>
    <pubDate>Sat, 30 Jan 2021 13:26:47 GMT</pubDate>
    <dc:creator>m_syed_ahmed</dc:creator>
    <dc:date>2021-01-30T13:26:47Z</dc:date>
    <item>
      <title>sethdlc returning invalid argument error</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/sethdlc-returning-invalid-argument-error/m-p/1223548#M3545</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working in LS1021-ATWR board with QorIQ SDK. I am verifying&amp;nbsp; HDLC interface. I downloaded sethdlc source from&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://mirrors.edge.kernel.org/pub/linux/utils/net/hdlc/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://mirrors.edge.kernel.org/pub/linux/utils/net/hdlc/&lt;/A&gt;&amp;nbsp;and build it for arm using&amp;nbsp;&lt;STRONG&gt;arm-linux-gnueabihf-gcc sethdlc.c -o sethdlc&amp;nbsp;&lt;/STRONG&gt;command. when i run it in the board, am getting invalid argument error&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;root@ls1021-atwr:~# ifconfig hdlc0&lt;BR /&gt;hdlc0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00&lt;BR /&gt;POINTOPOINT NOARP MTU:1500 Metric:1&lt;BR /&gt;RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;BR /&gt;TX packets:0 errors:0 dropped:0 overruns:0 carrier:0&lt;BR /&gt;collisions:0 txqueuelen:16&lt;BR /&gt;RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)&lt;/P&gt;&lt;P&gt;root@ls1021-atwr:~# &lt;STRONG&gt;./sethdlc hdlc0 hdlc&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;hdlc0: Unable to set HDLC protocol information: Invalid argument 22&lt;/STRONG&gt;&lt;BR /&gt;root@ls1021-atwr:~# ./sethdlc hdlc0&lt;BR /&gt;hdlc0: interface e1 clock type unknown slotmap 10110010111000101101010000000001&lt;BR /&gt;no protocol set&lt;BR /&gt;root@ls1021-atwr:~#&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;Can someone help me to resolve this issue?&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 13:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/sethdlc-returning-invalid-argument-error/m-p/1223548#M3545</guid>
      <dc:creator>m_syed_ahmed</dc:creator>
      <dc:date>2021-01-30T13:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: sethdlc returning invalid argument error</title>
      <link>https://community.nxp.com/t5/PowerQUICC-Processors/sethdlc-returning-invalid-argument-error/m-p/1223810#M3547</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have verified&amp;nbsp;HDLC with QorIQ SDK 2.0 1703 images on LS1021ATWR, it worked normally, please refer to the following procedure.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please configure Linux Kernel as the following.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Device Drivers ---&amp;gt;&lt;BR /&gt;SOC (System On Chip) specific Drivers ---&amp;gt;&lt;BR /&gt;[*] Freescale QUICC Engine (QE) Support&lt;BR /&gt;[*] Network device support ---&amp;gt;&lt;BR /&gt;[*] Wan interfaces support ---&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;*&amp;gt; Generic HDLC layer&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;*&amp;gt; Raw HDLC support&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;*&amp;gt; Freescale QUICC Engine HDLC support&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;On the target board:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;root@ls1021atwr:~# ./sethdlc hdlc0 hdlc&lt;BR /&gt;root@ls1021atwr:~# ifconfig hdlc0 192.168.0.1 up&lt;BR /&gt;hdlc0: Carrier detected&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;root@ls1021atwr:~# ./sethdlc hdlc0&lt;BR /&gt;hdlc0: interface e1 clock type unknown slotmap 10101010010001011111010000000001&lt;BR /&gt;protocol hdlc nrz crc16-itu&lt;BR /&gt;root@ls1021atwr:~#&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The attached are uImage,&amp;nbsp;ls1021a-twr.dtb and&amp;nbsp;sethdlc, you could use them to do verification on your target board.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 06:53:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/PowerQUICC-Processors/sethdlc-returning-invalid-argument-error/m-p/1223810#M3547</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-02-01T06:53:59Z</dc:date>
    </item>
  </channel>
</rss>

