Quantcast
Channel: Possible to install Debian on Seagate Business Storage 2?
Viewing all 114 articles
Browse latest View live

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
Hi, I am planning to buy the Business Storage 2-Bay NAS cause I would get it for 160€, which is very cheap.
But the firmware seems unusable depending on most ratings on Amazon.

You guys got Debian Wheezy running on it and I guess failed at something else?

I couldn't really understand what works and what not and want a Step-By-Step HowTo for running Debian and/or Arch Linux on the Seagate Business Storage 2-Bay NAS.

Couldn't find anything on the net, except this thread to use a alternative OS.

Sincerely

Yama

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
Can anyone tell me, which linux kernel modules/drivers i need for get USB working on this cns3xxx device?

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
I would like to find out that, too.
.. After I got some information from you, or either the kernel you are using, since I was not able to boot a kernel except the stock one... >_<

So mind giving the kernel you are using and some information for me, please?

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
Hi,
here is the kernel source I use https://kimowe.de/owncloud/index.php/s/4LKjmPrbFSw9xEJ

And some helpfull commands:
make uImage -j8 uImage LOADADDR=0x2000000
make -j8 modules

sudo make modules_install INSTALL_MOD_PATH=/media/ROOTFS

sudo cp ./arch/arm/boot/uImage /media/ROOTFS/boot/

Maybe youd can help me :-)

Thanks!

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
Thanks, I'll look into it.
Btw, I pm'd you one or two month's ago :P

//Edit
Damn, can't build a toolchain for this. Compiling the old gcc fails with missing modules of gcc and glibc++.

Could you give me a uImage, till I am able to compile one myself?

Re: Possible to install Debian on Seagate Business Storage 2?

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
I am glad, that you linked the modules.
I was really able to boot debian for the first time :D

Extract your modules.tar.gz directly in root and put this in /etc/modules:

cns3xxx
cns3xxx_pse_init
usblp
xhci-hcd

First two lines are for the network, like minimi told us on mydealz.
I just looked around in the modules.tar.gz and saw the usb folder in it and just added both modules in it in this file and it works :)
My idea is to load the uImage from a Raspberry Pi via tftp and then use a USB dongle as rootfs.
That would require the USB drivers compiled in kernel. But I am still unable to compile.
Maybe I should now try to compile on the device itself.

On kirkwood 3.17 after sshd is started, I got cryptic symbols on serial and network wasn't working anymore (whole system crashed I guess).
On the latest 3.18 I still get the cryptic symbols, which makes serial unusable, but network works and I can ssh to it.

Did you manage to boot automatically to debian instead stock OS?

I would like to use arch linux on it, but the kernel is just too damn old for it. :(

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
@Yama,

On the latest 3.18 I still get the cryptic symbols, which makes serial unusable, but network works and I can ssh to it.

Which 3.18 version? And these weird chars might just be the box's serial baud rate/parity/... parameters are different than we expected.

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
Debian-3.18.5-kirkwood-tld-1-rootfs-bodhi.tar.bz2 Jessie

The unexpected parameters are?
I tried several baurates, but no luck.

//Edit
Not working network seems to be not-always-working dhcp, like blackdevil mentioned on mydealz.
I needed to enable T0 with 38400 in /etc/inittab. Now it works on serial :D

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
Hi,

great progress Yama :-)

I use the same uImage and modules like Yama. I added the 2 usb lines to the /etc/modules, but no USB device gets recognized.

Any idea?

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
Hm, not really.

If you have extracted your modules.tar.gz in root, the needed modules should be under /lib/modules/2.6blah.blah.blah/

You wanted to try to compile a newer kernel. Did you tried it directly on the NAS?
Yeah, I know, will take ages, but easier than making a toolchain.
I am currently compiling 3.19 with, hopfully, the network and USB drivers for Cavium inbuilt.

Did you manage to boot automatically to debian instead stock OS?

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
The modules are in the right path and are (maybe?) loaded, but no device is found.


The newer Kernel will not work because there are many sata patches. I havent tried to compile it on the device. I have a working toolchain, so there is no reason to do this.

I am not able to boot automatically to debian. The uboot env variable is not written to flash/eeprom/whatever.

Here are some logs:

[....] Starting the hotplug events dispatcher: udevd[   25.730000] <30>udevd[579]: starting version 175
. ok 
[....] Synthesizing the initial hotplug events...[   26.140000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   26.150000] 
[   26.150000]  drivers/usb/host/ehci-cns3xxx.c cns3xxx_ehci_probe 
[   26.160000] cns3xxx-ehci cns3xxx-ehci.0: CNS3XXX EHCI Host Controller
[   26.170000] cns3xxx-ehci cns3xxx-ehci.0: new USB bus registered, assigned bus number 1
[   26.180000] 
[   26.180000]  drivers/usb/host/ehci-cns3xxx.c cns3xxx_ehci_init 
[   26.190000] cns3xxx_ehci_init,***Threshold OUT=0x60,IN=0x60 ***
[   26.440000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   26.750000] cns3xxx-ehci cns3xxx-ehci.0: irq 64, io mem 0x82000000
[   26.850000] cns3xxx-ehci cns3xxx-ehci.0: USB 0.0 started, EHCI 1.00
[   26.860000] hub 1-0:1.0: USB hub found
[   26.880000] hub 1-0:1.0: 1 port detected
[   26.890000] cns3xxx-ohci cns3xxx-ohci.0: CNS3XXX OHCI Host controller
[   26.900000] cns3xxx-ohci cns3xxx-ohci.0: new USB bus registered, assigned bus number 2
[   26.910000] cns3xxx-ohci cns3xxx-ohci.0: irq 91, io mem 0x88000000
[   26.980000] hub 2-0:1.0: USB hub found
[   26.990000] hub 2-0:1.0: 1 port detected
done.
[....] Waiting for /dev to be fully populated...[   27.260000] Unable to handle kernel paging request at virtual address 00080800
[   27.270000] pgd = bf40c000
[   27.280000] [00080800] *pgd=3f3d9031, *pte=00000000, *ppte=00000000
[   27.300000] Internal error: Oops: 17 [#1]
[   27.300000] last sysfs file: /sys/bus/platform/drivers/cns3xxx-ehci/uevent
[   27.300000] Modules linked in: ohci_hcd ehci_hcd
[   27.300000] CPU: 0    Tainted: G        W    (2.6.35.13-cavm1.whitney-econa #28)
[   27.300000] PC is at sys_recvfile+0x30/0x23c
[   27.300000] LR is at ret_fast_syscall+0x0/0x30
[   27.300000] pc : [<a00cc818>]    lr : [<a002aea0>]    psr: 80000013
[   27.300000] sp : bf419f48  ip : bf419fa8  fp : bf419fa4
[   27.300000] r10: a0671774  r9 : 00000003  r8 : 00000000
[   27.300000] r7 : 00000000  r6 : 00080800  r5 : 00000003  r4 : 00000000
[   27.300000] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 00000003
[   27.300000] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   27.300000] Control: 00c5787d  Table: 3f40c00a  DAC: 00000015
[   27.300000] Process udevd (pid: 579, stack limit = 0xbf418268)
[   27.300000] Stack: (0xbf419f48 to 0xbf41a000)
[   27.300000] 9f40:                   00000000 bf419f58 bf419f74 bf419f60 a005f12c a005f0f4
[   27.300000] 9f60: bf20e1e0 bf418000 bf419fac bf419f78 a0472f8c a003ee1c 58d29700 00000000
[   27.300000] 9f80: 00000003 00000000 0000016e a002b044 bf418000 00000000 00000000 bf419fa8
[   27.300000] 9fa0: a002aea0 a00cc7f4 00000000 00000003 00000003 00000000 00000000 00080800
[   27.300000] 9fc0: 00000000 00000003 00000000 0000016e 00080800 00000022 00000000 00032008
[   27.300000] 9fe0: 3571c000 9ede4dd8 000175f0 356b819c 60000010 00000003 00000000 00000000
[   27.300000] [<a00cc818>] (sys_recvfile+0x30/0x23c) from [<a002aea0>] (ret_fast_syscall+0x0/0x30)
[   27.300000] Code: e1a08001 e3530009 e1a07002 ca000009 (e1c640d0) 
[   27.310000] ---[ end trace 1b75b31a2719ed1e ]---
done.
[....] Setting parameters of disc:
/dev/sda:
 setting standby to 241 (30 minutes)
[ ok v/sda.
[ ok e).
[....] Checking root file system...fsck from util-linux 2.20.1
ROOTFS: clean, 28388/671744 files, 1389151/2686208 blocks
done.
[   31.450000] EXT3-fs (sda1): using internal journal
[ ok ] Cleaning up temporary files... /tmp /lib/init/rw.
.info] Loading kernel module cns3xxx
 not found.le cns3xxx
.info] Loading kernel module cns3xxx_pse_init
 not found.le cns3xxx_pse_init
.info] Loading kernel module ehci-hcd
 not found.le ehci-hcd
.info] Loading kernel module ohci-hcd
 not found.le ohci-hcd
[info] Loading kernel module xhci-hcd.
FATAL: Module xhci-hcd not found.
.info] Loading kernel module usblp
 not found.le usblp

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
FATAL: Module xhci-hcd not found.

Seems, that it can't find your module.
I would check again, if everything is in /lib/modules/
I only did:
cd / 
tar xf ~/modules.tar.gz
Since the tar has the whole tree, everything extracted perfectly in place.

What does lsmod show?
Mine (I don't have any USB devices attached currently):
lsmod
Module                  Size  Used by
xhci_hcd               51895  0
usblp                  10230  0
cns3xxx                63894  0
cns3xxx_pse_init       18909  1 cns3xxx

I hope you will be able to compile the kernel with the network and USB drivers and share it with me :D
So we can use a USB dongle as root, instead ugly and energy consuming 2.5" HDD in the front XD
(I don't want an OS on my data Harddisks and they should also idle^^)

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
The xhci_hcd was not found, because I disabled it for testing purposes, but it is in the /etc/modules file. The ehci and ohci modul has been loaded and are shown after lsmod.

Any other idea?

I like the 2.5" hdd in front, in needs less power than an usb dongle. I assume abount 0.5W. And it is nearly without any noise.

edit: yama, you got my pm?

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
Don't know why the module shouldn't work for you :/

OK, so we are stuck at kernel 2.6 and we must be afraid on every update I guess, that someday debian isn't support it.
We would need to compile the USB drivers to the kernel in order to be able to use USB dongle as rootfs.
And, the worst, we need to set the uboot variable on every damn boot....

You said earlier, that dhcp isn't always working. You fixed it?

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
Yama, i think you are right.

And i didnt get the ethernet bugs fixed. I think it is not a dhcp bug, because the network device didnt get up successfully and than the dhcp fails.

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
Finally, I compiled a kernel and made a initramfs for it.
Now the "root"-parameter is being replaced in the init-script in the initramfs.

So I am now able to boot directly to the partition I want to, instead of stock OS without interrupting uboot.

This creates a initramfs on the NAS, which can be used for a kernel, either as parameter or inbuilt.
Since we can't give parameters for autoboot, we will compile it in the kernel.
sudo mkinitramfs -o myownramfs.gz
Move "myownramfs.gz" to the machine you compile your kernels for the NAS.
Now we extract it.
mkdir ramfs
cd ramfs
gzip -dc /home/you/myownramfs.gz | cpio -ivd
Now we need to edit the file "init".
An if start with a comment on line 74, the command is "# Parse command line options".
On line 182 the if ends. Now do a new line (line 183) and type this in (of course, put your device and partition in it):
ROOT=/dev/sda2
Since our initramfs has the required modules from our working root, even USB should be bootable now, but I didn't test yet.

Only this modification is required, now we make a cpio archive of the files.
find . | cpio -H newc -o > ../initramfs.cpio
Now we have a file called initramfs.cpio on the above folder.
You can now copy this file to the root of the kernel-directory and run:
make ARCH=arm menuconfig
It should have load your existing configuration, else just navigate to load and load your .config.
Now go to "General Setup" (First entry) and navigate to "Initial RAM filesystem and RAM disk (initramfs/initrd) support".
Activate it with "y", move one down and press enter.
Enter the filename of your cpio archive. We named it "initramfs.cpio".
Press enter, go back and navigate to "Save an Alternate Configuration File" and just press enter, since the standard is ".config".

Now compile your kernel.

You should now have a new uImage. Move it to your NAS.
Mount the flash drive-partitions with the original uImage.
mkdir boot1
mkdir boot2
sudo mount /dev/mmcblk0p1 boot1
sudo mount /dev/mmcblk0p2 boot2
Backup the original, incase it is necessary.
mkdir stockuImage
sudo mv boot1/uImage stockuImage/uImage.p1
sudo mv boot2/uImage stockuImage/uImage.p2
Place your own kernel in the partitions.
sudo cp uImage boot1
sudo cp uImage boot2

Now you are done. Next time you dont need to interrupt uboot and pass new parameters and variables.
Uboot boots our kernel and our kernel doesn't uses the given "root"-parameter. Only the root-partition in the init-script is used.
Thats, btw, the reason why I currently don't provide prebuilt uImages, since the device and partition depends on your config and on the devices you have attached.

If you have only one HDD, it's of course sda. If you have all three sATA-ports full and your system is on the above 2.5" slot, it will be sdc.

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
First of all, congrats to the posters in this thread for their findings on how to get Debian on the Seagate NAS! I have a proposal for you, guys - could anyone of you prepare and post a step-by-step guide on the firmware change? I am pretty sure there are many others users, including myself, who would like to do it However, after studying the thread and links, although I think I could manage to change the firmware, I am still concerned I could screw something up. With a step-by-step solution it would definitely be a lot easier...

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
I don't know what you mean with "changing" the firmware.
You know which parameters to use on uboot to boot a kernel which is located on a harddrive and you have a step-by-step HowTo replace the original kernel in my last post.



Well, other things: People seem to be able to boot a kernel with the version 3.x on CNS boards, without network support and only in singlecore mode. But still I am not aware how to and I don't want to use it on singlecore mode...

And as I mentioned earlier, the current, shared kernel on this forum runs only on one core, too.
I also noticed, that the sources of Seagate Central were being used to compile it, not the original of our device.
I tried to compile it, but had some difficulties.

I am still on it to get something good to run on the NAS.

Re: Possible to install Debian on Seagate Business Storage 2?

$
0
0
"Replace the firmware" - I mean to get rid of the current proprietary version of linux, install Debian instead and do the necessary changes to get the NAS to boot into it (automatically)

Suppose I start with a clean hdd and the NAS with stock firmware. Could you please enumerate and very briefly describe the steps to finish with the Debian box automatically booting into it?
Viewing all 114 articles
Browse latest View live