AP200
Aus Opennet
Version vom 12. Februar 2010, 14:10 Uhr von Christoph (Diskussion | Beiträge)
Inhaltsverzeichnis |
Information
bootloader
+Ethernet eth0: MAC address 00:d0:12:01:39:09 IP: 192.168.115.254/255.255.255.0, Gateway: 192.168.115.200 Default server: 192.168.115.113, DNS server IP: 192.168.115.200 RedBoot(tm) bootstrap and debug environment [ROM] Red Hat certified release, version 1.92p1 - built 16:53:03, Mar 26 2004 Platform: GW2342 Development Platform (XScale) Copyright (C) 2000, 2001, 2002, Red Hat, Inc. RAM: 0x00000000-0x04000000, 0x0001f880-0x03fd1000 available FLASH: 0x50000000 - 0x51000000, 128 blocks of 0x00020000 bytes each. RedBoot>
fconfig
RedBoot> fconfig -l Run script at boot: false Use BOOTP for network configuration: false Gateway IP address: 192.168.115.200 Local IP address: 192.168.115.254 Local IP address mask: 255.255.255.0 Default server IP address: 192.168.115.113 Console baud rate: 115200 DNS server IP address: 192.168.115.200 GDB connection port: 9000 Force console for special debug messages: false Network debug at boot time: false Default network device: npe_eth0 RedBoot>
fis
RedBoot> fis list Name FLASH addr Mem addr Length Entry point RedBoot 0x50000000 0x50000000 0x00040000 0x00000000 RedBoot config 0x50FC0000 0x50FC0000 0x00001000 0x00000000 FIS directory 0x50FE0000 0x50FE0000 0x00020000 0x00000000 RedBoot>
messen
prüfen ob der treiber geladen ist
root@OpenWrt:/# dmesg | grep -i ad7418 ad7418 0-0028: ad7418 chip found ad7418 0-0028: configuring for mode 1 root@OpenWrt:/#
Temperatur
root@OpenWrt:/# cat /sys/bus/i2c/devices/0-0028/temp1_input 37000 root@OpenWrt:/#
WERT / 1000 in °C (37000/1000 => 37,0 °C)
Versorgungsspannung
root@OpenWrt:/# cat /sys/bus/i2c/devices/0-0028/in1_input 583 root@OpenWrt:/#
(WERT / 1024) * 2,5(V max. Messbereich) * 10(Vorteiler) in V (583/1024)*2,5*10 => 14,23V