prebuilt rootfs is now available, download from here https://www.znbs.space/devices/ls421de/
This is a tar’d rootfs for buffalo ls421de.
The distribution is debian stretch armhf, with linux kernel 4.13.
ssh is enabled by default, login with user=root password=root
Ethernet ip address is set to 192.168.12.199
How to use
1)preparation, get an empty hard disk
– create GPT label on the disk
– create two partitions
* first partition: /boot (ext3)
* second partition: / (ext4)
2) expand the rootfs onto these partations
3) remove all usb drive and hard disks from LS421DS and plug the disk we just prepared to bay1
4) Power on and enjoy!
Partition Layout, use GPT
linkstation lzto # parted GNU Parted 2.3 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) p Model: ATA SanDisk SSD P4 1 (scsi) Disk /dev/sda: 16.0GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 1024MB 1024MB ext3 primary 2 1024MB 16.0GB 15.0GB ext4 (parted) q linkstation lzto #
The mount point of partition 1 is /boot, partition 2 is /.
Extract armhf debian rootfs to /, then place an empty initrd.buffalo into /boot.
Put u-boot.buffalo and uImage.buffalo shipped together with original fw into /boot. Also, kernel modules are also extracted from original fw to /lib/modules.
You may find ipv6 is not supported by the stock kernel, we’d like to compile it from source code.
The source code of kernel can be obtained from http://opensource.buffalo.jp/ls400-110.html .
linkstation lzto # uname -a Linux linkstation 3.3.4 #6 Thu Nov 20 01:52:24 EST 2014 armv7l GNU/Linux linkstation lzto # dmesg |head [ 0.000000] Booting Linux on physical CPU 0 [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.3.4 (lzto@Phoenix) (gcc version 4.9.1 20140529 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.06 - Linaro GCC 4.9-2014.06) ) #6 Thu Nov 20 01:52:24 EST 2014 [ 0.000000] CPU: Marvell PJ4Bv7 Processor [561f5811] revision 1 (ARMv7), cr=10c53c7d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] Machine: Marvell Armada-370 [ 0.000000] Using UBoot passing parameters structure [ 0.000000] >>>>>>>Tag MAC e6:f3:b4:43:50:00 [ 0.000000] >>>>>>>Tag MAC b9:16:cd:3f:6f:10 [ 0.000000] Memory policy: ECC disabled, Data cache writealloc linkstation lzto #
You may want to tune kernel by write this line to /etc/sysctrl.conf
vm/min_free_kbytes = 65536
The speed of LS421DE’s network seems to be very fast, but when add iptables to the kernel, it becomes slow(10~20 percent slower). So, it means that the computation power of Armada-370 is not that good. This is also true for Allwinner A20(sunxi-7). And this is why ddwrt route is slower than hw nat(ddwrt uses iptables, which is sw nat).