Install Debian & ArchLinuxARM on Iomega HMNHDCE

olderzeus
Posts: 20
Joined: Sun Aug 26, 2012 11:11 am

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by olderzeus » Thu Feb 07, 2013 1:44 am

deanodley wrote:@olderzeus - once debian.tgz is installed on the hmnhd-ce, is there an easy way to upgrade to Debian wheezy/testing?
I think the kernel must be upgraded first or there will be problems with udev.
I assume the new kernel must be written directly to the disk rather than using apt/aptitude?
Any suggestions? Thanks.
You can upgrade some package to debian wheezy or sid , only to modify the sourcelist of apt.
If you want to upgrade udev, hmnhd-ce will brick(I have experienced) because kernel version is too older and no new can use.

My Kernel is fork from Stefan at https://github.com/seidler2547/kernel-oxnas820
I found a newer kernel in github, but it's need modify to hmnhd-ce: https://github.com/WarheadsSE/OX820-3.1-Linux

juri
Posts: 3
Joined: Wed Feb 13, 2013 5:48 am

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by juri » Wed Feb 13, 2013 5:53 am

hi,
first you've done a great job.

I recently installed Debian to the original disk (destroyed the original partitions first) by plugging the internal disk to another computer (via a USB adapter). Installation worked quite well, and the system is running, but I'm curios about the performance.
With the original firmware I got read performance of about 40-50 MBytes/sec (via SMB), now it's about 15! (tried via NFS).

do you have any ideas what the root cause is?

additionally, during installation I've seen the output that the partition is not perfectly aligned.

juri
Posts: 3
Joined: Wed Feb 13, 2013 5:48 am

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by juri » Thu Feb 14, 2013 5:49 am

as I've read in another thread here, I did some local filesystem tests which also showed that bad performance. for that reason I've switched to ext2 for my data-partition. IO performance is much better (not as fast as with the original firmware, but hopefully more stable)

jaimealm
Posts: 21
Joined: Tue Jun 22, 2010 3:08 pm

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by jaimealm » Tue Feb 19, 2013 9:44 am

Hi.
olderzeus, you said it's possible to boot up from usb. can you explain how to do this?.
Every time I broke my debian installation(so far many times), i have to open my hmnhd-ce to connect my hard drive to my computer, and maybe if i was able to boot from usb i can repair it withouth open it.

olderzeus
Posts: 20
Joined: Sun Aug 26, 2012 11:11 am

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by olderzeus » Wed Feb 20, 2013 1:38 am

jaimealm wrote:Hi.
olderzeus, you said it's possible to boot up from usb. can you explain how to do this?.
Every time I broke my debian installation(so far many times), i have to open my hmnhd-ce to connect my hard drive to my computer, and maybe if i was able to boot from usb i can repair it withouth open it.
At first, boot up from usb only means boot from a usb rootfs, but the first stage & kernel & initrd be must on inner HDD.
Create a usb boot device, you can do follow steps:

1.create a first part on usb storage device and format as ext2 or ext3 filesystem.
2.mount this part on a linux system and extract my rootfs (debian or arch) file to this mount point.
3.create a file named "boot.from.here" on root directory of this mount point.

done

seidler2547
Posts: 110
Joined: Fri Jul 13, 2012 8:12 am

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by seidler2547 » Wed Feb 20, 2013 6:31 am

jaimealm wrote:Hi.
olderzeus, you said it's possible to boot up from usb. can you explain how to do this?.
Every time I broke my debian installation(so far many times), i have to open my hmnhd-ce to connect my hard drive to my computer, and maybe if i was able to boot from usb i can repair it withouth open it.
Or viewtopic.php?p=28065#p28065 if you're using mine or if olderzeus has included the usb_recovery too.

Stefan

juri
Posts: 3
Joined: Wed Feb 13, 2013 5:48 am

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by juri » Tue Mar 05, 2013 5:51 am

I've installed minidlna from debian wheezy but it crashes with SIGSEGV. I've tried to build it by myself with debug information, but neither running it with gdb gives me a backtrace, nor do I get a core dump when I enable them by

Code: Select all

ulimit -c unlimited
.

Does anyone have a idea how to find the reason for the problem.

garotinho
Posts: 1
Joined: Thu Mar 21, 2013 2:20 pm

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by garotinho » Thu Mar 21, 2013 2:37 pm

Hi Guys,
I trying install Debian in my HMNHDCE and I am having problems when I executes command:

Code: Select all

tar -C /tmp/usb -zxf Debian.tgz
The system is returning error:

Code: Select all

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
Anybody, can help me, please?

I try execute:

Code: Select all

tar -C /tmp/usb -zx Debian.tgz
But, the command is running for more than 12 hours and did not record anything on USB.

I'm using olderzeus tutorial's and files available in https://github.com/olderzeus/Iomega-HMNHDCE.

Mijzelf
Posts: 6251
Joined: Mon Jun 16, 2008 10:45 am

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by Mijzelf » Thu Mar 21, 2013 2:59 pm

garotinho wrote:

Code: Select all

tar -C /tmp/usb -zxf Debian.tgz
I try execute:

Code: Select all

tar -C /tmp/usb -zx Debian.tgz
You didn't give the 'f' flag, so tar is trying to extract stdin.

natenjo
Posts: 3
Joined: Sat Apr 27, 2013 11:26 am

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by natenjo » Sat Apr 27, 2013 11:28 am

Hello,

thaks for the tutorial, it workd great!

The only Problem that I am having is that the samba experiance is quite slow (10,9 MB/s on a gigabit lan, I used to have over 30 with the original firmware)

Is there anything I can do to get back the old speed?

edit:// I tried to set it to spindown my HDD with hdparm. I use the command "hdparm -y /dev/sda
". The Drive spins down, but it spind right back up after a Second .. Not accessing any files on the NAS

walalm
Posts: 4
Joined: Sun Feb 02, 2014 3:22 pm

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by walalm » Wed Feb 05, 2014 2:48 am

Hey olderzeus, Thank you.

I saw in the download folder a kernel 3.12.6 (http://downloads.iomega.nas-central.org ... %20wheezy/), it works? can I use it?

wandb
Posts: 1
Joined: Wed Apr 09, 2014 8:12 am

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by wandb » Wed Apr 09, 2014 8:25 am

I've tried to make automatic synchronization of my Kindle with the directory on nas with debian.

Kindle discovers /dev/sdb, but /dev/sdb1 apperears only after e.g. entering and quitting parted. I've tried to install autofs to automatically mount Kindle fs, but there's autofs4 module missing.

Is it possible to kompile this module? Where should I look for advice?

PS
Thanks for great system and tutorial.

Kuba

Jockel
Posts: 5
Joined: Fri May 23, 2014 4:35 am

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by Jockel » Fri May 23, 2014 5:01 am

Hello!

I have a new drive (WD40EZRX) with a 4kB sector size and what to install a debian on it.
Therefore I have the same challenge as tyux2.
tyux2: Did you managed it with the 4kB-sector size drive?

I changes the scripts as following:

Code: Select all

#!/bin/sh

if [ "$1-" = "-" ]; then
	echo "You must choose a device!"
	exit 1
elif [ -e $1 ]; then
	echo "Fill zero data to $1 first 32M"
	dd if=/dev/zero of=$1 bs=1M count=32
	echo "Made GPT part table"
	parted $1 mklabel gpt
	echo "Create first part from 32M sizeof 20G"
	parted $1 mkpart primary 33554432B 8623489023B
	wait
	echo "Waitting for format ${1}1"
	sleep 5
	echo "Formatting ${1}1"
	mkfs.ext3 "${1}1"
	exit 0
else
	echo "$1 not exists"
	exit 1
fi

Code: Select all

parted /dev/sdX mkpart primary 8623489024B 100%
mkfs.ext3 /dev/sdX2

Code: Select all

#!/bin/sh

if [ "$1-" = "-" ]; then
	echo "You must choose a device!"
	exit 1
elif [ -e $1 ]; then
	dd if=bootrom.warpped of=$1 bs=512 ibs=512 obs=512
	dd if=stage1.wrapped of=$1 seek=34b bs=512 ibs=512 obs=512
	dd if=u-boot.sd.wrapped of=$1 seek=154b bs=512 ibs=512 obs=512
	dd if=u-boot.sd.env of=$1 seek=558b bs=512 ibs=512 obs=512
	dd if=uImage.wrapped of=$1 seek=1290b bs=512 ibs=512 obs=512
	dd if=initrd.wrapped of=$1 seek=16674b bs=512 ibs=512 obs=512
	dd if=serial.warpped of=$1 seek=57080b bs=512 ibs=512 obs=512
	dd if=stage1.wrapped of=$1 seek=57088b bs=512 ibs=512 obs=512
	dd if=u-boot.sd.wrapped of=$1 seek=57208b bs=512 ibs=512 obs=512
	dd if=uImage.wrapped of=$1 seek=58344b bs=512 ibs=512 obs=512
	sync
	exit 0
else
	echo "$1 not exists"
	exit 1
fi
I untared the Debian.tgz as common. Put the internal drive in the HMNHDCE and power it on.

The device did not get an IP, thus I can not ssh to it.
The red warning LED is ON. What does it mean?

What I did not understand: Where the u-boot.sd.wrapped is written on the drive?
"seek=154b" means, that it starts at 154*512=78848.
And there is a 4kB-Sektor on the disk, which starts at 77824 and ends at 81920.
I guess, the seek-value have to be a multiple of 4kB.

But in which way the files *.wraped can be aligned on the 4kB-drive?

Jockel

Jockel
Posts: 5
Joined: Fri May 23, 2014 4:35 am

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by Jockel » Wed May 28, 2014 2:16 pm

Hi!

Because nobody stepped in, I tried to get the drive working with 512B-logical-sector-block-size.

Following results for drive WD40EZRX:

1. USB3.0-SATA-controller from WD My Book 4TB: 4kB logical sector block size, 4kB physical sector block size
2. USB2.0-SATA-controller from Logilink QP0002: 512B logical sector block size, 512B physical sector block size, limitation to 1,8TB :-( !!!
3. PC with SATA-Controller: 512B logical sector block size, 4kB physical sector block size

Last version worked with current files from olderzeus for Debian-wheezy.

Now I hope, it was the "best" operation system for my HMNHDCE.....

It is the newest one and with most ability and a lot of packages.
But performance and stability????

We will see in the future ;-)

Another question: Can the SATA-controller of HMNHDCE work with a drive with 4kB logical block size??? Does it depend on the hardware SATA-controller, on the driver of the SATA-controller or on the kernel-oxnas820???

Jockel

Mijzelf
Posts: 6251
Joined: Mon Jun 16, 2008 10:45 am

Re: Install Debian & ArchLinuxARM on Iomega HMNHDCE

Post by Mijzelf » Wed May 28, 2014 7:22 pm

Another question: Can the SATA-controller of HMNHDCE work with a drive with 4kB logical block size??? Does it depend on the hardware SATA-controller, on the driver of the SATA-controller or on the kernel-oxnas820???
I *think* the SATA controller won't have a problem with it, and nor will the kernel. But I wouldn't be surprised if the first stage bootloader (embedded in the SoC) cannot handle it. So you could have a hard time to get the system booted.

Post Reply