Welcome! Log In Create A New Profile

Advanced

Linux 3.3.2 kernel for Dockstar, GoFlex and many others

Posted by davygravy 
shv
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
March 04, 2013 12:15AM
@chessplayer: Can you please check which machid is set? You can find the machids which are supported in the following post: Supported machids. This list does not contain dd6 (3542) machid.

With the kernel of the rescue system and arcNumber/machid set to 3542/dd6 the LED is controled. The color is green if it is switched on. The same behaviour I have with bodhys kernel 3.2.28. With 3.3.2 kernel and arcNumber/machid set to 2097/831 this LED seam to be controled as well but the color is orange.



Edited 2 time(s). Last edit at 03/04/2013 12:42AM by shv.
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
March 05, 2013 08:08AM
shv Wrote:
-------------------------------------------------------
... snip
>
> With the kernel of the rescue system and
> arcNumber/machid set to 3542/dd6 the LED is
> controled. The color is green if it is switched
> on. The same behaviour I have with bodhys kernel
> 3.2.28. With 3.3.2 kernel and arcNumber/machid set
> to 2097/831 this LED seam to be controled as well
> but the color is orange.

I answered this already last night, but probably forgot to submit ....

Anyway, you are absolutely right, the exact same situation I have here after not just setting arcNumber, but also machid (see my post over at davygravy's info collection thread, which I now also cross-referenced with this thread here and especially your post a little further up the chain).

Let's see if davygravy (or bodhi) can make something of it ...

---
Standart ist der Standardfehler
shv
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
March 05, 2013 08:50AM
Both 3.3.2 kernel configuration files are available from http://forum.doozan.com/read.php?2,7676,7676#msg-7676. You can find a link to the kirkwood-dg config file in the message (config-3.3.2-kirkwood-dg-wide) and the kirkwide config file (linux-3.3.2-wider-config-Buildroot-module-set) in the link to davygravys dropbox (Kirkwood Downloads). The patch file is also available in the dropbox (linux-3.3.2-wider-patch). If I compare both config files the support for both Pogoplug devices is missing in the kirkwood-dg configuration.

The NSA320 which I already tested also doesn't contain support for the Pogoplug arcNumbers and machids. You can find a list of supported arcNumbers/machids in the following message: my post.



Edited 1 time(s). Last edit at 03/05/2013 08:51AM by shv.
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
March 15, 2013 02:16AM
Hello All,

I am having difficulty in getting RT5370 wifi adapter to work in 3.3.2 (davygravy) kernel.

root@debian:~# lsusb
Bus 001 Device 004: ID 0930:6544 Toshiba Corp. Kingston DataTraveler 2.0 Stick (2GB)
Bus 001 Device 003: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg:

[   30.981213] phy0 -> rt2x00lib_request_firmware: Error - Current firmware does not support detected chipset.
[   32.132687] phy0 -> rt2x00lib_request_firmware: Error - Current firmware does not support detected chipset.


hwinfo:

root@debian:~# hwinfo --wlan
04: USB 00.0: 0282 WLAN controller
  [Created at usb.122]
  Unique ID: dwDZ.d6B7EUYUCAE
  Parent ID: ADDn.d7FDLX76qXB
  SysFS ID: /devices/platform/orion-ehci.0/usb1/1-1/1-1.3/1-1.3:1.0
  SysFS BusID: 1-1.3:1.0
  Hardware Class: network
  Model: "Ralink 802.11 n WLAN"
  Hotplug: USB
  Vendor: usb 0x148f "Ralink Technology, Corp."
  Device: usb 0x5370 "802.11 n WLAN"
  Revision: "1.01"
  Serial ID: "1.0"
  Driver: "rt2800usb"
  Driver Modules: "rt2800usb"
  Device File: wlan0
  Features: WLAN
  Speed: 480 Mbps
  HW Address: xx:xx:xx:xx:xx:xx
  Link detected: no
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472 2.484
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "usb:v148Fp5370d0101dc00dsc00dp00icFFiscFFipFF"
  Driver Info #0:
    Driver Status: rt2800usb is active
    Driver Activation Cmd: "modprobe rt2800usb"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #3 (Hub)

The driver source is available from Mediatek's (formerly RALink) website, but I don't know how to get the headers to compile it.

Any help is appriciated.
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
March 15, 2013 03:09AM
Did you try to intall ralink suite?
apt-get install firmware-ralink
shv
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
March 15, 2013 05:02AM
I think he just needs the kernel headers to compile the sources which are provided from Mediatek/Ralink.
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
March 15, 2013 11:27AM
Bodhi,

Yes I have the ralink-firmware installed:

root@debian:/tmp# apt-get install firmware-ralink
Reading package lists... Done
Building dependency tree
Reading state information... Done
firmware-ralink is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

This device should have driver file rt2870sta.ko.

I could compile the driver in earlier kernel versions, but seem like there was some gcc issue due to which the driver didn't load properly. I thought switching to latest kernel could help, since it may have these drivers pre-compiled.

This specific driver seem to be missing.

The driver package does have the firmware file (*.dat) file. Do you know if I can just copy that somewhere to get it recognized?

Thanks
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 09, 2013 09:50AM
shv Wrote:
-------------------------------------------------------
> With the kernel of the rescue system and
> arcNumber/machid set to 3542/dd6 the LED is
> controled. The color is green if it is switched
> on. The same behaviour I have with bodhys kernel
> 3.2.28. With 3.3.2 kernel and arcNumber/machid set
> to 2097/831 this LED seam to be controled as well
> but the color is orange.

I played around a little with Davygravys kernel patch, because I needed to set up a new crosscompile env to get an I2C enabled (and working) kernel. I took his patches as a base to get the current 3.8.4 kernel to compile and work with my dockstar. I also took some time to investigate the LED problem:

Jeff's original kernel modified the kernel machine "Sheevaplug" (2097/0x831). But newer kernels do support the "Dockstar" (2998/0xBB6). If you set your machid environment to bb6, it will support the LEDs correct.

So, does anybody own a device with the original 831 machid?
Does this one have only one LED on GPIO 49?
If this machine is unused in our environment, I would simply patch the Sheevaplug support according to the Dockstar LEDs, as Jeff did.

I still play around a little with my final kernel config and will post the resulting Debian package along with my patch for 3.8.4 and the steps required to build it in a separate post later...
shv
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 14, 2013 09:05AM
You can download a rootfs (Debian/Wheezy) with 3.3.2 kernel which is based on Davys kernel with the extension to additionally support Pogoplug E02, Mobile, Series4 arcNumber/machid from the following post: Link.



Edited 2 time(s). Last edit at 04/16/2013 02:07PM by shv.
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 16, 2013 01:54PM
Hi,

first I really sorry for my bad English, so I hope I can express myself right.

second I have a long painful story. I had a pink Pogoplug. I can't install wheezy (kernel to old), squeeze install script works fine but Pogoplug don't boot from the created usb flash drive. I put a rescue image I founded in your forum. Pogo booted it. Nice. Then I founded my old dockstar squeeze image with 3.0.32 dockstar-geekparadise.de Kernel and configured ext2 boot and ext4 root partitions. So I made some fw_env tweaks for booting it. It booted. Nice. I cleaned my squeeze from unnecessary stuff, updated sources.list, done a dist-upgrade to wheezy, all fine but my kernel did not upgraded, so PogoPlug boot old 3.0 kernel. Here some netconsole logs.

I tried all the stuff I found here in forum like:
flash-kernel
update-initramfs -u
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.2.0-4 -d /boot/vmlinuz-3.2.0-4-kirkwood /boot/uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n Initrd-3.2.0-4 -d /boot/initrd.img-3.2.0-4-kirkwood /boot/uInitrd

I get stuck. So I tried the 3.3.2 kirkwood from that topic, but the installation failed. Damn, I need 3.2 or higher kernel.
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 16, 2013 02:01PM
shv
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 16, 2013 02:03PM
Did you try one of my rootfs from the previous post above yours?



Edited 1 time(s). Last edit at 04/16/2013 02:11PM by shv.
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 16, 2013 02:10PM
Bamboo,

you may also try my intermediate version:
https://www.dropbox.com/s/pyumlkft1tb5qu3/linux-image-3.8.4-dockstar_1.1_armel.deb

Although I did some more cut down to get a smaller kernel which I didn't upload so far, this one should work with all Kirkwood devices. I did a successful upgrade to Wheezy on my USB stick and it's still running fine... so give it a try!
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 16, 2013 02:48PM
~bodhi,
~Sven,

thanks for fast answers, I tried to install all 3 kernels, the packages installed well, made all mkimage voodoo, but PogoPlug booted my old 3.0.x kernel from Legacy Image. There is the same netconsole output as in my first post.

~shv
oh! that's nice, I put it to the download queue.
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 16, 2013 03:29PM
Quote

Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
2081852 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
5035488 bytes read
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.0.32
And you're sure the 'mkimage' succeeded?
It shows definitely "3.0.32" while booting - is there another USB drive in place?
(because of the first try and only loading 1 byte...)
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 16, 2013 04:14PM
~Sven

No, there are no USB devices on PogoPlug. I don't know why the first try fails by reading, I put my USB flash drive to each port, so netconsole shows me the same all the time.

mkimage magic, huh. I don't know how to try to check the success of it. I look for return value, it's zero.

root@pogo:~/# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.8.4-dockstar -d /boot/vmlinuz-3.8.4-dockstar /boot/uImage
Image Name:   Linux-3.8.4-dockstar
Created:      Tue Apr 16 22:50:28 2013
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    3717400 Bytes = 3630.27 kB = 3.55 MB
Load Address: 00008000
Entry Point:  00008000
root@pogo:~/# echo $?
0
root@pogo:~/# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.8.4-dockstar -d /boot/initrd.img-3.8.4-dockstar /boot/uInitrd
Image Name:   initramfs-3.8.4-dockstar
Created:      Tue Apr 16 22:50:54 2013
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    3111997 Bytes = 3039.06 kB = 2.97 MB
Load Address: 00000000
Entry Point:  00000000
root@pogo:~/# echo $?
0

This is depressing.
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 16, 2013 04:44PM
What's the output of your USB /boot directory?
ls -latr /boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 16, 2013 05:00PM
~bodhi
root@pogo:~/# ls -latr /boot
total 67148
-rw-r--r--  1 root root 5035424 Jan  1  1970 initrd.img-3.0.32-dockstar-geekparadise.de
-rw-r--r--  1 root root  107468 Apr 24  2012 config-3.3.2-kirkwood-dg
-rw-r--r--  1 root root 2279192 Apr 24  2012 vmlinuz-3.3.2-kirkwood-dg
-rw-r--r--  1 root root 6610550 Apr 24  2012 vmlinux-3.3.2-kirkwood-dg
-rw-r--r--  1 root root 1220456 Apr 24  2012 System.map-3.3.2-kirkwood-dg
-rw-r--r--  1 root root   99493 Mai 24  2012 config-3.0.32-dockstar-geekparadise.de
-rw-r--r--  1 root root 2081788 Mai 24  2012 vmlinuz-3.0.32-dockstar-geekparadise.de
-rw-r--r--  1 root root 1138981 Mai 24  2012 System.map-3.0.32-dockstar-geekparadise.de
drwx------  2 root root    4096 Jun 18  2012 lost+found
lrwxrwxrwx  1 root root       1 Jun 18  2012 boot1 -> .
drwxr-xr-x  2 root root    4096 Jun 18  2012 boot
-rw-r--r--  1 root root   94709 Mär 27 17:10 config-3.8.4-dockstar
-rw-r--r--  1 root root 3717400 Mär 27 17:12 vmlinuz-3.8.4-dockstar
-rw-r--r--  1 root root 1916881 Mär 27 17:12 System.map-3.8.4-dockstar
-rw-r--r--  1 root root 1606512 Mär 27 20:40 vmlinuz-3.2.0-4-kirkwood
-rw-r--r--  1 root root 1207425 Mär 27 20:41 System.map-3.2.0-4-kirkwood
-rw-r--r--  1 root root  107503 Mär 27 20:41 config-3.2.0-4-kirkwood
-rw-r--r--  1 root root  101604 Mär 31 09:17 config-3.6.11-kirkwood-tld
-rw-r--r--  1 root root 1741016 Mär 31 15:00 vmlinuz-3.6.11-kirkwood-tld
-rw-r--r--  1 root root 1240893 Mär 31 15:00 System.map-3.6.11-kirkwood-tld
-rw-r--r--  1 root root 1605272 Apr  5 03:54 uImage.bak
-rw-r--r--  1 root root 6809332 Apr  5 03:55 uInitrd.bak
-rw-r--r--  1 root root 6811106 Apr  5 06:18 initrd.img-3.2.0-4-kirkwood
-rw-r--r--  1 root root 7217003 Apr 16 09:29 initrd.img-3.3.2-kirkwood-dg
drwxr-xr-x 22 root root    4096 Apr 16 21:03 ..
-rw-r--r--  1 root root 5855547 Apr 16 21:23 initrd.img-3.6.11-kirkwood-tld
-rw-r--r--  1 root root 3111997 Apr 16 21:32 initrd.img-3.8.4-dockstar
drwxr-xr-x  4 root root    4096 Apr 16 21:32 .
-rw-r--r--  1 root root 3717464 Apr 16 22:50 uImage
-rw-r--r--  1 root root 3112061 Apr 16 22:50 uInitrd

looks ok?



Edited 1 time(s). Last edit at 04/16/2013 05:01PM by bambo.
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 17, 2013 01:27AM
Well - but it still looks funny. 'mkimage' reports the same sizes as you can see in the listing, but uBoot does read other files:
Quote

Loading file "/boot/uImage" from usb device 0:1 (usbda1)
2081852 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
5035488 bytes read
What's the content of /boot/boot?
And can you additionally tell us something about your partitioning? The output of 'sfdisk -d /dev/sda' and 'mount'?

Maybe it's sufficient to change the link and dir inside your boot (partition?):
mv /boot/boot /boot/boot.dir
mv /boot/boot1 /boot/boot
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 17, 2013 05:02AM
~Sven
root@pogo:/boot/# sfdisk -d /dev/sda
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=     2048, size=   450560, Id=83, bootable
/dev/sda2 : start=   452608, size=  5306368, Id=83
/dev/sda3 : start=  5758976, size=  2095104, Id=82
/dev/sda4 : start=        0, size=        0, Id= 0
root@pogo:/boot/# mount
none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
none on /dev type devtmpfs (rw,relatime,size=125224k,nr_inodes=31306,mode=755)
none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sda2 on / type ext4 (rw,noatime,user_xattr,barrier=1,data=ordered)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=25552k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=260600k)
/dev/sda1 on /boot type ext2 (ro,relatime,errors=continue)
tmpfs on /tmp type tmpfs (rw,relatime)
root@pogo:~/# 
root@pogo:~/# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system>	<mount point>	<type>	<options>		<dump>	<pass>
#/dev/root	/		ext2	noatime,errors=remount-ro 0	1
/dev/sda1	/boot		ext2	ro			0	0
/dev/sda2	/		ext4	noatime			0	1
/dev/sda3	none		swap	sw			0	0
tmpfs		/tmp		tmpfs	defaults		0	0

So I copy the stuff from /boot to /boot/boot and voilà 3.8.4 Kernel booted! I don't understand the mechanist why it's happen, but you guys are saints.

Why uBoot takes /boot/boot stuff for booting?
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 17, 2013 05:15AM
It just takes the files out of /dev/sda1 - and inside /boot/ dir.
But your boot is located on a separate partition:
Quote

/dev/sda1 on /boot
So a simple workaround to avoid these problems is to put a symbolic link named 'boot' to point to itself on this partition. Don't know why this was renamed to boot1 on your partition and there was another boot dir on it...
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
April 17, 2013 07:49AM
ok, thanks a lot!
------------------

next problem, I wanted to boot 3.2.0 stock wheezy I had in /boot

so I tried to make it like this
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.2.0-4 -d /boot/vmlinuz-3.2.0-4-kirkwood /boot/uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n Initrd-3.2.0-4 -d /boot/initrd.img-3.2.0-4-kirkwood /boot/uInitrd

netconsole output is ok, but Linux don't boot. How I can restore my last bootable kernel?
I was so euphoric so I didn't made a backup image of my system.



Edited 1 time(s). Last edit at 04/17/2013 12:52PM by bambo.
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
May 09, 2013 03:13PM
Hi,
does anybody use xfs filesystem with this kernel? I have my data on a xfs filesystem and face problems now and then that the filesystem cannot be mounted after reboot and I have to manually repair (with "-L" to wipe the journal) it. First I thought it is related to my old disks (WD10EACS, 5 years) on a GoFlex Net but after changing to a NSA320 with brand new harddisks (WD10EURX) I have the same problems.
Is there maybe another kernel version available for the NSA320 I could use and see if I still face the same errors?

HellG
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
May 10, 2013 04:00AM
You could try my 3.8.4 with NSA320 enabled:
https://www.dropbox.com/sh/ifotsfsca9kqg7q/Dda2OXWSdZ
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
May 10, 2013 12:59PM
Thank you, install in progress...
Reboot... Works!
ssh -l root nas.... Works!
uname -a: "Linux nas 3.8.4-dockstar #2 Wed Mar 27 17:10:47 CET 2013 armv5tel GNU/Linux"

So far, so good! I will see during the next days if I will have XFS errors again. Thanks again.
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
May 11, 2013 02:03AM
HellG Wrote:
-------------------------------------------------------
> Thank you, install in progress...
> Reboot... Works!
> ssh -l root nas.... Works!
> uname -a: "Linux nas 3.8.4-dockstar #2 Wed Mar 27
> 17:10:47 CET 2013 armv5tel GNU/Linux"
>
> So far, so good! I will see during the next days
> if I will have XFS errors again. Thanks again.

which uboot are you using?
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
May 11, 2013 02:16AM
I am using the uboot provided by davygravy in the first post here: http://forum.doozan.com/read.php?2,7806. Do you think the error could be uboot related?
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
May 13, 2013 09:59AM
Sven Wrote:
-------------------------------------------------------
> You could try my 3.8.4 with NSA320 enabled:
> https://www.dropbox.com/sh/ifotsfsca9kqg7q/Dda2OXW
> SdZ

Hi Sven,

thank you very much for your refreshed kernel version. Could you maybe compile a ipv6 enabled version for me? For different reasons I can run the box only in a ipv6 network and currently I can't reach the box with your kernel because you've disabled the complete ipv6 support.
Would be very happy if that would be possible!

Thx!
prodigy7
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
May 13, 2013 10:10AM
I tried to keep it as small as possible, but you're right - I could have compiled it at least with IPv6 modules...

You could do so yourself using the provided DIFF to apply the changes to the original kernel:
https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.8.4.tar.bz2

Otherwise please apply all your changes to the .config and send this, so I'll compile it for you.
If you are not familiar with all of this - do you want IPv6 modules, or included in the kernel?
Re: Linux 3.3.2 kernel for Dockstar, GoFlex and many others
May 13, 2013 10:14AM
Hi sven!

Thx for your quick response! Currently I compile a kernel with ipv6 enabled on my pogo plug (it takes a little bit time ;-) ). If so far it contains all I need, I would post the modified config file. If you could give me a quick how to, i would also generate a deb-Package!

prodigy7
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: