This is an old revision of the document!
This section gathers all informations about the different LaCie stock systems.
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 |
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.
These are the default environment variables in the stock U-Boot provided by Lacie:
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
The Linux kernel is loaded from disk.
Based on kernel Linux 2.6.22.18