Quantcast
Channel: Debian on Shuttle KD20 (PLX OXNAS 7821)
Viewing all 141 articles
Browse latest View live

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
Anybody solved problem with USB 3.0 and Cardreader?

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
@Peacemaker
Can you reupload uImage3.18_2 file or newer?

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
Okay, USB 3.0 and Cardreader is still buggy, so I left it out of the Kernel.

uImage3.18.1_7 the 3.18.1_7 is my current Kernel

One other think is that the samba performace is quite bad, even with some tweaks:

read ~30mb/s
write ~22-25mb/s

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
Samba even in original kd20 (firm.2.38) is not fast. I use vsftpd to get files from KD20 and have 70-75MB/sek while on samba only 35 (raid1).

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
@Peacemaker
Can you explain how to make installation - step by step? Is the console conection is require - how to dismantle this device?

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
@Kluch: Okay I thought you can reach ~40mb/s wright and 80mb/s read. with the original FW

Sure, I can do that the next days step by step.

But for now:

For dismantle the device you can thank Crosser for his pictures:
Dissemble KD20
With them you can easy open up the device.

For Installation there are 2 ways :-):

1. (what I did): You access vendors U-Boot via UART and configure it and go from there via TFTP

2. You boot Uboot direct from SATA1:
+ The advantage there is you can leave the nand and the case totaly untouched. and boot up everything via sata or usb (later maybe sd), and you don't need an TFTP
- The disadvantage: You need a special Uboot for this, and I've not compiled the right Uboot yet, so no: netconsole and no access to any storage so far.


On the USB 3.0 front:
USB 3.0 and Cardreader are both connected to a Etron EJ168A chip. And there are a few bugs reported for this chip, but I have to look into the reports.

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
@Peacemaker
If I choose first solution. How can i back to original firmware ?

This two files uImage3.18.1_7 and Initrd_w i should pun on disk with witch file system?

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
If you "hacked" into your device you can just backup the nand with dd, if not you can do this from debian or from just ask me for my nand backup :-)

Befor you start:
+Connect to the UART and see if you can access vedors uboot
+Make bootdisk (sata or usb) a rootfs partition (ext2 o. ext3) and extract my wheezy_rootfs or bodhi's oxnas rootfs (both will work)
Rrecommended:
+ Prepare a TFTP server with uImage (Kernel), Initrd_w, and rootfs
+ Make familiar with uboot commands

Process to debian:
1 Boot into vendors Uboot and interrupt the boot via UART

(1.5 Backup the bootargs (simply printenv -> copy&past to file) or it's backup within the nand)

2. Change the bootargs:
[code="setenv bootargs root=/dev/sdb1 console=ttyS0,115200 mem=256M poweroutage=yes"]
[/code]

To make this permanet:
saveenv

Here your rootfs is sdb1, a better why here would be use labels or uuid but I had sometimes problems with that. But the sdx are not given strait forward, so just have a try.
It makes no difference if it is usb or sata here.

3. Load your uImage and Initrd, maybe you can load these files form sata(ext2) via ext2load but I never tried.
Here for tftp:
If your tftp ip is given by dhcp, you can skip 3.1

3.1 Set up IP's:
 setenv ipaddr *IP of KD20* ;setenv gatewayip *router ip*;setenv serverip *tftp-server ip*;setenv ethaddr 00:25:b1:ff:ff:00

3.2 Load files:

tftp 64000000 uImage3.18.1_7; tftp 60500000 uInitrd_w;

4. Boot it:
bootm 60500000 64000000

Now you Debian should boot up.

If it you get a Kernel Panic and it cant find rootfs, go back to step 2 and change rootfs location


For now you have not touched the nand (besides the bootargs)

I you like to write the kernel & initrd to nand you ca do this via:

Initrd

tftp 64000000 uInitrd_w
nand erase 240000 600000
nand write 64000000 240000 600000

kernel

tftp 64000000 uImage3.18.1_7
nand erase 840000 7C0000
nand write 6400000 840000 7C0000

If more questions rise feel free to ask, but ask google as well :-)

Just try few things out, even If you erased the nand complet you can bring things back via sataboot

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
Peacemaker,

> If you "hacked" into your device you can just
> backup the nand with dd, if not you can do this
> from debian or from just ask me for my nand backup
> :-)

Shouldn't backup NAND with dd, always use nanddump (safer).

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
On the mainboard of Omninas i do not have any pin to connect uart cable(console).
Do I have to solder this pins for console ?

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
Where are the screws? I found only two near hinges..

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
Look at the pictures from crosser @ Google+ i linked it.

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
Hi Guys,

Very nice work.
I look forward hacking my K20.
But I would like to do it would out soldering.
Is there a way I just replace the system partition?

If no choice I would like to find a more detailed step by step (instructibles for example) on how to replace the Uboot.

But again, very nice work!
:D
Grt DeDenker

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
Hey,
@DeDenker:
You don't have to replace the uboot. I work with stock Uboot.
But you need a way to access it, and there for a serial connection via UART is simply the best. The soldering is not a too hard task and by the way there are "ways" to do such a connection without soldering. Just a thought here: https://hackingecibfocusv2fubirevb.wordpress.com/2012/08/13/a-solder-free-uart-connection/

You might can go without UART, if you have ssh access to the vendors system you can change uboot settings form vendors linux system.
BUT: If something in the uboot is not right configured you need the serial connection, to fix this.

@all
I opend the KD20 month ago, and have not colsed it again. So I can't remember every step, but I used crossers pictures to see a way to open it, and it was not too hard.

As I see you have some issues with opening and uart I try to get a full SATA boot (uboot, kernel, uimage, rootfs from disk), and set the usb3.0 / cardreader issue back.

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
:)) cool HW hack with the clothes pin.

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
Tftp generate a lot of problems..
How to upload uImage3.18.1_7, uInitrd_w from e.g. usb memory?

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
I uploaded everything via tftp and it is working most of the time quote good.
What kind of error do you get? Maybe wie can fix.

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
It's look like:
Shuttle>> setenv gatewayip 192.168.1.1;
Shuttle> tftp 64000000 uImage3.18.1_7; tftp 60500000 uInitrd_w;
Wait GMAC to reset
Wait for PHY reset
PHY is IC+ IP1001LF
Wait for link to come up..........Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 213.xx.xx.xx; our IP address is 192.168.1.20; sending through gateway 192.168.1.1
Filename 'uImage3.18.1_7'.
Load address: 0x64000000
Loading: *
ARP Resend request
T invalid RARP header
####T T ########T #T T #T #T ###T T ##T T ###T #######T T #T #T #T #T ######T T #T ###T ##T #T ##T T T T ###T #T #T T ##T #T T T T ##T #T T T T #T #T T #T T ##T T #T T T T T #
         #T T T T ###T
Retry count exceeded; starting again
TFTP from server 213.xx.xx.xx; our IP address is 192.168.1.20; sending through gateway 192.168.1.1
Filename 'uImage3.18.1_7'.
Load address: 0x64000000
Loading: ##T T #T T ##T ##T T #T T #

Re: Debian on Shuttle KD20 (PLX OXNAS 7821)

$
0
0
Okay, load things from usb will not work, from sata you can load data.

These errors comes most of the time from bad network settings.

As your server has really the IP 213.x.x.x, this might not to be right.
The tftp server should be in the same network so 192.168.1.x so check your tftp server settings, and the dhcp server.
May be its easyer to set the ip static :-)
Viewing all 141 articles
Browse latest View live


Latest Images