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?
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?
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.
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); }
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
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?
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?
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.
I see pins initialization is done in macb.c, __devinit macb_probe function: