'Sup mates, all good?
I have a Buffalo LS220DE NAS device. It's working, but httpadmin got corrupted or smth (seems a common issue on stock Buffalo fw).
Before that, I already was "flirting" with OpenWrt LS421DE img [https://openwrt.org/toh/buffalo/ls421de]. It's, basically, the same setup, just a lower arm of same family, less ram, and only a usb2.0 port (LS421DE have a 2nd, 3.0).
So I took courage and reached step 5 of above tutorial. But after reboot, the main led keeps blinking (I left the first reboot for 30min), and soft powerswitch of the back panel loses functionality. The expected behavior was the led blink a couple of minutes on the boot, and reach a solid state after.
[Important note: I had to disable w10 fw on the network type I was (public in my case, public IPv6 -- but even if I change to private that was needed too) to reach Buffalo correctly, even with IPv4 being just internal lan.]
No connection at all. Telnet, SSH, ftp, NAS Manager, no DHCP offers to w10 if wired directly, no ip leased if connected to my main OpenWrt...
Powered off, removed the hd's, booted, LS220DE got into emergency mode with stock fw. Hotplugged both hd's at same time (they'r a raid1), mounted both sda1 and sdb1, restored the stock uImage. New AC power-off, booted as expected, returning to previous state -- httpadmin-less.
Since I want a better hw usage (terrible stock fw), and use smb3 or 4, and assuming that just few changes must be made, I think I can achieve the port of OpenWrt to Buffalo LS220DE NAS.
But I need some directions. I'm damn rusty, several linux commands changed nowadays. And I don't know if Debian WSL environment would do the job for compiling some build.
This would be an acceptable approach for what I'm intended to? [[Solved] How to make firmware image compatible with other devices]
Also, I found the LS421DE port topic here: [Buffalo LS421DE].
I got a partial dmesg on Putty (freezes), it's at the end of the topic (in w10 telnet, it freezes at the command, doesn't show anything!). I can lsmod, but shows me only usb & hdd ppl. I can cat almost any file, but the important ones, like /var/log/messages & /var/log/linkstation.log, freezes. Messages after few lines (from 12h ago), and linkstation.log at the command. I think it's because connection is by lan, not serial port. O_o
Several tech info and a full dmesg (& friends) are avaliable @ [https://buffalonas.miraheze.org/wiki/Linkstation_LS220D].
Also, there is the Debian on Buffalo Git [https://github.com/1000001101000/Debian_on_Buffalo/] [https://www.youtube.com/watch?v=dfMHlLmsSF8], but I don't want it (besides being my favorite distro), I want and need a light direct-approach fw, and OpenWrt is perfect in this way.
Someone can please give me a hand on trying to figure out the path to the success? xD
LK
###lsmod
usblp 8257 0
usb_storage 33204 0
ohci_hcd 16860 0
ehci_hcd 33698 0
xhci_hcd 60842 0
usbcore 111314 6 usblp,usb_storage,ohci_hcd,ehci_hcd,xhci_hcd
usb_common 525 1 usbcore
###dmesg
Booting Linux on physical CPU 0
Initializing cgroup subsys cpu
Linux version 3.3.4 (nasbuild@nasbuild) (gcc version 4.6.2 (Linaro GCC branch-4.6.2. Marvell GCC 201201-883.01c949de) ) #1 Mon Dec 6 19:56:18 JST 2021
CPU: Marvell PJ4Bv7 Processor [561f5811] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Machine: Marvell Armada-370
Using UBoot passing parameters structure
>>>>>>>Tag MAC <censored>
>>>>>>>Tag MAC <censored>
Memory policy: ECC disabled, Data cache writealloc
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat c0578a44, node_mem_map c05b2000
Normal zone: 512 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 65024 pages, LIFO batch:15
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 65024
Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x2600040 panic=5 BOOTVER=0.38 UBOOT_DATE=2019/12/18 mtdparts=armada-nand:0x2000000(boot),0x1e000000(rootfs)
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 236176k/236176k available, 25968k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0524f3c (5236 kB)
.init : 0xc0525000 - 0xc054a000 ( 148 kB)
.data : 0xc054a000 - 0xc0579820 ( 191 kB)
.bss : 0xc0579844 - 0xc05b1a10 ( 225 kB)
NR_IRQS:256
axp_time_init
Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
pid_max: default: 32768 minimum: 301
Mou