GoFlex Net Blinking Green - Different from others

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

GoFlex Net Blinking Green - Different from others

Postby bgulla » Tue Apr 26, 2011 1:48 pm

Hey guys, it's another always blinking green problem. GoFlex Net install on USB. I have screwed up two of these babies and would like a little advice.

Heres what I did.
- followed the instructions on http://www.Arch Linux ARM.com/index.php5/Offi ... GoFlex_Net
- then I performed :
$this->bbcode_second_pass_code('', ' chain_install goflexnet
chain_revert
uboot_uptodate')

This is when I am told to insert the USB drive that I would like to install pluglinux onto. well I tried 3 different USB drives and even a sata device, and nothing would mount. So I pulled the power and now I am in the endless loop of the blinky green light of death.

I have searched the forums and their has been some mentions of similar problems but it seems like everyone's disks mounted and were able to install pluglinux, where I couldnt even get there. any advice? I really appreciate it in advance.

*also, I am not familiar with serial connections.
bgulla
 
Posts: 21
Joined: Tue Apr 26, 2011 1:41 pm

Re: GoFlex Net Blinking Green - Different from others

Postby peaslaker » Tue Apr 26, 2011 3:56 pm

What you have done is replaced the U-Boot and not given it anything to boot.

What made you think the USB stick didn't mount? Mounting of storage devices is not automated in the install environment because automatic mounting is a fantastic way to get tied up in knots.

You have a very feature-rich U-Boot installed. It includes netconsole facilities for rescuing from this situation. We can even revert to the Pogoplug system and you can do the whole thing again.

http://Arch Linux ARM.com/index.php5/Monitori ... ing_netcat
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm

Re: GoFlex Net Blinking Green - Different from others

Postby bgulla » Tue Apr 26, 2011 5:46 pm

thanks for the kind words of encouragement haha :)

the reason I didnt think it mounted is because after inserting the usbstick(s), i ran 'mount' and 'df' and neither of them showed that the drive was successfully mounted. i might have even tried the fdisk command on /dev/sda and it could have given me an error, but to be honest, I might just be dreaming that.

I will try the netconsole tonight, do I need to create a USB rescue disk for this, or does it do it automatically.

thank you again for your help.
bgulla
 
Posts: 21
Joined: Tue Apr 26, 2011 1:41 pm

Re: GoFlex Net Blinking Green - Different from others

Postby bgulla » Tue Apr 26, 2011 9:25 pm

just tried it on a fresh goflexnet. here is what I am getting while trying to install
$this->bbcode_second_pass_code('', 'ubit0-6:~# on /dev/sda1 wget http://plugboxlinux.org/os/2011.02/PlugApps-Linux-2011.02-rootfs.tar.gz -O rootfs.tar.gz
mount: mounting /dev/sda1 on 7caae93163da50f03ac46f598ec13f7a failed: No such file or directory
ubit0-6:~# df
Filesystem 1024-blocks Used Available Use% Mounted on
/dev/root 63028 10324 52704 16% /
none 63028 10324 52704 16% /dev/pts
none 63028 10324 52704 16% /tmp
none 63028 10324 52704 16% /
ubit0-6:~# mount
')
bgulla
 
Posts: 21
Joined: Tue Apr 26, 2011 1:41 pm

Re: GoFlex Net Blinking Green - Different from others

Postby pepedog » Tue Apr 26, 2011 10:05 pm

With ubit "on" is a wrapper that mounts the dev part, then does the job, then unmounts.
If the disk is not partitioned, and formatted, I suspect it would fail.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: GoFlex Net Blinking Green - Different from others

Postby peaslaker » Wed Apr 27, 2011 9:03 am

Your mistake (one that is commonly made) is thinking that automatic mounting of partitions is normal for Linux. It is not.

Linux separates the process of having a disk present in the system by first initialising the relevant device drivers to provide block device access via a special device files (/dev/sda, /dev/sdb etc.) then it unravels the partitioning scheme on the disk to link the partitions to (/dev/sda1, /dev/sda2 etc.) device files. At this stage the disk partitions are still unmounted - block level operations can be performed such as 'dd', 'fdisk', 'fsck' and 'mkfs.XXXX'. Mounting is the separate second stage process of integrating the partition's filesystem at a mount point in the existing root filesystem.

Many Linux distributions add features to automatically mount partitions. The most fundamental of these is the /etc/fstab file which is read by the system initialisation scripts and is used to mount the necessary partitions at their appropriate location. Many systems also add automount functionality, which allows partitions to be mounted on access, following a set of simple rules files and then unmounted after a period in which the partition is not accessed. Arch Linux ARM uses a simpler scheme using a udev rule to mount the drive - this feature is so annoying that I usually disable it - in its current form it even tries to mount swap partitions.

UBIT is not a GNU Linux distribution - it is a minimal ramdisk environment that runs in 7MB of RAM for install and root filesystem initialisation, disappearing from memory when its work is done. Instead of using the GNU C libraries, it uses uClibc which is a smaller, cut-down set of C libraries that aren't entirely standards compliant. Instead of using individual GNU Linux utilities, it uses busybox which is a compact multifunction program that provides basic utilities without guaranteeing them to be standards compliant. Instead of using udev, UBIT uses mdev. GNU Linux distributions include a collection of initialisation scripts, which also handle system shutdown and unmounting of mounted partitions. UBIT doesn't include complicated init and shutdown scripts because it is a closed environment performing a very simple set of tasks - because there are no shutdown scripts, you can't have random partitions mounted by an automated process because they will never be unmounted and you will be guaranteeing a non-clean shutdown each and every time.

In an install environment there is no correct place to expect partitions to be mounted - partitions have no defined function until you install some content on them. The way UBIT manages partition mounting is to perform mounting and unmounting as a wrapper on a specific UBIT installation task. This is the reason for the on /dev/sda1 XXXXXXXX format of commands. This command sets up a randomised mount point in the /tmp directory, mounts the partition, performs the command, unmounts the partition and then deletes the temporary mount point.

You can perform multiple commands on a partition by initialising a shell on that partition: $this->bbcode_second_pass_code('', 'on /dev/sda1 sh')
When you exit the shell it will unmount the partition.
peaslaker
 
Posts: 101
Joined: Tue Sep 07, 2010 10:40 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 10 guests