Welcome! Log In Create A New Profile

Advanced

Debian on Shuttle KD20 (PLX OXNAS 7821)

Posted by Peacemaker 
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
April 30, 2015 01:00PM
Hey,

First, I some how have stopped (maybe stalled) to look deeper into the KD20 as I have at the moment not the time and efford to do so (and have a good working debian NAS RN102)

@Fritsbenik
So one thing is you might clean up your /etc/modules as they are integrated in the Kernel already. The LED's are not programmed jet, but I think it can be easly done if you modify the LED script from bodhi or write your own bash script.
You can control the LED's as I rembere from the /sys/class/....

Maybe if I can find a free minute (more an hour or 2) to compile the 4.0 Kernel for the KD20 as there is something changed for usb 3.0 and maybe magicly cardreader and usb 3.0 is working.
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
May 05, 2015 01:20AM
@Peacemaker
Is it possible for you to upload the sources. The one in your dropbox is for a older kernel.

I didn't have time to look at the LED classes yet.
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
April 07, 2016 12:39PM
Regarding serial, anyone care to share the pin layout of CON5, need to find the RX/TX and the gitorious
link is down.

Thanks,

Xander
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
April 07, 2016 10:44PM
1. RX normally has pull up/down resistor.
2. TX will have signal out during booting.

-syong
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
April 08, 2016 02:15PM
Odd, I need RX and TX to be both connected to get serial messages,
so I see booting but I am unable to interrupt u-boot or login from the console.

minicom settings are 115200 baud 8N1 identical behaviour on both PL2303 and
CH340G, unable to get anything across the line, both OSX and linux.

Any ideas?
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
April 08, 2016 02:19PM
Do you have connected gnd AS well? I can make tomorrow a pic of the layout
-Carl
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
April 08, 2016 02:31PM
xander Wrote:
-------------------------------------------------------
> Odd, I need RX and TX to be both connected to get
> serial messages,
> so I see booting but I am unable to interrupt
> u-boot or login from the console.
>
> minicom settings are 115200 baud 8N1 identical
> behaviour on both PL2303 and
> CH340G, unable to get anything across the line,
> both OSX and linux.
>
> Any ideas?

When in doubt, use another tool: picocom.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
April 09, 2016 05:52AM
must be connection, I'll make a more permanent one and try again
@Carl if you can make a layout thanks, I pretty much guessed RX/TX to be pin 2,3



Edited 1 time(s). Last edit at 04/09/2016 07:13AM by xander.
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
April 27, 2016 09:06AM
oki, just works now, indeed a connection issue, pins are middle three of con5.
use with Zterm and pl2303 driver

@bodhi; also used a trial of serial for macosx (https://www.decisivetactics.com/products/serial/),
this app does not require (signed) kext's but bundles drivers in the app, works nicely, costs $$
drMacFaulty
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
September 19, 2016 04:53AM
Hi there,

Was there, by chance, any progress on this? I would LOVE to abandon the builtin O/S for Debian :) Did somebody got the LEDs, USB 3.0 and card reader already working?

Hope to hear from someone :)

Cheers,
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
September 19, 2016 05:03AM
Hey MacFaulty,
I more or less quit to work on the KD20, as the performace is not as good as expectet.

LED's are working, and controlable, but someone has to write a script or so for it.

USB 3.0 , and Cardreader are not working so far as I know: USB device's are showing up, but you can not read them.


So, if you can work without usb3.0, cardreader and filetransfers max ~30 mb/s.

Go ahead.



Edited 1 time(s). Last edit at 09/19/2016 07:24AM by Peacemaker.
drMacFaulty
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
September 19, 2016 07:00AM
Hi Peacemaker,

Thank you for your response, really appreciated!

Well, the main reason is that in Windows, samba works perfectly. In Linux (Kubuntu 16.04, stock install) I can browse the shares, create files and directories, but not read them (long story short, I want to ditch Windows). However, when I check permissions, they are all 777. Really weird. The config of Samba also doesn't get saved if you alter it and I can't seem to find where it is located. In the /system (on F/W 2.38) mount I only seem to be able to find an XML file that describes a few options (which I guess, would be generated inside a template config file for samba). I also installed optware with an ftp server, but that just doesn't cut it at the moment. This is how I came on the idea to just throw the stock stuff away and create something that I know I can fully manage.

Cardreader will not be used, as well as USB 3.0. AFAIK USB 2.0 will work, right? Have you by chance also tested the rear two USB ports when you were still looking into this unit? I have a LabelWriter connected to one of those (which is made available to the entire home network, which again I think is Samba responsible for). Scripting for the LED's, does that need to be done in Bash, Python or...? I'm currently a student following a degree for Software Engineering (and before that I was programming in PHP already some time), so I don't think that programming those should be very difficult, unless I'm missing something here.

Are those transfer speeds really that slow? Any idea why that might be? Using the stock firmware I get around 30MB/s (yes, megabytes per second) with an occasional jump to 45-55 in Windows (using Samba of course). This is on a full duplex 1 Gbit/s connection.

I'll post the smb.conf here anyway (hope that's ok), which I did not create, but is created by the firmware, just in case anybody might know what the problem is I'm experiencing. I might just as well inject a script which puts my custom smb.conf in place (which will then be stored on the HDD) when the unit is rebooted, so I don't have to touch anything else of it (as that is working good enough for me ATM, though). However, if that ain't possible then I'll just start using Debian. Do you, by chance, know which files I need for this, as I'm a bit confused re-reading the thread(s). Do I also need to alter the NAND or wouldn't that be necessary? I also already had the unit open once to fit another fan which would auto adjust to temperature, so finding the RX/TX serial shouldn't be too hard I think. Only thing is to find time for it heheh.

Thanks in advance!

The smb.conf file:
[global]
netbios name = NAS
workgroup = HOMEGROUP
server string = OMNINAS Series
encrypt passwords = yes
security = user
deadtime = 10
map to guest = bad password
use mmap = yes
use sendfile = yes
dns proxy = no
use spnego = yes
max log size = 200
log level = 0
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=65536 SO_RCVBUF=65536
local master = yes
domain master = yes                                                  
preferred master = yes                                                  
wins support = yes                                                        
browse list  = yes
dns proxy = no
ldap ssl = no
# Optional QOS settings
# qos enable = yes
# level1 file extensions = avi wmv wma
# level2 file extensions = mpeg mpg
; disable spoolss = Yes
; guest account = nobody
unix charset=UTF-8
dos charset=UTF-8
display charset=UTF-8
fstype=Samba
peek command type = yes
load printers = yes
# Modified for LPRng supporting
#show add printer wizard = Yes
#printing = cups
#printcap name = cups
printing = lprng
printcap name = /etc/printcap

[disk]
comment = Default_share
path = /share/atonnas/disk
create mask = 0666
directory mask = 0777
force directory mode = 0777
directory security mask = 0777
force directory security mode = 0777
writeable = yes
printable = no
public = yes
preallocate = yes
incoherent=yes
direct writes=2

[iTunes]
comment = Default_iTunes_share
path = /share/atonnas/disk/iTunes
create mask = 0666
directory mask = 0777
force directory mode = 0777
directory security mask = 0777
force directory security mode = 0777
writeable = yes
printable = no
public = yes
preallocate = yes
incoherent=yes
direct writes=2

[Videos]
comment = 
path = /share/atonnas/Videos
create mask = 0666
directory mask = 0777
force directory mode = 0777
directory security mask = 0777
force directory security mode = 0777
writeable = yes
printable = no
public = yes
preallocate = yes
incoherent=yes
direct writes=2

[printers]
comment = Aton NAS Printer Server
browseable = no
use client driver = yes
path = /var/spool/samba
printable = Yes
public = no
writable = no
create mode = 0777
print command = /usr/hddapp/bin/lpr -P%p -r %s
lpq command = /usr/hddapp/bin/lpq -P%p
lprm command = /usr/hddapp/bin/lprm -P%p %j
lppause command = /usr/hddapp/bin/lpc hold %p %j
lpresume command = /usr/hddapp/bin/lpc release %p %j
queuepause command = /usr/hddapp/bin/lpc -P%p stop
queueresume command = /usr/hddapp/bin/lpc -P%p start
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
September 19, 2016 07:35AM
So, I mean as well about 30 Mb/sec, so a bit below stock.
Rear USB's are working very fine, Sata working fine (~80mb/s).
You can trigger the LED's in /sys/class/led/... so the language I think dosen't matter.

For Installing Debian:
You need to change the uBoot env., as I remember you can boot everything from SATA / FAT partition, or you flash kernel and Initrd to the nand. Backup is quite Easy.

You need:
Files: Kernel + Initrd, rootfs
UART access
Time and Beer's :-)

Cheers
drMacFaulty
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
September 19, 2016 08:27AM
Hi again,

Thanks for those pointers, they'll prove to be very valuable if I get stuck in the smb.conf issue :)

Have you also tried to change the root password on the box with stock firmware? Does it any harm? Just wanted to ask that, before I might brick the stock software.

Thanks again!

Cheers,
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
September 20, 2016 06:29AM
drMacFaulty Wrote:
-------------------------------------------------------

> Have you also tried to change the root password on
> the box with stock firmware? Does it any harm?
> Just wanted to ask that, before I might brick the
> stock software.
>
> Thanks again!
>
> Cheers,


No :-)
hyphenn
Re: Debian on Shuttle KD20 (PLX OXNAS 7821)
November 25, 2017 01:58PM
if someone else is looking for the UART pin layout of the omninas kd20 or kd21 the screenshots can now be found here (since they are not available any more under the previouse url provided by @Peacemaker)

* https://gitorious.org/openwrt-oxnas/openwrt-oxnas-gitorious-wiki.git/?p=openwrt-oxnas:openwrt-oxnas-gitorious-wiki.git;a=tree

serial port layout:

* https://gitorious.org/openwrt-oxnas/openwrt-oxnas-gitorious-wiki.git/?p=openwrt-oxnas:openwrt-oxnas-gitorious-wiki.git;a=blob;f=omninas-kd20-serial.jpg;h=cf338336a5e617b3da6930f442871d53212446a2;hb=HEAD
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 15 plus 3?
Message: