Welcome! Log In Create A New Profile

Advanced

NEW dockstar/goflex net kernel ready to use

Posted by gorgone 
NEW dockstar/goflex net kernel ready to use
January 20, 2011 09:58PM
hi i want to make a new kernel
is there some status led patches out there (the white blue and other on goflex net)
i want to port it to 2.6.37 i found only the green/orange

or can someone help to find the MPP-GPIO pins for them ?

thanks
jantle
Re: NEW dockstar/goflex net kernel ready to use
February 08, 2011 06:47PM
the MPP-pins for the four LEDs on the right are MPP38 to MPP41.
for the four LEDs on the left: MPP42 to MPP45.

Jantle
Re: NEW dockstar/goflex net kernel ready to use
February 08, 2011 08:45PM
thanks very mouch
i make a test ... but in the moment i dont have any private time :-(
Re: NEW dockstar/goflex net kernel ready to use
May 13, 2011 11:39AM
Quote
Jantle
the MPP-pins for the four LEDs on the right are MPP38 to MPP41.
for the four LEDs on the left: MPP42 to MPP45.

Thank you! :) I have compiled a kernel for GoFlex Net with support for the white LEDs. :)

It can be downloaded from here -- http://www.varkey.in/files/linux-image-2.6.37.6-goflex_1.0_armel.deb
David D.
Re: NEW dockstar/goflex net kernel ready to use
May 29, 2011 05:55PM
Being a bit of a linux noob here (hey, I did finally get the Lenny installation to work on my GoFlex Net):

  • How does one update the kernel on the Lenny install to utilize the new .DEB package?
This was copied from Jeff's thread.http://forum.doozan.com/read.php?2,524 You can also refer to http://dev.shyd.de/2011/03/kernel-2-6-38-ready-to-use/

dpkg -i linux-image-2.6.32-dockstar_1.1_armel.deb
cd /boot

# Create the images for uBoot
/usr/bin/mkimage -A arm -O linux -T kernel  -C none -a 0x00008000 -e 0x00008000 -n Linux-2.6.32-5 -d /boot/vmlinuz-2.6.32-dockstar /boot/uImage

/usr/bin/mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs -d /boot/initrd.img-2.6.32-dockstar /boot/uInitrd

Please adjust the filenames accordingly
Re: NEW dockstar/goflex net kernel ready to use
May 30, 2011 10:42AM
Great, thanks for the reply...It's all becoming less dark as I go here :)

Appears I've got it correct:

debian:~# uname -r
2.6.37.6-goflex

Unfortunately, the GoFlex Net will still not boot from the included SATA connectors (either) and no lights are on (aside from the amber pulse when it doesn't boot 100% initially).

Any further thoughts or kernel upgrades I could try? I def. don't mind being a guinea-pig if it means I can get the most out of this unit :)
Re: NEW dockstar/goflex net kernel ready to use
May 30, 2011 02:43PM
^ To boot from the SATA connectors, you will need to modify the uboot parameters. Although I haven't tested it yet cause I don't have a GoFlex hard disk.

And the leds are disabled by default, you need to enable them. Check the /sys/class/leds/ directory and you will find the available LED controls. And it can be enabled as described in this post -- http://forum.doozan.com/read.php?2,582,page=1



Edited 2 time(s). Last edit at 05/30/2011 03:11PM by varkey.
Re: NEW dockstar/goflex net kernel ready to use
May 30, 2011 02:55PM
Ah, so though your update .DEB/Kernel may have the tweaks I'm missing the other part (UBoot modification).

I'll scrounge the forum/'net for a version that may already have the tweaks (as well as being the latest/greatest available).

Thanks again. The pieces are starting to fall into place here :)
Re: NEW dockstar/goflex net kernel ready to use
May 30, 2011 03:05PM
^ The uBoot modifications cannot be incorporated in the Kernel itself AFAIK. Anyway I'm not even sure if this kernel will boot from SATA even if the right uboot parameters are given. Although the necessary modules etc are included.

The SATA ports work once you have booted debian, I tested it with a bare laptop hard disk, and this is what I got in dmesg.

Quote

[179758.471050] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[179758.511085] ata1.00: ATA-8: ST9320423AS, 0002SDM1, max UDMA/133
[179758.517118] ata1.00: 625142448 sectors, multi 16: LBA48 NCQ (depth 31/32)
[179758.581084] ata1.00: configured for UDMA/133
[179758.585475] ata1: EH complete
[179759.481306] scsi 0:0:0:0: Direct-Access ATA ST9320423AS 0002 PQ: 0 ANSI: 5
[179759.492158] sd 0:0:0:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[179759.500407] sd 0:0:0:0: Attached scsi generic sg1 type 0
[179759.513514] sd 0:0:0:0: [sdb] Write Protect is off
[179759.518421] sd 0:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[179759.520956] sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[179759.560115] sdb: sdb1 sdb2 sdb3
[179759.566931] sd 0:0:0:0: [sdb] Attached SCSI disk
[179817.649888] NTFS driver 2.1.29 [Flags: R/W DEBUG MODULE].
[179817.669983] NTFS volume version 3.1.
[179833.111761] NTFS volume version 3.1.
Re: NEW dockstar/goflex net kernel ready to use
May 30, 2011 03:20PM
If I'm interpreting this correctly, the kernel has the necessary modules built-in for SATA, it's just the uBoot at this time I have 1) tweak 2) find tweaked

varkey Wrote:
-------------------------------------------------------
> ^ The uBoot modifications cannot be incorporated
> in the Kernel itself AFAIK. Anyway I'm not even
> sure if this kernel will boot from SATA even if
> the right uboot parameters are given. Although the
> necessary modules etc are included.
>
> The SATA ports work once you have booted debian, I
> tested it with a bare laptop hard disk, and this
> is what I got in dmesg.
>
AFAIK, Jeff's uboot already incorporates this: https://github.com/peaslaker/u-boot-ubit/tree/04-seagate/board/Marvell/goflexnet. Otherwise, you can either compile this u-boot yourself or use peaslaker's UBIT u-boot.

Then try the ide command in u-boot.
http://plugapps.com/index.php5/Build_kernel_and_U-Boot_for_SATA_drives_on_Goflex_Net
varkey Wrote:
-------------------------------------------------------
> ^ To boot from the SATA connectors, you will need
> to modify the uboot parameters. Although I haven't
> tested it yet cause I don't have a GoFlex hard
> disk.
>
If you use one of these, http://cgi.ebay.com/250782638775, a normal SATA drive should work. I've meaning to try RAID1 on the goflex net for a while now.
Re: NEW dockstar/goflex net kernel ready to use
May 31, 2011 02:28PM
^ Thanks. But do you think I can power a 3.5" drive using that? I know the connectors match but is the GoFlex Power Supply capable of driving a bigger drive?

A 2.5" bare drive can be directly inserted without the need for any cables, that is I how got the above posted output in the dmesg, but no *spare* 2.5" hard disk to play around with yet.
Re: NEW dockstar/goflex net kernel ready to use
May 31, 2011 02:31PM
i_robot73 Wrote:
-------------------------------------------------------
> If I'm interpreting this correctly, the kernel has
> the necessary modules built-in for SATA, it's just
> the uBoot at this time I have 1) tweak 2) find
> tweaked

Yes the Kernel *should* boot from SATA if the necessary commands are given from uBoot.

Get hold of a serial adapter and try whether it will boot from SATA using the ide commands given in the page linked by dppfan.



Edited 1 time(s). Last edit at 05/31/2011 04:59PM by varkey.
Re: NEW dockstar/goflex net kernel ready to use
June 03, 2011 02:12PM
Finally tested it and *success* and SATA boot works just fine. I have attached my dmesg, netconsole log, and uboot env settings.
Attachments:
open | download - dmesg.txt (10.6 KB)
open | download - sata_boot.txt (2.8 KB)
open | download - uboot_env.txt (2.7 KB)
Re: NEW dockstar/goflex net kernel ready to use
June 03, 2011 07:53PM
So what is the best way to set up SATA boot, is it to directly copy your uboot_env into my uboot_env file or is there some commands that can do this easier. Also what from your uboot_env is specific to your hard drive and partition and may need to be changed for my setup?
sata_bootcmd=run usb_set_bootargs; run sata_boot

sata_boot=ide reset; mw 0x800000 0 1; ext2load ide 0:1 0x800000 /boot/uImage; if ext2load ide 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi

bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run sata_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset

The code to boot from SATA was added to bootcmd after usb stop and before rescue_bootcmd
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run sata_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset
Re: NEW dockstar/goflex net kernel ready to use
June 03, 2011 09:50PM
sorry for being a bit thick but, how do i change these things? is this imputed into a config file or just typed straight into command line? or someting else?
Re: NEW dockstar/goflex net kernel ready to use
June 03, 2011 11:07PM
The steps involved to setup SATA boot are

1. Install my Kernel which is posted above.
2. Connect the hard disk to *right* side port, this is very important. The left side port doesn't work, seems to be a bug in Jeff's uBoot
3. Setup the uBoot environment using fw_printenv, these are the commands I used.

fw_setenv sata_boot 'ide reset; mw 0x800000 0 1; ext2load ide 0:1 0x800000 /boot/uImage; if ext2load ide 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi'

fw_setenv sata_bootcmd 'run usb_set_bootargs; run sata_boot'

fw_setenv bootcmd 'usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run sata_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset'

I used the same hard disk which boots fine on USB, removed the USB adapter and connected to SATA and it booted fine. This is mostly a fresh install with Jeff's script with no major changes so should work for everyone and I don't think it will be specific to my setup. I also made the root fs ext3.

Please note, the *bootcmd* uboot env variable is very important so make sure you are doing it right and have a serial console ready or atleast netconsole configured and working properly.



Edited 3 time(s). Last edit at 06/03/2011 11:10PM by varkey.
Re: NEW dockstar/goflex net kernel ready to use
June 04, 2011 09:24PM
Thanks varkey, SATA boot is working great and well done on the kernel too. many thanks.
The left side SATA port will require a different value:
fw_setenv sata_boot 'ide reset; mw 0x800000 0 1; ext2load ide 1:1 0x800000 /boot/uImage; if ext2load ide 1:1 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi'

You can do a ide device at uboot prompt to confirm. I'm using peaslayer's uboot for my goflex net but the 2 uboot should be similar in behavior.
Re: NEW dockstar/goflex net kernel ready to use
June 05, 2011 02:06PM
^ Jeff's uBoot seems to have a bug. If I connect the hard disk to the right side port and try 'ide reset' it shows both ports populated with the same hard disk. ( You can see that from my boot log ) Now if I connect it to the left port, it shows no devices at all..

Further I remember seeing a post by peaslaker in plugapps.com forum acknowledging the bug and he seems to have corrected it as well in his release.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: