On 20 Dec 2012 19:17, "Alec Rust" <[email protected]> wrote:
>
> Hi Dave, thanks for the comments. See my answers below.
>
> On 20 Dec 2012 19:01, "David MacMahon" <[email protected]> wrote:
> >
> > Hi, Alec,
> >
> > Thanks for these details! I have a few comments/questions:
> >
> > On Dec 20, 2012, at 6:32 AM, Alec Rust wrote:
> >
> > > Copy and gzip in one example: cat /mnt/boffiles/example.bof | gzip -c
- > /usr/bof/example.bof.gz
> >
> > No need to use cat:
> >
> > gzip -c /mnt/bof/file > /usr/bof/file
> Only reason for the cat command is to only write to flash once as it is
slow and has limited write cycles. Other method is to zip it first on the
host and then to copy.
> >
> > > HTTP:
> > > 1. Use minicom or another terminal emulator to access the console via
USB. (ttyUSB2)
> > > 2. Reboot the machine and let it soloboot or just make sure the
ROACH2 has booted from flash.
> > > 3. Login with username: root, leave the password blank
> > > 4. cd /usr/bof
> > > 5. Server the boffile on a web server, it is better to gzip the
boffiles, speeds up the transfer and you can store more.
> > > webfsd is easy to use:
> > > a) Enter the directory containing the boffiles
> > > b) webfsd -p 8080 -r . (use any free port over 1024)
> > > 6. wget http:/server_ip:port/file
> >
> > I think it would be good to clarify where each step should be run. One
can figure it out, but newbies will get confused. You might also want to
mention which OS packages should be installed to get webfsd ("webfs" on
Ubuntu, not sure about redhat-based disros).
>
> Will write a clearer guide and post on the wiki.
> >
> > An interesting add-on to tcpborphserver would be to enable it to get
boffiles from a tftp server. You'll see another email from me to the
casper list about tcpborphserver.
> >
> > > How to configure the ROACH2 to load a boffile at startup:
> > > 1. Use minicom or another terminal emulator to access the console via
USB. (ttyUSB2)
> > > 2. Reboot the machine and let it soloboot or just make sure the
ROACH2 has booted from flash.
> > > 3. Login with username: root, leave the password blank
> > > 4. cd /etc
> > > 5. vi tcpborphserver3.init
> > > 6. At the end add: ?progdev boffile (don't include a path)
> > > 7. Any other katcp commands can be added.
> >
> > Isn't /etc mounted read-only? Is /etc/tcpborphserver4.init a symlink
to a file on a writable filesystem?
>
> No the romfs is not read only. You are editing the actual file.
>
> >
> > Thanks again,
> > Dave
> >