Jump to content


Photo

Writing to home dir (NAND) from PND

home homedir nand utmp

  • Please log in to reply
16 replies to this topic

#1 OFFLINE   Gruso

Gruso

    Advanced Member

  • Members
  • PipPipPip
  • 1729 posts
  • Local time: 05:10 PM
  • LocationSyd, Aus

Posted 12 February 2012 - 10:03 AM

From the wiki:

Note: At the latest as of Pandora OS release Zaxxon with Hotfix 6, changing the HOME variable to point to the PND working directory is not necessary anymore as the OS takes care of changing the HOME variable of a PND session's variable environment. (Info from Skeezix)


This is good. But what if you need to write there? Is there an override you can add to the PXML, or a particular path you need to use?
FAQs: Pandora | PND files | USB

#2 OFFLINE   Clop

Clop

    Advanced Member

  • Members
  • PipPipPip
  • 176 posts
  • Local time: 07:10 AM
  • LocationBesançon (France)

Posted 12 February 2012 - 10:32 AM

Maybe '/home/${USER}' ?
---------------
Clop' - My ports: http://stuff.doumenc...orts/index.html
UrbanTerror fan here, if you're playing it too, don't hesitate to contact [FiD]Clop :D

#3 ONLINE   milkshake

milkshake

    Super Advanced Member

  • Members
  • PipPipPip
  • 2498 posts
  • Local time: 07:10 AM
  • LocationRotherham, UK

Posted 12 February 2012 - 10:36 AM

Can't you just re-assign the $HOME var ?

THEUSER = `whoami`;
HOME = ~/"$THEUSER";

Or something like this?
minipandalogo.png Pandora Repo - software for your pandora :)

btn_donate_SM.gif If you like my site/contributions, consider donating.
Prometheus.jpg

#4 OFFLINE   Ivanovic

Ivanovic

    Advanced Member

  • Members
  • PipPipPip
  • 203 posts
  • Local time: 07:10 AM

Posted 12 February 2012 - 10:56 AM

IIRC it was changed to provide a different environment variable which points to the "real" $HOME. If you have a look at the script "pnd_run.sh" you will see that you can find the real home dir as "$REAL_HOME".

#5 OFFLINE   slaeshjag

slaeshjag

  • Members
  • PipPipPip
  • 1255 posts
  • Local time: 08:10 AM
  • Location~Stockholm, Sweden

Donator

Posted 12 February 2012 - 10:59 AM

Maybe '/home/${USER}' ?


That won't work for some of us, I've relocated my home to /media/PandSYS ;)
From eight were not to mess with empty and accounted for Between distress!
/* Fanatic C programmer */
On hold: YAPFP (yet another platformer for pandora), RPGDarnit
Ports on hold: Audacity, CUPS in a PND, btmnt
Currently working on: Muon, libdarnit

#6 OFFLINE   sebt3

sebt3

    PowerFreak Troll, leave him alone

  • Members
  • PipPipPip
  • 1455 posts
  • Local time: 01:10 AM

Posted 12 February 2012 - 12:50 PM

Use the REAL_HOME env var ;) which have been set for these cases ;)

- [ PNDS ] - [ Yactfeau ] -

Spoiler



#7 OFFLINE   Gruso

Gruso

    Advanced Member

  • Members
  • PipPipPip
  • 1729 posts
  • Local time: 05:10 PM
  • LocationSyd, Aus

Posted 13 February 2012 - 03:21 AM

Thank you gents :) $REAL_HOME is the droid I was looking for.
FAQs: Pandora | PND files | USB

#8 OFFLINE   sebt3

sebt3

    PowerFreak Troll, leave him alone

  • Members
  • PipPipPip
  • 1455 posts
  • Local time: 01:10 AM

Posted 13 February 2012 - 03:54 AM

Thank you gents :) $REAL_HOME is the droid I was looking for.

a simple read of the pnd_run.sh script would have reply to you ;)

- [ PNDS ] - [ Yactfeau ] -

Spoiler



#9 OFFLINE   Gruso

Gruso

    Advanced Member

  • Members
  • PipPipPip
  • 1729 posts
  • Local time: 05:10 PM
  • LocationSyd, Aus

Posted 13 February 2012 - 04:04 AM

I'm still somewhere below novice when it comes to scripting. Even if I had looked there, I don't think it would have spoken to me. ;) I do learn a little more each time though.
FAQs: Pandora | PND files | USB

#10 OFFLINE   Link

Link

    ithic.com

  • Members
  • PipPipPip
  • 2844 posts
  • Local time: 01:10 AM
  • LocationChampy Land

Donator

Posted 02 March 2012 - 07:42 PM

So I think I killed my NAND as I was normally booting from there. I've setup an SD card to boot from, but was wondering how to go about rewriting the NAND while booting from SD card. Can anyone walk me through this, as I've never had to do this before, but am also considering changing my configuration of things to boot from SD card and make the NAND a rescue/backup type of thing. So instructions on how to go about that would be greatly appreciated, I've done some searching but nothing specific I've found.

During the SD Installer process, I put the rootfs and SD installer.pnd on one SD card using a backup Pandora. The other I used was blank. I'd like to boot from SD with a 64GB card, and perhaps have all my OS/Gaming stuff on that card, my 2nd card is just music/video/photos, and I'd like to keep it that way. I don't want to be caught with my pants down in the future, so am wondering about the safest way to set this up.

Hope I'm not hijacking here. I'm total NOOB with this kinda stuff as I normally booted from NAND, had one SD for PNDs and Gamng, the other SD for music/video/photo. Open to suggestions.

Peace & Pandora,

Link


http://www.ithic.com
Open Pandora Shop for North America @ithic


#11 OFFLINE   notaz

notaz

    Advanced Member

  • Official OpenPandora Team
  • PipPipPip
  • 1675 posts
  • Local time: 09:10 AM

Posted 02 March 2012 - 08:46 PM

How about just reflashing? It will reformant NAND for you.

#12 OFFLINE   Link

Link

    ithic.com

  • Members
  • PipPipPip
  • 2844 posts
  • Local time: 01:10 AM
  • LocationChampy Land

Donator

Posted 02 March 2012 - 10:03 PM

^
I tried reflashing, but the option to boot from SD card would never show up holding R & Sliding power switch.

Peace & Pandora,

Link


http://www.ithic.com
Open Pandora Shop for North America @ithic


#13 OFFLINE   Gruso

Gruso

    Advanced Member

  • Members
  • PipPipPip
  • 1729 posts
  • Local time: 05:10 PM
  • LocationSyd, Aus

Posted 02 March 2012 - 10:22 PM

Just hold R, not power switch. If it's still not showing, experiment with another SD, make sure it's freshly formatted, and check the md5 of your firmware download to confirm it's good.

(Just to confirm, this is the firmware you need to download and extract to SD for the flash).

Spoiler

Edited by Gruso, 02 March 2012 - 10:25 PM.

FAQs: Pandora | PND files | USB

#14 OFFLINE   Link

Link

    ithic.com

  • Members
  • PipPipPip
  • 2844 posts
  • Local time: 01:10 AM
  • LocationChampy Land

Donator

Posted 02 March 2012 - 10:38 PM

Thank you, gonna try this after updating PanMAME.

Peace & Pandora,

Link


http://www.ithic.com
Open Pandora Shop for North America @ithic


#15 OFFLINE   Link

Link

    ithic.com

  • Members
  • PipPipPip
  • 2844 posts
  • Local time: 01:10 AM
  • LocationChampy Land

Donator

Posted 02 March 2012 - 10:53 PM

(Just to confirm, this is the firmware you need to download and extract to SD for the flash).

No I was using Zaxxon 1.5... Thanks, went back to Hotfix 6.

Peace & Pandora,

Link


http://www.ithic.com
Open Pandora Shop for North America @ithic


#16 OFFLINE   Gruso

Gruso

    Advanced Member

  • Members
  • PipPipPip
  • 1729 posts
  • Local time: 05:10 PM
  • LocationSyd, Aus

Posted 02 March 2012 - 11:02 PM

1.5 should be fine, just wanted to make sure you were using the right kind of package (as you mentioned the SD installer, and the rootfs you download for that will not, AFAIK, work for doing a NAND flash.)

None the less it won't hurt to use the HF6 image I linked as a control test.
FAQs: Pandora | PND files | USB

#17 OFFLINE   Link

Link

    ithic.com

  • Members
  • PipPipPip
  • 2844 posts
  • Local time: 01:10 AM
  • LocationChampy Land

Donator

Posted 03 March 2012 - 03:24 AM

Thanks man! All good now!

Peace & Pandora,

Link


http://www.ithic.com
Open Pandora Shop for North America @ithic




Also tagged with one or more of these keywords: home, homedir, nand, utmp

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users