Hello,
I've played around a bunch with NSLU2, so I'm familiar with some of these embedded devices. I installed a serial console to my HS-DH1000GL (v2), using a hacked CD-ROM audio cable and socket.
I previously had Buffalo firmware from filename "HS-DHGL_211_101b.zip" - which is assumed to be version 2.11.
I already had installed this (from late 2009) but was attempting to install FreeLink using the instructions below:
FreeLink_for_the_Linkstation_ProHowever, it seems that the instructions were incorrect. THEN, I saw in the discussion of the wiki:
Talk:FreeLink_for_the_LinkStation_PRO/LIVEthat it's not working for firmware 2.11. I can confirm something got hosed. However, I do have serial access, and can boot via TFTP from uboot. I have tried the instructions elsewhere for restoring a hard drive (in case of replacement - repartition). That doesn't work. I even removed the 1TB HDD, connected it to a USB-SATA controller and in linux deleted all partitions, and then retried but got the same results. It is not even looking at the SATA drive partition 1 to boot. I am convinced that following the FreeLink Wiki instructions, somehow the uboot env parameters were changed.
I've tried the selections using LSUpdater.exe for "Rebuild partition table", "delete user config", "force update", after doing the usual editing of lsupdater.ini "VersionCheck = 0" and "Debug = 1" and it seems to go through an update (after TFTP booting the two files uImage.buffalo and initrd.buffalo) but after reboot, it continues to only boot from TFTP. It will continue to try to get the files via TFTP, and after timeout it tries again over TFTP. I searched for "bad partition 1" in the forums, but no searched post seemed relevant.
I keep getting the message that it cannot boot due to bad partition 1 on ide0, then it tries partition 1 on ide1:
Code:
Orion1 CPU = Low
=== BUFFALO LS-GL U-Boot. ===
** LOADER **
** BUFFALO BOARD: BUFFALO_BOARD_LS_GL LE (CFG_ENV_ADDR=fffff000)
U-Boot 1.1.1 (Apr 18 2007 - 18:35:44) Marvell version: 1.12.1 - TINY
DRAM CS[0] base 0x00000000 size 128MB
DRAM Total size 128MB
[256kB@fffc0000] [0kB@f8000000] ## Unknown FLASH at f8000000: Size = 0x00000000 = 0 MB
Flash: 256 kB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done
Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 400Mhz
Orion 1 streaming disabled
SysClock = 200Mhz , TClock = 166Mhz
USB 0: host mode
USB 1: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000
Net: egiga0 [PRIME]
Using 88E1118 phy
Marvell Serial ATA Adapter
Integrated Sata device found
Device 0: OK
Model: SAMSUNG HD103UJ Firm: 1AA01114 Ser#: XXXXXXXXXXXXXXXXX <-- I modified this post to comment out the s/n
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
Using device ide0, partition 1
Loading from block device ide device 0, partition 1: Name: hda1
Type: U-Boot File:/initrd.buffalo
0 bytes read
Using device ide1, partition 1
** Bad partition 1 **
Lost all init_rd
hit any key to switch tftp boot.
Hit any key to stop autoboot: 0
Using egiga0 device
TFTP from server 192.168.11.1; our IP address is 192.168.11.150
Filename 'uImage.buffalo'.
Load address: 0x100000
Loading: T T
Retry count exceeded; starting again
Using egiga0 device
TFTP from server 192.168.11.1; our IP address is 192.168.11.150
Filename 'uImage.buffalo'.
Load address: 0x100000
Loading: T T
Retry count exceeded; starting again
This is what happens when I change the IP to my network (server and client IP addr changed):
Code:
Orion1 CPU = Low
=== BUFFALO LS-GL U-Boot. ===
** LOADER **
** BUFFALO BOARD: BUFFALO_BOARD_LS_GL LE (CFG_ENV_ADDR=fffff000)
U-Boot 1.1.1 (Apr 18 2007 - 18:35:44) Marvell version: 1.12.1 - TINY
DRAM CS[0] base 0x00000000 size 128MB
DRAM Total size 128MB
[256kB@fffc0000] [0kB@f8000000] ## Unknown FLASH at f8000000: Size = 0x00000000 = 0 MB
Flash: 256 kB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done
Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 400Mhz
Orion 1 streaming disabled
SysClock = 200Mhz , TClock = 166Mhz
USB 0: host mode
USB 1: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000
Net: egiga0 [PRIME]
Using 88E1118 phy
Marvell Serial ATA Adapter
Integrated Sata device found
Device 0: OK
Model: SAMSUNG HD103UJ Firm: 1AA01114 Ser#: XXXXXXXXXXXXXXXXX <-- I modified this post to comment out the s/n
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
Using device ide0, partition 1
Loading from block device ide device 0, partition 1: Name: hda1
Type: U-Boot File:/initrd.buffalo
4697066 bytes read
Using device ide1, partition 1
** Bad partition 1 **
Booting from Device 0
hit any key to switch tftp boot.
Hit any key to stop autoboot: 0
Hit any key to stop autoboot: 0
Using egiga0 device
TFTP from server 10.54.89.229; our IP address is 10.54.89.236
Filename 'uImage.buffalo'.
Load address: 0x100000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##################################
done
Bytes transferred = 1834908 (1bff9c hex)
Using egiga0 device
TFTP from server 10.54.89.229; our IP address is 10.54.89.236
Filename 'initrd.buffalo'.
Load address: 0x800000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########
done
Bytes transferred = 4697066 (47abea hex)
<<stop_sound>>
## Booting image at 00100000 ...
Image Name: Linux-2.6.16.16-arm1
Created: 2007-08-31 4:07:21 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1834844 Bytes = 1.7 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00800000 ...
Image Name: initrd
Created: 2008-01-16 10:55:10 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 4697002 Bytes = 4.5 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Starting kernel ...
arg:console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.10 tftpboot=yes
CONFIG_BUFFALO_PLATFORM CONFIG_BUFFALO_LINKSTATION_LSGL ---
Uncompressing Linux....................................................................................................................... done, booting the kernel.
Linux version 2.6.16.16-arm1 (root@dh2-bs) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #6 Fri Aug 31 13:07:15 JST 2007
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ)
Machine: MV-88fxx81
Using UBoot passing parameters structure
Sys Clk = 200000000, Tclk = 166664740
Here are my env variables (except for MAC address - changed on purpose for this post):
Code:
Marvell>> printenv
bootargs=$(bootargs_base) $(bootargs_root)
baudrate=115200
loads_echo=0
rootpath=/nfs/arm
cpuName=926
CASset=min
MALLOC_len=4
bootargs_end=:::DB88FXX81:eth0:none
ethact=egiga0
ethaddr=00:16:01:FF:FF:FF <-- I Modified this for the forum post
buffalo_ver=BOOTVER=1.10
buffalo_minor_ver=BOOT_MINOR_VER=1.00
build_time=18:35:39
initrd=initrd.buffalo
kernel=uImage.buffalo
bootargs_base=console=ttyS0,115200
bootargs_root=root=/dev/sda2 rw initrd=0x00800040,15M panic=5
def_tftp=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes;bootm 0x00100000 0x00800000
ipaddr=10.54.89.236
serverip=10.54.89.229
stdin=serial
stdout=serial
stderr=serial
enaMonExt=no
enaFlashBuf=yes
enaCpuStream=no
ethprime=egiga0
bootdelay=3
disaMvPnp=no
overEthAddr=no
usb0Mode=host
usb1Mode=host
filesize=0
force_tftp=1
bootcmd=tftp 0x00100000 $(kernel);tftp 0x00800000 $(initrd);setenv bootargs $(bootargs_base) $(bootargs_root) $(buffalo_ver) tftpboot=yes;bootm 0x00100000 0x00800000
Environment size: 995/4092 bytes
Note that I have changed the ipaddr and serverip addresses so that the Linkstation Live v2 can boot from files served from my PC. If I terminate the TFTP server, or even if I revert to the original default IP parameters for ipaddr=192.168.11.150 and serverip=192.168.11.1 the linkstation pro refuses to boot from the SATA drive.
Can someone tell me if their environment variables are similar?
I understand that there is a way to install a newer uboot via
U-boot_for_LS_Pro (that is version 1.1.1 - old) or even newer versions not in the wiki like here:
davy_gravy 1.1.4 but I don't want to go through that risk and then still have the env vars set incorrectly.
Thanks!
-Rob