New IT forum Follow us on Twitter
21 May 2012, 05:28:27 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: TonidoPlug2 - Now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Problem to repair Uboot (solved)  (Read 1183 times)
ungars
Newbie
*
Posts: 14


« on: 29 June 2011, 08:03:08 pm »

  Hi,
  I made a big mistake, and I erase Uboot. So I have only the green light, not the blue.
  So I unzip "sheevaplug installer" on my desktop, and install php5-cli and opencd. I use Ubuntu Lucid.
  When I launch :
 
Code:
sudo php runme.php nand
 I have in response :
Code:
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Notice:  Undefined index: OS in /home/casper/Téléchargements/sheevaplug-installer-v1.0/runme.php on line 7
PHP Notice:  Undefined index: USER in /home/casper/Téléchargements/sheevaplug-installer-v1.0/runme.php on line 43
You must run this as root

  I tried again connected in root, with an other Os more recent (bt5, and Ubuntu 11.04 but in this version, openocd seems to be not available)I had the same message.

  So I searched in this forum, I found a beginning of answer here
  I don' t understand that :
Quote
Edit the PHP code to remove the check for root
 What is this php code ? Where can I find it ?

  Thank you very much for your help. Good evening !
  
« Last Edit: 01 July 2011, 10:36:48 pm by ungars » Logged

NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #1 on: 29 June 2011, 08:12:53 pm »

You should comment out the OS and user tests in runme.php.

For the OS test, you could substitute:

Code:
// 2010-05-09 $_ENV gives error under Ubuntu 10.04
//if (strstr($_ENV["OS"], "Windows"))
if ( PHP_OS == "Windows")

although if you know you will only be running on a linux host, the OS check isn't necessary. I don't know of a function that can replace the user test, so you'll just have to remove it and make sure you remember to run as root.

Logged
ungars
Newbie
*
Posts: 14


« Reply #2 on: 30 June 2011, 08:57:21 pm »

  Hello Marcus !
  It' s a little bit better, I corrected the line and now I didn' t have this error line any more :
Code:
PHP Notice:  Undefined index: OS in /home/casper/Téléchargements/sheevaplug-installer-v1.0/runme.php on line 7
  But I have again this line :
Code:
PHP Notice:  Undefined index: USER in /home/casper/Téléchargements/sheevaplug-installer-v1.0/runme.php on line 43
  Yet, I am connected as root with sudo -i :
Code:
root@casper-laptop:/home/casper/Téléchargements/sheevaplug-installer-v1.0# php runme.php nand
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Notice:  Undefined index: USER in /home/casper/Téléchargements/sheevaplug-installer-v1.0/runme.php on line 43
You must run this as root
  Do you know what can I do ?
  Thank you, and good evening.


Logged

ungars
Newbie
*
Posts: 14


« Reply #3 on: 01 July 2011, 10:36:23 pm »

  Hello, my problem is solved. This line must be changed on runme.php
    
Code:
if ($_ENV["USER"] != 'root')
 By :
  
Code:
if( getenv("USER") != 'root')

  I had this error :
Code:
wrote file uboot.bin to NAND flash 0 up to offset 0x00074000 in 67.342010s
Segmentation fault
 **** openocd FAILED
 **** Is the mini USB cable connected?
 **** Try powering down, then replugging the Sheevaplug

  But my plug seems to work

  Have a nice week end, thank you for your help.
« Last Edit: 01 July 2011, 10:38:15 pm by ungars » Logged

NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #4 on: 01 July 2011, 11:10:37 pm »

Code:
wrote file uboot.bin to NAND flash 0 up to offset 0x00074000 in 67.342010s
Segmentation fault
 **** openocd FAILED
 **** Is the mini USB cable connected?
 **** Try powering down, then replugging the Sheevaplug

  But my plug seems to work

  Have a nice week end, thank you for your help.

If openocd failed, then there's no reason why it should have started working again. What precedes the failure message is the rewrite of U-Boot; the time (67s) suggests that this activity was at least partially successful, and maybe, in spite of the error messages, you fixed U-Boot.
Logged
ungars
Newbie
*
Posts: 14


« Reply #5 on: 03 July 2011, 09:08:20 am »

  Yes, all is working well now, thank you for all !
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!