bumble.sf.net language and parsing

plain text

The Linux Hardware Booklet

-----------------------------:

This should become a booklet about using bits of hardware with the Linux operating system.

Debugging drivers


Viewing and modifying linux modules requires you to be the 'super-user' root.

run a series of commands as to super user

 sudo bash

search for available modules for a Realtex RTL8139 ethernet card

 sudo modprobe -l | grep 8139
 modprobe -l | grep 8139

search for available modules for a Boradcom wireless card

 modprobe -l | grep b43

These commands search for what modules (called 'drivers' in the microsoft world) are available to install, not what modules are currently being used.

list all loaded modules which have '8139' in their name

 lsmod | grep 8139

see if the Broadcom wireless module is currently installed (loaded)

 lsmod | grep b43

load the 'b43' module

 modprobe -v b43

list all modules currentlly installed

 lsmod

Hardware information


get a full report of hardware and operating system in html format

 hardinfo

another way to get lots of hardware and operating system info uname -a > eg.txt lspci >> eg.txt lspci -vv >> system.txt ,,,

Wireless


check what network interfaces are available

 ifconfig -a

Use an ms windows driver on linux


first find the .INF file for the hardware

install a windows driver

 ndiswrapper -i /path/to/.inf

view the ms windows drivers being used current

 ndiswrapper -l

stop linux from loading linux driver 'b43' (broadcom wireless card)

 echo "blacklist b43" >> /etc/modprobe.conf

Notes


:

Unclassified notes

Get info on RAM Slots and Max RAM.

 dmidecode 2.9 | grep "Maximum Capacity"; dmidecode -t 17 | grep Size

Quickly (soft-)reboot skipping hardware checks

 /sbin/kexec -l /boot/$KERNEL --append="$KERNELPARAMTERS" --initrd=/boot/$INITRD; sync; /sbin/kexec -e

Lists the supported memory types and how much your board can

 sudo dmidecode -t 5,16

Backup your OpenWRT config (only the config)

 curl -d 'username=root&password=your-good-password' "http://router/cgi-bin/luci/admin/system/backup?backup=kthxbye" > `date +%Y%d%m`_config_backup.tgz