No access to GoFlexNet

There is no uInitrd file in the boot folder.[DOUBLEPOST=1405107899][/DOUBLEPOST]This is the error when I try to install the Debian on GFN connected to non recovery USB

ubit0-6:/tmp# ./kirkwood.debian-wheezy.sh
./kirkwood.debian-wheezy.sh: line 40: head: not found
./kirkwood.debian-wheezy.sh: line 207: which: not found



ERROR. CANNOT CONTINUE.

Cannot find chroot. You need to update your PATH.
Run the following command and then run this script again:

export PATH=$PATH:/sbin:/usr/sbin[DOUBLEPOST=1405108309][/DOUBLEPOST]Another attempt to install uboot.
Booted the GFN with rescue disk, got ssh and removed the usb.

Tried to run these commands:

cd /tmp
wget http://projects.doozan.com/uboot/install_uboot_mtd0.sh
chmod +x install_uboot_mtd0.sh
./install_uboot_mtd0.sh

(Followed the above as mentioned here http://projects.doozan.com/uboot/)

Error output:
http://pastebin.com/1neTTk0G
 
Last edited:
Actually I had tried earlier to do this. When I run the command, it asks me which box I have and after that there is 404 error.
 
Here is the error:

Your device could not be auto-detected.

You must be using a device listed below to run this installer.

What device are you using? Type the number of your device and press ENTER.
1 - Seagate Dockstar
2 - Seagate GoFlex Net
3 - Seagate GoFlex Home
4 - Pogoplug v1
5 - Pogoplug v2 - Pink
6 - Other
2
Selected Seagate GoFlex Net
./install_uboot_mtd0.sh: line 342: head: not found


./install_uboot_mtd0.sh: line 342: sed: not found

# Installing uBoot
## Installing goflexnet
Connecting to download.doozan.com (50.116.34.13:80)
wget: server returned error: HTTP/1.1 404 Not Found
Connecting to download.doozan.com (50.116.34.13:80)
wget: server returned error: HTTP/1.1 404 Not Found
## uBoot could not be downloaded, or the MD5 does not match.
## Exiting. No changes were made to mtd0.
 
I need some details
1. Your device is connected to the network? does it get Internet correctly?
2. Which distribution are you running?
3. Why are you using scripts to install/update uBoot, why not download uBoot and then flash it using nanderase http://forum.doozan.com/read.php?3,12381

cd /tmp
tar -xf uboot.2014.07.tld-1.goflexnet.bodhi.tar

6. Erase mtd0
flash_erase /dev/mtd0 0 4

Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x60000 done

7. Write image to NAND
nandwrite /dev/mtd0 uboot.2014.07.tld-1.goflexnet.mtd0.kwb

Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000[DOUBLEPOST=1406631504][/DOUBLEPOST]You can similarly install the Rescue system as well
 
Download Link: RescueV2.8.1-05282012.tar.gz

tar zxvf RescueV2.8.1-05282012.tar.gz

# using tools from mtd-utils

flash_eraseall /dev/mtd1
nandwrite /dev/mtd1 uImage-mtd1.img


flash_eraseall /dev/mtd2
ubiformat /dev/mtd2 -s 512 -f rootfs-mtd2.img -y


fw_setenv set_bootargs_rescue 'setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts'
fw_setenv bootcmd_rescue 'run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000'
fw_setenv bootcmd_pogo 'run bootcmd_rescue'
fw_setenv rescue_installed 1
 
^
1. Yes, I am connected to the network and it gets internet.
2. It currently gets into ubit using a ubit rescue disk created using as below.
http://archlinuxarm.org/forum/viewtopic.php?p=4447#p4447

I can get the ubit prompt and also can SSH.

I am getting the output as below, I just want to double check before erasing and installing uboot directly.

ubit0-6:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "pogoplug"
mtd3: 0db00000 00020000 "root"


ubit0-6:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "pogoplug"
mtd3: 0db00000 00020000 "root"
ubit0-6:~# cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
# Notice, that the "Number of sectors" is ignored on NOR.

# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0x60000 0x20000 0x20000

ubit0-6:~# fw_printenv
Too few good blocks within range

ubit0-6:~# which flash_erase
-sh: which: not found

ubit0-6:~# which nandwrite
-sh: which: not found

ubit0-6:~# dmesg
-sh: dmesg: not found
 
I will tell you what I had done, don't have exact instructions at the moment, I had using Serial access attached a fat formatted pendrive and using fat load started the pendrive and the uBoot from it, also changed the ARCnumber from the Serial prompt and was able to get recovery installed[DOUBLEPOST=1406696639][/DOUBLEPOST]Remove USB and then reboot it and check through Serial access
 
Last edited:
^ Ohh. Sad to hear that.
Really thankful to you and @dheerajjotwani for helping me out.

But I am able to get my GFN working. The problem was that since I have old Ubit/Uboot, the newer archlinux were not booting up. So I flashed old archlinux build with kernel 3.1 and it got booted up. So finally, it is working. I am in the process of installing general package but earlier there were step by step guide available for installing various general package on archlinux.org but now I am unable to find anything. Am I missing something?
 
Archlinux ARM
============

mkfs.ext2 /dev/sda1
cd /tmp
mkdir alarm
mount /dev/sda1 alarm
cd alarm

wget http://archlinuxarm.org/os/ArchLinuxARM-armv5te-latest.tar.gz

tar -xzvf ArchLinuxARM-armv5te-latest.tar.gz
rm ArchLinuxARM-armv5te-latest.tar.gz
sync
nano etc/hostname

Prashant-GoFlex

cd ..
umount alarm
tune2fs -L "rootfs" /dev/sda1
reboot

timedatectl set-timezone Asia/Kolkata

Pacman
=======
pacman -Scc
pacman -Sy
pacman -Syu

cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
nano /etc/pacman.d/mirrorlist

# before the line with mirror.archlinux.org and uncomment one of the other lines.


vsftpd
======
pacman -Sy vsftpd

cp /etc/vsftpd.conf /etc/vsftpd.conf.bak
nano /etc/vsftpd.conf

local_enable=YES
write_enable=YES
local_umask=022
local_root=/

systemctl start vsftpd
systemctl enable vsftpd.service

journalctl -u vsftpd

Apache
======

pacman -Sy apache php php-apache

nano /etc/httpd/httpd.conf

ServerName localhost

LoadModule php5_module modules/libphp5.so

To use mod_mpm_prefork, open /etc/httpd/conf/httpd.conf and replace

LoadModule mpm_event_module modules/mod_mpm_event.so

with

LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

Add this line on Include list (place at end) :
Include conf/extra/php5_module.conf

Add this line on nano /etc/httpd/conf/mime.types
application/x-httpd-php php php5


systemctl start httpd
systemctl enable httpd

systemctl status httpd
journalctl -u httpd


/srv/http

Lighttpd
========

pacman -Sy lighttpd php php-cgi php-sqlite sqlite

cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.bak
cp /etc/php/php.ini /etc/php/php.ini.bak

nano /etc/lighttpd/lighttpd.conf

systemctl start lighttpd

systemctl stop lighttpd

systemctl enable lighttpd

PHP-CGI

nano /etc/lighttpd/conf.d/cgi.conf Add the following to it:

server.modules += ( "mod_cgi" )

cgi.assign = ( ".pl" => "/usr/bin/perl",
".cgi" => "/usr/bin/perl",
".rb" => "/usr/bin/ruby",
".erb" => "/usr/bin/eruby",
".py" => "/usr/bin/python",
".php" => "/usr/bin/php-cgi" )

index-file.names += ( "index.pl", "default.pl",
"index.rb", "default.rb",
"index.erb", "default.erb",
"index.py", "default.py",
"index.php", "default.php" )



nano /etc/php/php.ini

cgi.fix_pathinfo = 1

In your Lighttpd configuration file, nano /etc/lighttpd/lighttpd.conf add:

include "conf.d/cgi.conf"

PHP-FCGI

nano /etc/lighttpd/fastcgi.conf

# Make sure to install php and php-cgi. See:
# https://wiki.archlinux.org/index.php/Fastcgi_and_lighttpd#PHP

server.modules += ("mod_fastcgi")

# Configure a FastCGI server which handles PHP requests.
#
index-file.names += ("index.php")
fastcgi.server = (
# Load-balance requests for this path...
".php" => (
# ... among the following FastCGI servers. The string naming each
# server is just a label used in the logs to identify the server.
"localhost" => (
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php-fastcgi.sock",
# breaks SCRIPT_FILENAME in a way that PHP can extract PATH_INFO
# from it
"broken-scriptfilename" => "enable",
# Launch (max-procs + (max-procs * PHP_FCGI_CHILDREN)) procs, where
# max-procs are "watchers" and the rest are "workers". See:
# https://redmine.lighttpd.net/projec...ow-many-php-CGI-processes-will-lighttpd-spawn
"max-procs" => 4, # default value
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "1" # default value
)
)
)
)

lighttpd -t -f /etc/lighttpd/lighttpd.conf


nano /etc/lighttpd/fastcgi.conf

include "mono.conf"
server.modules += ( "mod_fastcgi" )
fastcgi.server = (
"" => ((
"socket" => mono_shared_dir + "fastcgi-mono-server4",
"bin-path" => mono_fastcgi_server,
"bin-environment" => (
"PATH" => "/bin:/usr/bin:" + mono_dir + "bin",
"LD_LIBRARY_PATH" => mono_dir + "lib:",
"MONO_SHARED_DIR" => mono_shared_dir,
"MONO_FCGI_LOGLEVELS" => "Standard",
"MONO_FCGI_LOGFILE" => mono_shared_dir + "fastcgi.log",
"MONO_FCGI_ROOT" => mono_fcgi_root,
"MONO_FCGI_APPLICATIONS" => mono_fcgi_applications
),
"max-procs" => 1,
"check-local" => "disable"
))
)


nano /etc/lighttpd/mono.conf

index-file.names += ( "index.aspx", "default.aspx", "Default.aspx" )
var.mono_dir = "/usr/"
var.mono_shared_dir = "/tmp/"
var.mono_fastcgi_server = mono_dir + "bin/" + "fastcgi-mono-server4"

### The root of your applications
# For apps installed under the lighttpd document root, use:
var.mono_fcgi_root = server.document-root

### Application map
# A comma separated list of virtual directory and real directory
# for all the applications we want to manage with this server. The
# virtual and real dirs. are separated by a colon.
var.mono_fcgi_applications = "/:."

PostgreSQL
=========

pacman -S postgresql php-pgsql

su postgres
initdb -D '/var/lib/postgres/data'
exit
systemctl start postgresql
systemctl enable postgresql
PostgreSQL is now running. By creating another PostgreSQL user as per your local Arch user ($USER), you can access the PostgreSQL database shell directly instead of having to log in as the postgres user:
createuser -s -U postgres --interactive
Enter name of role to add: root

(Substitute myUsualArchLoginName for your Arch login name.)

Now you can create databases and access them as an Arch user. Here's an example:
createdb Testdb

Use the psql command to access the PostgreSQL database shell, psql. (-d specifies the database to connect to.)
psql -d Testdb

Since you have yet to create any tables and input any data into this database, just list all the database's users and their permissions:
\du

You should have two users: postgres and your Arch login user.

Type \q or CTRL+d to exit the PostgreSQL database shell back to your command line.

Some psql commands to keep handy
command explanation
\c databaseName connect to a particular database
\du list all users and their permission levels
\dt shows summary information about all tables in the current database
\q or CTRL+d exit/quit the psql shell

https://wiki.archlinux.org/index.php/PhpPgAdmin

journalctl -u postgresql


nano /etc/php/php.ini

Samba
======

pacman -Sy samba
nano /etc/samba/smb.conf


[global]
workgroup = WORKGROUP
server string = Prashant-GoFlex
netbios name = Prashant-GoFlex
security = share
load printers = no
printing = bsd
printcap name = /dev/null
disable spools = yes
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
public = yes
[GoFlex Downloads]
path = /var/lib/transmission/Downloads
read only = no
public = yes
writable = yes
force user = samba
force group = samba
systemctl start smbd nmbd
systemctl enable smbd nmbd
smbpasswd -a root
pdbedit -a -u root

Samba SWAT
===========
nano /usr/lib/systemd/system/swat.socket
systemctl start swat.socket
systemctl enable swat.socket

Transmission
===========
pacman -Sy transmission-cli

systemctl start transmission
systemctl stop transmission

nano /var/lib/transmission/.config/transmission-daemon/settings.json
systemctl enable transmission.service

journalctl -u transmission

chmod 0777 /dir

MiniDLNA
========

pacman -Sy minidlna

nano /etc/minidlna.conf
systemctl start minidlna
systemctl stop minidlna
systemctl enable minidlna.service


System
======
systemctl -t service
systemctl -t socket
systemctl -t target
systemctl status "service name"
journalctl -xn

pacman -Sy htop
 
Back
Top