• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Hardware and U-Boot firmware / U-Boot stuff / Re: GuruPlug can't boot after successful install of debian on external usb drive on: January 11, 2012, 10:38:36 AM
This gets stranger for me now.  My Gurplug Server has two USB ports.  If I plug in a usb memory stick and the external drive then 'usb storage' lists both.  If I switch the usb ports they are plugged into then it only lists the memory stick.  Does anyone know what I have to do to get it work with just my external hard drive?
2  Hardware and U-Boot firmware / U-Boot stuff / Re: GuruPlug can't boot after successful install of debian on external usb drive on: January 11, 2012, 10:28:20 AM
Thank you for the reply.  I tried with a FAT partition.  For some reason my GuruPlug cannot find the external drive.  I tried with two different disks.  What is wrong?


Marvell>> usb reset                                                             
(Re)start USB...                                                               
USB:   Register 10011 NbrPorts 1                                               
USB EHCI 1.00                                                                   
scanning bus for devices... 2 USB Device(s) found                               
       scanning bus for storage devices... 0 Storage Device(s) found           
Marvell>> usb storage                                                           
No storage devices, perhaps not 'usb start'ed..?                               
Marvell>>
3  Hardware and U-Boot firmware / U-Boot stuff / GuruPlug can't boot after successful install of debian on external usb drive on: January 10, 2012, 08:33:03 PM
I think I am very close to getting my GuruPlug working again but
it fails to boot.  Please help.

I followed instructions at  http://www.cyrius.com/debian/kirkwood/sheevaplug/
carefully and everything went well
all the way through install debian on a 320G external usb disk.
I mounted that disk and on another system and verified that the
first linux partition has uImage and uInitrd and the second
partition has Debian.  However, the GuruPlug is unable to mount
the disk and load uImage and uInitrd.

A log of the session follows.  Please advise.

  U-Boot 2011.03 (Apr 26 2011 - 21:35:00)
  Marvell-GuruPlug

  SoC:   Kirkwood 88F6281_A1
  DRAM:  512 MiB
  NAND:  512 MiB
  In:    serial
  Out:   serial
  Err:   serial
  Net:   egiga0, egiga1
  88E1121 Initialized on egiga0
  88E1121 Initialized on egiga1
  Hit any key to stop autoboot:  3  2  1  0
  (Re)start USB...
  USB:   Register 10011 NbrPorts 1
  USB EHCI 1.00
  scanning bus for devices... 2 USB Device(s) found
         scanning bus for storage devices... 0 Storage Device(s) found
  ** Block device usb 0 not supported
  ** Block device usb 0 not supported
  Wrong Image Format for bootm command
  ERROR: can't get kernel image!
  Marvell>> setenv      printenv
  baudrate=115200
  bootargs=console=ttyS0,115200
  bootargs_console=console=ttyS0,115200
  bootcmd=setenv bootargs $(bootargs_console); run bootcmd_usb; bootm 0x00800000 0x01100000
  bootcmd_usb=usb start; ext2load usb 0:1 0x0080000 /uImage; ext2load usb 0:1 0x01100000 /uInitrd
  bootdelay=3
  eth1addr=02:50:43:d9:87:02
  ethact=egiga0
  ethaddr=00:50:43:01:9B:FE
  stderr=serial
  stdin=serial
  stdout=serial
  x_bootargs=console=ttyS0,115200
  x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs
  x_bootcmd_ethernet=ping 192.168.2.1
  x_bootcmd_kernel=nand read.e 0x6400000 0x100000 0x400000
  x_bootcmd_usb=usb start

  Environment size: 634/131068 bytes
  Marvell>> usb start
  (Re)start USB...
  USB:   Register 10011 NbrPorts 1
  USB EHCI 1.00
  scanning bus for devices... 2 USB Device(s) found
         scanning bus for storage devices... 0 Storage Device(s) found
  Marvell>> usb storage
  No storage devices, perhaps not 'usb start'ed..?
  Marvell>> usb treee 

  Device Tree:
    1  Hub (480 Mb/s, 0mA)
    |  u-boot EHCI Host Controller
    |
    |+-2  Hub (480 Mb/s, 100mA)
          USB2.0 Hub
       
  Marvell>> usb info
  1: Hub,  USB Revision 2.0
   - u-boot EHCI Host Controller
   - Class: Hub
   - PacketSize: 64  Configurations: 1
   - Vendor: 0x0000  Product 0x0000 Version 1.0
     Configuration: 1
     - Interfaces: 1 Self Powered 0mA
       Interface: 0
       - Alternate Setting 0, Endpoints: 1
       - Class Hub
       - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms

  2: Hub,  USB Revision 2.0
   -  USB2.0 Hub
   - Class: Hub
   - PacketSize: 64  Configurations: 1
   - Vendor: 0x05e3  Product 0x0608 Version 119.99
     Configuration: 1
     - Interfaces: 1 Self Powered Remote Wakeup 100mA
       Interface: 0
       - Alternate Setting 0, Endpoints: 1
       - Class Hub
       - Endpoint 1 In Interrupt MaxPacket 1 Interval 12ms

  Marvell>>


The external disk drive is a:

    Black Western Digital My Passport Essential 320GB USB 2.0
      Portable Hard Drive, OEM. Model: WDBAAA3200ABK-NESN
4  Hardware and U-Boot firmware / Hardware / Globalscale GuruPlug and JTag - for sale $80 in NYC on: December 26, 2011, 01:13:19 PM
Globalscale Standard Guruplug Server purchased for $99 in May 2010.
Globalscale JTag Interface purchased for $39 in November 2011.
I'm selling both together all for $80 and if you are in NYC you could have it today.

The hardware is in excellent condition and I believe the Debian kernel is
ok. It does boot and mount disks and using the JTag I can get to a login prompt
but then it locks up. This is a perfect combination for a plug computing
enthusiast who knows how to fix the boot sequence and upgrade the OS.

Original packaging and all cables includes.

For sale "AS IS".

You can see Craigslist ad at http://newyork.craigslist.org/mnh/sys/2769579366.html

Send inquiry to ms@TheBrookhaveGroup.com
5  Hardware and U-Boot firmware / U-Boot stuff / Re: rc.local doesn't run on: September 14, 2010, 01:14:48 PM
I fixed it myself with:

# update-rc.d rc.local remove
# update-rc.d rc.local defaults 98

All is well.
6  Linux Stuff / General Linux questions / Re: rc.local not running on: September 14, 2010, 12:17:31 PM
Interesting...  I am having the same problem.  I posted a question here: http://plugcomputer.org/plugforum/index.php?topic=2289.0 but no one has replied yet.
7  Hardware and U-Boot firmware / U-Boot stuff / rc.local doesn't run on: September 13, 2010, 02:00:52 PM
I have a GuruPlug and added a few lines of my own to /home/root/init_setup.sh.  Everything worked fine and the plug ran for a long time.  I also turned off some services using update-rc.d that I thought I didn't need.  After a few weeks I had to reboot the plug and found that i no longer runs init_setup.sh.  Upon further investigation I found that /etc/rc.local is not running during startup either.  I can still ssh in and the system seems healthy.

How can I get /etc/rc.local to run again?

Below is what I have in the /var/log/boot file.

Thank you,
Marc


Mon Sep 13 16:33:10 2010: .
Mon Sep 13 16:33:10 2010: Setting the system clock.
Mon Sep 13 16:33:11 2010: Setting the system clock.
Mon Sep 13 16:33:12 2010: Setting kernel variables (/etc/sysctl.conf)...done.
Mon Sep 13 16:33:12 2010: Activating swap...done.
Mon Sep 13 16:33:12 2010: Cleaning up ifupdown....
Mon Sep 13 16:33:12 2010: Loading kernel modules...done.
Mon Sep 13 16:33:12 2010: Checking file systems...fsck 1.41.3 (12-Oct-2008)
Mon Sep 13 16:33:13 2010: done.
Mon Sep 13 16:33:13 2010: Setting up networking....
Mon Sep 13 16:33:13 2010: Mounting local filesystems...mount: special device /dev/sda1 does not exist
Mon Sep 13 16:33:13 2010: mount: special device /dev/sda2 does not exist
Mon Sep 13 16:33:13 2010: mount: special device /dev/sda3 does not exist
Mon Sep 13 16:33:13 2010: mount: special device /dev/sda4 does not exist
Mon Sep 13 16:33:13 2010: ^[[31mfailed.^[[39;49m
Mon Sep 13 16:33:13 2010: Activating swapfile swap...done.
Mon Sep 13 16:33:13 2010: Configuring network interfaces...done.
Mon Sep 13 16:33:14 2010: Starting portmap daemon....
Mon Sep 13 16:33:14 2010: Setting console screen modes and fonts.
Mon Sep 13 16:33:14 2010: cannot (un)set powersave mode
Mon Sep 13 16:33:14 2010: ^[[9;30]^[[14;30]Setting up ALSA...done (none loaded).
Mon Sep 13 16:33:15 2010: INIT: Entering runlevel: 2
Mon Sep 13 16:33:15 2010: Starting Network Interface Plugging Daemon: eth0.
Mon Sep 13 16:33:15 2010: mount: special device /dev/sda1 does not exist
Mon Sep 13 16:33:15 2010: mount: special device /dev/sda2 does not exist
Mon Sep 13 16:33:15 2010: mount: special device /dev/sda3 does not exist
Mon Sep 13 16:33:15 2010: mount: special device /dev/sda4 does not exist
Mon Sep 13 16:33:15 2010: Starting enhanced syslogd: rsyslogd.
Mon Sep 13 16:33:15 2010: Starting periodic command scheduler: crond.
Mon Sep 13 16:33:15 2010: Starting system message bus: dbus.
Mon Sep 13 16:33:16 2010: Starting NTP server: ntpd.
Mon Sep 13 16:33:16 2010: Not starting internet superserver: no services enabled.
Mon Sep 13 16:33:16 2010: Starting OpenBSD Secure Shell server: sshd.
Mon Sep 13 16:33:17 2010:
8  General Category / General Discussion / Re: shabang lines don't work on my guru plug on: July 22, 2010, 02:15:37 PM

Thank you for your replies.
The bin/bin is a typo only in the message posted to this group.   In the script it is /usr/bin/perl.

Yes, I have made hundreds of scripts with the shabang line and +x permission.  That is why this is so strange that it doesn't work here.  None of the shabang lines in any of my scripts  work.  I think this is some problem with the way the rootfs is mounted.

I will appreciate any help.  Also, please let me know if you are expiencing the same thing on your GuruPlug.




9  General Category / General Discussion / shabang lines don't work on my guru plug on: July 22, 2010, 10:51:14 AM
I have a new GuruPlug.  I put a perl script on it with the following shabang line.

  #!/root/bin/bin/perl -w

When I run the program from the command line I get the following message.


  guru:~/bin$ ./ms_sync.pl
  -bash: ./ms_sync.pl: /root/bin/bin/perl: bad interpreter: Permission denied

When I run 'which perl' the path I used is confirmed.
This perl script works on several other debian computer and it works with no problem.

I can run perl and I can invoke the script as an arg to perl like this:

  guru:~/bin$ perl ms_sync.pl

Which works fine.

I think this has something to do with the way the root partition is mounted.  However, there seems to be a little guru black magic going on to get the root partition mounted since it isn't in /etc/fstab.  If I enter mount on the command line I find the following line.

rootfs on / type rootfs (rw)

I cannot tell how it is mounted.

bash, perl, python, etc work but they all have this problem when invoked via a shebang line.

How can I get shebang lines to work?

Thank  you,
Marc
Pages: [1]