====== LaCie operating systems ====== This section gathers all informations about the different LaCie stock systems. ===== Legacy system (before 2011-2012) ===== ==== EEPROM ==== === Organization === The EEPROM is available for reading and writing under Linux at the pseudo file **/sys/bus/i2c/devices/0-0050/eeprom**. The content of the eeprom is the following: ^Offset ^Meaning ^Notes ^ |00..01 |Version/MAC Addresses |It indicates how many mac addresses are stored in the eeprom, it's always 00 02 (2) but only the first mac appears to be valid | |02..07 |Mac address |It's the mac address of your board | |08..13 |2nd Mac address |Bogus mac address 01 FF FF FF FF FF | |14 |Power flag |0 = wait for the button, 1 = auto power on | |15 |Fake sleepmode |Used by the Lacie stock initramfs, it's FD and you can ignore it | === Auto power on === Normally, after applying power, you have to push the button to turn on the ns2. If you want it to switch on automatically, you have to switch a bit in the i2c eeprom. The bit is at offset 14 in the eeprom, changing it from 0 to 1 will enable auto switch on. ==== Disk partitions ==== * sda1: extended, 2056 Mb * sda2: xfs, md raid0/raid1, user data, the remaining part of the disk * sda5: swap, md raid1, 263,18 Mb * sda6: Linux kernel U-Boot Image, 8,23 Mb * sda7: ext3, md raid1, minimal root partition, 8,23 Mb * sda8: ext3, md raid1, original firmware partition, 871,88 Mb * sda9: ext3, md raid1, snapshots/upgrades partition, 896,56 Mb * sda10: filled with zeroes (may be used for an alternate kernel), 8,23 Mb ==== U-Boot ==== === Default environment === baudrate=115200 loads_echo=0 rootpath=/mnt/ARM_FS/ netmask=255.255.255.0 console=console=ttyS0,115200 mtdparts=spi_flash:0x80000@0(uboot)ro,0x300000@0x100000(root) CASset=min MALLOC_len=1 ethprime=egiga0 bootargs_root=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; ethmtu=1500 mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 usb0Mode=host yuk_ethaddr=00:00:00:EE:51:81 netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no ethact=egiga0 stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no disaMvPnp=no enaAutoRecovery=yes start_lump=lump 3 resetdisk=ide reset bootdelay=0 boot_fail=lump kernel_addr=0x800000 productType_env=ASTON_KW primaryPart=6 secondaryPart=A resetFlag_env=0 bootargs=console=ttyS0,115200 root=/dev/sda7 ro reset=0 productType=ASTON_KW bootcmd=run disk_disk boot_disk4=disk ${kernel_addr} 1:${primaryPart}; setenv rootfs /dev/sdb7; boot_disk3=if disk ${kernel_addr} 0:${primaryPart}; then setenv rootfs /dev/sda7; else run boot_disk4; fi boot_disk2=if disk ${kernel_addr} 1:${secondaryPart}; then setenv rootfs /dev/sdb7; else run boot_disk3; fi boot_disk1=if disk ${kernel_addr} 0:${secondaryPart}; then setenv rootfs /dev/sda7; else run boot_disk2; fi boot_disk=if test ${resetFlag_env} -eq 0; then run boot_disk1; else run boot_disk3; fi disk_disk=run boot_disk; setenv bootargs console=ttyS0,115200 root=${rootfs} ro reset=${resetFlag_env} productType=${productType_env}; bootm ${kernel_addr}; ethaddr= #mac address ipaddr= #NAS ip ncip= #clunc connected ip serverip= #clunc connected ip stdin=nc stdout=nc === Boot === The Linux kernel is loaded from disk. ==== Linux ==== Here are the possible versions for the Linux kernel: * 2.6.22.18. * 2.6.31.14. Here are the possible versions for the Linux Marvell patch: * LSP 5.0.3 * LSP 5.1.3 ==== Userland ==== * Coreutils: busybox * HTTP: lighttpd * FTP: ProFTPd * SMB: Samba (unix extensions disabled by default; to enable them, change the corresponding line in /snaps/00/etc/samba/smb.conf on sda9) * Bonjour: Avahi/Zeroconf * SSH: Openssh (disabled by default; to enable it, uncomment the corresponding line in /etc/initng/runlevel/default.runlevel on sda8 and change root password in /snaps/00/etc/shadow on sda9) * Rsync: disabled by default, to enable it define a new daemon in /etc/initng on sda9 to launch "/usr/bin/rsync --daemon" and add it to /etc/initng/runlevel/default.runlevel * Deep sleep mode: can be enabled from the web interface, but if ssh has been enabled it is simpler to call /sbin/smart_shutdown