GE863-PRO Ethernet

4 thoughts on “GE863-PRO Ethernet

  1. Hi,

    I’ trying to get ethernet work, I’m using following commands in linux:

    modprobe macb

    ifconfig eth0 hw ether AA:BB:AA:BB:AA:BB

    udhcpc -nq

     

    Problem is: these commands setup internet connection, if I have executed command "ethinit" in u-boot, if  I havn’t, commands doesn’t work. Is it possible to get commands to work without "ethinit" command?

    1. ethinit is only for uboot’s network jobs, the ethernet should work in Linux without it. Do you have any output of the above commands? Is the driver loaded?

      1. It seems that "ethinit" initializes some gpio with ethernet chip, because after "ethinit" yellow led on ethernet port is swithched ON. Linux driver doesn’t do it.

        1. I see pins initialization is done in macb.c, __devinit macb_probe function:

           

              if (pdata->phy_irq_pin) {
                  at91_set_gpio_input(pdata->phy_irq_pin, 0);
                  at91_set_deglitch(pdata->phy_irq_pin, 1);
              }

              /* Pins used for MII and RMII */
              at91_set_A_periph(pdata->etxck_erefck_pin, 0);    /* ETXCK_EREFCK */
              at91_set_A_periph(pdata->erxdv_pin, 0);    /* ERXDV */
              at91_set_A_periph(pdata->erx0_pin, 0);    /* ERX0 */
              at91_set_A_periph(pdata->erx1_pin, 0);    /* ERX1 */
              at91_set_A_periph(pdata->erxer_pin, 0);    /* ERXER */
              at91_set_A_periph(pdata->etxen_pin, 0);    /* ETXEN */
              at91_set_A_periph(pdata->etx0_pin, 0);    /* ETX0 */
              at91_set_A_periph(pdata->etx1_pin, 0);    /* ETX1 */
              at91_set_A_periph(pdata->emdio_pin, 0);    /* EMDIO */
              at91_set_A_periph(pdata->emdc_pin, 0);    /* EMDC */

              if (!pdata->is_rmii) {
                  at91_set_B_periph(pdata->ecrs_pin, 0);    /* ECRS */
                  at91_set_B_periph(pdata->ecol_pin, 0);    /* ECOL */
                  at91_set_B_periph(pdata->erx2_pin, 0);    /* ERX2 */
                  at91_set_B_periph(pdata->erx3_pin, 0);    /* ERX3 */
                  at91_set_B_periph(pdata->erxck_pin, 0);    /* ERXCK */
                  at91_set_B_periph(pdata->etx2_pin, 0);    /* ETX2 */
                  at91_set_B_periph(pdata->etx3_pin, 0);    /* ETX3 */
                  at91_set_B_periph(pdata->etxer_pin, 0);    /* ETXER */
              }