Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 2013 11:10:59 +0200
From:      Milan Obuch <freebsd-mips@dino.sk>
To:        freebsd-mips@freebsd.org
Subject:   Re: Ubiquiti EdgeRouter Lite works multi-user with -CURRENT.
Message-ID:  <20130516111059.38543d57@wind.dino.sk>
In-Reply-To: <CACVs6=_UHMvo6DSyXzvXxJ0eCcSsC%2Bk3yZ42ia5TGzgHduT2zA@mail.gmail.com>
References:  <CACVs6=_UHMvo6DSyXzvXxJ0eCcSsC%2Bk3yZ42ia5TGzgHduT2zA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 23 Jan 2013 18:22:10 -0800
Juli Mallett <jmallett@FreeBSD.org> wrote:

> Folks,
> 
> Just wanted to let everyone know that what's in -CURRENT now boots
> happily to multiuser on the EdgeRouter Lite.  The big challenge is
> getting a file system on the onboard storage.  I didn't want to use
> Ubiquiti's Linux to do it for what are probably spurious reasons, so I
> ended up loading a huge kernel with tftp which had an MFS embedded in
> it.  On the MFS, I placed pretty much just /rescue. I used netcat and
> dd to splat an image onto the disk, with a FAT /boot partition on
> slice 1 and a UFS / partition on slice 2.
>

Hi,

I just got this new toy and did first test, using script from Warner's
http://bsdimp.blogspot.sk/2011/01/freebsdmips-for-cavium-octeon.html
(big thanks - it is simple, so no problems to put everything together,
just saved me some valuable time). Also, I opened the device and as
there is normal USB flash disk I just got it out and dd-ed resulting
image onto it and it was done.

> In U-Boot, I then changed the bootcmd to:
>   "fatload usb 0 0 /kernel/kernel; bootoctlinux 0 coremask=0x3"
> 
> It happily boots multi-user with networking, etc.  Just uncomment the
> OCTEON_VENDOR_UBIQUITI option in the OCTEON1 kernel config and change
> the root device to "ufs:da0s2".
> 
> It seems like it would be nice to script the creation of an image one
> could TFTP boot which could then pull down a disk image off the web
> and dd it to the disk.  Then we could produce "installers" of a sort
> for Octeon (and other MIPS) systems with ease with a cron job or
> something.  I probably won't get around to doing this, but wanted to
> suggest it as a nice way of being able to install systems like this.
> Especially with how cheap the EdgeRouter Lite is, it seems like a
> useful piece of evangelism.  Heck, since U-Boot claims to support use
> of a gateway, you could even have a TFTP server on the Internet and
> let people download the installer that way, too, with just a few
> commands in U-Boot.
>

Good idea. Only if I had more time to play with it... but, maybe...
Anyway, opening the box and copying image to flash disk was just quick
and easy way of installing FreeBSD on it.

> If anyone needs help getting FreeBSD going on EdgeRouter Lite or other
> Octeon systems, they should feel free to contact me.  I don't have
> much time, but this is at least something I've gotten down pretty
> well.
> 

Has anybody any source for some more hardware information? Looking on
opened box, there are three things interesting for me:

- there is z 2x7 'holes area' (ready for soldering 2x7 pin header)
  labeled J1. Does anybody know anything about it? Googling for
  edgerouter J1 pin header does not produce anything usable.

- near an J1 area, there are two SMD LEDs. Both are on. On PCB, there
  are labels D34 and D35. Any idea what are they intended for? Could
  they be user controlled? Not much usefull when the box is closed, but
  anyway...

- there is a reset switch accessible from outside, marked SW1 on PCB.
  When running FreeBSD, however, it has no efect. Any idea how it could
  be used for launching some user action? Maybe it could be accessible
  via GPIO driver, probably not written yet...

Anyway, big thanks for all working on MIPS support. It was really
simple to put FreeBSD on box. When I put it on my home network, I will
try native buildworld/buildkernel/etc. to do some CPU speed test and
similar things.

Regards,

Milan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130516111059.38543d57>