<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Howard</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Howard"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Howard"/>
	<updated>2026-04-19T15:46:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_webOS_CPU_Frequency_or_Voltage_Scaling&amp;diff=5354</id>
		<title>Patch webOS CPU Frequency or Voltage Scaling</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_webOS_CPU_Frequency_or_Voltage_Scaling&amp;diff=5354"/>
		<updated>2009-09-05T03:46:40Z</updated>

		<summary type="html">&lt;p&gt;Howard: fix typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{template:patch}}&lt;br /&gt;
= Overview=&lt;br /&gt;
There are currently 2 methods to enable further power saving - neither is perfect. Note that '''these 2 methods CANNOT be used together''' so make sure you try only one solution at a time. Using both has been reported to brick your Pre, requiring a visit to the WebOS Doctor. Patches for these are now available in the gitorious repo. See [[Applying Patches]]&lt;br /&gt;
&lt;br /&gt;
1 CPU Scaling&lt;br /&gt;
* This allows the Pre to scale the CPU clock speed up and down in response to changes in CPU utilization. Some people have reported glitching when using scaling when the CPU is under heavy load (lots of multitasking, playing video, etc).&lt;br /&gt;
2 SmartReflex&lt;br /&gt;
* This allows the Pre to vary the voltage inside the core in response to silicon characteristics, temperature, voltage, etc. This does not save that much power because it is supposed to be used along with CPU scaling to reduce voltage when the CPU is running slower, but the Pre's kernel is missing the modules to do this. This is why using both together will '''freeze''' the Palm Pre. (Remove the battery, restart with the USB plugged into your computer with NovaCom installed, During the phones boot procedure simply telnet to the phone through NovaCom's Proxy port 8023, remove the smartreflex files you installed in the events folder in /etc/ before WebOS panics) &lt;br /&gt;
&lt;br /&gt;
= CPU Scaling=&lt;br /&gt;
== Default Setting==&lt;br /&gt;
Frequency scaling does not appear to be active by default on the Pre by default. The directory /sys/devices/system/cpu/cpu0/cpufreq contains information on the current state. The clock seems to be fixed at 500mHz for normal operation (according to cpuinfo_cur_freq), however several other frequencies exist:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
root@castle:/sys/devices/system/cpu/cpu0/cpufreq# cat ./scaling_available_frequencies &lt;br /&gt;
600000 550000 500000 250000 125000 &lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
The file /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state shows that at some point (probably during startup) the frequency is raised to 550mHz for a short period of time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Enabling Scaling==&lt;br /&gt;
It is possible to enable frequency scaling using the 'ondemand' governor:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
root@castle:/sys/devices/system/cpu/cpu0/cpufreq# echo ondemand &amp;gt; ./scaling_governor &lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
this will cause the frequency to be reduced automatically while idle, and increased as needed during operation, potentially increasing battery life. Because higher frequencies may cause overheating, and TI has noted a significant decrease in the life of the processor when running above 500mHz, you should also restrict the frequency scaling to 500mHz and below by doing the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
root@castle:/sys/devices/system/cpu/cpu0/cpufreq# echo 500000 &amp;gt; ./scaling_max_freq&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If your Pre seems sluggish after enabling scaling, you can try changing the values in /sys/devices/system/cpu/cpu0/cpufreq/ondemand as detailed below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 'ondemand' Configuration==&lt;br /&gt;
Increasing the value of 'scaling_min_freq' will prevent the CPU from going into extremely low speed configurations, which will significantly improve the responsiveness of the device when it first detects increased CPU usage, at the cost of a little bit of battery life.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
root@castle:/sys/devices/system/cpu/cpu0/cpufreq# echo 250000 &amp;gt; ./scaling_min_freq&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Setting the value of 'up_threshold' lower will cause the frequency to be increased at lower levels of activity.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
root@castle:/sys/devices/system/cpu/cpu0/cpufreq/ondemand# echo 30 &amp;gt; ./up_threshold&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note: The default setting for 'up_threshold' is 80.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Checking Performance and Stats==&lt;br /&gt;
To check how long your Pre has been running and at what frequency, do this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will see something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;600000 906&lt;br /&gt;
550000 768&lt;br /&gt;
500000 380&lt;br /&gt;
250000 0&lt;br /&gt;
125000 180505&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first number is the CPU frequency, the second is a time interval.  In this example, my Pre has spent the most time @ 125mHz, but you can see it shoots up when needed.  Note that if you are overclocking, it really doesn't spend much time at 600mHz, so overheating shouldn't be a problem, but you will definitely notice an improvement. These stats are reset after a reboot.&lt;br /&gt;
&lt;br /&gt;
== Overclocking==&lt;br /&gt;
Overclocking is not recommended, as TI has reported a significant decrease in the life of the CPU at frequencies about 500mHz. However some users have reported better responsiveness, in addition to running cooler and using less battery while overclocking.&lt;br /&gt;
&lt;br /&gt;
To overclock to the CPU's maximum speed, do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;echo &amp;quot;600000&amp;quot; &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To put it back, do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;echo &amp;quot;500000&amp;quot; &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Making your changes stick after a reboot==&lt;br /&gt;
Create a file called '''cpu-scaling''' in /etc/event.d and put this code in it, then reboot.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
# Enables cpu scaling&lt;br /&gt;
&lt;br /&gt;
start on stopped finish&lt;br /&gt;
stop on runlevel [!2]&lt;br /&gt;
&lt;br /&gt;
console none&lt;br /&gt;
&lt;br /&gt;
script&lt;br /&gt;
    echo &amp;quot;500000&amp;quot; &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq&lt;br /&gt;
    echo &amp;quot;250000&amp;quot; &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq&lt;br /&gt;
    echo &amp;quot;ondemand&amp;quot; &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor&lt;br /&gt;
    echo &amp;quot;30&amp;quot; &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold&lt;br /&gt;
end script&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Return to Stock Fixed Frequency==&lt;br /&gt;
The simple way is just to remove the '''cpu-scaling''' script from /etc/event.d (if you created it) and reboot.  None of these changes are persistent without the &amp;quot;sticky&amp;quot; script shown above.&lt;br /&gt;
&lt;br /&gt;
If you switch back to the 'userspace' governor without rebooting, your frequency could get stuck at a lower setting and the whole system get really bogged down.  Here is a quick shell script to help you revert to userspace with the original frequency:&lt;br /&gt;
&lt;br /&gt;
Copy/paste this whole line as one command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;echo userspace &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ; echo 500000 &amp;gt;/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed &amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then confirm the frequency/governor are back the way you want.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments and Caveats==&lt;br /&gt;
* &amp;quot;I tried this out but video playback was flickery and horrible.  The up_threshold tweak setting to 30 seems to improve it a lot , but it's still flickery a bit.  Some people may not be happy.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;I found that setting the max freq to 600000 with the threshold helps this problem.  See relevant warnings above first!  I don't really watch video on my Pre, so it's not so big of a deal.&amp;quot; -pEEf&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;A lot of people on the Precentral forums (myself included) are experiencing the phone locking up after a while of using this, and need to pull the battery to reset.  (On webOS 1.0.3 at least.)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;I've been running my phone with scaling for nearly a week now without problems, but I'm not 'overlcocking' so to speak.  Any specifics on what might cause the locks? (ok had my first locks tonight while attached to the touchstone, weird it never happened before now (and annoying))&amp;quot; -retry&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= SmartReflex=&lt;br /&gt;
== Enable SmartReflex==&lt;br /&gt;
SmartReflex can be enabled in the VDD1 and VDD2 areas of the OMAP processor by setting two flags under /sys/power&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
root@castle:/sys/power# echo -n 1 &amp;gt; ./sr_vdd1_autocomp&lt;br /&gt;
root@castle:/sys/power# echo -n 1 &amp;gt; ./sr_vdd2_autocomp&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
[http://www.celinux.org/elc08_presentations/TI_OMAP3430_Linux_PM_reference.ppt This slide deck] has much of the pertinent information about SmartReflex and other power-saving technologies on the OMAP processor. Unfortunately the kernel modules that provide many of the features mentioned in the slide deck are not present on the Pre. This is the main reason that SmartReflex may not save a terribly large amount of power.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Making your changes stick after a reboot==&lt;br /&gt;
To enable SmartReflex, create a file called '''smartreflex''' in /etc/event.d and put this code in it, then reboot.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
# -*- mode: shell-script; -*-&lt;br /&gt;
description &amp;quot;SmartReflex&amp;quot;&lt;br /&gt;
author &amp;quot;Alex Markson&amp;quot;&lt;br /&gt;
version 1.0&lt;br /&gt;
&lt;br /&gt;
start on stopped finish&lt;br /&gt;
stop on runlevel [!2]&lt;br /&gt;
&lt;br /&gt;
console none&lt;br /&gt;
&lt;br /&gt;
script&lt;br /&gt;
&lt;br /&gt;
# SmartReflex&lt;br /&gt;
# &amp;quot;SmartReflex™ driver allows for auto-compensation of VDD1 and&lt;br /&gt;
# VDD2 voltages (around the voltages specified by current OPP)&lt;br /&gt;
# by analyzing the silicon characteristics, temperature, voltage etc&amp;quot;&lt;br /&gt;
# &lt;br /&gt;
# Enable SmartReflex&lt;br /&gt;
echo -n 1 &amp;gt; /sys/power/sr_vdd1_autocomp&lt;br /&gt;
echo -n 1 &amp;gt; /sys/power/sr_vdd2_autocomp&lt;br /&gt;
&lt;br /&gt;
end script&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to enable overclocking in addition to SmartReflex, add the following JUST BEFORE the '''end script''' line:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
# according to the OEM shell script in /etc/miniboot.sh&lt;br /&gt;
# this seems like it needs to be set twice to make sure ?&lt;br /&gt;
echo 600000 &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed&lt;br /&gt;
echo 600000 &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments and Caveats==&lt;br /&gt;
* &amp;quot;After updating to 1.0.4 my pre would lock up and get really hot using the ONDEMAND cpu scaling method and with smartflex everything running great and battery seems even better than ondemand.&amp;quot; -seekis&lt;br /&gt;
* &amp;quot;AFter using this for about a week, I find that using SmartReflex causes the Pre to stutter every so often&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Credits=&lt;br /&gt;
* Alex Markson for the SmartReflex find and the script.&lt;br /&gt;
* pEEf for numerous discoveries related to cpu scaling.&lt;br /&gt;
* sidamos for the info about 'up_threshold'&lt;br /&gt;
* garrettwp for the cpu scaling event.d script.&lt;br /&gt;
* Jauder Ho for gitorious patches&lt;br /&gt;
&lt;br /&gt;
= Hacking=&lt;br /&gt;
There is still a lot of work to be done in making this work optimally. The following are some resources and thoughts.&lt;br /&gt;
* A paper about the ondemand governor http://www.linuxinsight.com/ols2006_the_ondemand_governor.html&lt;br /&gt;
* webOS 1.0.4 has CONFIG_PREEMPT set along with CONFIG_HZ=100. CONFIG_NO_HZ aka tickless is not set.&lt;br /&gt;
* Possible patch for NOHZ / ondemand governor http://linux.derkeiler.com/Mailing-Lists/Kernel/2009-05/msg10436.html&lt;br /&gt;
* Use PowerTop to observe what is going on inside the Pre&lt;br /&gt;
* http://www.lesswatts.org/&lt;br /&gt;
* http://wiki.davincidsp.com/index.php/Running_PowerTOP_on_OMAP35x_platform&lt;br /&gt;
* TI 3430 PM presentation http://www.celinux.org/elc08_presentations/TI_OMAP3430_Linux_PM_reference.ppt&lt;/div&gt;</summary>
		<author><name>Howard</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=USBnet_networking_setup&amp;diff=5252</id>
		<title>USBnet networking setup</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=USBnet_networking_setup&amp;diff=5252"/>
		<updated>2009-09-04T10:46:38Z</updated>

		<summary type="html">&lt;p&gt;Howard: /* On Windows XP */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;USBnet allows you to create an IP network over the USB cable. This will allow you to talk to your Pre without WiFi or Bluetooth, and it keeps the battery charged.&lt;br /&gt;
&lt;br /&gt;
This page is a duplicate of [[USBnet Setup]]&lt;br /&gt;
&lt;br /&gt;
== On your rooted Pre==&lt;br /&gt;
&lt;br /&gt;
run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
usbnet enable&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
as root and then restart the device as instructed. When it comes back up, run 'ifconfig' and verify you now have a usb0 interface. Mine had the IP of 192.168.0.202.  The IP can be changed in /etc/network/interfaces.  After a change, bounce the usb0 interface: ifdown usb0; ifup usb0&lt;br /&gt;
&lt;br /&gt;
== Optional Setup to enable DHCP (so you don't have to set the IP address below)==&lt;br /&gt;
# Edit /etc/dnsmasq.palm.conf&lt;br /&gt;
# Add interface=usb0 below the existing interface line&lt;br /&gt;
# Add dhcp-range=192.168.0.11,192.168.0.12,12h below the existing dhcp-range&lt;br /&gt;
# Restart the dnsmasq process: stop dnsmasq; start dnsmasq&lt;br /&gt;
&lt;br /&gt;
== On Windows XP==&lt;br /&gt;
# Download the driver here: [http://gitorious.org/webos-internals/usbnet-pre/blobs/raw/master/windows/usbnet-pre.inf usbnet-pre windows driver(32 bit)] or [http://gitorious.org/webos-internals/usbnet-pre/blobs/raw/master/windows/usbnet-pre-64.inf usbnet-pre windows driver(64 bit)] and save the file to disk as usbnet-pre.inf&lt;br /&gt;
# Plug the Pre into your computer. The Add New Hardware Wizard should come up, asking to install an ethernet gadget.&lt;br /&gt;
# Follow detailed instructions (screenshots and all) here if you are unfamiliar with installing drivers: [http://docwiki.gumstix.org/index.php/Windows_XP_usbnet Windows XP USBnet install]&lt;br /&gt;
# When you finish, you should have a network setup. Goto &amp;quot;Network Connections&amp;quot; via Network Places or the Control Panel&lt;br /&gt;
# If you have previously installed Novacom on this machine, bring up Windows Task Manager before proceeding.  You may discover a conflict between USBnet and novacomd where the novacomd process will consume lots of CPU and your machine will become very unresponsive.  Since you have Task Manager up already, you can easily use it to kill novacomd if this occurs.&lt;br /&gt;
# Right-click on the new network, which probably be named Local Area Connection 2&lt;br /&gt;
# Select Properties&lt;br /&gt;
# Double click on Internet Protocol (TCP/IP)&lt;br /&gt;
# Click Advanced&lt;br /&gt;
# UNCheck Automatic metric, put 100 in its place.  This will keep Windows from attempting to [http://support.microsoft.com/default.aspx/kb/299540 route] traffic over the Pre (it won't work anyway)&lt;br /&gt;
# Click OK&lt;br /&gt;
# If you did not enable DHCP, you will need to set an IP address manually:&lt;br /&gt;
 # Set your IP address as 192.168.0.203 ( could be anything except 192.168.0.202, assuming this is the Pre's address)&lt;br /&gt;
 # Subnet mask: 255.255.255.0&lt;br /&gt;
 # Default Gateway: 192.168.0.202 (your Pre's address for the usb0 interface)&lt;br /&gt;
 # Set DNS to your preferred servers. Addresses are not currently resolving for me, regardless of the server I use&lt;br /&gt;
# Hit OK&lt;br /&gt;
&lt;br /&gt;
The network should now be setup. To verify, ssh to 192.168.0.202, and you should be prompted for a login.&lt;br /&gt;
&lt;br /&gt;
=== Notes:===&lt;br /&gt;
* This has only been tested on Windows XP 32 bit. For Windows 2000, you will need an additional download from Microsoft. The link is in the header of the INF file.&lt;br /&gt;
- From zinge: I have several confirmations via the precentral forums that this only works on XP sp3. Sp2 gives &amp;quot;error code 10, the device cannot start&amp;quot;. Has anyone followed this process and had it work on XP sp2? Update: Upgraded to SP3 on my laptop, and it immediately started working.&lt;br /&gt;
* The 64 bit driver is unverified at this point, but I think it works.&lt;br /&gt;
* wayne47: I was having all kinds of issues with this on my WinXP notebook.  Clicking on the //safely remove hardware// icon in the tray indicated two devices associated with the Pre: Novacom and a USB drive.  Stopping the Novacom service resolved the issues.  Note that I need to do this each time that I attach the Pre via USB.&lt;br /&gt;
&lt;br /&gt;
== On Mac OS X==&lt;br /&gt;
mdklein notes that as of 1.0.4 the g_composite driver appears to only operate usbnet in rndis mode which is not the method OS-X includes. He has made a version that implements CDC-ECM, but it breaks a few other things. Working on this.&lt;br /&gt;
 &lt;br /&gt;
Allegedly, Mac OS X 10.4 should create a usb0 interface after you plug in a usbnet enabled pre. 10.5 needs a modified driver, which is not working for me (and carazy) yet.&lt;br /&gt;
See http://bugcommunity.com/wiki/index.php/Start_Guide_Mac_OS_X_10.5 for more details.&lt;br /&gt;
&lt;br /&gt;
== Windows Vista (64-bit)==&lt;br /&gt;
* If driver/device fails to come online in network sharing center, simply click start-&amp;gt;right click computer-&amp;gt; properties ... Click Device manager and look for the device &amp;quot;Linux USB Ethernet/RNDIS Gadget&amp;quot; you can then right click disable/enable the device. That's all. &lt;br /&gt;
* This device/driver can also be cycled with MS Windows own [http://support.microsoft.com/kb/311272 DevCon] application.&lt;br /&gt;
&lt;br /&gt;
== Windows 7 RC Build 7100 (64-bit)==&lt;br /&gt;
* User lars47 confirms this is working on Windows 7 x64.  Wrestled with the driver installation at first, it would not install, Windows complained of a file in use.  I rebooted, and the next time I plugged in the Pre via USB, it &amp;quot;just worked&amp;quot;.  Unsure if I caused the problem, or if a reboot is required/recommended.&lt;br /&gt;
&lt;br /&gt;
== Linux Support==&lt;br /&gt;
Once usbnet was enabled on the Pre, my Ubuntu 9.04 (64 bit) immediately identified the Pre in the NetworkManager and worked without modification to the OS. It seems to already have a driver that works.&lt;br /&gt;
&lt;br /&gt;
== Return to the next steps page:  [[Next_steps | Next Steps ]].==&lt;/div&gt;</summary>
		<author><name>Howard</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Next_steps&amp;diff=5208</id>
		<title>Next steps</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Next_steps&amp;diff=5208"/>
		<updated>2009-09-03T14:44:56Z</updated>

		<summary type="html">&lt;p&gt;Howard: /* Finishing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''The old, manual setup of Optware and users can be found [[Setting_up_optware_feed | here]].''&lt;br /&gt;
&lt;br /&gt;
=Automated Setup of Optware, Users and Access=&lt;br /&gt;
The webOS community asks that users who have obtained access to the Linux subsystem install a standard set of software  to ensure everyone has the necessary tools in place to use the resources the community is providing.&lt;br /&gt;
&lt;br /&gt;
In particular, this includes the Optware package manager.  Palm's webOS uses the ''ipkg'' package manager internally.  The community has a version of ''ipkg''  called  ''ipkg-opt'' which accesses the Optware library of over 1300 Linux programs available for installation on the Pre. &lt;br /&gt;
&lt;br /&gt;
Palm has indicated that they have no intention of using the /opt directory, so we direct our installs to /opt/bin rather than /bin to avoid being overwritten  by future Palm software upgrades. &lt;br /&gt;
&lt;br /&gt;
In addition, the standard package  creates a non-root user, installs ''sudo'', and includes a SSH program (''Dropbear'') and SFTP program. &lt;br /&gt;
&lt;br /&gt;
For your convenience, we've packaged all this up into a simple script.&lt;br /&gt;
&lt;br /&gt;
==Optware Setup==&lt;br /&gt;
&lt;br /&gt;
===Installing Optware in the Emulator?===&lt;br /&gt;
If you're attempting to install these packages to your emulator, you must first add sufficient space by [[Adding_Disks_to_the_Emulator|enabling a virtual disk]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completing the process of obtaining access to your Pre, do the following: &lt;br /&gt;
&lt;br /&gt;
'''Type each line exactly as it appears.  Copying and pasting is probably a good idea.''' &lt;br /&gt;
&lt;br /&gt;
''Note to Windows Putty users:  To paste in putty, simply right-click and the program pastes into the terminal whatever you have copied to the clipboard.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:100%;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
 cd /tmp&lt;br /&gt;
 wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/optware-bootstrap.sh&lt;br /&gt;
 #Alternately you can use this tiny url http://tinyurl.com/n8q2vy&lt;br /&gt;
 sh optware-bootstrap.sh&lt;br /&gt;
 source /etc/profile.d/optware&lt;br /&gt;
&amp;lt;/source&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the on-screen instructions.  &lt;br /&gt;
&lt;br /&gt;
If you want to review the script before you run it, you can look here: &lt;br /&gt;
&lt;br /&gt;
[http://gitorious.org/webos-internals/bootstrap/blobs/master/optware-bootstrap.sh http://gitorious.org/webos-internals/bootstrap/blobs/master/optware-bootstrap.sh]&lt;br /&gt;
&lt;br /&gt;
==Quilt setup==&lt;br /&gt;
&lt;br /&gt;
Optionally, you can then install the ''quilt'' patch manager which allows multiple-file patches.  (Yes, the pun was intentional. Quilt manages multiple patches.)  This installation process has also been packaged into a simple script. It will install quilt, and all of its dependencies, and create a local clone of the WebOS-Internals patch repository. [[Applying_Patches | Applying Patches]] provides a more thorough guide on the use of quilt.&lt;br /&gt;
&lt;br /&gt;
'''Again, type each line exactly as it appears.  Copying and pasting is probably a good idea.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:100%;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
 cd /tmp&lt;br /&gt;
 wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/quilt-bootstrap.sh&lt;br /&gt;
 sh quilt-bootstrap.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to review the script before you run it, you can look here: &lt;br /&gt;
&lt;br /&gt;
[http://gitorious.org/webos-internals/bootstrap/blobs/master/quilt-bootstrap.sh http://gitorious.org/webos-internals/bootstrap/blobs/master/quilt-bootstrap.sh]&lt;br /&gt;
&lt;br /&gt;
==Finishing==&lt;br /&gt;
&lt;br /&gt;
To finish off, turn Developer Mode back to &amp;quot;Off&amp;quot; (which will reboot your Pre).&lt;br /&gt;
&lt;br /&gt;
Once you are finished, you may SSH into your Pre with an SSH client like [http://www.chiark.greenend.org.uk/~sgtatham/putty/ Putty]:&lt;br /&gt;
*Find your IP address on your Pre with [http://checkmyip.com/ CheckMyIP.com]&lt;br /&gt;
**In many cases, you are in a local network, but checkmyip.com gives you the WAN addess.  Install whatismyip from the homebrew catalog to get your pre's ip address within the local network and use that&lt;br /&gt;
*SSH to that IP address on port 222&lt;br /&gt;
**If you're doing this over EVDO, there may be a lot of latency.  Be patient.&lt;br /&gt;
**You can optionally install [[Avahi]] and SSH to &amp;lt;tt&amp;gt;castle.local.&amp;lt;/tt&amp;gt;&lt;br /&gt;
*Log in with the username and password you created during the Optware installation&lt;br /&gt;
**Many operations cannot be carried out with the permissions of that username.  You'll need to [[Basic_Linux_Use#sudo|sudo]] those operations with the new username's password&lt;br /&gt;
&lt;br /&gt;
Only the default shell (/bin/ash) will work for ssh. To change your shell to bash (located in /opt/bin/bash after the install), you will have to create an /etc/shells file, and add the following lines:&lt;br /&gt;
&lt;br /&gt;
 /bin/ash&lt;br /&gt;
 /bin/sh&lt;br /&gt;
 /opt/bin/bash&lt;br /&gt;
&lt;br /&gt;
Then you will be able to edit /etc/passwd and change the shell parameter for the user you created. Note that if you try to change your shell without adding an /etc/shells the SSH server (Dropbear) will look like it is rejecting your password on subsequent connections.&lt;/div&gt;</summary>
		<author><name>Howard</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Next_steps&amp;diff=5181</id>
		<title>Next steps</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Next_steps&amp;diff=5181"/>
		<updated>2009-09-03T10:27:46Z</updated>

		<summary type="html">&lt;p&gt;Howard: /* Finishing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''The old, manual setup of Optware and users can be found [[Setting_up_optware_feed | here]].''&lt;br /&gt;
&lt;br /&gt;
=Automated Setup of Optware, Users and Access=&lt;br /&gt;
The webOS community asks that users who have obtained access to the Linux subsystem install a standard set of software  to ensure everyone has the necessary tools in place to use the resources the community is providing.&lt;br /&gt;
&lt;br /&gt;
In particular, this includes the Optware package manager.  Palm's webOS uses the ''ipkg'' package manager internally.  The community has a version of ''ipkg''  called  ''ipkg-opt'' which accesses the Optware library of over 1300 Linux programs available for installation on the Pre. &lt;br /&gt;
&lt;br /&gt;
Palm has indicated that they have no intention of using the /opt directory, so we direct our installs to /opt/bin rather than /bin to avoid being overwritten  by future Palm software upgrades. &lt;br /&gt;
&lt;br /&gt;
In addition, the standard package  creates a non-root user, installs ''sudo'', and includes a SSH program (''Dropbear'') and SFTP program. &lt;br /&gt;
&lt;br /&gt;
For your convenience, we've packaged all this up into a simple script.&lt;br /&gt;
&lt;br /&gt;
==Optware Setup==&lt;br /&gt;
&lt;br /&gt;
===Installing Optware in the Emulator?===&lt;br /&gt;
If you're attempting to install these packages to your emulator, you must first add sufficient space by [[Adding_Disks_to_the_Emulator|enabling a virtual disk]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completing the process of obtaining access to your Pre, do the following: &lt;br /&gt;
&lt;br /&gt;
'''Type each line exactly as it appears.  Copying and pasting is probably a good idea.''' &lt;br /&gt;
&lt;br /&gt;
''Note to Windows Putty users:  To paste in putty, simply right-click and the program pastes into the terminal whatever you have copied to the clipboard.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:100%;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
 cd /tmp&lt;br /&gt;
 wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/optware-bootstrap.sh&lt;br /&gt;
 #Alternately you can use this tiny url http://tinyurl.com/n8q2vy&lt;br /&gt;
 sh optware-bootstrap.sh&lt;br /&gt;
 source /etc/profile.d/optware&lt;br /&gt;
&amp;lt;/source&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the on-screen instructions.  &lt;br /&gt;
&lt;br /&gt;
If you want to review the script before you run it, you can look here: &lt;br /&gt;
&lt;br /&gt;
[http://gitorious.org/webos-internals/bootstrap/blobs/master/optware-bootstrap.sh http://gitorious.org/webos-internals/bootstrap/blobs/master/optware-bootstrap.sh]&lt;br /&gt;
&lt;br /&gt;
==Quilt setup==&lt;br /&gt;
&lt;br /&gt;
Optionally, you can then install the ''quilt'' patch manager which allows multiple-file patches.  (Yes, the pun was intentional. Quilt manages multiple patches.)  This installation process has also been packaged into a simple script. It will install quilt, and all of its dependencies, and create a local clone of the WebOS-Internals patch repository. [[Applying_Patches | Applying Patches]] provides a more thorough guide on the use of quilt.&lt;br /&gt;
&lt;br /&gt;
'''Again, type each line exactly as it appears.  Copying and pasting is probably a good idea.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:100%;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
 cd /tmp&lt;br /&gt;
 wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/quilt-bootstrap.sh&lt;br /&gt;
 sh quilt-bootstrap.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to review the script before you run it, you can look here: &lt;br /&gt;
&lt;br /&gt;
[http://gitorious.org/webos-internals/bootstrap/blobs/master/quilt-bootstrap.sh http://gitorious.org/webos-internals/bootstrap/blobs/master/quilt-bootstrap.sh]&lt;br /&gt;
&lt;br /&gt;
==Finishing==&lt;br /&gt;
&lt;br /&gt;
To finish off, turn Developer Mode back to &amp;quot;Off&amp;quot; (which will reboot your Pre).&lt;br /&gt;
&lt;br /&gt;
Once you are finished, you may SSH into your Pre with an SSH client like [http://www.chiark.greenend.org.uk/~sgtatham/putty/ Putty]:&lt;br /&gt;
*Find your IP address on your pre with [http://checkmyip.com/ CheckMyIP.com]&lt;br /&gt;
**In many cases, you are in a local network, but checkmyip.com gives you the WAN addessInstall whatismyip from the homebrew catalog to get your pre's ip address within the local network and use that&lt;br /&gt;
*SSH to that IP address on port 222&lt;br /&gt;
**If you're doing this over EVDO, there may be a lot of latency.  Be patient.&lt;br /&gt;
**You can optionally install [[Avahi]] and SSH to &amp;lt;tt&amp;gt;castle.local.&amp;lt;/tt&amp;gt;&lt;br /&gt;
*Log in with the username and password you created during the Optware installation&lt;br /&gt;
**Many operations cannot be carried out with the permissions of that username.  You'll need to [[Basic_Linux_Use#sudo|sudo]] those operations with the new username's password&lt;br /&gt;
&lt;br /&gt;
Only the default shell (/bin/ash) will work for ssh. To change your shell to bash (located in /opt/bin/bash after the install), you will have to create an /etc/shells file, and add the following lines:&lt;br /&gt;
&lt;br /&gt;
 /bin/ash&lt;br /&gt;
 /bin/sh&lt;br /&gt;
 /opt/bin/bash&lt;br /&gt;
&lt;br /&gt;
Then you will be able to edit /etc/passwd and change the shell parameter for the user you created. Note that if you try to change your shell without adding an /etc/shells the SSH server (Dropbear) will look like it is rejecting your password on subsequent connections.&lt;/div&gt;</summary>
		<author><name>Howard</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Next_steps&amp;diff=5180</id>
		<title>Next steps</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Next_steps&amp;diff=5180"/>
		<updated>2009-09-03T10:26:44Z</updated>

		<summary type="html">&lt;p&gt;Howard: /* Finishing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''The old, manual setup of Optware and users can be found [[Setting_up_optware_feed | here]].''&lt;br /&gt;
&lt;br /&gt;
=Automated Setup of Optware, Users and Access=&lt;br /&gt;
The webOS community asks that users who have obtained access to the Linux subsystem install a standard set of software  to ensure everyone has the necessary tools in place to use the resources the community is providing.&lt;br /&gt;
&lt;br /&gt;
In particular, this includes the Optware package manager.  Palm's webOS uses the ''ipkg'' package manager internally.  The community has a version of ''ipkg''  called  ''ipkg-opt'' which accesses the Optware library of over 1300 Linux programs available for installation on the Pre. &lt;br /&gt;
&lt;br /&gt;
Palm has indicated that they have no intention of using the /opt directory, so we direct our installs to /opt/bin rather than /bin to avoid being overwritten  by future Palm software upgrades. &lt;br /&gt;
&lt;br /&gt;
In addition, the standard package  creates a non-root user, installs ''sudo'', and includes a SSH program (''Dropbear'') and SFTP program. &lt;br /&gt;
&lt;br /&gt;
For your convenience, we've packaged all this up into a simple script.&lt;br /&gt;
&lt;br /&gt;
==Optware Setup==&lt;br /&gt;
&lt;br /&gt;
===Installing Optware in the Emulator?===&lt;br /&gt;
If you're attempting to install these packages to your emulator, you must first add sufficient space by [[Adding_Disks_to_the_Emulator|enabling a virtual disk]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completing the process of obtaining access to your Pre, do the following: &lt;br /&gt;
&lt;br /&gt;
'''Type each line exactly as it appears.  Copying and pasting is probably a good idea.''' &lt;br /&gt;
&lt;br /&gt;
''Note to Windows Putty users:  To paste in putty, simply right-click and the program pastes into the terminal whatever you have copied to the clipboard.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:100%;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
 cd /tmp&lt;br /&gt;
 wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/optware-bootstrap.sh&lt;br /&gt;
 #Alternately you can use this tiny url http://tinyurl.com/n8q2vy&lt;br /&gt;
 sh optware-bootstrap.sh&lt;br /&gt;
 source /etc/profile.d/optware&lt;br /&gt;
&amp;lt;/source&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the on-screen instructions.  &lt;br /&gt;
&lt;br /&gt;
If you want to review the script before you run it, you can look here: &lt;br /&gt;
&lt;br /&gt;
[http://gitorious.org/webos-internals/bootstrap/blobs/master/optware-bootstrap.sh http://gitorious.org/webos-internals/bootstrap/blobs/master/optware-bootstrap.sh]&lt;br /&gt;
&lt;br /&gt;
==Quilt setup==&lt;br /&gt;
&lt;br /&gt;
Optionally, you can then install the ''quilt'' patch manager which allows multiple-file patches.  (Yes, the pun was intentional. Quilt manages multiple patches.)  This installation process has also been packaged into a simple script. It will install quilt, and all of its dependencies, and create a local clone of the WebOS-Internals patch repository. [[Applying_Patches | Applying Patches]] provides a more thorough guide on the use of quilt.&lt;br /&gt;
&lt;br /&gt;
'''Again, type each line exactly as it appears.  Copying and pasting is probably a good idea.'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:100%;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=bash&amp;gt;&lt;br /&gt;
 cd /tmp&lt;br /&gt;
 wget http://gitorious.org/webos-internals/bootstrap/blobs/raw/master/quilt-bootstrap.sh&lt;br /&gt;
 sh quilt-bootstrap.sh&lt;br /&gt;
&amp;lt;/source&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to review the script before you run it, you can look here: &lt;br /&gt;
&lt;br /&gt;
[http://gitorious.org/webos-internals/bootstrap/blobs/master/quilt-bootstrap.sh http://gitorious.org/webos-internals/bootstrap/blobs/master/quilt-bootstrap.sh]&lt;br /&gt;
&lt;br /&gt;
==Finishing==&lt;br /&gt;
&lt;br /&gt;
To finish off, turn Developer Mode back to &amp;quot;Off&amp;quot; (which will reboot your Pre).&lt;br /&gt;
&lt;br /&gt;
Once you are finished, you may SSH into your Pre with an SSH client like [http://www.chiark.greenend.org.uk/~sgtatham/putty/ Putty]:&lt;br /&gt;
*Find your IP address on your pre with [http://checkmyip.com/ CheckMyIP.com]&lt;br /&gt;
**In many cases, checkmyip.com will give you the wan addess, but you would be within a local network.  Install whatismyip from the homebrew catalog to get your pre's ip address within the local network&lt;br /&gt;
*SSH to that IP address on port 222&lt;br /&gt;
**If you're doing this over EVDO, there may be a lot of latency.  Be patient.&lt;br /&gt;
**You can optionally install [[Avahi]] and SSH to &amp;lt;tt&amp;gt;castle.local.&amp;lt;/tt&amp;gt;&lt;br /&gt;
*Log in with the username and password you created during the Optware installation&lt;br /&gt;
**Many operations cannot be carried out with the permissions of that username.  You'll need to [[Basic_Linux_Use#sudo|sudo]] those operations with the new username's password&lt;br /&gt;
&lt;br /&gt;
Only the default shell (/bin/ash) will work for ssh. To change your shell to bash (located in /opt/bin/bash after the install), you will have to create an /etc/shells file, and add the following lines:&lt;br /&gt;
&lt;br /&gt;
 /bin/ash&lt;br /&gt;
 /bin/sh&lt;br /&gt;
 /opt/bin/bash&lt;br /&gt;
&lt;br /&gt;
Then you will be able to edit /etc/passwd and change the shell parameter for the user you created. Note that if you try to change your shell without adding an /etc/shells the SSH server (Dropbear) will look like it is rejecting your password on subsequent connections.&lt;/div&gt;</summary>
		<author><name>Howard</name></author>
	</entry>
</feed>