Power Log Collector: Difference between revisions
Jump to navigation
Jump to search
(initial description) |
No edit summary |
||
Line 5: | Line 5: | ||
* 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 |
* The XO will collect the power logs, print a message saying has done so and then shut down. |
||
= Theory of Operation = |
= Theory of Operation = |
||
Line 19: | Line 19: | ||
# Modify as needed |
# Modify as needed |
||
# find | sudo cpio -o -H newc --quiet | gzip -2 > ../initrd.gz |
# find | sudo cpio -o -H newc --quiet | gzip -2 > ../initrd.gz |
||
Note: will not work on secured laptops without signing. |
Revision as of 09:14, 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 . 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.