Buffalo NAS-Central Forums
http://forum.buffalo.nas-central.org/

LS-CHLv2 - LS-XHL - Kernel 3.14.4 - USB, IPv6, NFS
http://forum.buffalo.nas-central.org/viewtopic.php?f=71&t=25971
Page 1 of 12

Author:  fjen [ Thu Aug 02, 2012 2:10 pm ]
Post subject:  LS-CHLv2 - LS-XHL - Kernel 3.14.4 - USB, IPv6, NFS

##############################################
THIS KERNEL IMAGE IS NOT MAINTAINED ANYMORE.
Support for the LS-XHL and LS-CHLv2 was added in the official Debian packets.
Just install linux-image-kirkwood and flash-kernel from wheezy-backports and reboot.
##############################################

### Intro
If you are using an original/modded firmware, this is not for you.

The mainline kernel added support for the LS-CHLv2 and LS-XHL in version 3.6. Up until version 3.2 i used a patch ported from 2.6.32 to get it running.
I try to provide a well configured and ready to use package to use with your prefered linux distribution.
The kernel image itself is only configured with important options for running the device. Support for the most usecases comes in modules.
USB storage devices and printers should work on the usb port. I only tested a usb stick.
You can take my precompiled files or compile it yourself.

### Features
    USB, FAN, LED control over GPIO
    MTD access for changing uboot environment
    ext4 (mounts ext2/3), xfs, btrfs, fat32, f2fs, fuse (for ntfs-3g and stuff)
    IPv6
    NFS
    ZRAM
    many iptables modules
    nftables (>3.13)
    tun/tap support for openvpn
    dm-crypt, ecryptfs
    cgroups

### Download
Kernel, config, source and initrd here: http://neboola.de/fjen/lschlv2/kernel/
Changelog: http://neboola.de/fjen/lschlv2/kernel/c ... config.txt

### Installation if using buffalo kernel
mount /boot
Install deb matching your device (dpkg -i linux-image-...lschlv2.deb OR dpkg -i linux-image-...lsxhl.deb)
Link kernel to /boot/uImage.buffalo (cd /boot; ln -fs uImage.buffalo.3.... uImage.buffalo)
Place empty initrd in /boot and copy or link it to /boot/initrd.buffalo (cd /boot; ln -fs initrd.buffalo.empty initrd.buffalo)
Remove the Buffalo specific /etc/init.d/lsmonitor script from blstools and use this one instead: http://neboola.de/fjen/lschlv2/lsmonitor/
Do not use a >=3.6 kernel with an old lsmonitor script or you will be stuck in a bootloop.

# First three steps for for old non deb installs:
mount /boot
Place kernel in /boot and copy or link it to /boot/uImage.buffalo
Copy modules to /lib/modules/

### Updating if already using this kernel or my wheezy rootfs
mount /boot
Install deb matching your device (dpkg -i linux-image-...lschlv2.deb OR dpkg -i linux-image-...lsxhl.deb)
Link kernel to /boot/uImage.buffalo (cd /boot; ln -fs uImage.buffalo.3.... uImage.buffalo)

### Compiling
Read http://neboola.de/fjen/lschlv2/kernel/compiling.txt

### Other Notes
If you need a Debian wheezy rootfs, you can find one here viewtopic.php?f=71&t=26291

Have fun!

Author:  stonie [ Thu Aug 02, 2012 4:37 pm ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 with usb working

Thanks for pointing out the 3.6 kernel support!

:)
Cheers,
Stonie.

Author:  shyd [ Fri Aug 03, 2012 4:50 pm ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 with usb working

Hi fjen,

very nice to read about newer kernels are working with our device!
Did you crosscompile the whole thing or did you let the ls do the work? It would be great if we could crosscompile the kernel with codesourcery's toolchain!
I am interested in compiling my own kernel, because I need some more modules like nfs or ipv6.

-- Dennis

Author:  fjen [ Fri Aug 03, 2012 5:16 pm ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 with usb working

I compiled it directly on the nas, no need for crosscompiling. It didn't took that long because of the minimal setup, 1:20h or so.
You can simply take my sources and compile one yourself. I'm also thinking about providing more modules like the ones you mentioned.

Author:  shyd [ Fri Aug 03, 2012 5:51 pm ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 with usb working

Ah thanks for the info!
Just one more remark: xfs would be essential for me, due to the transfer speeds. Openvpn is another thing I really like to run on it.

-- Dennis

Author:  fjen [ Fri Aug 03, 2012 6:06 pm ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 with usb working

i don't think xfs speed differs that much, but i can include that. A kernel with openvpn support is compiling atm.
Changelog: http://neboola.de/fjen/lschlv2/kernel/changelog.txt

Author:  wholly [ Fri Aug 03, 2012 6:49 pm ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 with usb working

Awesome news....

How about a 3.6 kernel with most common features as well as full NTFS read/write

thanks

Author:  fjen [ Fri Aug 03, 2012 8:20 pm ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 with usb working

3.6 isn't finished yet but i will try to get a more recent kernel after the wheezy upgrade. My next kernel will provide more "common features".

If you want NTFS you should go with ntfs-3g which is supported by this kernel, but it won't be very fast. Also i can't imagine of a usecase for NTFS on the nas. You really only need it if your nas shares an external harddrive with a windows pc.

Author:  fjen [ Fri Aug 03, 2012 10:17 pm ]
Post subject:  3.2.18-fjen-5

A new kernel configuration with more modules is ready and booted fine on my Linkstation.
3.2.18-fjen-5 comes with support for xfs, btrfs (both not for rootfs), ipv6, nfs and vpn.

Hope you like it. Test and report!

Author:  shyd [ Fri Aug 03, 2012 10:32 pm ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 - USB, IPv6, NFS

+1

will test it in some days :up:

Author:  wholly [ Sat Aug 04, 2012 6:31 am ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 with usb working

fjen wrote:
3.6 isn't finished yet but i will try to get a more recent kernel after the wheezy upgrade. My next kernel will provide more "common features".

If you want NTFS you should go with ntfs-3g which is supported by this kernel, but it won't be very fast. Also i can't imagine of a usecase for NTFS on the nas. You really only need it if your nas shares an external harddrive with a windows pc.


NTFS I need so that I can use my 2TB external harddrive from the NAS unit, as I only have a 320GB HDD in it.

Look forward to the updates :up: :up: :up:

wayne

Author:  fjen [ Sun Aug 05, 2012 12:38 am ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 - USB, IPv6, NFS

I updated my Linkstation to Debian Wheezy today and it's working fine so far.
A new kernel image based on 3.2.21 from Wheezy is available. Should work on Squeeze too, but i could not test it on that obviously.

Author:  shyd [ Thu Aug 16, 2012 7:56 pm ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 - USB, IPv6, NFS

Well, I tried 3.2.18-fjen-5, but I can't get it to work with my rootfs (ext3), /boot (ext3) and disk1 (xfs). I edited the /etc/fstab to ext4 with no luck, but I don't want to convert the partitions now.
My LS stays in bootloop. Maybe I will try to compile my own kernel.

Do you have a serial console to debug your dmesg during boot?

--Dennis

Author:  fjen [ Fri Aug 17, 2012 9:49 am ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 - USB, IPv6, NFS

the problem should be your ext3 rootfs. try to compile the kernel with native ext3 support.
i don't have the possibility to debug the boot.

also, the 3.6rc1 kernel i made doesn't boot. i think the problem is that our uboot doesn't support device tree. i don't have time for further experiments now, maybe in october.

Author:  SirKiosk [ Sat Aug 25, 2012 2:03 pm ]
Post subject:  Re: LS-CHLv2 - Debian Squeeze Kernel 3.2.18 - USB, IPv6, NFS

I could get neither 3.2.18-fjen-5 nor 3.2.21-fjen-1 to boot properly with Debian Squeeze. Logs show everything going fine until network is about to be brought up, then there's an abrupt clean shutdown. I also tried the provided Squeeze root fs, but the results were similar except for the lack of the automatic shutdown - everything starts up but there's no connectivity. Am I missing drivers or can you think of something else I may have neglected?

Page 1 of 12 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/