Can LUA write to Flash0 or Flash1

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
NeoSkeith666
Posts: 15
Joined: Thu Oct 06, 2005 7:09 am

Can LUA write to Flash0 or Flash1

Post by NeoSkeith666 »

Anyone know if it can? And if so can you give me a code snippet?
Kameku
Posts: 32
Joined: Thu Mar 23, 2006 12:17 pm
Location: Oregon, USA

Post by Kameku »

If you could, you wouldn't want to, it could really fuck up or brick your PSP.
NeoSkeith666
Posts: 15
Joined: Thu Oct 06, 2005 7:09 am

Post by NeoSkeith666 »

Hey just because i have 14 posts doesn't make me a retard :) I already tested all the .rco files i hex edited in MPH so i know they work
Kameku
Posts: 32
Joined: Thu Mar 23, 2006 12:17 pm
Location: Oregon, USA

Post by Kameku »

It's still really risky, and even then, I'm not sure if Lua can write to either flash.
NeoSkeith666
Posts: 15
Joined: Thu Oct 06, 2005 7:09 am

Post by NeoSkeith666 »

I now know that LUA can write to flash1 but only read flash0 and flash1. And it works fine with MPH so theres almost no risk
glynnder
Posts: 35
Joined: Sun Sep 04, 2005 9:54 pm

Post by glynnder »

i am almost certain it can write at least to flash1, but i cant remember how...
mallchin
Posts: 36
Joined: Thu Feb 16, 2006 2:03 am

Post by mallchin »

I could implement writing to flash0/1 into Lua FileManager, though the risks for self-bricking are pretty high.

I would be interested if anyone has done any extensive testing on this.
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

extensive testing with lUA file manager or writing to flash?

Start with the 32Mb stick and put MPH fw launcher on it, and flash0/
flash1 folders. As you develop your application, have it write directly to
the memory stick copy of firmware that is getting run by the launcher.
When routines are perfected, it's just a matter of having your app write
to the real flash devices instead of the memory stick firmware copy.

Is this what you mean?
mallchin
Posts: 36
Joined: Thu Feb 16, 2006 2:03 am

Post by mallchin »

I meant has anyone tested writing to flash0/1 using Lua?

MPH could be useful for developing actual firmware changes before they're made live, but I'd be more keen to know if it is safe to write to flash0/1 at all.
User avatar
daurnimator
Posts: 38
Joined: Sun Dec 11, 2005 8:36 pm
Location: melbourne, australia

Post by daurnimator »

so, can you write to flash1 or flash0? - how?
romero126
Posts: 200
Joined: Sat Dec 24, 2005 2:42 pm

Post by romero126 »

Writing to flash according to shine is disabled. I believe even looking at it is disabled as well. But dont take my word for it.
mallchin
Posts: 36
Joined: Thu Feb 16, 2006 2:03 am

Post by mallchin »

You can read from flash very easily in Lua, and writing would be trivial.

Shine never said writing to flash was disabled, but he advised writing probably wasn't a good idea.

So, back to where we started. Anyone tried it? ;)
User avatar
TeamOverload
Posts: 41
Joined: Thu Apr 20, 2006 10:31 pm
Location: CT

Post by TeamOverload »

mallchin wrote:You can read from flash very easily in Lua, and writing would be trivial.

Shine never said writing to flash was disabled, but he advised writing probably wasn't a good idea.

So, back to where we started. Anyone tried it? ;)
Actually I thought Shine did say a while back that he did disable it. You should at least be able to right to Flash1 in my opinion. If anything goes wrong there, you just have to press O to repair your settings
Post Reply