Linux下 玩转PSP开发(1)

PSP 编程导学(译)(一) 第一课建立开发环境如何获取toolchain和PSPSDK并通过CYGWIN在windows计算机上运行。完全新手指南.这是本系列导学的第一部分,它将引导一个程序员新手走上开发自己的Sony Playstation Portable (PSP)自制程序之路。如果你正在阅读,祝贺你,你已经越过了一个程序员的最大障碍。一般来说,编程的最难之处就是开始。好了,通过阅读这篇导学,你已经上路了。创建 阅读详情

Lesson 01
Setting up the Development Environment

 

This is the first installment in a series of tutorials focussed on getting a novice programmer well on his way to developing his own homebrew applications for the Sony Playstation Portable (PSP). If you are reading this, congratulations, you have hurdled one of the biggest obstacles for a programmer. Likely the most difficult thing about programming is getting started. Well, by starting to read this tutorial, you are well on your way.

The first step to creating your own program is getting your environment set up. This environment is how you will convert the source code you write into a compiled file formatted for execution on you PSP. We will be setting up two important tools on our system.

If, at any time in this tutorial series, you need help please head over to our forums and post a question. We are always happy to help a fellow programmer.


The first of these tools is called CYGWIN. It is basically a Linux emulator for windows. It will create a simulated Linux environment on your computer so that you can run native Linux applications. This may sound intimidating, but don't worry, it's very simple to use.

The second thing you'll need is the toolchain. This is the key to programming for the PSP. It will set up everything you need, from header files, to libraries, to the compiler itself, to the sample programs. Once you have this installed, you will be nearly ready to create your first program.

Now for the part we've all been waiting for: the installation.

The first step is to install CYGWIN. You can download the install file from the CYGWIN website here. After it has finished downloading, open up the executable. You will see a splash screen; click next. Now you will be asked what you want to do. Select the default option of "Install from Internet," and hit the next button. Now you will be prompted where you want to install CYGWIN. Change the install directory to "C:/cygwin" if it is not set as such already (where C: is your local hard drive). Leave the other options set to their defaults and hit next. Now you will be asked where you want to save the installation files. What you select here doesn't really matter, but I suggest putting them someplace where you will be able to find them and delete them after the installation is complete. Once you have selected a suitable location, click next. The next screen will ask about your network settings, if you don't use a proxy (or don't know what a proxy is), just click next on this screen. If it doesn't work, go back and try letting it use Internet Explorer's settings. Now you should be presented with a list of servers to download the installation files from. Any one of these will do, so select one, and then click on next. Now it will download the package list, this could take a few minutes, depending on your connection speed. Once it is done, scroll down to "devel" and click on where it says "default" so that it becomes "install." Then scroll down to "web," click the "+" next to it, scroll down and set "wget" to "install."

When you are finished, click next. CYGWIN will now download and install the selected packages. This will quite possibly take a while, so go watch a TV show or do some web surfing while you wait. After the install has finished, you are ready to install the toolchain.

Proceed to part two to continue the install.

This is part two of Lesson 01. If you have not completed part one, do so now.

Now, we are going to install the toolchain into our CYGWIN environment. To set up our environment, we will need to run CYGWIN first. So, either from the start menu, or from "C:/cygwin," run a CYGWIN bash shell (cygwin.bat). This will open up a command line. Once you see "yourusername@yourcomputername ~" you may close the window; your environment has successfully set up.

To download the latest toolchain, go here. It should be at the top one. At the time of writing, the latest toolchain file is dated 20051202. Download this file. When it is finished, use Winrar to extract the file contents to "C:/cygwin/home/user," where "user" is your username.


Now it's time to actually install, so open up your CYGWIN bash shell again. Now it's time to introduce you to the Linux command line. You should see a "$" at the beginning of the line. This means that you are running the shell in user mode, as opposed to root (or admin) mode. This is of little importance in CYGWIN, but if you ever use an actual Linux command line, this is an important thing to notice.

We now need to change directories to where we extracted the toolchain. Type "ls" in the bash shell; this stands for list. It will give us an output of all of the files in our current directory (this is similar to "dir" in a Windows command line). Now you should see a folder named "psptoolchain," this is where we want to go. So type "cd psptoolchain" and hit enter. CD stands for change directory, and it will (obviously) switch the current operating directory). Now do a quick "ls" again, and you will see the files in this folder. The one that we are going to use to set everything up is "toolchain.sh."

Due to a recent problem with the toolchain, we need to update everything, so to get the updates and have them modify the toolchain script, you will need to type "svn update" and hit enter.

After that is finished, execute the updated script by typing "./toolchain.sh" and hitting enter. In Linux, "." means the current directory, and ".." means the parent directory, so this command means to execute "toolchain.sh," which is in the current directory. The toolchain.sh script will do the rest, for you. This can take up to several hours, depending on the specifications of your machine. For a frame of reference, my 3.0GHz Pentium 4 took about three hours to run the entire script, so be patient. Some people have reported it taking over 24 hours, but this is a little overkill. Go take a break and come back in a few hours. Or better yet, let it go while you sleep and when you wake up in the morning you should be ready for the next step.

Tomorrow morning, you'll be ready for the third (and final) step. See you in the morning!

This is part three of Lesson 01. If you have not completed parts one and two, do so now.


Did you have a nice sleep? Good. Today, you become a man. Err.. programmer. Sorry, I always get those two mixed up. Rub the sleep out of your eyes and get ready to put the finishing touches on your PSP Development Environment installation.

It is now time for the last step. We have to tell CYGWIN where it can find the PSPSDK (which the toolchain just installed) and the toolchain. To do this, we need to change "C:/cygwin/cygwin.bat" to include the paths. So, close CYGWIN, and navigate Explorer to "C:/cygwin" and right click on cygwin.bat. Select "Edit" and a Notepad window should appear with the following (you'll need to replace all instances of "C:" with "D:" or "E:" or "_:" if you installed CYGWIN on a drive other than your "C:" drive):


@echo off

C:
chdir C:/cygwin/bin

bash --login -i

Change this to:
@echo off

C:
chdir C:/cygwin/bin

set path=%path%;C:/cygwin/usr/local/pspdev/bin
set PSPSDK=C:/cygwin/usr/local/pspdev
bash --login -i
Now you're ready to go! If you have source code that you want to compile, go into that directory with "cd" and type "make" and it should give you an eboot.pbp that you can put on your PSP. If not, check out Lesson 02 to learn how to create your own simple application for the PSP.

Be sure to add the feed to your RSS Aggregator (or Google Homepage, or Firefox Live Bookmark) to stay updated with the latest tutorials.

If you have enjoyed this tutorial and have a spare buck or two, please consider donating to the author. Or, if you have a website, link to this tutorial series (helping spread the word means more homebrew for all!).

If there's a calling, I will consider making more tutorials. Please contact me with your feedback on the tutorials and on what you'd like to see in the next lessons. My AIM is Yeldarb2k3, and my e-mail is Yeldarb [at] Barbdwyer [dot] com. Also, if you are looking for someone to design you a website, please contact me through my site, Barbdwyer Web Design.

 

“PSP tunnel protocol“ 和 ”PSP transport protocol” 简介 PSP安全协议作为Google为大规模数据中心设计的加密解决方案,其核心技术突破在于支持两种不同的封装模式:隧道模式(Tunnel Protocol)与传输模式(Transport Protocol)。这两种模式在数据封装机制、应用场景以及硬件卸载效率等方面存在显著差异,共同构成了PSP协议体系的核心架构。 阅读详情

相关推荐

psptoolchain:自动为PSP自家开发构建开源工具链的脚本

这是做什么的? 该程序将自动构建和安装用于创建Sony Playstation Portable手持式视频游戏系统的自制软件的编译器和其他工具。 如何使用? 通过安装以下软件来设置环境: autoconf, automake, bison, bzip2, cmake, doxygen, diffutils, flex, g++/gcc-c++, gcc, git, gzip, libarchive, libcurl, libelf, libgpgme, libssl, libtool, libusb-dev, m4, make, ncurses, patch, pkg-config, python3, readline, subversion, tar, tcl, texinfo, unzip, wget, xz-utils 设置PSPDEV和PATH环境变量: export

探索PSPToolchain:为PlayStation Portable开发的全方位工具链

探索PSPToolchain:为PlayStation Portable开发的全方位工具链 去发现同类优质开源项目:https://gitcode.com/ 是一个专门为PlayStation Portable(PSP)游戏和应用程序开发设计的开源工具链。如果你是热爱复古游戏主机编程或者想要深入了解掌上游戏机软件开发的技术爱好者,那么这个项目绝对是你的不二之选。 项目简介 PSPToolchain...

gitblog_00047的博客 553

PSP SDK Windows

Working PSP toolchain for windows, fixed sample and some missing libs.

psp开发------环境搭建

1.下载pspsdk https://github.com/pspdev/pspsdk 2、xia

奔跑的蜗牛 4349

PSP 上的Linux 操作系统

国外达人将Linux操作系统移植到PSP掌上机里。 开发你的PSP更多潜能,看看你的PSP还能做什么吧。

手把手实战:快速构建合同智能审查Agent

配置“模型供应商”,选择 “OpenAI-API-compatible”,输入申请到的 “API Key” 和 “URL” 后点击“保存”,如下图示例完成 “AlayaNew/DeepSeek-R1。至此,我们完成了合同智能审核Agent的构建,我们也可以在Dify中把这个智能体发布为API服务,这样企业其它应用如OA就可以通过API集成,在原合同流程中实现智能审核工作。该节点“输入变量”中,配置从“开始”节点中获取上传的文件,输出变量就是合同的内容,配置如下图。接下来我们开始创建智能体。

weixin_46880696的博客 4403

我也玩 PSP 开发! —— PSP开发环境 简介

      放假了,计划每天接老婆回家,老婆心疼我,怕我路上寂寞,把她的PSP给了我玩,没玩两天我就开始难以控制的想折腾了,PSP这么强大的功能(还支持WIFI,给我一个震撼!),就想看看再上面的开发。于是就开始上网找PSP的SDK。总结了一下,如下:     PSP的官方SDK应该是收费,网上找不到,只能找到第三方的SDK(莫非反向工程弄出来的,太神奇了!?),网上谈论的最多有两个,一个是ps2

Alex Xu's blog 3254

主流 AI 插件 之一的 Copilot 介绍

Copilot 是微软推出的一款人工智能助手,旨在通过自然语言交互帮助您提升工作效率和创造力,覆盖多平台,提供智能问答、内容生成、代码辅助等功能。其核心定位为“日常 AI 伴侣”,旨在通过自然语言交互提升工作与生活效率。

u014695938的博客 6886

学习PSP软件自制编程入门教程

学习PSP软件自制编程入门教程   首先说下,PSP下的软件开发是见比较辛苦的事,需要对这个爱好的一种热情和对简单的软件编程思想和技能的掌握,希望大家在看完这贴后有所收获.     先来讲下目前对于PSP自制软件的开发的要求和环境的需求:   开发的要求  首先是对软件工程设计的一个大概的了解:   1> 系统分析和系统设计阶段: 主要是进行可行性分析和系统开发设计,这个阶段是最重要的,它把握

FF的专栏 1万+

芯片详解——AD7606

AD7606详解

weixin_45661757的博客 5021

统信UOS安装CH384串口卡驱动

本文讲解如何在统信UOS系统下安装CH384 PCIE多串口驱动安装过程,CPU为飞腾D2000。其他Linux内核系统安装亦可参照类似方法。

shjhuang的专栏 1884

linux系统装psp,如何在Linux中玩PSP游戏

PPSSPP 也叫 PlayStation 便携式模拟器,是一款免费开源的跨平台 PSP 仿真器,可以在全高清分辨率的 PC 上运行 PSP 游戏。虽然 PSP 游戏都是为小屏幕而设计,PPSSPP 却可以在 Linux 设备上扩展纹理来提供较好的体验。PPSSPP特性以高分辨率玩 PSP 游戏保存、恢复游戏状态纹理缩放支持自定义 on-screen 控件支持外部控制器设备最新版本的 PPSSPP...

weixin_42245967的博客 1183

瑞萨单片机,把CS文件转换为CC

1、打开CC的软件: 点击坐上角的"START" 点击"Create New Project"的"GO": 导入工程: 如下图设置后,点击"Create" 2、进入到CC的开发界面: 可以看到原启动库文件以asm文件的方式直接出现在工程中: 删除新生成的main.c,保留导入的r_main.c(以你自己的代码为准): 注意添加所有的头文件路径: 点击"...

weixin_37611121的博客 1228

linux系统装psp,psp上装Linux

psp上装Linux发布时间:2006-03-21 00:29:34来源:红联作者:linux110.comBochs x86模拟器被Matan移植到PSP上的消息。现在已经证实这个消息是真的,并且将给PSP能完成的任务带来极大的拓展,现在包括FreeDOS、Linux、DLX Linux、NetBSD、OpenBSD、PicoBSD、Pragma Linux、Debian 3.0r0和2.2r5...

weixin_39760619的博客 411

从FER2013到AffectNet:表情识别数据集十年演进史与你的项目选型攻略

本文回顾了从FER2013到AffectNet等主流人脸表情识别数据集的十年演进历程,详细分析了各数据集的特点、适用场景及技术突破。针对不同项目需求,提供了从移动端应用到高精度研究的选型策略,特别强调AffectNet在现代FER项目中的核心价值,并给出混合数据集构建的实战方案。

weixin_26808439的博客 522

西门子S7-200 SMART与施耐德ATV变频器Modbus通讯实战:从接线到稳定运行的完整指南

本文详细介绍了西门子S7-200 SMART PLC与施耐德ATV变频器之间实现稳定Modbus通讯的完整实战指南。内容涵盖从硬件接线、参数配置、PLC程序编写到触摸屏设计的全流程,并分享了提升通讯稳定性的关键技巧和常见故障排查方法,助力工业自动化系统可靠运行。

kkk56的博客 1106

PSP开发一 linux菜鸟fedora下配置psp开发环境

      虽然从我去年拿到psp的时候就很想自己能写一个能在psp上运行的什么,之前也在windows上尝试过几次配置psp开发环境,但是都没有成功。十一放假,看了下运势,说这个星期适合学习第二专长,想想自己很早之前就想好好学习下C,为什么不在linux下配置一个psp的开发环境呢!正好是一方两便。 于是折腾开始了。下载了psptoolchain后果断运行toolchain.sh,随后错误接...

jike062的专栏 319

无人机频谱侦测与智能识别技术实战解析

本文深入解析无人机频谱侦测与智能识别技术实战应用,涵盖无线电侦测、信号处理和定位技术等核心内容。通过频谱分析、特征提取和机器学习算法优化,实现高精度无人机识别与定位,并分享复杂环境下的应对策略和系统集成经验。

weixin_28419039的博客 488

PSP开发二 终于出现了Hello PSP!

      经过一早上的折腾,我的Hello PSP!终于出现了!       第一次在linux下写psp代码,昨天虽然编译得差不多了,但是要写还是有点无从下手的感觉。经过一晚的沉淀,今天早上开工写,当然首先还是去找下教程吧,功夫不负有心人,果然找到一篇很适合像我这样菜的人。 http://blog.youkuaiyun.com/lee576/article/details/2033754 上面这位大...

jike062的专栏 337

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

psp开发教程-----第一课 安装开发环境

 Lesson 01  Setting up the Development Environment第一课  安装开发环境How to get the tool chain and PSP SDK up and running with CYGWIN on a windows machine. The complete newbies guide.如何得到工具链和PSP SDK开运发包并且在wi

iversonyang的专栏 1121

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

Linux企业运维——Kubernetes(十四)PSP安全策略

Linux企业运维——Kubernetes(十四)PSP安全策略 文章目录Linux企业运维——Kubernetes(十四)PSP安全策略1、PSP安全策略简介2、PSP安全策略配置 1、PSP安全策略简介 PodSecurityPolicy(简称PSP)是Kubernetes中Pod部署时重要的安全校验手段,能够有效地约束应用运行时行为安全。 默认情况下,Kubernetes 允许创建一个有特权容器的 Pod,这些容器很可能会危机系统安全,而 Pod 安全策略(PSP)则通过确保请求者有权限按配置来创建

weixin_44310047的博客 1020

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

PSP开发--[1]安装cygwin

http://www.psp-programming.com/forums/index.php?action=globalAnnouncements;id=1  提示: -如果你是linux系统,直接看第5步。可能只需要安装一些库就行了,如果是基于debian的系统:   Code highlighting produced by Actipro CodeHighlighter (fr

gnimgnot 1130

psp上装Linux(转)

psp上装Linux(转)[@more@]Bochs x86模拟器被Matan移植到PSP上的消息。现在已经证实这个消息是真的,并且将给PSP能完成的任务带来极大的拓展,现在包括FreeDOS、Linux、DLX Linux、N...

633

PSP看电视软件测试,实战测试:PSP上运行Windows 95

作者: cwm1314来源:CGWindows95实际的运行情况还是不错的,只是你不能要求它能够运行的速度非常的快,像电脑一样。启动大概花了10分钟的时间,但是启动之后运行的效果还是不过的,可用性很高。该网友做了诸如:打开“我的电脑”以及浏览虚拟硬盘等工作,也运行了如“扫雷”等其他的应用程序。Linux方面,测试了DLXLinux,先通过Bochs预先打包安装,运行情况也是十分的良好。可是却不能...

weixin_33514221的博客 686
上一篇: Linux 认清makefile
下一篇: Maven 常见问题解答
hunter4ever
博客等级 码龄17年 6粉丝 7原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值