HP Media Vault Ubuntu tips

** Directions to compile M/V F/W 1359 under Ubuntu 7.10 **
* Written by Chris S.(AKA aximbigfan/ABF/blue765d(at)aol.com) with information from Karl Brose and Lee Devlin
* Questions/Comments? write me at blue765d(at)aol.com
* PLEASE: do not redistribute the document without my written permission.
* VER. 2.01 RW3 PUBLIC

** The Following Document Assumes A Few Conditions: **
* You are running Ubuntu 7.10
* You are compiling the MV 1359 source
* The 1359 tar file is placed on your desktop along with Karl Brose's patch kit
* You are fluent in the Linux command line
* You are able to understand this document fully
* Finally, the most important OF ALL, that you understand that modifying and reflashing a custom F/W is dangerous and may result in a bricked device and/or voided warranty. I will not be held responsible if something goes wrong.

!!-WARNING read this entire document before attempting to modify/compile a custom F/W-!!

** Contents In Order **
* Changing to Bourne shell
* Editing and compiling the source tree
* Going back to the debian shell (if you ever need to)
* Packages needed for compiling

** ABOUT **
Due to changes in the source code structure, 1359 is slightly more complex to compile than 1256. It is also necessary to apply a patch kit created by Karl Brose, available here.

Special thanks to Lee Devlin and Karl Brose!
To Change To Bourne Shell: (Do 1st!)
(You only have to do this once per Ubuntu install, unless you undo it)
(You may need to be root to execute the 2ed command)
1. # cd /bin
2. # ln -sf bash sh

Step A: Unpacking the packages
NOTES: none.
A1. # cd /home/<user-name>/Desktop/
A2. # tar -xzof Oxford_GPL_1359.tar.gz
A3. # tar -xzof Oxford_GPL_1359-k03_1010.tar.gz
Done; Move to Step B.

Step B: installing BRCM
NOTES: none.
B1. # sudo cp -r /home/<user-name>/Desktop/Oxford_1359/opt/brcm /opt/
Done; Move to Step C.

Ok, you now have BRCM installed, the Oxford_1359 untarred, and Karl Brose's patch kit applied. If you are going to modify the source tree, you may find it in /home/<user-name>/Desktop/Oxford_1359/nasoc/, and now is the time the modify it if needed.

Step C: prep
NOTES: WARNING: DO NOT close the terminal window between Step C, and Step D. Please enter the commands in Step D in the same terminal window as Step C used.
C1. # ln -s /opt/brcm/hndtools-mipsel-linux-3.0 /opt/brcm/hndtools-mipsel-linux
C2. # export PATH=$PATH:/opt/brcm/hndtools-mipsel-linux/bin/
C3. # export PATH=$PATH:/home/<user-name>/Desktop/Oxford_1359/nasoc/tools
C4. # export PATH=$PATH:/sbin
C5. # ln -s /sbin/mkfs.cramfs /home/<user-name>/Desktop/Oxford_1359/nasoc/tools/mkcramfs

Step D: Compile
NOTES: DO NOT become root.
D1. # cd /home/<user-name>/Desktop/Oxford_1359/nasoc/src
Ok, here we go, time to issue the build command!
D2. # make build

After the compile is done, the image will be in the /nasoc/src/apps/mipsel/ dir. The image's file name will be Oxford_1.3.5.9.nas.

Just As A Note: On my notebook (1.5ghz Dothan (Centrino) 512mb of ram) the compile took 30 min. In a Ubutnu 7.10 Virtual PC 07 instance on a Windows box (2 X 2.66GHZ (Smithfield) CPU 2 X 512mb of DDR2-533 ram) the compile took about 1 hour.
1A. To Go Back To Debian Shell: (If you need to go back to the Debian shell for some reason this is the command to execute.)
1. # ln -sf dash sh
Packages Needed: (and the commands to install them!)
1. sudo apt-get install rcs
2. sudo apt-get install gettext
3. sudo apt-get install texinfo
4. sudo apt-get install gawk
5. sudo apt-get install mkcramfs
6. sudo apt-get install gcc

Return to the HP Media Vault FAQ