I've seen articles describing how to disable LAN on the RPi 1 Model B. But it's not working on my RPi 2 Model B. According to Disable LAN9512 the command is supposed to be:
echo 0x0 > /sys/devices/platform/bcm2708_usb/buspower
to disable it, but that doesn't work on my device as I don't have the bcm2708_usb
part.
Here is an output of ls -l /sys/devices/platform/
pi@raspberrypi /sys/devices/platform $ ls -l
total 0
drwxr-xr-x 2 root root 0 Dec 10 02:08 alarmtimer
drwxr-xr-x 2 root root 0 Dec 10 02:08 bcm2835_AUD0.0
drwxr-xr-x 2 root root 0 Dec 10 02:08 bcm2835_AUD1.1
drwxr-xr-x 2 root root 0 Dec 10 02:08 bcm2835_AUD2.2
drwxr-xr-x 2 root root 0 Dec 10 02:08 bcm2835_AUD3.3
drwxr-xr-x 2 root root 0 Dec 10 02:08 bcm2835_AUD4.4
drwxr-xr-x 2 root root 0 Dec 10 02:08 bcm2835_AUD5.5
drwxr-xr-x 2 root root 0 Dec 10 02:08 bcm2835_AUD6.6
drwxr-xr-x 2 root root 0 Dec 10 02:08 bcm2835_AUD7.7
drwxr-xr-x 9 root root 0 Dec 10 02:08 clocks
drwxr-xr-x 2 root root 0 Dec 10 02:08 serial8250
drwxr-xr-x 16 root root 0 Dec 10 02:05 soc
drwxr-xr-x 2 root root 0 Dec 10 02:08 timer
-rw-r--r-- 1 root root 4096 Dec 10 02:05 uevent
I'm looking for a solution to disable the LAN because my aim is to turn off the chip that provides power to the LAN as I would like to run a test to utilise the cpu only and measure its power consumption.
ls -l /sys/devices/platform/
then? I do have/sys/devices/platform/bcm2708_usb/buspower
on my Pi 2. But I just executedecho 0x0 > /sys/devices/platform/bcm2708_usb/buspower
and got an error. If you do too, then please add that info too to your question.