Re: Possible to install Debian on Seagate Business Storage 2? March 17, 2015 02:36PM |
Registered: 9 years ago Posts: 40 |
Re: Possible to install Debian on Seagate Business Storage 2? March 17, 2015 02:50PM |
Registered: 9 years ago Posts: 46 |
[....] 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? March 17, 2015 03:13PM |
Registered: 9 years ago Posts: 40 |
FATAL: Module xhci-hcd not found.
cd / tar xf ~/modules.tar.gzSince the tar has the whole tree, everything extracted perfectly in place.
lsmod Module Size Used by xhci_hcd 51895 0 usblp 10230 0 cns3xxx 63894 0 cns3xxx_pse_init 18909 1 cns3xxx
Re: Possible to install Debian on Seagate Business Storage 2? March 17, 2015 03:37PM |
Registered: 9 years ago Posts: 46 |
Re: Possible to install Debian on Seagate Business Storage 2? March 17, 2015 05:57PM |
Registered: 9 years ago Posts: 40 |
Re: Possible to install Debian on Seagate Business Storage 2? March 18, 2015 01:32PM |
Registered: 9 years ago Posts: 46 |
Re: Possible to install Debian on Seagate Business Storage 2? March 22, 2015 10:17AM |
Registered: 9 years ago Posts: 40 |
sudo mkinitramfs -o myownramfs.gzMove "myownramfs.gz" to the machine you compile your kernels for the NAS.
mkdir ramfs cd ramfs gzip -dc /home/you/myownramfs.gz | cpio -ivdNow we need to edit the file "init".
ROOT=/dev/sda2Since our initramfs has the required modules from our working root, even USB should be bootable now, but I didn't test yet.
find . | cpio -H newc -o > ../initramfs.cpioNow we have a file called initramfs.cpio on the above folder.
make ARCH=arm menuconfigIt should have load your existing configuration, else just navigate to load and load your .config.
mkdir boot1 mkdir boot2 sudo mount /dev/mmcblk0p1 boot1 sudo mount /dev/mmcblk0p2 boot2Backup the original, incase it is necessary.
mkdir stockuImage sudo mv boot1/uImage stockuImage/uImage.p1 sudo mv boot2/uImage stockuImage/uImage.p2Place your own kernel in the partitions.
sudo cp uImage boot1 sudo cp uImage boot2
tommy
Re: Possible to install Debian on Seagate Business Storage 2? April 23, 2015 03:11PM |
Re: Possible to install Debian on Seagate Business Storage 2? April 23, 2015 03:22PM |
Registered: 9 years ago Posts: 40 |
tommy
Re: Possible to install Debian on Seagate Business Storage 2? April 23, 2015 05:43PM |
Re: Possible to install Debian on Seagate Business Storage 2? April 24, 2015 02:40AM |
Registered: 9 years ago Posts: 40 |
tommy
Re: Possible to install Debian on Seagate Business Storage 2? May 08, 2015 05:32AM |
tommy
Re: Possible to install Debian on Seagate Business Storage 2? May 11, 2015 03:51PM |
Re: Possible to install Debian on Seagate Business Storage 2? May 11, 2015 04:00PM |
Registered: 9 years ago Posts: 40 |
tommy
Re: Possible to install Debian on Seagate Business Storage 2? May 11, 2015 04:39PM |
Re: Possible to install Debian on Seagate Business Storage 2? May 11, 2015 04:51PM |
Registered: 9 years ago Posts: 40 |
Re: Possible to install Debian on Seagate Business Storage 2? May 22, 2015 05:03PM |
Registered: 12 years ago Posts: 62 |
Re: Possible to install Debian on Seagate Business Storage 2? May 23, 2015 05:33PM |
Admin Registered: 13 years ago Posts: 18,580 |
Re: Possible to install Debian on Seagate Business Storage 2? May 24, 2015 04:05AM |
Registered: 12 years ago Posts: 62 |
Re: Possible to install Debian on Seagate Business Storage 2? May 24, 2015 06:25AM |
Registered: 9 years ago Posts: 40 |
Whitney # setenv stdin serial;setenv stdout serial;setenv stderr serial;setenv verify n;setenv num_boot_tries 3;setenv bootargs_console console=ttyS0,38400 mem=512m Whitney # setenv bootargs_root root=/dev/sda2 rootwait;setenv bootcmd_scsi 'scsi init;fatload scsi 0 0x800000 /uImage.orig';setenv bootdelay 15;setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root);run bootcmd_scsi;bootm' Whitney # run bootcmd Initialize SCSI AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl SATA mode flags: ncq stag pm led clo only pmp pio slum part scanning bus for devices... Supprt LBA48 addressing. Device 0: (1:0) Vendor: ATA Prod.: ST9100824AS Rev: 7.24 Type: Hard Disk Supports 48-bit addressing Capacity: 95396.2 MB = 93.1 GB (195371568 x 512) reading /uImage.orig 8685576 bytes read enter do_eth_down!!! ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-2.6.35.yama Created: 2015-05-24 11:40:10 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 8685512 Bytes = 8.3 MB Load Address: 02000000 Entry Point: 02000000 Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Li done, booting t
Re: Possible to install Debian on Seagate Business Storage 2? May 24, 2015 04:37PM |
Admin Registered: 13 years ago Posts: 18,580 |
Quote
> Image Name: Linux-2.6.35.yama
> Created: 2015-05-24 11:40:10 UTC
Quote
> Starting kernel ...
> Uncompressing Li done, booting
Re: Possible to install Debian on Seagate Business Storage 2? May 24, 2015 04:59PM |
Registered: 12 years ago Posts: 62 |
Re: Possible to install Debian on Seagate Business Storage 2? May 24, 2015 05:11PM |
Registered: 9 years ago Posts: 40 |
Quote
Have you tried booting a recent kernel, something like 3.17 or later?
There were some issues in older kernels (I have to check if all of them
are resolved). Some stuff (IIRC Ethernet and SMP) is included in
OpenWrt and can quite easily be ported to Linux.
The official Linux may be missing support for your board, but this is
probably also easy to add. Or one could deceive Linux into thinking it's
booting on different board, e.g. the CNS3xxx demo platform (you may have
to alter some config variables, like RAM size, in platform support
code). The state of support of this CPU isn't great for sure, but a mere
booting shouldn't be a problem. What I'm using here is Gateworks Laguna
and I can definitely boot it (in single core mode and without Ethernet -
the official Linux from kernel.org) only changing the ARM platform
number in $LINUX_SRC/arch/arm/tools/mach-types.
Re: Possible to install Debian on Seagate Business Storage 2? May 24, 2015 07:00PM |
Admin Registered: 13 years ago Posts: 18,580 |
Quote
Some stuff (IIRC Ethernet and SMP) is included in OpenWrt and can quite easily be ported to Linux.
Quote
Gateworks Laguna and I can definitely boot it (in single core mode and without Ethernet the official Linux from kernel.org) only changing the ARM platform number in $LINUX_SRC/arch/arm/tools/mach-types.
Re: Possible to install Debian on Seagate Business Storage 2? May 24, 2015 07:05PM |
Registered: 9 years ago Posts: 40 |
Re: Possible to install Debian on Seagate Business Storage 2? May 25, 2015 12:24AM |
Admin Registered: 13 years ago Posts: 18,580 |
Re: Possible to install Debian on Seagate Business Storage 2? May 25, 2015 02:40AM |
Admin Registered: 13 years ago Posts: 18,580 |
Re: Possible to install Debian on Seagate Business Storage 2? May 25, 2015 06:01AM |
Registered: 9 years ago Posts: 40 |
wget https://www.dropbox.com/s/9iwa5keqvbutevt/linux-image-4.0.0-cns3xxx-tld-1_0.1_armel.deb?dl=1 ar -x linux-image-4.0.0-cns3xxx-tld-1_0.1_armel.deb?dl=1 mkdir kernel-4.0 cd kernel-4.0 tar xf ../data.tar.xz mkimage -A arm -O linux -a 0x2000000 -a 0x2000000 -T kernel -C none -d boot/vmlinuz-4.0.0-cns3xxx-tld-1 -n linux uImage
Whitney # setenv stdin serial;setenv stdout serial;setenv stderr serial;setenv verify n;setenv num_boot_tries 3;setenv bootargs_console console=ttyS0,38400 Whitney # setenv bootargs_root root=/dev/sda2 rootwait;setenv bootcmd_scsi 'scsi init;fatload scsi 0 0x800000 /uImage.400';setenv bootdelay 15;setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root);run bootcmd_scsi;bootm' Whitney # run bootcmd Initialize SCSI AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl SATA mode flags: ncq stag pm led clo only pmp pio slum part set feature error! scanning bus for devices... Supprt LBA48 addressing. Device 0: (1:0) Vendor: ATA Prod.: ST9100824AS Rev: 7.24 Type: Hard Disk Supports 48-bit addressing Capacity: 95396.2 MB = 93.1 GB (195371568 x 512) reading /uImage.400 2164536 bytes read enter do_eth_down!!! ## Booting kernel from Legacy Image at 00800000 ... Image Name: linux Created: 2015-05-25 10:26:43 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2164472 Bytes = 2.1 MB Load Address: 02000000 Entry Point: 02000000 Loading Kernel Image ... OK OK Starting kernel ...
Re: Possible to install Debian on Seagate Business Storage 2? May 25, 2015 06:14AM |
Admin Registered: 13 years ago Posts: 18,580 |
Re: Possible to install Debian on Seagate Business Storage 2? May 25, 2015 07:15AM |
Registered: 9 years ago Posts: 40 |
> dpkg -i linux-image-4.0.0-cns3xxx-tld-1_0.1_armel.deb Selecting previously unselected package linux-image-4.0.0-cns3xxx-tld-1. (Reading database ... 21817 files and directories currently installed.) Preparing to unpack linux-image-4.0.0-cns3xxx-tld-1_0.1_armel.deb ... Examining /etc/kernel/preinst.d/ Done. Unpacking linux-image-4.0.0-cns3xxx-tld-1 (0.1) ... Setting up linux-image-4.0.0-cns3xxx-tld-1 (0.1) ... Hmm. There is a symbolic link /lib/modules/4.0.0-cns3xxx-tld-1/build However, I can not read it: No such file or directory Therefore, I am deleting /lib/modules/4.0.0-cns3xxx-tld-1/build Hmm. The package shipped with a symbolic link /lib/modules/4.0.0-cns3xxx-tld-1/source However, I can not read the target: No such file or directory Therefore, I am deleting /lib/modules/4.0.0-cns3xxx-tld-1/source Running depmod. Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.0.0-cns3xxx-tld-1 /boot/vmlinuz-4.0.0-cns3xxx-tld-1 run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.0.0-cns3xxx-tld-1 /boot/vmlinuz-4.0.0-cns3xxx-tld-1 update-initramfs: Generating /boot/initrd.img-4.0.0-cns3xxx-tld-1 run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 4.0.0-cns3xxx-tld-1 /boot/vmlinuz-4.0.0-cns3xxx-tld-1 > mkimage -A arm -O linux -a 0x2000000 -a 0x2000000 -T kernel -C none -d /boot/vmlinuz-4.0.0-cns3xxx-tld-1 -n linux uImage Image Name: linux Created: Mon May 25 04:57:06 2015 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2164472 Bytes = 2113.74 kB = 2.06 MB Load Address: 02000000 Entry Point: 02000000 >mkinitramfs -o /initramfs.gz
Whitney # setenv stdin serial;setenv stdout serial;setenv stderr serial;setenv verify n;setenv num_boot_tries 3;setenv bootargs_console console=ttyS0,38400 Whitney # setenv bootargs_root root=/dev/sda2 rootwait;setenv bootcmd_scsi 'scsi init;fatload scsi 0 0x800000 /uImage.400';setenv bootdelay 15;setenv bootcmd 'setenv bootargs initrd=initramfs.gz $(bootargs_console) $(bootargs_root);run bootcmd_scsi;bootm' Whitney # run bootcmd