Ok, here are my instructions. it should be
mostly correct....
Big thanks to DC1MC and others for the info and help in this process!
I have made these instructions a verbose step-by-step to make it easier for others following along as well as for me in the future because I forget everything...
To perform the Compact Flash disk upgrade you will need the following items:
- A PC running Linux (I used Linux Mint on an old laptop) connected to your local network and with internet access.
- 1x 16, 32 or 64Mb CF card (No larger than this or it won't work!)
- 1x 2 or 4Gb CF card (The machine will only see 2Gb maximum)
- 1x CF to USB adapter
- 1x 2.5" IDE to USB adapter
- 1x Dual CF to IDE adapter (Looks like a 2.5" SSD/HDD sized box, holds 2 CF cards and converts them to a 2.5" IDE form factor)
- 3.5" Floppy disk drive (I used a USB floppy drive)
- 3.5" Floppy disk
- PS/2 Keyboard
- A long thin pokey thing to poke into the holes in the side of the Function Generator (I used a straw from a can of aerosol contact cleaner)
- LAN cable connected to your local network
- Soldering iron
- Pocket Linux disk image (attached below)
- Optional - 'ssd_10mb_500_v4.img' SSD image (if upgrading AWG510/520 software to v4, this file works for both model numbers) (attached below)
I am assuming that all files described are in the 'home' directory on the Linux PC and unzipped if required.Also, do NOT plug these disks into a windows machine. They are VX Works partitions and while they are similar to FAT partitions, there are some incompatibilities that cause Windows to freak out a little and you risk corruption when windows tries to do windows things to the disks... You have been warned!1)
Copy the Pocket Linux image to the floppy disk:With all extra disks and card readers disconnected from the Linux PC, type '
ls /dev/sd*' into the command line, this will list the currently connected disks.
Plug the floppy drive in to the PC with the floppy disk inserted and run the command again, you will see an additional disk ID present.
If it is the second disk connected to the machine, you will see '/dev/sdb' for example (ignore any trailing numbers, this indicates existing partitions which we don't care about).
Now run the following command, where '
sd*' is the ID found in the previous step. '
sudo dd if=PocketLinux2.51-fix-4.bin of=/dev/sd* status=progress'
2)
Install the FTP server:In the command line, type '
sudo apt install vsftpd'
Once installed, type '
sudo vi /etc/vsftpd.conf' and enable writing of files (delete the
# in front of
write_enable=YES line), save and exit (Press the <ESC> key, then hold the <Shift> key then press <Z> twice.)
Now type '
sudo systemctl restart vsftpd'
3)
Boot Function Generator to Pocket Linux:Attach the PS/2 keyboard and LAN cable to the Function Generator and insert the Pocket Linux disk into the disk drive.
Poke the thin rod into the hole on the left side of the machine and gently find the button inside, keep depressed while you turn the machine on until text appears on the screen then press F2 to enter BIOS.
Use the down arrow key to select the 'Boot Sequence' option and set it to '[A: then C:]' using the minus key or space bar.
Use the right arrow key to select the 'Exit' menu and select 'Save Changes & Exit'.
Pocket Linux should automatically boot from the floppy disk now.
4)
Set Function Generator Network settings:Select 'Manual Configuration' from the menu.
Set the network settings as needed:
- This Machine's IP: As needed (Choose your IP address)
- Network Mask: As needed to match your network (Typically 255.255.255.0 etc)
- Broadcast Address: Leave blank
- Default Gateway: As needed to match your network (Typically 192.168.1.1 etc)
- Name Server IP(s): Same as Default Gateway
- Default Domain(s): Leave blank
Select 'OK' then 'Exit - Do not configure the network' to get back to the command prompt (we have made the settings so they will stick until reboot, regardless of what it says)
You should see a message saying "This machine's IP is xxx.xxx.xxx.xxx" and a command prompt.
Check connectivity by typing '
ping yyy.yyy.yyy.yyy' (Where yyy.yyy.yyy.yyy is your Linux PC's IP address)
Press 'Q' to exit ping back to command line.
5)
Copy SSD Disk Image:Mount the SSD by typing the following command '
mount /dev/hda1 -o ro /mnt'
Connect to FTP server using the command '
ftp yyy.yyy.yyy.yyy' (Where yyy.yyy.yyy.yyy is your Linux PC's IP address)
Enter the username and password (Typically the login username and password for your PC)
Copy the SSD disk image across to the PC using the following command '
put "| cat /dev/hda" ssd_10mb.img'
Once the transfer is complete, exit the FTP server with the command '
bye'
Turn off the Function Generator using the rear panel switch and remove the Pocket Linux disk.
6)
Copy HDD Disk Image:To image the HDD, I found it's quicker to connect it directly to the PC due to it's size. (slow 10mbit/s LAN is ssslloooooww...)
Remove the existing SSD and HDD from the Function Generator and attach the HDD to the PC with the IDE-USB adapter.
Copy the disk image to the PC using '
dd if=/dev/sd* of=~/hdd_2gb.img' where sd* is the disk ID, using the '
ls /dev/sd*' command as before to determine the correct disk ID.
7)
Copy Disk Images to CF Cards:If not performing step (7a) below, simply run the following command with the smaller CF card connected to the PC with the CF to USB adapter. '
sudo dd if=ssd_10mb.img of=/dev/sd* status=progress' to copy the SSD image (Substitute '
sd*' with the disk ID using '
ls /dev/sd*' as before).
7a)
**OPTIONAL IF UPGRADING SOFTWARE TO v4**With the smaller CF card connected to the PC using the CF to USB adapter, type '
sudo dd if=ssd_10mb_500_v4.img of=/dev/sd* status=progress' to copy the v4 SSD image (Substitute '
sd*' with the disk ID from the previous step, ignore the number).
When finished mount your old SSD disk image by double clicking on it in the in the file explorer and copy the 'delay.dly' file over to the SD card, overwriting the existing file.
This file has a checksum applied, so it is specific to each machine. Using a delay.dly file from another machine will throw errors.
If you are following this guide to replace dead disks and are unable to retrieve your original delay.dly file, you will need to perform a full calibration as described in the service manual to re-generate this file after completing all these steps.
I have uploaded the required 'Performance Verification Disk' disk images needed to perform the calibration and adjustment to the relevant pages on Tekwiki:
https://w140.com/tekwiki/wiki/AWG510https://w140.com/tekwiki/wiki/AWG610etc
Once the SSD CF card is imaged, remove it from the CF-USB adapter.
Insert the 2/4Gb CF card into the CF to USB adapter and copy the hdd_2gb.img image file using '
sudo dd if=hdd_2gb.img of=/dev/sd* status=progress' (Substitute '
sd*' with the disk ID using '
ls /dev/sd*' as before).
8 )
Modify and install IDE-Dual CF Adapter:Open the case of the IDE-Dual CF adapter and remove the PCB.
Move/re-solder the voltage jumper to the 3.3V position (the jumper should short pins 3 and 4 on the voltage selector jumpers, but double check just in case yours is different).
Reassemble the adapter casing and plug the CF cards into the IDE-Dual CF adapter (SSD imaged CF card in Master position, HDD imaged CF card in the Slave position).
Remove the existing SSD and HDD from the Function Generator and install the CF adapter assembly into the machine. Use the first connector on the cable, the second connector can be tucked away neatly.
The red stripe on the cable should be towards the 3.3v/5v jumper end of the connector in the CF adapter.
9)
Set Disk Parameters in BIOS:Reassemble the machine, reconnect the PS/2 keyboard and boot to BIOS, again poking a thin rod into the hole on the left side as before.
Select each disk in turn ('IDE Adapter 0 Master/Slave') and press <Enter> on 'Autotype Fixed Disk' to auto set the parameters.
You can also set the boot order back to '[C: only]' too using the space bar.
Exit saving changes and allow the machine to boot. You may see errors on boot. This is expected and if all went well, they should go away after step (10).
10)
Perform Calibration/Diag Routines:Let the machine warm up and perform a diagnostic test and calibration ('Utility' panel button > 'Diag' bottom button on screen > 'Execute Calibration' then 'Execute Diagnostic') to check it is all ok.
11)
Finished!:Reboot once more for good measure and it's all done!