Welcome! Log In Create A New Profile

Advanced

Debian on LaCie CloudBox (V2 Mini) (100GB) (88F6192 Rev 3 LE)

Posted by Kenneth68 
Re: Debian possible on LaCie CloudBox (100GB) (88F6192 Rev 3 LE) ?
October 22, 2025 01:30PM
Ooops, forgot -v...
Looks fine to me.
root@debian:~# flashcp -v /uboot_ns2mini/uboot*v2.kwb /dev/mtd0
Erasing blocks: 112/112 (100%)
Writing data: 448k/448k (100%)
Verifying data: 448k/448k (100%)
root@debian:~# flashcp -v /uboot_ns2mini/uboot*img /dev/mtd1
Erasing blocks: 1/1 (100%)
Writing data: 4k/4k (100%)
Verifying data: 4k/4k (100%)

And the reboot:
...
Will now unmount temporary filesystems:umount: /tmp unmounted
.
Will now deactivate swap:swapoff /dev/sda2
.
[96815.005464][ T1593] EXT4-fs (sda1): re-mounted f0b63d65-d33f-48e6-b292-4e87057d74c8 ro. Quota mode: none.
Mounting root filesystem read-only...done.
Will now restart.
[96815.214470][ T1597] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[96815.221306][ T1597] reboot: Restarting system
�

U-Boot 2025.07-tld-1 (Oct 17 2025 - 16:45:57 -0700) NS v2 Mini

SoC:   Kirkwood 88F6192_A1
MPP:   Variant 88F6192
DRAM:  128 MiB
Core:  15 devices, 12 uclasses, devicetree: separate
Loading Environment from SPIFlash... SPI flash unprotected...SF: Detected mx25l4005a with page size 256 Bytes, erase size 4 KiB, total 512 KiB
OK
In:    serial
Out:   serial
Err:   serial
Net:   
Warning: ethernet-controller@72000 (eth0) using random MAC address - 0a:e9:18:e3:14:a3
eth0: ethernet-controller@72000
Hit any key to stop autoboot:  0 
Initializing devices...
Unknown command 'usb' - try 'help'
Loading envs from sata 0...
2918 bytes read in 31 ms (91.8 KiB/s)
... envs loaded
importing envs ...
running scan_disk ...
Scan device sata
device sata 0:1
1 bytes read in 10 ms (0 Bytes/s)
Found bootable drive on sata 0
loading uImage ...
6223944 bytes read in 153 ms (38.8 MiB/s)
loading uInitrd ...
5791271 bytes read in 154 ms (35.9 MiB/s)
loading DTB /boot/dts/kirkwood-ns2mini.dtb ...
10423 bytes read in 39 ms (260.7 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-6.5.7-kirkwood-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6223880 Bytes = 5.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-6.5.7-kirkwood-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5791207 Bytes = 5.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02c00000
   Booting using the fdt blob at 0x2c00000
Working FDT set to 2c00000


Starting kernel ...

   Loading Kernel Image to 8000
   Loading Ramdisk to 0660b000, end 06b90de7 ... OK
   Loading Device Tree to 06605000, end 0660a8b6 ... OK
Working FDT set to 6605000

Starting kernel ...

[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 6.5.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: LaCie Network Space Mini v2
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:448K(u-boot),4K@448K(u-boot-env)
...

/Kenneth
Re: Debian possible on LaCie CloudBox (100GB) (88F6192 Rev 3 LE) ?
October 22, 2025 03:08PM
Kenneth,

Thanks for a great job testing. I'm declaring victory!

To complete checking the flashing, while in Debian, make sure the env location is correct. Note: the "Flash sector size" should be 0x1000.

cat /etc/fw_env.config
# MTD device name	Device offset	Env. size	Flash sector size Number of sectors
# Lacie Netspace V2 
/dev/mtd1 0x00000 0x1000 0x1000

And then
fw_printenv
If the output looks sane, try changing some envs. For example, what you have in uEnv.txt that set the devices to sata temporarily during boot. Now set it permanently:
fw_setenv devices sata
After you set this devices env, reboot, and you should not see the warning "Unknown command 'usb' - try 'help'" anymore.

If you decide to do HW mod to add USB port, at that time, you can add usb back to the device list.
fw_setenv devices 'sata usb'

And you can set other envs permanently the same way (such as the MAC address).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian possible on LaCie CloudBox (100GB) (88F6192 Rev 3 LE) ?
October 23, 2025 02:15PM
bodhi Wrote:
-------------------------------------------------------
> Kenneth,
>
> Thanks for a great job testing. I'm declaring
> victory!
>
Yes, it was great to reach this point at last.

> To complete checking the flashing, while in
> Debian, make sure the env location is correct.
> Note: the "Flash sector size" should be 0x1000.
>
I got 0x20000

root@debian:~# cat /etc/fw_env.config 
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
>
> And then
>
> fw_printenv
>

Here is also a problem:

root@debian:~# fw_printenv
Cannot read environment, using default
Cannot read default environment from file

But the computer seems to work normally.

/Kenneth
Re: Debian possible on LaCie CloudBox (100GB) (88F6192 Rev 3 LE) ?
October 23, 2025 03:33PM
Kenneth,

Going back to the installation draft.

https://forum.doozan.com/read.php?2,140220,140326#msg-140326

Quote

3. Adjust the Linux env config file

Edit /etc/fw_env.config to have the following content:

cat /etc/fw_env.config
# MTD device name	Device offset	Env. size	Flash sector size Number of sectors
# Lacie Netspace V2 
/dev/mtd1 0x00000 0x1000 0x1000

After you've edited the file, do

fw_printenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian possible on LaCie CloudBox (100GB) (88F6192 Rev 3 LE) ?
October 26, 2025 05:13AM
Hello again, Bodhi.

Now I have the following:

root@debian:~# cat /etc/fw_env.config 
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
# LaCie NetSpace v2
/dev/mtd1 0x00000 0x1000 0x1000

root@debian:~# fw_printenv
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=if run load_uimage; then; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=sata
console=ttyS0,115200
device=0:1
devices=sata usb
disks=0 1 2 3
dtb_file=/boot/dts/dtb_file=/boot/dts/kirkwood-ns2mini.dtb
ethaddr=00:D0:4B:91:3C:1D
if_netconsole=ping $serverip
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mtdparts=mtdparts=spi0.0:448K(u-boot),4K@448K(u-boot-env)
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_sata "sata init";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for
 disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bo
otdev $dev; fi; fi; done; fi; done
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin serial,nc; setenv stdout serial,nc; setenv stderr serial,nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=echo Initializing devices...; setenv init_usb "usb reset"; setenv init_sata "sata init";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;
uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi

I didn't remove usb from devices since everything seems OK. If it ain't broken...

Thanks a lot for your help.

/Kenneth
Re: Debian possible on LaCie CloudBox (100GB) (88F6192 Rev 3 LE) ?
October 26, 2025 02:26PM
Kenneth,

Llooks good!

> I didn't remove usb from devices since everything
> seems OK. If it ain't broken...

No fear. Once u-boot was flashed, it's done.

Once in a while you should shutdown and backup the rootfs.

Quote
Wiki thread
Backup and Cloning rootfs

Back up a live rootfs using rsync
CrashPlan 4.3.0
Backup/Restore rootfs using tar command

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: