Senior Member
Posts: 3,777
Registered: ‎04-17-2008
Kudos: 443
Solutions: 3

Re: PeekaBoo Why Hello USB

Fry's is running a 64GB Memory Stick for $30.
Previous Employee
Posts: 13,551
Registered: ‎06-10-2011
Kudos: 5474
Solutions: 1656
Contributions: 2

Re: PeekaBoo Why Hello USB

Stig, What's that header by the usb port? Is that some kind of jtag, serial, gpio, or ???


If you are talking about the 14-pin header, yes that is the JTAG header. However, since the bootloader is pretty much open, I don't think you would want/need to use JTAG anyway Icon Smile
SuperUser
Posts: 21,761
Registered: ‎11-20-2011
Kudos: 7932
Solutions: 233

Re: PeekaBoo Why Hello USB

Fry's is running a 64GB Memory Stick for $30.

Not quite the same thing...
:: sent from my phone


isp builder | linux sorcerer | datacenter automation conjurer | blog: blog.engineered.online
link to our slack channel on the blog
Member
Posts: 299
Registered: ‎01-14-2012
Kudos: 62

Re: PeekaBoo Why Hello USB

The webproxy traffic doesn't get hardware offloaded since the tcp session is terminated on the router, has to go to a userspace process and generates are new tcp session. There have been some discussions of making a higher end model with disk (or at least sata connector).


It's not a good cache. You have media caching network services and browser cache, plus everything these days is dynamically generated content. The most effective caching systems cost thousands of dollars, and still only cache a fraction of traffic... Not to mention a mips system isn't well designed for a task like that.

I know what you want man, but you're trying to use a hammer on a screw here. Not the right tool.

:: sent from my phone


Thanks.
If it is already considered and not a good ideas
Better not implement it
SuperUser
Posts: 21,761
Registered: ‎11-20-2011
Kudos: 7932
Solutions: 233

Re: PeekaBoo Why Hello USB

Thanks.
If it is already considered and not a good ideas
Better not implement it

The gains would be very minimal for drastically reduced performance, depending on network load. It would be like making a corvette haul a boat "just because".
:: sent from my phone


isp builder | linux sorcerer | datacenter automation conjurer | blog: blog.engineered.online
link to our slack channel on the blog
New Member
Posts: 20
Registered: ‎12-27-2012
Kudos: 24
Solutions: 1

Re: PeekaBoo Why Hello USB

Have you tried sticking a hub in there or is it permanently inserted?

The one thing that bugs me about not having USB is not being able to stick a USB LTE/4G modem in there. If I can stick one in there via a hub, even if I have to modify the case, I'd be very happy.
Previous Employee
Posts: 13,551
Registered: ‎06-10-2011
Kudos: 5474
Solutions: 1656
Contributions: 2

Re: PeekaBoo Why Hello USB

Sticking a hub in there is not officially supported of course, but technically it should work. Icon Smile
New Member
Posts: 20
Registered: ‎12-27-2012
Kudos: 24
Solutions: 1

Re: PeekaBoo Why Hello USB

That is awesome news.
Considering I soldered a serial port to my current router and built a custom firmware for it, I'm pretty sure I don't care about what's "officially" supported. :-)
In fact, first thing I'm doing with my ERL when I get it is create some PBR commands, like I did for my current router.
SuperUser
Posts: 14,592
Registered: ‎12-08-2008
Kudos: 11388
Solutions: 698
Contributions: 1

Re: PeekaBoo Why Hello USB

Sticking a hub in there is not officially supported of course, but technically it should work. Icon Smile


If it's a USB master, having it be able to run a USB 3G/4G dongle would be a really nice (but expensive) way to get out-of-band management, which several people have asked about for connecting to sites with downed links. It would also open a whole 'nother market for the units as an integrated 3G/4G firewall router.

As if we need another reason for people to order them (when nobody has them yet anyway)...Icon Rolleyes Can't you guys just spin up a production order for 100,000 of them and be done with it? Icon Mrgreen
Jim
" How can anyone trust Scientists? If new evidence comes along, they change their minds! " Politician's joke (sort of...)
"Humans are allergic to change..They love to say, ‘We’ve always done it this way.’ I try to fight that. "Admiral Grace Hopper, USN, Computer Scientist
"It's not Rocket Science! - Oh wait, Actually it is... "NASA bumper sticker
"Just because you can do something doesn't mean you should."my mantra in the Programming classes I used to teach once upon a time...
SuperUser
Posts: 21,761
Registered: ‎11-20-2011
Kudos: 7932
Solutions: 233

Re: PeekaBoo Why Hello USB

If it's a USB master, having it be able to run a USB 3G/4G dongle would be a really nice (but expensive) way to get out-of-band management, which several people have asked about for connecting to sites with downed links. It would also open a whole 'nother market for the units as an integrated 3G/4G firewall router.

As if we need another reason for people to order them (when nobody has them yet anyway)...Icon Rolleyes Can't you guys just spin up a production order for 100,000 of them and be done with it? Icon Mrgreen
Jim


I have mentioned this exact thing in the beta forum, and also for airrouters and toughswitches previously.

It's just that nobody listens to me Man Sad


isp builder | linux sorcerer | datacenter automation conjurer | blog: blog.engineered.online
link to our slack channel on the blog
New Member
Posts: 20
Registered: ‎12-27-2012
Kudos: 24
Solutions: 1

Re: PeekaBoo Why Hello USB

It's not necessarily expensive for OOB management. Management traffic shouldn't be that heavy on data usage, and I can get a 100MB data plan for $10 a month here in Canada. $10 a month for emergency management access is totally worth it to me.
Regular Member
Posts: 466
Registered: ‎11-15-2008
Kudos: 152
Solutions: 8

Re: PeekaBoo Why Hello USB

Did some testing today with a couple WiMAX USB dongles and unfortunately the edgerouter doesn't support rndis or cdc. I have a couple 3G dongles ill try in the morning.
Stig is it possible to get a package for the kernel headers used in EdgeMax so I can build a kernel module against them?
Previous Employee
Posts: 13,551
Registered: ‎06-10-2011
Kudos: 5474
Solutions: 1656
Contributions: 2

Re: PeekaBoo Why Hello USB

Did some testing today with a couple WiMAX USB dongles and unfortunately the edgerouter doesn't support rndis or cdc. I have a couple 3G dongles ill try in the morning.

Stig is it possible to get a package for the kernel headers used in EdgeMax so I can build a kernel module against them?


To build the kernel/modules you will need to obtain the SDK (we are on version 2.0) from cnusers.org/ and also get our kernel source code (contained in the GPL archive).

If your USB device is supported by the kernel already, you should be able to build a module within the kernel (change the kernel config to include the module). Otherwise you might need to do an external module build against the kernel source tree.
Previous Employee
Posts: 10,504
Registered: ‎06-09-2011
Kudos: 3141
Solutions: 945
Contributions: 16

Re: PeekaBoo Why Hello USB

Did some testing today with a couple WiMAX USB dongles and unfortunately the edgerouter doesn't support rndis or cdc. I have a couple 3G dongles ill try in the morning.

Stig is it possible to get a package for the kernel headers used in EdgeMax so I can build a kernel module against them?
The entire GPL source tarball is available on the downloads page http://www.ubnt.com/download#EdgeRouter:Lite
EdgeMAX Router Software Development
Previous Employee
Posts: 13,551
Registered: ‎06-10-2011
Kudos: 5474
Solutions: 1656
Contributions: 2

Re: PeekaBoo Why Hello USB

To build the kernel/modules you will need to obtain the SDK (we are on version 2.0) from cnusers.org/ and also get our kernel source code (contained in the GPL archive).


In case it wasn't clear, our GPL archive only contains the clean source tree for the kernel, so, if you are looking for Debian-style kernel "headers packages" for external module builds, it will not work "out-of-the-box". So you'll need to get the SDK (which you'll need anyway for building kernel modules) and do a build in the clean source tree so that it can be used for external module builds.
Veteran Member
Posts: 5,456
Registered: ‎03-12-2011
Kudos: 2746
Solutions: 129

Re: PeekaBoo Why Hello USB

I can't seem to find the SDK download on cnusers.org. Is this a register-only download thingie? Looks like there's a manual approval process to register on it.

 

No chance of a UBNT SDK?

Previous Employee
Posts: 13,551
Registered: ‎06-10-2011
Kudos: 5474
Solutions: 1656
Contributions: 2

Re: PeekaBoo Why Hello USB

Yes, the download is registered only. One you login you can see the downloads.

Emerging Member
Posts: 60
Registered: ‎02-13-2011
Kudos: 3
Solutions: 1

Re: PeekaBoo Why Hello USB

[ Edited ]

Ok, I've downloaded:

1) http://dl.ubnt.com/firmwares/edgemax/v1.1.0/GPL.ER-e100.v1.1.0.4543695.tbz2

2) cnusers_sdk_2.0.0.tgz from cmusers.org site.

 

Then I've unpacked both archives to directory ${UBNT_DIR} and made:

$ export UBNT_DIR=$(pwd)
$ cd OCTEON-SDK
$ ./env-setup.pl OCTEON_CN50XX
$ export OCTEON_CPPFLAGS_GLOBAL_ADD=" -DUSE_RUNTIME_MODEL_CHECKS=1 -DCVMX_ENABLE_PARAMETER_CHECKING=0 -DCVMX_ENABLE_CSR_ADDRESS_CHECKING=0 -DCVMX_ENABLE_POW_CHECKS=0" OCTEON_MODEL="OCTEON_CN50XX" OCTEON_ROOT="${UBNT_DIR}/OCTEON-SDK" PATH="${UBNT_DIR}/OCTEON-SDK/tools/bin:${UBNT_DIR}/OCTEON-SDK/host/bin:$PATH"

 

 

At this point compilation of examples/hello project works.

 

Then I've made:

$ cd ${UBNT_DIR}
$ tar xf GPL.ER-e100.v1.1.0.4543695/source/kernel_4539683-g7b3312f.tgz
$ cd kernel
$ make prepare
(here is the output of above command)
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_sym’:
scripts/kconfig/conf.c:159:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:231:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/mips/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-mips
Checking missing-syscalls for N32
CALL scripts/checksyscalls.sh
Checking missing-syscalls for O32
CALL scripts/checksyscalls.sh
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/mips/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh

 

 

and now:

$ make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-mips
Checking missing-syscalls for N32
CALL scripts/checksyscalls.sh
Checking missing-syscalls for O32
CALL scripts/checksyscalls.sh
CALL scripts/checksyscalls.sh
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
CC init/main.o
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
LD init/mounts.o
CC init/noinitramfs.o
CC init/calibrate.o
LD init/built-in.o
LD usr/built-in.o
CC arch/mips/cavium-octeon/setup.o
In file included from /home/chilek/Dokumenty/dane/ubnt/kernel/arch/mips/include/asm/octeon/octeon.h:13,
from arch/mips/cavium-octeon/setup.c:38:
/home/chilek/Dokumenty/dane/ubnt/kernel/arch/mips/include/asm/octeon/cvmx.h:151:26: error: cvmx-address.h: No such file or directory
In file included from /home/chilek/Dokumenty/dane/ubnt/kernel/arch/mips/include/asm/octeon/octeon.h:13,
from arch/mips/cavium-octeon/setup.c:38:
/home/chilek/Dokumenty/dane/ubnt/kernel/arch/mips/include/asm/octeon/cvmx.h: In function 'cvmx_phys_to_ptr':
/home/chilek/Dokumenty/dane/ubnt/kernel/arch/mips/include/asm/octeon/cvmx.h:193: error: implicit declaration of function 'CVMX_ADD_SEG'
/home/chilek/Dokumenty/dane/ubnt/kernel/arch/mips/include/asm/octeon/cvmx.h:193: error: 'CVMX_MIPS_SPACE_XKPHYS' undeclared (first use in this function)
/home/chilek/Dokumenty/dane/ubnt/kernel/arch/mips/include/asm/octeon/cvmx.h:193: error: (Each undeclared identifier is reported only once
/home/chilek/Dokumenty/dane/ubnt/kernel/arch/mips/include/asm/octeon/cvmx.h:193: error: for each function it appears in.)
/home/chilek/Dokumenty/dane/ubnt/kernel/arch/mips/include/asm/octeon/cvmx.h:197: error: implicit declaration of function 'CVMX_ADD_SEG32'
.... and many other errors ...

 

 

What am I doing wrong?

 

Emerging Member
Posts: 60
Registered: ‎02-13-2011
Kudos: 3
Solutions: 1

Re: PeekaBoo Why Hello USB

[ Edited ]

Ok I went a little bit forward (I think):

$ export C_INCLUDE_PATH=${UBNT_DIR}/OCTEON-SDK/executive
$ make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-mips
Checking missing-syscalls for N32
CALL scripts/checksyscalls.sh
Checking missing-syscalls for O32
CALL scripts/checksyscalls.sh
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC arch/mips/cavium-octeon/setup.o
arch/mips/cavium-octeon/setup.c:39:41: error: asm/octeon/octeon-boot-info.h: No such file or directory
arch/mips/cavium-octeon/setup.c:41:35: error: asm/octeon/cvmx-clock.h: No such file or directory
arch/mips/cavium-octeon/setup.c:42:35: error: asm/octeon/cvmx-error.h: No such file or directory
arch/mips/cavium-octeon/setup.c:43:35: error: asm/octeon/cvmx-debug.h: No such file or directory
arch/mips/cavium-octeon/setup.c:44:34: error: asm/octeon/cvmx-pcie.h: No such file or directory
arch/mips/cavium-octeon/setup.c: In function 'octeon_get_io_clock_rate':
.... (some more messages)
 

 

Emerging Member
Posts: 60
Registered: ‎02-13-2011
Kudos: 3
Solutions: 1

Re: PeekaBoo Why Hello USB

[ Edited ]

Ok it looks like one step forward again.

In ${UBNT_DIR}/OCTEON-SDK I've made:
$ mkdir -p GPL.ER-e100.v1.1.0.4543695/build
$ cd GPL.ER-e100.v1.1.0.4543695/build
$ tar xf ${UBNT_DIR}/GPL.ER-e100.v1.1.0.4543695/source/kernel_4539683-g7b3312f.tgz
$ cd kernel
$ make prepare
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-mips
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
Checking missing-syscalls for N32
CALL scripts/checksyscalls.sh
Checking missing-syscalls for O32
CALL scripts/checksyscalls.sh
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/mips/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
 
$ make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-mips
Checking missing-syscalls for N32
CALL scripts/checksyscalls.sh
Checking missing-syscalls for O32
CALL scripts/checksyscalls.sh
CALL scripts/checksyscalls.sh
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
CC init/main.o
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
CC init/do_mounts.o
LD init/mounts.o
CC init/noinitramfs.o
CC init/calibrate.o
LD init/built-in.o
LD usr/built-in.o
CC arch/mips/cavium-octeon/setup.o
CC arch/mips/cavium-octeon/serial.o
CC arch/mips/cavium-octeon/octeon-platform.o
CC arch/mips/cavium-octeon/octeon-irq.o
CC arch/mips/cavium-octeon/csrc-octeon.o
CC arch/mips/cavium-octeon/hal.o
CC arch/mips/cavium-octeon/dma-octeon.o
CC arch/mips/cavium-octeon/octeon_info.o
AS arch/mips/cavium-octeon/octeon-memcpy.o
CC arch/mips/cavium-octeon/perf_counters.o
CC arch/mips/cavium-octeon/flash_setup.o
CC arch/mips/cavium-octeon/smp.o
CC arch/mips/cavium-octeon/pci-console.o
CC arch/mips/cavium-octeon/octeon-wdt-main.o
AS arch/mips/cavium-octeon/octeon-wdt-nmi.o
LD arch/mips/cavium-octeon/octeon-wdt.o
LD arch/mips/cavium-octeon/built-in.o
CC arch/mips/cavium-octeon/executive/cvmx-bootmem.o
CC arch/mips/cavium-octeon/executive/cvmx-l2c.o
CC arch/mips/cavium-octeon/executive/cvmx-sysinfo.o
CC arch/mips/cavium-octeon/executive/octeon-model.o
CC arch/mips/cavium-octeon/executive/cvmx-pko.o
CC arch/mips/cavium-octeon/executive/cvmx-spi.o
CC arch/mips/cavium-octeon/executive/cvmx-cmd-queue.o
CC arch/mips/cavium-octeon/executive/cvmx-helper-board.o
CC arch/mips/cavium-octeon/executive/cvmx-helper.o
CC arch/mips/cavium-octeon/executive/cvmx-helper-xaui.o
CC arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.o
CC arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.o
CC arch/mips/cavium-octeon/executive/cvmx-helper-npi.o
CC arch/mips/cavium-octeon/executive/cvmx-helper-loop.o
CC arch/mips/cavium-octeon/executive/cvmx-helper-spi.o
CC arch/mips/cavium-octeon/executive/cvmx-helper-util.o
CC arch/mips/cavium-octeon/executive/cvmx-helper-srio.o
CC arch/mips/cavium-octeon/executive/cvmx-spi4000.o
CC arch/mips/cavium-octeon/executive/cvmx-clock.o
CC arch/mips/cavium-octeon/executive/cvmx-twsi.o
arch/mips/cavium-octeon/executive/cvmx-twsi.c:75: warning: '__cvmx_twsix_get_adapter' defined but not used
CC arch/mips/cavium-octeon/executive/cvmx-srio.o
CC arch/mips/cavium-octeon/executive/cvmx-csr-db.o
CC arch/mips/cavium-octeon/executive/cvmx-csr-db-support.o
CC arch/mips/cavium-octeon/executive/cvmx-dma-engine.o
arch/mips/cavium-octeon/executive/cvmx-dma-engine.c:54:30: error: executive-config.h: No such file or directory
arch/mips/cavium-octeon/executive/cvmx-dma-engine.c:55:25: error: cvmx-config.h: No such file or directory
make[1]: *** [arch/mips/cavium-octeon/executive/cvmx-dma-engine.o] Błąd 1
make: *** [arch/mips/cavium-octeon/executive] Błąd 2
 

 

Where could I find Octeon executive-config.h for EdgeMax kernel?