Power Log Collector: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(added link to file) |
||
Line 2: | Line 2: | ||
= Use = |
= Use = |
||
* Download . and unpack onto a USB flash drive |
* Download [[media:Power-log-collector.tar.bz2|Power-log-collector.tar.bz2]] and unpack onto a USB flash drive |
||
* Shut down the XO |
* Shut down the XO |
||
* Insert the USB drive and turn on the XO |
* Insert the USB drive and turn on the XO |
||
* The XO will collect the power logs, print a message saying has done so and then shut down |
* The XO will collect the power logs, print a message saying has done so and then shut down |
||
= Theory of Operation = |
= Theory of Operation = |
Revision as of 09:16, 7 February 2011
This Power Log Collector boots an XO-1 or XO-1.5 and copies the power logs to itself before shutting the laptop down.
Use
- Download Power-log-collector.tar.bz2 and unpack onto a USB flash drive
- Shut down the XO
- Insert the USB drive and turn on the XO
- The XO will collect the power logs, print a message saying has done so and then shut down
Theory of Operation
- Based on Tiny Core Linux
- An Open Firmware Boot Script selects the XO-1 or XO-1.5 kernel.
- The initial ramdisk mounts /dev/sda (which should be the first USB drive) and..
- executes rc.local on that drive
- rc.local does the collection
Modifying Tiny Core Linux
This will unpack the initial ramdisk to the current directory.
- gunzip <../initrd.gz | cpio -i
- Modify as needed
- find | sudo cpio -o -H newc --quiet | gzip -2 > ../initrd.gz
Note: will not work on secured laptops without signing.