davy_gravy, thanks for sharing these experience! Before I starting doing this, I list the procedure as followed:
A. - Replace the hard driver
B. - Flash the freelink to LS so that I can get the full access
C. - Flash LNI's original 22.214.171.124 (http://downloads.buffalo.nas-central.or ... EUBOOT.TXT
D. However there are still something I don't quite understand
The netconsole is the default console even if the serial port is installed and the jumper is "on"
This netconsole is used to watch U-Boot prompt later? But how to start the netconsole with the boot address of the LinkStation?
Wait for the U-Boot prompt and type 's' to stop the boot process
I guess after I excute the ./u-boot-load.sh. The U-Boot is loading to RAM and when should I stop this? How long do I have ?
To use vmlinux-2.6.22.gz, rename /boot/vmlinuz to something else and create a symbolic link:
I shoud use the Lenny image you rolled (lsmipsel-lenny-v1.tar.gz )?
I didn't plan to upgrade the latest 2.6.30 kernel since it will have some compatibility problems as I see. Moreover my desktop is still using 2.6.22 kernel. So I think the 2.6.22 kernel is good enough to me! Can this Lenny image running without 2.6.30?
I just want to make sure every steps before I did it.
Thanks again for your help!
0. Before you do anything, on your Desktop computer/Linux box set up a tftp server and test it. Also install the nc netcat program there as well.
A, B and C. Yes.
D. I use this command with my workstation at 192.168.11.149 and my LS @ 192.168.11.150. Of course, the router has a similar network address as would make sense.
nc -u -p 6666 -v 192.168.11.150 6666
You may want to adjust your network to match these values. Or you can modify the commands w/ different ip addresses, as well.
You probably won't want to put the jumper on your LS2 - that is for serial-console access, not netconsole access.
E. Yes, I can't remember how long it takes. When you try it you will see.
F & G. Yes, use that Lenny image. I have tested it now for a week and it works well. Also, there are not compatibility problems w/ the kernel, we just discovered that there are some steps that have to be done to move the rtc to the new format. I would suggest the following:
- tftp boot into foonas-em. http://foonas.org/index.php/Foonas-em:TFTPBoot-lsmipsel
has directions. Then log in:
davygravy@DuoBuntu:~$ telnet 192.168.11.162
Connected to 192.168.11.162.
Escape character is '^]'.
______ _____ _____ __ __ _____ ______
| ___| | | \| |/ _ \| ___|
_| ___| - | - | | _ |\ \
| |__| |_____|_____|__|\___|__| |__|_\ \
foonas-em for lsmipsel - http://foonas.org
lsmipsel login: root
- while booted in foonas-em, use fdisk to repartition your hard drive w/ a larger hda1 (like maybe 3 GB), the normal swap partition, and the rest as a very large hd3. Don't forget to run mkswap, swapon, and mkfs.ext3 on the appropriate partitions
- mount hda1 to /mnt , cd to /mnt (it should only have lost+found there now)
- move to /mnt , download the latest lenny tarball and untar it, clean out the old modules & the depmod stuff
tar zxvf lsmipsel-lenny-v1.tar.gz
rm -r /mnt/lib/modules/126.96.36.199/*
, download the newest kernelpackage (v11 right now), and untar it
tar zxvf linux-lsmipsel-188.8.131.52-v11.tar.gz
- use vi in foonas-em to edit your network stuff:
- also, while at /mnt, replace the /sbin/hwclock binary to help fix the rtc format incompatibility problem
and then make it executable
chmod +x hwclock
Then umount the hdd and stop at the uboot prompt:
Press s & enter at uboot prompt:
-Boot 1.1.4 LiSt V2 (mips) 1.0.1 (Sep 20 2007 - 00:42:23)
stdin : nc
IDE: Bus 0: OK Bus 1: OK
Device 0: Model: Maxtor 5T020H2 Firm: TAH71DP0 Ser#: 2TRH6MCG
Type: Hard Disk
Capacity: 19541.8 MB = 19.0 GB (40021632 x 512)
Boot in 09 seconds ('s' to stop)...s
Boot in 08 seconds ('s' to stop)...
Fix your uboot env vars, save them and boot:
set bootargs 'setenv bootargs email@example.com/,@192.168.11.149/ root=/dev/sda1 rw'
set hdfile 'boot/vmlinuz'
The box will reboot, and after some chatter of the hdd, it should come up on your network. Log in w/ root password "lsmipsel".
davygravy@DuoBuntu:~$ ssh firstname.lastname@example.org
Linux lsmipsel 184.108.40.206 #1 Mon Aug 17 02:03:40 CDT 2009 mips
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Dec 31 18:30:54 1969 from 192.168.11.149
Wed Dec 31 18:02:03 CST 1969
Run depmod to get full access to your modules:
Get your debian package manager up & running & put on ntpd so your system time is set automatically.
apt-get install ntp
check your date & time
(I live in the US Central Time zone, you may want to adjust the tz info to your location).
*** Fix the rtc.
Delete the old rtc node in /dev and replace it w/ the new one (w/ proper major & minor)
rm -f /dev/rtc*
mknod /dev/rtc c 254 0
You will run the extra hwclock binary that you downloaded, perhaps three times, to get it to properly set the hwclock. You will know that it is properly set when it returns quickly w/ no error.
Once this special hwclock binary has run and set the time correctly, you should be able to use the regular hwclock binary without any problem.
If there are any problems, read this viewtopic.php?f=12&t=20753&p=132131&hilit=+incompatibility+garbled+switched#p132131
, #6 on the list
, and follow the fixes A, B
and C shown on it. (you'll probably only have to do step B out of these three fixes)
If the Link/Act LED is solid green, but the Power LED continues to pulse and you hear the hdd chattering, then it is running fsck on the hdd's partition. Simply go have a break, drink a beer, take a walk, whatever and it should be done by the time you get back... If it is a larger hdd, then it may take longer.
The 220.127.116.11 is absolutely the best supported/most-full-featured kernel that the LS2 has ever had. This kernel + Lenny + UBoot = a fully open system, just as good as what we have for the LS1 and LSHG.