User:Kevgor/Miscellaneous Technical Notes: Difference between revisions
Line 81: | Line 81: | ||
From Wiki on troubleshooting battery |
From Wiki on troubleshooting battery |
||
At open firmware - please read reference wiki pages before trying any of this list of commands!! |
|||
At open firmware |
|||
ec-abnormal@ . |
ec-abnormal@ . |
||
see-bstate |
see-bstate |
||
Line 87: | Line 87: | ||
batman-start |
batman-start |
||
bat-recover |
bat-recover |
||
bat-set-life-byd |
|||
<br /> |
<br /> |
||
Revision as of 18:50, 27 November 2011
Miscellaneous Technical Notes
November 2011
Thanks to Daniel Drake, Mikus Grinbergs, Martin Langhoff, Peter Robinson, James Cameron, Richard Smith, and Yioryos Asprobounitis for all of their help on these things :-)
Ntugi Group Reflash Documents
- User:Kevgor/Reflash to Standard Install Image using Ntugigroup USB stick
- User:Kevgor/Install Script for XO 1.0
- User:Kevgor/Install Script for XO 1.5
- User:Kevgor/Mavrothal scripts for XO 1.0
- User:Kevgor/Utilities rpms installed from USB for Testing phase
Install Developer Key
su - wget -P /security https://activation.laptop.org/devkey/xxxxxxxxx/develop.sig
Booting up cheat keys
signed install - right game pad - all 4 game keys, on right-hand of display
text boot - right game pad - check-mark key, on right-hand side of display
boot to OFW - esc (X), keyboard key
diagnostics - left game pad - rocker left, on left of display
Set Clock using serial adapter
At the ok prompt, type these commands to set the date (hitting enter after each one):
ok select /rtc
ok decimal
ok sec min hour day month year set-time
sec, min, hour, day, etc in the previous command should be numbers correlating to the current date. For the current time:
ok 58 39 03 22 11 2024 set-time
Set Clock using Linux
Once Linux has booted, login at a root terminal (e.g. press Ctrl+Alt+F1).
Set the system time using the date command, e.g. for the current date/time:
date --utc --set="2024-11-22 03:39:58"
Then shutdown normally and the system time will be stored in the clock.
(Don't force a shutdown by holding down the power button, because then the change won't be stored.)
Unsigned Build reflash commands from OFW ok prompt
XO1 - jffs2 from os-builder
copy-nand u:\osx.img
XO1
update-nand u:\osx.onu
XO1.5 and 1.75
fs-update u:\osx.zd4
OFW
flash u:\qxxxx.rom
Start cups service
/sbin/service cups start
FTP server
Link to brooksc OLPC News page on ftp on the XO <ref>Brooksc FTP notes</ref>.
pure-ftpd is now included in the standard repository packages, so one can just do a plain
yum install --nogpgcheck pure-ftpd
To manually start the service, non-persistent:
/sbin/service pure-ftpd start
USB ethernet auto-assign workaround
avahi-autoipd eth1
Battery Notes
From Wiki on troubleshooting battery At open firmware - please read reference wiki pages before trying any of this list of commands!!
ec-abnormal@ . see-bstate load u:\batman.fth batman-start bat-recover bat-set-life-byd
From Richard Smith on yellow wont go green
Next time you are using the machine stop powerd and run olpc-pwr-log
in a terminal (you can use it normally) and let it run down until it
powers off. Then remove the battery, power back up, run olpc-pwr-log
again and then re-insert the battery. Let it charge until you see the
got to 100 and the 3rd and 4th column of numbers reach some sort of
steady state where they don't change much. Ctrl-C and then send me
the file.
FYI. Col 3 is voltage in uV and col 4 is amperage in uA.
Also send me all the files you have in ~olpc/power-logs
Battery Recovery Procedure on Wiki <ref>Battery Recovery Procedure</ref> Troubleshooting Battery on Wiki <ref>Troubleshooting Battery</ref>
Trackpad/Keyboard commands
What kind of trackpad do I have?
dmesg | grep psmouse
Output from above command:
XO 1.5 newer CL1A = serio1: ID: 10 02 64
XO 1.5 older CL1A = synaptics
XO 1.0 = 50
Tap-to-click Persistent for older CL1/CL1A - edit the following file; to turn on set the param =1 or off =0
/etc/modprobe.d/olpc.psmouse.conf
Tap-to-click Non-Persistent for newer CL1A - to turn ON
echo -n C > /sys/bus/serio/drivers/psmouse/serio*/flags
Tap-to-click Non-Persistent for newer CL1A - to turn OFF
echo -n c > /sys/bus/serio/drivers/psmouse/serio*/flags
Adopt authority/permissions hint
add the NOPASSWD option in /etc/sudoers just for the scripts/commands you need
Sample yum syntax
For download only of yum updates to an External USB Volume PATRIOT with subdirectory called UpdateRpms
yum update --downloadonly --nogpgcheck --downloaddir=/media/PATRIOT/UpdateRpms
For installing rpms from a USB volume PATRIOT with subdirectory called UpdateRpms and no internet access
yum localinstall --nogpgcheck --disablerepo=* /media/PATRIOT/UpdateRpms/*.rpm
Install bad and ugly gstreamer files to USB
For download only of rpm's to an External USB Volume PATRIOT with subdirectory called Guvcview. This will alter the repos used for subsequent Updates, so delete rpmfusion repos later if you wish
yum install --nogpgcheck \ http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm \ http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm sleep 2 yum install --downloadonly --nogpgcheck --downloaddir=/media/PATRIOT/Guvcview \ gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-ffmpeg
Enable and Start Bluetooth service
To enable:
systemctl enable bluetooth.service ln -s ‘/lib/systemd/system/bluetooth.service’ ‘/etc/systemd/system/dbus-org.bluez.service’ ln -s ‘/lib/systemd/system/bluetooth.service’ ‘/etc/systemd/system/bluetooth.target.wants/bluetooth.service'
To start:
systemctl start bluetooth.service
Frequent Links for XO resources
XO diagnostics <ref>XO diagnostics</ref>
Developer Builds <ref>Developer builds</ref>
Koji for arm rpms <ref>Arm rpms from Koji</ref>
Stable builds <ref>Stable builds</ref>
Enable Cups <ref>Enable CUPS</ref>
Printing OLPC Notes<ref>Printing OLPC Notes</ref>
Printing Tony Pearson IBM Notes<ref>Printing Tony Pearson IBM Notes</ref>
OLPC News mavrothal page <ref>Mav ref page</ref>
Disassembly Instructions <ref>Disassembly Instructions</ref>
Manufacturer Data Legend <ref>Manufacturing Data legend</ref>
Notes on first steps on XO 1.75 B1 <ref>XO 1.75 B1 arrival </ref>
External links