Hello everyone,
I am still having some older Buffalo Linkstations lying around that I like to set up similar to my other NSA325. Due to restricted hardware I only like to use those as NFS-servers for rsync on another location.
I would like to use the same debian from here:
https://forum.doozan.com/read.php?2,12096
and benefit from the up-to-date kernels as well as from the possibility to boot from USB.
So I do have some questions for the LS-XHL, LS-CHLv2:
- assuming that it would be able to compile and flash this u-boot version. Would it then be possible to boot from an USB-flash drive? - Having a simple one partition layout on the installed hard drive instead of the 4 partition layout required by the buffalo boot-loader and systems
- would it remove the limit of 2TB hard-drives? as stated on the first post or could there be some more component that limits that
To give some information of what I found using a fresh installed Debian Stretch using the Debian Installer: https://miniconf.debian.or.jp/assets/files/Debian%20Installer%20for%20Buffalo%20Linkstation%20NAS.pdf
This is the output of dmesg of the LS-CHLv2
quite similar for the LS-XHL
here is what: cat /proc/mtd for LS-CHLv2 (and LS-XHL)
output of grep -a --null-data U-Boot /dev/mtd0 for LS-CHLv2
and LS-XHL
and this is cat /dev/mtd2 for LS-CHLv2
and LS-XHLv2
(the kernel does not create an /etc/fw_env.config
Here is why I believe that basically it should be possible:
configs in the git repo:
https://github.com/mibodhi/u-boot-kirkwood/blob/2017.07-kirkwood-tld-1/configs/lschlv2_defconfig
https://github.com/mibodhi/u-boot-kirkwood/blob/2017.07-kirkwood-tld-1/configs/lsxhl_defconfig
and here the README:
https://github.com/mibodhi/u-boot-kirkwood/blob/697f50bf18e71406db8fa9b4bf08344ae6640146/board/buffalo/lsxl/README
though I did not compile the u-boot.kwb file yet - I still would not know if I could flash it - since
the size of the u-boot part itself seems smaller then in this thread
all mtd parts together would have sufficient size - but I do not know how to handle the 3 different parts of mtd0-mtd2
Any help is welcome. I can provide more Information when needed.
I am still having some older Buffalo Linkstations lying around that I like to set up similar to my other NSA325. Due to restricted hardware I only like to use those as NFS-servers for rsync on another location.
I would like to use the same debian from here:
https://forum.doozan.com/read.php?2,12096
and benefit from the up-to-date kernels as well as from the possibility to boot from USB.
So I do have some questions for the LS-XHL, LS-CHLv2:
- assuming that it would be able to compile and flash this u-boot version. Would it then be possible to boot from an USB-flash drive? - Having a simple one partition layout on the installed hard drive instead of the 4 partition layout required by the buffalo boot-loader and systems
- would it remove the limit of 2TB hard-drives? as stated on the first post or could there be some more component that limits that
To give some information of what I found using a fresh installed Debian Stretch using the Debian Installer: https://miniconf.debian.or.jp/assets/files/Debian%20Installer%20for%20Buffalo%20Linkstation%20NAS.pdf
This is the output of dmesg of the LS-CHLv2
[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.0-9-marvell (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 Debian 4.9.168-1+deb9u2 (2019-05-13) [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt:Machine model: Buffalo Linkstation LS-XHL [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 16384 [ 0.000000] free_area_init_node: node 0, pgdat c0596e1c, node_mem_map c3f78000 [ 0.000000] Normal zone: 128 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 16384 pages, LIFO batch:3 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,12M panic=5 BOOTVER=0.21 [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Memory: 46548K/65536K available (3794K kernel code, 397K rwdata, 1132K rodata, 292K init, 245K bss, 18988K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xc4800000 - 0xff800000 ( 944 MB) lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc03bcc60 (3796 kB) .init : 0xc04f9000 - 0xc0542000 ( 292 kB) .data : 0xc0542000 - 0xc05a5770 ( 398 kB) .bss : 0xc05a5770 - 0xc05e2d7c ( 246 kB) [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns [ 0.000015] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns [ 0.000850] Console: colour dummy device 80x30 [ 0.000898] Calibrating delay loop... 595.96 BogoMIPS (lpj=1191936) [ 0.028102] pid_max: default: 32768 minimum: 301 [ 0.028391] Security Framework initialized [ 0.028417] Yama: disabled by default; enable with sysctl kernel.yama.* [ 0.028664] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.028696] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.030365] CPU: Testing write buffer coherency: ok [ 0.030524] ftrace: allocating 17012 entries in 34 pages [ 0.098699] Setting up static identity map for 0x8200 - 0x823c [ 0.099125] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2 [ 0.104618] devtmpfs: initialized [ 0.114199] VFP support v0.3: not present [ 0.114488] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.114532] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.114928] pinctrl core: initialized pinctrl subsystem [ 0.116837] NET: Registered protocol family 16 [ 0.117436] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.119934] cpuidle: using governor ladder [ 0.119960] cpuidle: using governor menu [ 0.120658] Feroceon L2: Enabling L2 [ 0.120724] Feroceon L2: Cache support initialised. [ 0.121160] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.121332] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set [ 0.129353] No ATAGs? [ 0.138796] clocksource: Switched to clocksource orion_clocksource [ 0.163587] VFS: Disk quotas dquot_6.6.0 [ 0.163720] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.177802] NET: Registered protocol family 2 [ 0.179342] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.179389] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.179426] TCP: Hash tables configured (established 1024 bind 1024) [ 0.179522] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.179561] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.179863] NET: Registered protocol family 1 [ 0.179921] PCI: CLS 0 bytes, default 32 [ 0.180331] Unpacking initramfs... [ 0.775952] Initramfs unpacking failed: junk in compressed archive [ 0.824423] Freeing initrd memory: 12292K [ 0.825633] audit: initializing netlink subsys (disabled) [ 0.825744] audit: type=2000 audit(0.788:1): initialized [ 0.826388] workingset: timestamp_bits=30 max_order=14 bucket_order=0 [ 0.826540] zbud: loaded [ 0.829474] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.829720] io scheduler noop registered [ 0.829855] io scheduler cfq registered (default) [ 0.831961] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 0.835204] mv_xor f1060800.xor: Marvell shared XOR driver [ 0.873207] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 0.873508] mv_xor f1060900.xor: Marvell shared XOR driver [ 0.909188] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 0.909833] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.911597] console [ttyS0] disabled [ 0.911689] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 10416666) is a 16550A [ 1.234350] random: fast init done [ 1.389999] console [ttyS0] enabled [ 1.397270] mousedev: PS/2 mouse device common for all mice [ 1.403336] rtc-mv f1010300.rtc: retrieved alarm date/time is not valid. [ 1.410378] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0 [ 1.417567] i2c /dev entries driver [ 1.422770] ledtrig-cpu: registered to indicate activity on CPUs [ 1.429485] NET: Registered protocol family 17 [ 1.434987] registered taskstats version 1 [ 1.439181] zswap: loaded using pool lzo/zbud [ 1.446211] rtc-mv f1010300.rtc: setting system clock to 2019-05-15 13:52:24 UTC (1557928344) [ 1.456735] Freeing unused kernel memory: 292K [ 1.461210] This architecture does not have kernel memory protection. [ 1.633392] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 1.655879] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 1.666017] random: udevadm: uninitialized urandom read (16 bytes read) [ 2.044845] SCSI subsystem initialized [ 2.121506] libata version 3.00 loaded. [ 2.125174] sata_mv f1080000.sata: version 1.28 [ 2.125476] sata_mv f1080000.sata: slots 32 ports 1 [ 2.164932] scsi host0: sata_mv [ 2.174427] ata1: SATA max UDMA/133 irq 33 [ 2.658864] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 2.669794] ata1.00: ATA-8: Hitachi HTS545050B9A300, PB4OC60G, max UDMA/133 [ 2.676772] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 2.690323] ata1.00: configured for UDMA/133 [ 2.695445] scsi 0:0:0:0: Direct-Access ATA Hitachi HTS54505 C60G PQ: 0 ANSI: 5 [ 2.735137] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB) [ 2.745568] sd 0:0:0:0: [sda] Write Protect is off [ 2.750415] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 2.750603] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 2.820143] sda: sda1 sda2 sda3 sda4 [ 2.832919] sd 0:0:0:0: [sda] Attached SCSI disk [ 4.023160] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null) [ 5.534223] NET: Registered protocol family 10 [ 5.563986] ip_tables: (C) 2000-2006 Netfilter Core Team [ 5.584700] random: crng init done [ 5.588101] random: 7 urandom warning(s) missed due to ratelimiting [ 5.658887] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN) [ 5.677680] systemd[1]: Detected architecture arm. [ 5.714836] systemd[1]: Set hostname to <LS-CHL>. [ 7.187950] systemd[1]: Listening on Syslog Socket. [ 7.207584] systemd[1]: Listening on udev Control Socket. [ 7.227526] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. [ 7.251503] systemd[1]: Listening on Journal Socket (/dev/log). [ 7.272941] systemd[1]: Created slice System Slice. [ 7.292753] systemd[1]: Created slice system-getty.slice. [ 7.317382] systemd[1]: Mounting Debug File System... [ 7.711238] RPC: Registered named UNIX socket transport module. [ 7.717359] RPC: Registered udp transport module. [ 7.722082] RPC: Registered tcp transport module. [ 7.726801] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 7.860257] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro [ 7.979610] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 9.127658] systemd-journald[128]: Received request to flush runtime journal from PID 1 [ 10.453803] input: gpio_keys as /devices/platform/gpio_keys/input/input0 [ 10.532770] gpio-fan gpio_fan: GPIO fan initialized [ 10.674916] m25p80 spi0.0: m25p40 (512 Kbytes) [ 10.722926] 3 ofpart partitions found on MTD device spi0.0 [ 10.728681] Creating 3 MTD partitions on "spi0.0": [ 10.749068] orion_wdt: Initial timeout 25 sec [ 10.838907] 0x000000000000-0x000000060000 : "uboot" [ 10.904607] 0x000000060000-0x000000070000 : "dtb" [ 10.921710] libphy: Fixed MDIO Bus: probed [ 10.968870] 0x000000070000-0x000000080000 : "uboot_env" [ 10.979025] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 10.994993] usbcore: registered new interface driver usbfs [ 11.036059] usbcore: registered new interface driver hub [ 11.079262] marvell-cesa f1030000.crypto: CESA device successfully registered [ 11.113678] usbcore: registered new device driver usb [ 11.130059] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 11.172077] libphy: orion_mdio_bus: probed [ 11.200495] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 11.303602] ehci-orion: EHCI orion driver [ 11.355202] orion-ehci f1050000.ehci: EHCI Host Controller [ 11.407948] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 11.417894] mv643xx_eth_port mv643xx_eth_port.1 eth0: port 0 with MAC address 00:24:a5:55:90:23 [ 11.495164] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 11.590901] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 11.651212] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 11.658040] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 11.665281] usb usb1: Product: EHCI Host Controller [ 11.670177] usb usb1: Manufacturer: Linux 4.9.0-9-marvell ehci_hcd [ 11.676371] usb usb1: SerialNumber: f1050000.ehci [ 11.943506] hub 1-0:1.0: USB hub found [ 11.980757] hub 1-0:1.0: 1 port detected [ 13.037850] Adding 524284k swap on /dev/sda3. Priority:-1 extents:1 across:524284k FS [ 14.932890] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 15.117573] NFSD: starting 90-second grace period (net c05902c8) [ 17.179161] mv643xx_eth_port mv643xx_eth_port.1 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 17.189047] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
quite similar for the LS-XHL
[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.0-9-marvell (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 Debian 4.9.168-1+deb9u2 (2019-05-13) [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005317f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt:Machine model: Buffalo Linkstation LS-XHL [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 16384 [ 0.000000] free_area_init_node: node 0, pgdat c0596e1c, node_mem_map c3f78000 [ 0.000000] Normal zone: 128 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 16384 pages, LIFO batch:3 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,12M panic=5 BOOTVER=0.10 [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Memory: 46548K/65536K available (3794K kernel code, 397K rwdata, 1132K rodata, 292K init, 245K bss, 18988K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xc4800000 - 0xff800000 ( 944 MB) lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc03bcc60 (3796 kB) .init : 0xc04f9000 - 0xc0542000 ( 292 kB) .data : 0xc0542000 - 0xc05a5770 ( 398 kB) .bss : 0xc05a5770 - 0xc05e2d7c ( 246 kB) [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns [ 0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns [ 0.000519] Console: colour dummy device 80x30 [ 0.000552] Calibrating delay loop... 1191.93 BogoMIPS (lpj=2383872) [ 0.020065] pid_max: default: 32768 minimum: 301 [ 0.020232] Security Framework initialized [ 0.020249] Yama: disabled by default; enable with sysctl kernel.yama.* [ 0.020397] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.020417] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.021498] CPU: Testing write buffer coherency: ok [ 0.021600] ftrace: allocating 17012 entries in 34 pages [ 0.057665] Setting up static identity map for 0x8200 - 0x823c [ 0.057927] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2 [ 0.061444] devtmpfs: initialized [ 0.067396] VFP support v0.3: not present [ 0.067583] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.067612] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.067864] pinctrl core: initialized pinctrl subsystem [ 0.069109] NET: Registered protocol family 16 [ 0.069519] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.071120] cpuidle: using governor ladder [ 0.071138] cpuidle: using governor menu [ 0.071503] Feroceon L2: Enabling L2 [ 0.071546] Feroceon L2: Cache support initialised. [ 0.071819] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.071920] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set [ 0.076615] No ATAGs? [ 0.082199] clocksource: Switched to clocksource orion_clocksource [ 0.096881] VFS: Disk quotas dquot_6.6.0 [ 0.096966] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.105318] NET: Registered protocol family 2 [ 0.106270] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.106300] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.106323] TCP: Hash tables configured (established 1024 bind 1024) [ 0.106387] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.106410] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.106598] NET: Registered protocol family 1 [ 0.106635] PCI: CLS 0 bytes, default 32 [ 0.106891] Unpacking initramfs... [ 0.421734] Initramfs unpacking failed: junk in compressed archive [ 0.457006] Freeing initrd memory: 12292K [ 0.457770] audit: initializing netlink subsys (disabled) [ 0.457846] audit: type=2000 audit(0.436:1): initialized [ 0.458304] workingset: timestamp_bits=30 max_order=14 bucket_order=0 [ 0.458400] zbud: loaded [ 0.460166] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.460320] io scheduler noop registered [ 0.460399] io scheduler cfq registered (default) [ 0.461582] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 0.463498] mv_xor f1060800.xor: Marvell shared XOR driver [ 0.491541] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 0.491737] mv_xor f1060900.xor: Marvell shared XOR driver [ 0.519521] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr ) [ 0.519936] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.520992] console [ttyS0] disabled [ 0.521052] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A [ 0.999129] console [ttyS0] enabled [ 1.004876] mousedev: PS/2 mouse device common for all mice [ 1.010728] rtc-mv f1010300.rtc: invalid RTC date, resetting to January 1st, 2013 [ 1.018325] rtc-mv f1010300.rtc: retrieved alarm date/time is not valid. [ 1.025268] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0 [ 1.032382] i2c /dev entries driver [ 1.036908] ledtrig-cpu: registered to indicate activity on CPUs [ 1.043396] NET: Registered protocol family 17 [ 1.048482] registered taskstats version 1 [ 1.052670] zswap: loaded using pool lzo/zbud [ 1.058696] rtc-mv f1010300.rtc: setting system clock to 2013-01-01 20:12:23 UTC (1357071143) [ 1.068497] Freeing unused kernel memory: 292K [ 1.072985] This architecture does not have kernel memory protection. [ 1.177233] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 1.194881] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 1.202589] random: udevadm: uninitialized urandom read (16 bytes read) [ 1.450774] SCSI subsystem initialized [ 1.502422] libata version 3.00 loaded. [ 1.504584] sata_mv f1080000.sata: version 1.28 [ 1.504790] sata_mv f1080000.sata: slots 32 ports 1 [ 1.534378] scsi host0: sata_mv [ 1.537849] ata1: SATA max UDMA/133 irq 33 [ 2.018295] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 2.029149] ata1.00: ATA-8: Hitachi HTS545050B9A300, PB4OC60G, max UDMA/133 [ 2.036170] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 2.049634] ata1.00: configured for UDMA/133 [ 2.054480] scsi 0:0:0:0: Direct-Access ATA Hitachi HTS54505 C60G PQ: 0 ANSI: 5 [ 2.078644] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB) [ 2.087921] sd 0:0:0:0: [sda] Write Protect is off [ 2.092776] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 2.092890] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 2.161770] sda: sda1 sda2 sda3 sda4 [ 2.171209] sd 0:0:0:0: [sda] Attached SCSI disk [ 2.298215] random: fast init done [ 5.612567] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null) [ 5.719696] random: crng init done [ 5.723126] random: 7 urandom warning(s) missed due to ratelimiting [ 6.604879] systemd[1]: System time before build time, advancing clock. [ 6.874622] NET: Registered protocol family 10 [ 6.905414] ip_tables: (C) 2000-2006 Netfilter Core Team [ 7.008198] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN) [ 7.026845] systemd[1]: Detected architecture arm. [ 7.068088] systemd[1]: Set hostname to <LS-CHL>. [ 8.400801] systemd[1]: Listening on Syslog Socket. [ 8.418645] systemd[1]: Listening on RPCbind Server Activation Socket. [ 8.442633] systemd[1]: Listening on Journal Socket (/dev/log). [ 8.462625] systemd[1]: Listening on udev Kernel Socket. [ 8.482817] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 8.507311] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ 8.534663] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. [ 8.978522] RPC: Registered named UNIX socket transport module. [ 8.984508] RPC: Registered udp transport module. [ 8.989242] RPC: Registered tcp transport module. [ 8.993975] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 9.041216] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro [ 9.166362] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 9.865723] systemd-journald[131]: Received request to flush runtime journal from PID 1 [ 10.783744] input: gpio_keys as /devices/platform/gpio_keys/input/input0 [ 10.845702] orion_wdt: Initial timeout 21 sec [ 10.903137] usbcore: registered new interface driver usbfs [ 10.919943] usbcore: registered new interface driver hub [ 10.943593] usbcore: registered new device driver usb [ 10.973529] m25p80 spi0.0: m25p40 (512 Kbytes) [ 10.994869] 3 ofpart partitions found on MTD device spi0.0 [ 11.000443] Creating 3 MTD partitions on "spi0.0": [ 11.014126] gpio-fan gpio_fan: GPIO fan initialized [ 11.063367] libphy: Fixed MDIO Bus: probed [ 11.070865] 0x000000000000-0x000000060000 : "uboot" [ 11.103873] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 11.132678] 0x000000060000-0x000000070000 : "dtb" [ 11.193727] 0x000000070000-0x000000080000 : "uboot_env" [ 11.201340] marvell-cesa f1030000.crypto: CESA device successfully registered [ 11.232327] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 11.266098] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 11.301592] ehci-orion: EHCI orion driver [ 11.315295] libphy: orion_mdio_bus: probed [ 11.416600] orion-ehci f1050000.ehci: EHCI Host Controller [ 11.458300] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 11.487746] mv643xx_eth_port mv643xx_eth_port.1 eth0: port 0 with MAC address 00:24:a5:55:57:be [ 11.562463] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 11.634276] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 11.662756] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 11.669616] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 11.676954] usb usb1: Product: EHCI Host Controller [ 11.681873] usb usb1: Manufacturer: Linux 4.9.0-9-marvell ehci_hcd [ 11.688105] usb usb1: SerialNumber: f1050000.ehci [ 11.905440] hub 1-0:1.0: USB hub found [ 11.954030] hub 1-0:1.0: 1 port detected [ 12.357185] Adding 524284k swap on /dev/sda3. Priority:-1 extents:1 across:524284k FS [ 13.470374] NFSD: starting 90-second grace period (net c05902c8) [ 13.567458] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 15.782909] mv643xx_eth_port mv643xx_eth_port.1 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 15.792826] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
here is what: cat /proc/mtd for LS-CHLv2 (and LS-XHL)
dev: size erasesize name mtd0: 00060000 00010000 "uboot" mtd1: 00010000 00010000 "dtb" mtd2: 00010000 00010000 "uboot_env"
output of grep -a --null-data U-Boot /dev/mtd0 for LS-CHLv2
U-Boot 1.1.4 (Mar 15 2011 - 14:53:08) Marvell version: 3.4.25If U-Boot Endiannes is going to change (LE->BE or BE->LE), Then Env parameters should be overriden.. U-Boot ** Invalid partition type "%.32s" (expect "U-Boot") U-Boot code: %08lX -> %08lX BSS: -> %08lX Addresses %dM - 0M are saved for the U-Boot usage.
and LS-XHL
U-Boot 1.1.4 (Jul 24 2009 - 19:21:56) Marvell version: 3.4.16If U-Boot Endiannes is going to change (LE->BE or BE->LE), Then Env parameters should be overriden.. U-Boot ** Invalid partition type "%.32s" (expect "U-Boot") U-Boot code: %08lX -> %08lX BSS: -> %08lX Addresses %dM - 0M are saved for the U-Boot usage.
and this is cat /dev/mtd2 for LS-CHLv2
▒q▒baudrate=115200loads_echo=0ipaddr=192.168.11.150serverip=192.168.11.1rootpath=/mnt/ARM_FS/netmask=255.255.255.0eth1addr=00:24:A5:55:90:11stdin=serialstdout=serialstderr=serialconsole=console=ttyS0,115200mainlineLinux=noCASset=minenaMonExt=noenaCpuStream=noenaWrAllo=nopexMode=RCdisL2Cache=nosetL2CacheWT=yesdisL2Prefetch=yesenaICPref=yesenaDCPref=yessata_dma_mode=yesMALLOC_len=1bootargs_root=root=/dev/sda2 rw initrd=0x00800040,12M panic=5bootargs_end=:::DB88FXX81:eth0:noneimage_name=uImagebuffalo_ver=BOOTVER=0.21kernel=uImage.buffaloinitrd=initrd.buffalobootcommon=setenv bootargs $console $bootargs_root $bootargs_func $buffalo_ver $mtdparts $tftpboot $nandboot; bootm 0x00100000 0x00800000tftpbootcmd=tftp 0x00100000 $kernel; tftp 0x00800000 $initrd; setenv tftpboot tftpboot=yes; run bootcommonidebootcmd=ext2load ide 0:1 0x00100000 /$kernel; ext2load ide 0:1 0x00800000 /$initrd; run bootcommonbootorder=idebootcmd=for i in $bootorder; do run ${i}bootcmd; donebootdelay=3disaMvPnp=noethaddr=00:50:43:42:06:0bethmtu=1500eth1mtu=1500mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500usb0Mode=hostnetretry=norcvrip=169.254.100.100loadaddr=0x02000000autoload=noenaAutoRecovery=y
and LS-XHLv2
I▒bootdelay=3baudrate=115200loads_echo=0ipaddr=192.168.11.150serverip=192.168.11.1rootpath=/mnt/ARM_FS/netmask=255.255.255.0eth1addr=00:24:A5:55:57:11
(the kernel does not create an /etc/fw_env.config
Here is why I believe that basically it should be possible:
configs in the git repo:
https://github.com/mibodhi/u-boot-kirkwood/blob/2017.07-kirkwood-tld-1/configs/lschlv2_defconfig
https://github.com/mibodhi/u-boot-kirkwood/blob/2017.07-kirkwood-tld-1/configs/lsxhl_defconfig
and here the README:
https://github.com/mibodhi/u-boot-kirkwood/blob/697f50bf18e71406db8fa9b4bf08344ae6640146/board/buffalo/lsxl/README
though I did not compile the u-boot.kwb file yet - I still would not know if I could flash it - since
the size of the u-boot part itself seems smaller then in this thread
all mtd parts together would have sufficient size - but I do not know how to handle the 3 different parts of mtd0-mtd2
Any help is welcome. I can provide more Information when needed.