mic_e

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. Oh. I'm sorry, the thing I actually wrote was iface eth0 inet manual auto lo iface lo inet loopback Hm. How can I set the MAC address of an interface if the interface doesn't even exit yet because the corresponding driver isn't loaded?
  2. Hi, I'm using a xenial system with Kernel 4.9.11-sunxi on LIME2 (actually it's an Olimex A20-SOM with external RTL8211 PHY) and trying to prevent the ethernet from coming up on boot. When turning the system on, the ethernet interface will assign a random MAC address; later on my script sets a proper MAC from an assigned range. Until then the eth0 interface must stay down to prevent the network from being spammed with bogous messages. This is because the ethernet interface chooses a random MAC address when the system boots up; later on a script sets the proper MAC address from an assigned range (along with IP and route configuration); The link must stay down until this has happened. I've tried to replace the eth0 entries in /etc/network/interfaces with auto eth0 inet manual Which has the effect that the interface no longer gets a DHCP address, but I'm still seeing this in my dmesg log: [ 15.972814] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 16.990692] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 16.990760] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
  3. I'm using an Olimex LIME2 board with an A20 processor (actually it's a Olimex A20-SOM, but that shouldn't matter) and trying to use PWM. I have an older image (jessie with Kernel 3.4) where the PWM hardware can be accessed through /sys/class/pwm-sunxi/pwm*/{duty, duty_percent, period, pin, polarity, pulse, run}. Now I'm building a newer image (xenial with Vanilla kernel). It has /sys/class/pwm, but the directory is empty. Any ideas? The fex file is the same for both boards; the relevant section is: [pwm0_para] pwm_used = 1 pwm_period = 10000 pwm_duty_percent = 50 [pwm1_para] pwm_used = 1 pwm_period = 10000 pwm_duty_percent = 50