<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>My development blog &#187; PSP</title>
	<atom:link href="http://www.guztech.nl/wordpress/index.php/tag/psp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guztech.nl/wordpress</link>
	<description>Drifting in virtual reality...</description>
	<lastBuildDate>Sun, 01 Jan 2012 00:46:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to use usbhostfs_pc as non-root</title>
		<link>http://www.guztech.nl/wordpress/index.php/2009/12/how-to-use-usbhostfs_pc-as-non-root/</link>
		<comments>http://www.guztech.nl/wordpress/index.php/2009/12/how-to-use-usbhostfs_pc-as-non-root/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 19:48:17 +0000</pubDate>
		<dc:creator>oguz286</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PSP]]></category>

		<guid isPermaLink="false">http://www.guztech.nl/wordpress/?p=41</guid>
		<description><![CDATA[I had some problems on Ubuntu with running usbhostfs_pc as non-root. I searched for an answer and finally came across a solution. 1. First go to System-&#62;Administration-&#62;Users and Groups, type in your root password and you should get to a screen with all of your users. Now click on the &#8216;Manage Groups&#8216; button and then [...]]]></description>
			<content:encoded><![CDATA[<p>I had some problems on Ubuntu with running <span style="color: #0099ff;">usbhostfs_pc</span> as non-root. I searched for an answer and finally came across a solution.</p>
<p>1.  First go to <span style="color: #0099ff;">System</span>-&gt;<span style="color: #0099ff;">Administration</span>-&gt;<span style="color: #0099ff;">Users and Groups</span>, type in your root password and you should get to a screen with all of your users. Now click on the &#8216;<span style="color: #0099ff;">Manage Groups</span>&#8216; button and then on the &#8216;<span style="color: #0099ff;">Add Group</span>&#8216; button. Type &#8216;<span style="color: #0099ff;">psplink</span>&#8216; in the<span style="color: #0099ff;"> Group name</span> section and select your user in the <span style="color: #0099ff;">Group Members</span> section. Click on <span style="color: #0099ff;">O</span><span style="color: #0099ff;">k</span> and then twice on<span style="color: #0099ff;"> Close</span>. Now you have to logoff and log back in for your user to be added to the new group. You can also do this with terminalcommands but quite frankly I forgot how the commands work (since I don&#8217;t add groups and users on a regular basis) and I was too lazy to find out how they work again, so that&#8217;s why I chose the GUI-approach.</p>
<p><span id="more-41"></span>2. Start psplink on your PSP and plug the usb cable in. Type this command in the terminal :</p>
<blockquote><p><span style="color: #0099ff;">lsusb</span></p></blockquote>
<p>Now you should see something like this:</p>
<blockquote><p><span style="color: #0099ff;">Bus 005 Device 005: ID 054c:01c9 Sony Corp.<br />
Bus 005 Device 003: ID 0c45:624f Microdia<br />
Bus 005 Device 001: ID 0000:0000<br />
Bus 001 Device 001: ID 0000:0000<br />
Bus 004 Device 001: ID 0000:0000<br />
Bus 002 Device 004: ID 046d:c019 Logitech, Inc.<br />
Bus 002 Device 001: ID 0000:0000<br />
Bus 003 Device 004: ID 08ff:2580 AuthenTec, Inc.<br />
Bus 003 Device 001: ID 0000:0000</span></p></blockquote>
<p>3. Find the line with <span style="color: #0099ff;">Sony Corp.</span> in it and write down the two hexidecimal numbers in front of it. In my case it&#8217;s <span style="color: #0099ff;">054c</span> and  <span style="color: #0099ff;">01c9</span>. The first number is the<span style="color: #0099ff;"> vendor id</span> and is the same for all PSP&#8217;s and the second number is the <span style="color: #0099ff;">product id</span>, which is hardcoded in usbhostfs_pc so it should be the same for everybody. There is a way to change the <span style="color: #0099ff;">product id</span> by either changing it in the sourcecode and recompiling it or by supplying the wanted product id in the psplink.ini file on your PSP. Here&#8217;s how mine looks like:</p>
<blockquote><p><span style="color: #0099ff;"># Example psplink configuration file.</span></p>
<p># pid=num Set the product ID for hostfs allows you to use multiple PSPs at one time<br />
# Must specify the PID using the -p option of usbhostfs_pc<br />
# pid=0x1C9</p>
<p># pluser=[0 1] Enable the PSPLink user module<br />
pluser=0</p>
<p># resetonexit=[0 1] Specify wheher to reset psplink when sceKernelExitGame<br />
# is called<br />
resetonexit=1</p></blockquote>
<p>So if you wanted to change the <span style="color: #0099ff;">product id</span> (because you have more than 1 PSP for example) you would remove the &#8216;<span style="color: #0099ff;">#</span>&#8216; in front of the <span style="color: #0099ff;">pid=0x1C9</span> line and change the hexidecimal number.</p>
<p>4. Now you need to create a rules file in <span style="color: #0099ff;">/etc/udev/rules.d/</span> so type:</p>
<blockquote><p><span style="color: #0099ff;">cd /etc/udev/rules.d<br />
gksudo gedit 96-psplink.rules</span></p></blockquote>
<p>Now edit this file to look like this:</p>
<blockquote><p><span style="color: #0099ff;">SUBSYSTEM!=&#8221;usb_device&#8221;, GOTO=&#8221;psp_rules_end&#8221;<br />
SYSFS{idVendor}==&#8221;054c&#8221;, SYSFS{idProduct}==&#8221;01c9&#8243;, GROUP=&#8221;psplink&#8221;, MODE=&#8221;0664&#8243;<br />
LABEL=&#8221;psp_rules_end&#8221;</span></p></blockquote>
<p>Pay attention here,  you see the <span style="color: #0099ff;">idVendor </span>and  <span style="color: #0099ff;">idProduct </span> tags in the second line?  Replace the hexidecimal codes  you  got  form the <span style="color: #0099ff;">lsusb</span> command with your own. If you have more than 1 PSP you could create more files like &#8220;96-psplink<span style="color: #0099ff;">2</span>.rules&#8221; for your second PSP. Save the file(s) and disconnect your psp.</p>
<p>5. Now open up a terminal, connect your psp and type:<span style="color: #0099ff;"> </span></p>
<blockquote><p>usbhostfs_pc</p></blockquote>
<p>Or if you have changed your product id:</p>
<blockquote><p><span style="color: #0099ff;">usbhostfs_pc -p &lt;value&gt;</span></p></blockquote>
<p>And it should say &#8220;Connected to device&#8221;. If not, then type this:</p>
<blockquote><p><span style="color: #0099ff;">sudo udevcontrol reload_rules</span></p></blockquote>
<p>If it still doesn&#8217;t work then read the instructions carefully and check if you have made an error and if it still doesn&#8217;t work you can send me and email.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guztech.nl/wordpress/index.php/2009/12/how-to-use-usbhostfs_pc-as-non-root/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to setup the psp toolchain on ubuntu</title>
		<link>http://www.guztech.nl/wordpress/index.php/2009/12/how-to-setup-the-psp-toolchain-on-ubuntu/</link>
		<comments>http://www.guztech.nl/wordpress/index.php/2009/12/how-to-setup-the-psp-toolchain-on-ubuntu/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 19:45:27 +0000</pubDate>
		<dc:creator>oguz286</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PSP]]></category>

		<guid isPermaLink="false">http://www.guztech.nl/wordpress/?p=23</guid>
		<description><![CDATA[[UPDATE] If you want to setup the psp toolchain I recommand using MINPSPW. It supports Windows, GNU/Linux and OpenSolaris and is much easier to setup. You can of course still use this tutorial if you like. I know that there are some guides out there how to setup the psptoolchain but when I followed them [...]]]></description>
			<content:encoded><![CDATA[<p>[UPDATE] If you want to setup the psp toolchain I recommand using <span style="color: #0099ff;"><a href="http://minpspw.sourceforge.net/" target="_self">MINPSPW</a></span>. It supports Windows, GNU/Linux and OpenSolaris and is much easier to setup. You can of course still use this tutorial if you like.</p>
<p>I know that there are some guides out there how to setup the psptoolchain but when I followed them I still had problems compiling SDL programs. So here is my guide to installing the psptoolchain and psplibraries on Linux. I figured these out by myself and with the help of <a href="http://forums.ps2dev.org/viewtopic.php?p=61255&amp;sid=e073ad5a038b10b32df7e0cee5644066#61255" target="_blank"><span style="color: #0099ff;">J.F.&#8217; post</span></a> on the <a href="http://forums.ps2dev.org/" target="_blank"><span style="color: #0099ff;">ps2dev forums</span></a>, so my thanks to him. I assume that you have basic shell knowledge like how to make a folder and how to change folders and stuff like that.</p>
<p><span id="more-23"></span>1. The first step is to have a couple of programs and libraries setup before you can compile the toolchain. These programs are stated in the readme file included in the psptoolchain package, but it wasn&#8217;t complete at the time i downloaded it, so i&#8217;ll write them here just in case. Get these programs and/or libraries (ubuntu users can use <span style="color: #0099ff;">Synaptic Package Manager</span> to install these):</p>
<ul>
<li><span style="color: #0099ff;">autoconf</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">automake v1.9</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">bison</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">flex</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">gcc</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">imagemagick</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">libreadline-dev</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">libusb-dev</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">libtool</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">make</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">ncurses (I have ncurses-base, ncurses-bin, ncurses-hex and ncurses-term)</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">patch</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">readline (readline-common in Synaptic)</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">subversion</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">texinfo</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">wget</span><span style="color: #0099ff;"><br />
</span></li>
<li><span style="color: #0099ff;">(ubuntu-users: build-essential)</span></li>
</ul>
<p>2. Now you have to get the latest psptoolchain (pspsdk is included). Open up a terminal and make a folder somewhere you&#8217;d like to have your downloaded files to reside. I use ~/Downloads where the <span style="color: #0099ff;">~/</span> means that it&#8217;s in my Home folder, so as an absolute path, that would be:<span style="color: #0099ff;"> /home/username/Downloads</span> (username is obviously your own username).</p>
<blockquote><p><span style="color: #0099ff;"><em>mkdir Downloads<br />
cd Downloads<br />
svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain psptoolchain</em></span></p></blockquote>
<p>You will see a message like &#8220;Checked out revision xxxx&#8221; where xxxx is the newest revision, which means you just have succesfully downloaded the last version of the psptoolchain. Read the Readme file located in your Downloads/psptoolchain folder.</p>
<p>3. Time to compile the toolchain, but first you have to set some paths. Type this in the (still open) terminal.</p>
<blockquote><p><span style="color: #0099ff;"><em>cd psptoolchain<br />
export PSPDEV=/usr/local/pspdev<br />
export PATH=$PATH:$PSPDEV/bin</em></span></p></blockquote>
<p>You also need to make the /usr/local/pspdev folder and give it permission to be writable by your user.</p>
<blockquote><p><span style="color: #0099ff;"><em>sudo mkdir -p /usr/local/pspdev<br />
sudo chmod a+rxw /usr/local/pspdev<br />
sudo chown username:group /usr/local/pspdev</em></span></p></blockquote>
<p>Pay attention to the last line. You should replace username with your username and group also with your username (that&#8217;s how i do it).<br />
Now to compile this baby:</p>
<blockquote><p><em><span style="color: #0099ff;">./toolchain.sh</span></em></p></blockquote>
<p>Ok time to sit back and relax, because now it should start compiling without errors and it can take a long time. Most people talk about an average about 3 hours, but on my laptop (Core Duo 2Ghz) it takes about 20-30 minutes. Don&#8217;t close the terminal when it&#8217;s done, we still need it. If by some accident you closed the terminal don&#8217;t worry. Just type those export-lines above here in the terminal and you are good to go.</p>
<p>4. When you have no errors (you should have no errors), it&#8217;s time to download and install the psplibraries package. It contains a collections of libraries such as SDL, SDL_mixer, jpeg, png, zlib etc. I recommend that you download this as well. On the terminal type the following commands:</p>
<blockquote><p><span style="color: #0099ff;"><em>cd ..<br />
svn co svn://svn.ps2dev.org/psp/trunk/psplibraries psplibraries</em></span></p></blockquote>
<p>Now you will have downloaded the lastest psplibraries package. Again read the Readme file inside the psplibraries folder.</p>
<p>5. Time to compile the libraries. Type these commands in the terminal:</p>
<blockquote><p><span style="color: #0099ff;"><em>cd psplibraries<br />
./libraries.sh</em></span></p></blockquote>
<p>And it should compile, again with no errors. On my laptop it takes about 20 minutes to compile so go get something to drink and relax, we are almost done.</p>
<p>6. Last thing you need to do is add a couple of lines to your .bashrc file in your home folder.</p>
<blockquote><p><span style="color: #0099ff;">gedit ~/.bashrc</span></p></blockquote>
<p>Add the following lines at the end of the file (and save of course):</p>
<blockquote><p><span style="color: #0099ff;">export PSPDEV=&#8221;/usr/local/pspdev&#8221;<br />
export PSPSDK=&#8221;$PSPDEV/psp/sdk&#8221;<br />
export PATH=&#8221;$PATH:$PSPDEV/bin:$PSPSDK/bin&#8221;<br />
</span></p></blockquote>
<p>And now you should have everything setup to start developing applications for the psp!</p>
<p>7. (optional) If you also want to use the pspusblink package follow these steps. On the terminal:</p>
<blockquote><p><span style="color: #0099ff;"><em>cd ..<br />
cd psptoolchain/build/psplinkusb<br />
make release</em></span></p></blockquote>
<p>Now go to the release_oe folder inside the pspusblink folder and copy the psplink folder to your psp. On my psp the directory is the PSP/GAME folder, but yours may differ. How to use psplink can be found in the manual found in the pspusblink folder.</p>
<p>Congratulations, everything should be setup and working correctly now! If you have any problems, found a mistake in my guide, just mail me by clicking on the about me link and filling in the form.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guztech.nl/wordpress/index.php/2009/12/how-to-setup-the-psp-toolchain-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

