ADSP-SC589 networking

Hi, support,

I am starting familiarize myself with the ADSP-SC589 EZ-Board, and so far I have got the linux core working, using the default linux image.

I am following the instructions in "linux_add_in_user_guide_1.3.1", and I have been able to set it up to boot from the SD card.

However, I had no ethernet network running, so I did the "make menuconfig" and enabled "DHCP", and ran "make" to build from source. In this process I also selected the "nano" text editor.

I replaced the content of the SD-card and rebooted the board.

The nano text editor was there, and the /etc/network/interfaces had changed to include DHCP.

But "ifconfig -a" showed no ip.

If I do "/etc/init.d/S40network restart" I get 

# ./S40network restart                                                          

Stopping network...ifdown: interface lo not configured                          

ifdown: interface eth0 not configured                                           

Starting network...                                                             

/bin/sh: run-parts: not found                                                   

ifup: don't seem to have all the variables for eth0/inet    

What am I doing wrong? 

BN

Parents
  • 0
    •  Analog Employees 
    on Nov 11, 2019 4:22 AM

    Hi ,

    When you boot from SD card, the ethernet should first setup in u-boot or bring up manually by input "ifconfig eth0 IP_ADDR up" after linux kernel bootup, once the log "stmmaceth 3100c000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx " occurs it means the eth0 is ready.

    In u-boot(one more step than the linux addin user guide - run addip):

    set sdargs set bootargs root=/dev/mmcblk0p1 rw rootwait rootfstype=ext3 clkin_hz=(25000000) earlyprintk console=ttySC0,57600
    set sdboot 'run sdargs; run addip;ext2load mmc 0:1 ${dtbaddr} sc589-ezkit.dtb;ext2load mmc 0:1 ${loadaddr} vmImage-sc589-ezkit;bootm ${loadaddr} - ${dtbaddr}'

    In linux-kernel:

    # ifconfig eth0 10.99.24.107 up
    # stmmaceth 3100c000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx                                                                                                                           
    ifconfig                                                                                                                                                                                                     
    eth0      Link encap:Ethernet  HWaddr 02:80:AD:20:31:E4                                                                                                                                                      
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                                                                                                                                 
              RX packets:7 errors:0 dropped:0 overruns:0 frame:0                                                                                                                                                 
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                                                                                                                               
              collisions:0 txqueuelen:1000                                                                                                                                                                       
              RX bytes:420 (420.0 B)  TX bytes:0 (0.0 B)                                                                                                                                                         
              Interrupt:103 Base address:0xc000              

    If you want to use the dhcp command, you could refer to the talks in this thread. https://ez.analog.com/dsp/software-and-development-tools/linux-for-adsp-sc5xx-processors/f/q-a/100106/can-t-get-ifup-eth0-to-work/299290#299290 . It talks about how to enable the dhcp command based on the exsiting linux addin 1.3.1 release.

    For more questions please let me know. Thanks a lot.

Reply
  • 0
    •  Analog Employees 
    on Nov 11, 2019 4:22 AM

    Hi ,

    When you boot from SD card, the ethernet should first setup in u-boot or bring up manually by input "ifconfig eth0 IP_ADDR up" after linux kernel bootup, once the log "stmmaceth 3100c000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx " occurs it means the eth0 is ready.

    In u-boot(one more step than the linux addin user guide - run addip):

    set sdargs set bootargs root=/dev/mmcblk0p1 rw rootwait rootfstype=ext3 clkin_hz=(25000000) earlyprintk console=ttySC0,57600
    set sdboot 'run sdargs; run addip;ext2load mmc 0:1 ${dtbaddr} sc589-ezkit.dtb;ext2load mmc 0:1 ${loadaddr} vmImage-sc589-ezkit;bootm ${loadaddr} - ${dtbaddr}'

    In linux-kernel:

    # ifconfig eth0 10.99.24.107 up
    # stmmaceth 3100c000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx                                                                                                                           
    ifconfig                                                                                                                                                                                                     
    eth0      Link encap:Ethernet  HWaddr 02:80:AD:20:31:E4                                                                                                                                                      
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                                                                                                                                 
              RX packets:7 errors:0 dropped:0 overruns:0 frame:0                                                                                                                                                 
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                                                                                                                               
              collisions:0 txqueuelen:1000                                                                                                                                                                       
              RX bytes:420 (420.0 B)  TX bytes:0 (0.0 B)                                                                                                                                                         
              Interrupt:103 Base address:0xc000              

    If you want to use the dhcp command, you could refer to the talks in this thread. https://ez.analog.com/dsp/software-and-development-tools/linux-for-adsp-sc5xx-processors/f/q-a/100106/can-t-get-ifup-eth0-to-work/299290#299290 . It talks about how to enable the dhcp command based on the exsiting linux addin 1.3.1 release.

    For more questions please let me know. Thanks a lot.

Children