LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-27-2011, 10:41 AM   #1
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Rep: Reputation: 16
Slack ARM on Seagate FreeAgent GoFlex Net


Just bought one of these.. basically a SheevaPlug but with 2 SATA ports and minus the USB hub..

Going to be looking to install Slackware ARM on a USB stick, with 2 hard drives in RAID 10 f2.

The 'box' will hopefully perform the following duties:
  • NAS
  • Wuala trading node
  • Torrent client with WebGUI (Deluge)
  • Internet connection sharing to desktop (will be connected to router via USB/Ethernet adapter, and to desktop via gigabit)
  • Scheduled (cron) backups of desktop via rsync
  • Web server for some experimental projects

Anyone been there before me? Any tips/caveats to share?
 
Old 05-27-2011, 10:55 PM   #2
tmfizzle
Member
 
Registered: Nov 2008
Distribution: slackware 13.37 x86_64 desktop, Slackware-current on laptop
Posts: 43

Rep: Reputation: 2
I have successfully installed armedslack 13.37 on a sheevaplug. I had to upgrade uboot, no experience with a go flex but I am sure there is documentation if you use your google-fu about the differences, also if you ftp transfer the armedslack tree make sure that you transfer in binary and not ascii as it will mangle your kernel and you will be stuck with a bad crc data error and unable to boot for the installer. Otherwise it was quite easy after getting those things out of the way for me. Hope this helps.
 
1 members found this post helpful.
Old 05-31-2011, 12:13 PM   #3
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
Thanks for the info. Just about to try and get myself a serial cable...

After some googling it seems I may need a custom Uboot to get the SATA ports working?

http://206.217.130.189/index.php5?ti...Net&oldid=3591

Does anyone know if this would be necessary for Slackware?

I never knew something so small could be so daunting
 
Old 06-02-2011, 05:14 AM   #4
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
Still not got a serial cable; further research...

U-Boot installation seems to be pretty easy using this: http://jeff.doozan.com/debian/uboot/

The kernel side is a little more difficult. The all-in-one patch for 2.6.37 is here: http://forum.doozan.com/read.php?2,4702,4778#msg-4778

I have a few options, but I think the following may be most sensible:
  1. Upgrade uBoot.
  2. Set SheevaPlug ArcNumber
  3. Install Slackware
  4. Boot into Slackware
  5. Apply kernel patch and re-compile the kernel
  6. Install the new kernel.
  7. Reboot, set the newly-added GoFlex ArcNumber
  8. et voila?

Am I understanding this correctly? I there a better/quicker way?
 
Old 06-03-2011, 05:35 AM   #5
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
Just been poking around the kernel source and seems kernel patching won't be needed.. 2.6.38.1 supports the GOFLEXNET machtype (3089)

Considering installing straight onto a SATA drive now... I'll keep this thread updated with progress.

Gotta love Slackware

EDIT: It has the machtype but maybe not support for SATA and LEDs.. more hunting to be done I guess.

EDIT EDIT: Yup, still needs patching.

Last edited by ahmadj; 06-03-2011 at 05:48 AM.
 
Old 06-03-2011, 11:13 PM   #6
tmfizzle
Member
 
Registered: Nov 2008
Distribution: slackware 13.37 x86_64 desktop, Slackware-current on laptop
Posts: 43

Rep: Reputation: 2
In the install-kirkwood.txt it explains that it is possible to install to an esata drive, you may want to keep up the Jeff Doozan's uboot setups. Not sure if this applies to your setup but here are a few links. http://jeff.doozan.com/debian/uboot/build_uboot.htm and http://forum.doozan.com/read.php?3,1893,2055

Last edited by tmfizzle; 06-03-2011 at 11:18 PM.
 
Old 06-04-2011, 05:36 AM   #7
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
Talking

Quote:
Originally Posted by tmfizzle View Post
In the install-kirkwood.txt it explains that it is possible to install to an esata drive, you may want to keep up the Jeff Doozan's uboot setups. Not sure if this applies to your setup but here are a few links. http://jeff.doozan.com/debian/uboot/build_uboot.htm and http://forum.doozan.com/read.php?3,1893,2055
Thanks for the links. I had already installed Jeff's latest uboot, but prior to that had connected to Pogoplug and couldn't stop it downloading an update. Which meant that I faced some issues having installed Jeff's uboot and can now no longer get into the Pogoplug OS.

However, I have successfully installed Slackware onto a USB hard drive and booted into it

I've applied the kernel patch with GoFlex support (http://forum.doozan.com/read.php?2,4702,4778#msg-4778) and have just hit 'make'...

After installing the kernel, I will remove the external hard drive from its enclosure, place it into the SATA port, set the correct arcnumber + IDE boot parameters in uboot console.. and see what happens...

I do not think I will need to make/install a new initrd, but can someone just confirm that the Marvell SATA driver is built-in in the default config?

And once the kernel is 'made', is it simply a case of copying across to /boot?

Last edited by ahmadj; 06-04-2011 at 06:13 AM.
 
Old 06-04-2011, 03:00 PM   #8
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
Semi-success

I installed the patched+recompiled kernel, and Slackware does now boot with the arcNumber set to 3089 (it didn't before)

Next step is to test SATA functionality and then try booting from SATA...

If anyone needs it, I can upload my uImage - completely stock armedslack 2.6.38.4 kernel apart from added support for GoFlex Net and GoFlex Home via their unique arcnumbers.

Last edited by ahmadj; 06-04-2011 at 03:01 PM.
 
Old 06-05-2011, 02:30 PM   #9
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
SATA functionality tested and working from within Slackware I'm still trying to troubleshoot booting from it, though.

A couple of notes:
  • U-Boot detects the SATA ports 'backwards', ie. sda as port 1 and sdb as port 0 [EDIT: THIS IS NOT TRUE ANY MORE]
  • Linux allocates device nodes to SATA before USB... so with 1 SATA drive installed, any USB storage will be sdb(+). With 2 installed, USB drives will be sdc(+). The latter is an assumption and I am yet to test it.

I've switched from Jeff's U-Boot to the one provided by U-BIT 0.5 - http://plugapps.com/index.php5/UBIT_U-Boot_images, http://jeff.doozan.com/debian/goflex/v0.5/goflexnet.kwb. Would have gone with 0.6, but can't seem to find a compiled image anywhere?

I've also managed to boot into the Slackware install environment (over tftp) using my custom kernel, meaning one can install straight onto a SATA drive.

One thing I don't quite understand, is that I can see terminal output while booting the install environment from RAM (as in the armedslack install instructions), but not when booting from USB or (attempting to) from SATA - is this fixable? It would make things a lot easier right now. I have 'bootargs console=ttyS0,115200' set in both cases.

Last edited by ahmadj; 06-06-2011 at 05:18 AM.
 
Old 06-06-2011, 05:24 AM   #10
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
Lightbulb Working Slackware boot from SATA!!

Here are the relevant commands (assuming you set up partitions as-per the official install howto):

Code:
setenv arcNumber 3089
setenv bootargs_console console=ttyS0,115200
setenv bootargs_root 'root=/dev/sda3 waitforroot=10 rootfs=ext4'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_slk ; reset'
setenv bootcmd_slk 'usb start;ide reset;ext2load ide 0:1 0x01100000 /uinitrd-kirkwood;ext2load ide 0:1 0x00800000 /uImage-kirkwood;bootm 0x00800000 0x01100000'
Hard drive is in the right-hand-side port (ide0). It's the bold bit that makes the difference - for some reason, Uboot will not find the kernel images unless USB is started before loading them.

Problems
  • Serial console stopped working altogether after boot.. I can only SSH in. Troubleshooting this later.

Last edited by ahmadj; 06-06-2011 at 06:02 AM.
 
Old 06-07-2011, 09:55 PM   #11
tmfizzle
Member
 
Registered: Nov 2008
Distribution: slackware 13.37 x86_64 desktop, Slackware-current on laptop
Posts: 43

Rep: Reputation: 2
any success with the wuala client on arm?
 
Old 06-08-2011, 04:18 AM   #12
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by tmfizzle View Post
any success with the wuala client on arm?
Not tried it yet. Will keep you informed.
 
Old 06-08-2011, 11:26 AM   #13
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by tmfizzle View Post
any success with the wuala client on arm?
Wuala seems to be working perfectly, though bear in mind I'm only using it for trading. The 100GB trading limit is a little low for my liking, but does mean I can at least make use of my 160GB root drive, and dedicate the 1TB drive to solely NAS duties

I am using Oracle Java as recommended in the docs: ftp://ftp.splack.org/pub/armedslack/...D_PACKAGES.TXT

Now to set-up an rc.d script for it...

EDIT: Already earned 2.19GB of storage

Last edited by ahmadj; 06-08-2011 at 11:28 AM.
 
Old 06-08-2011, 01:47 PM   #14
tmfizzle
Member
 
Registered: Nov 2008
Distribution: slackware 13.37 x86_64 desktop, Slackware-current on laptop
Posts: 43

Rep: Reputation: 2
I could only find packages related to x86 and x64, is there source somewhere?
 
Old 06-08-2011, 02:39 PM   #15
ahmadj
Member
 
Registered: Jun 2010
Distribution: Slackware64_13.37 \ Slackware_13.1 \ ARMedslack_13.37
Posts: 80

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by tmfizzle View Post
I could only find packages related to x86 and x64, is there source somewhere?
No source is available, apparently... you have to use Oracle's binaries. From the 'README_REMOVED_PACKAGES.TXT':

Code:
  jre				x86 only (no source)

  For Java on ARM, your best best is to download the evaluation version
  from Oracle:

  http://www.oracle.com/technetwork/ja...sp-135769.html

  Choose: "ARMv5 Linux - Headless: EABI, Soft Float, Little Endian"
You will have to provide an email address to get hold of it, unfortunately. Extract it to /usr/local and it works a charm.

The init script I used for wuala is here: http://bugs.wuala.com/view.php?id=4485

I set up a user called 'wuala' with no extra privileges, logged-in to wuala manually from that user, and set the trade size to 100GB. Then edit the init script (renamed to rc.wuala), chmod +x it and reference it from rc.local. Reboot, and Bob's yer uncle!

Hope this helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Seagate GoFlex Is Really a Pogoplug in Disguise LXer Syndicated Linux News 0 02-17-2011 02:10 PM
Linux Cannot See Seagate FreeAgent Drive zazou Linux - Hardware 3 06-01-2010 06:12 AM
Seagate FreeAgent, NTFS, cannot mount volume agentjayjay Linux - Hardware 15 08-04-2009 09:05 PM
Using Seagate FreeAgent external hard drives samwise17 Slackware 0 06-29-2008 07:28 PM
Fun with a Seagate FreeAgent Pro rmuniz9336 Linux - Hardware 12 02-24-2008 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration