Kernal access

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
ben h
Posts: 2
Joined: Wed Oct 11, 2006 3:55 am
Location: Lincolnshire, england
Contact:

Kernal access

Post by ben h »

Hi all

I am currently writing my first kernal mode app in C.

The program I'm making is a simple program that will change a psps background, I want to know how to access the on board nand flash memory, I also need to know how to replace files, and need to no when i access the on board chip, to get to the files i want would i use paths for example flash1/vsh/theme

thanks for all your help
C coder
LUA coder

please visit www.pspfanatic.bravehost.com and join up in the forums
User avatar
harleyg
Posts: 123
Joined: Wed Oct 05, 2005 6:15 am

Post by harleyg »

If you do not know that, you shouldn't be touching flash0/1.
ben h
Posts: 2
Joined: Wed Oct 11, 2006 3:55 am
Location: Lincolnshire, england
Contact:

Post by ben h »

I am only making a basic kernal app, that accesses the flash1 there is next to no risk of bricking when accesing the flash1, anyway i have got to start somewhere, i bet dark_alex didnt know how to access the flash when he was just starting out
C coder
LUA coder

please visit www.pspfanatic.bravehost.com and join up in the forums
mbf
Posts: 55
Joined: Fri Aug 18, 2006 7:43 pm

Post by mbf »

Please... stop saying "kernAl". it's kernEl, with a E..... It's not appropriate at all when taling about kernel mode vs. user mode.

See http://en.wikipedia.org/wiki/Kernal, http://en.wikipedia.org/wiki/Kernel_%28 ... science%29 and http://en.wikipedia.org/wiki/CPU_modes (check out the first paragraph under mode types)

As for kernel mode and flash access, you'll find all the necessary samples in the PSPSDK and in Dark_Alex's samples for HEN C. You can still brick your PSP if you mess up with flash1: if you crash the XMB, you'll need a custom firmware with recovery mode in order to get out of that sticky situation...
Post Reply