USB JTAG  

Go Back   USB JTAG > USBJTAG (NT) > Devices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2017, 11:11 PM
ricktendo ricktendo is offline
Senior Member
 
Join Date: Nov 2014
Posts: 137
Default Ubiquity EdgeRouter Lite Support

Hello usbbdm, do you think you could add support for the EdgeRouter Lite by Ubiquity.

I had to solder some resistors in addition to the pin header (click thumbnails for full size)



Here is what the usbjtag nt show when I hit detect

Code:
-detect
IDCODE 27E01FFF
Manufacturer not found 7FF
TRAP ON is automatically enabled



Here is a link to the DataSheet

https://dl.ubnt.com/datasheets/edgem...er_Lite_DS.pdf

Here is the latest version of the GPL Archive (source code)

https://dl.ubnt.com/firmwares/edgema...001798.tar.bz2

OpenWRT Wiki Info

https://wiki.openwrt.org/toh/ubiquiti/edgerouter.lite

And here is a Serial log output (let me know what additional information you require)

Code:
Broadcast message from [email protected] (ttyS0) (Tue Sep 19 23:24:29 2017):

The system is going down for reboot NOW!
INIT: Sending processes the TERM signal
Stopping DHCP server daemon...
Stopping network plug daemon: netplugd.
[ ok ] Stopping routing services...imi...done.
[ ok ] Removing all routes.
[ ok ] Stopping DNS forwarder and DHCP server: dnsmasq.
[ ok ] Stopping EdgeOS router: rl-system.
[ ok ] Asking all remaining processes to terminate...done.
[ ok ] All processes ended within 2 seconds...done.
[ ok ] Stopping enhanced syslogd: rsyslogd.
[ ok ] Mounting root read-only...done.
[ ok ] Mounting root dev read-only...done.
[info] Will now restart.
reboot: Restarting system

Looking for valid bootloader image....
Jumping to start of image at address 0xbfc80000


U-Boot 1.1.1 (UBNT Build ID: 4670715-gbd7e2d7) (Build time: May 27 2014 - 11:16:22)

BIST check passed.
UBNT_E100 r1:2, r2:18, f:4/71, serial #: 0418D6F1DF28
MPR 13-00318-18
Core clock: 500 MHz, DDR clock: 266 MHz (532 Mhz data rate)
DRAM:  512 MB
Clearing DRAM....... done
Flash:  4 MB
Net:   octeth0, octeth1, octeth2

USB:   (port 0) scanning bus for devices... 1 USB Devices found
       scanning bus for storage devices...
  Device 0: Vendor:          Prod.: USB DISK 2.0     Rev: PMAP
            Type: Removable Hard Disk
            Capacity: 3824.0 MB = 3.7 GB (7831552 x 512)                      0
reading vmlinux.64
..................................

6882440 bytes read
argv[2]: coremask=0x3
argv[3]: root=/dev/sda2
argv[4]: rootdelay=15
argv[5]: rw
argv[6]: rootsqimg=squashfs.img
argv[7]: rootsqwdir=w
argv[8]: mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),[email protected](eeprom)
ELF file is 64 bit
Allocating memory for mapped kernel segment, alignment: 0x400000
Allocated memory for ELF segment: addr: 0x400000, size 0x7de180
Processing PHDR 0
  Loading 68ee80 bytes at 400000
  Clearing 14f300 bytes at a8ee80
## Loading Linux kernel with entry point: 0x008ec220 ...
Bootloader: Done loading app on coremask: 0x3
Linux version 3.10.20-UBNT ([email protected]) (gcc version 4.7.0 (Cavium Inc. Version: SDK_3_1_0_p2 build 34) ) #1 SMP Wed Aug 30 02:48:37 PDT 2017
CVMSEG size: 2 cache lines (256 bytes)
Cavium Inc. SDK-3.1
bootconsole [early0] enabled
CPU revision is: 000d0601 (Cavium Octeon+)
Checking for the multiply/shift bug... no.
Checking for the daddiu bug... no.
Determined physical RAM map:
 memory: 0000000007400000 @ 0000000000c00000 (usable)
 memory: 0000000007c00000 @ 0000000008200000 (usable)
 memory: 000000000fc00000 @ 0000000410000000 (usable)
 memory: 000000000064c000 @ 0000000000400000 (usable)
 memory: 0000000000044000 @ 0000000000a4c000 (usable after init)
Wasting 57344 bytes for tracking 1024 unused pages
software IO TLB [mem 0x01707000-0x01747000] (0MB) mapped at [8000000001707000-8000000001746fff]
Zone ranges:
  DMA32    [mem 0x00400000-0xefffffff]
  Normal   [mem 0xf0000000-0x41fbfffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00400000-0x00a8ffff]
  node   0: [mem 0x00c00000-0x07ffffff]
  node   0: [mem 0x08200000-0x0fdfffff]
  node   0: [mem 0x410000000-0x41fbfffff]
Primary instruction cache 32kB, virtually tagged, 4 way, 64 sets, linesize 128 bytes.
Primary data cache 16kB, 64-way, 2 sets, linesize 128 bytes.
Secondary unified cache 128kB, 8-way, 128 sets, linesize 128 bytes.
PERCPU: Embedded 10 pages/cpu @8000000001784000 s11904 r8192 d20864 u40960
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 125887
Kernel command line:  bootoctlinux $loadaddr coremask=0x3 root=/dev/sda2 rootdelay=15 rw rootsqimg=squashfs.img rootsqwdir=w mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),[email protected](eeprom) console=ttyS0,115200
PID hash table entries: 2048 (order: 2, 16384 bytes)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Memory: 495244k/510528k available (5091k kernel code, 15284k reserved, 1354k data, 272k init, 0k highmem)
Hierarchical RCU implementation.
        Additional per-CPU info printed with stalls.
NR_IRQS:255
Calibrating delay loop (skipped) preset value.. 1000.00 BogoMIPS (lpj=5000000)
pid_max: default: 32768 minimum: 501
Security Framework initialized
Mount-cache hash table entries: 256
Checking for the daddi bug... no.
SMP: Booting CPU01 (CoreId  1)...
CPU revision is: 000d0601 (Cavium Octeon+)
Brought up 2 CPUs
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource OCTEON_CVMCOUNT
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 4, 65536 bytes)
TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
octeon_pci_console: Console not created.
/proc/octeon_perf: Octeon performance counter interface loaded
HugeTLB registered 2 MB page size, pre-allocated 0 pages
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering unionfs 2.5.13 (for 3.10.34)
msgmni has been set to 967
io scheduler noop registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 34) is a OCTEON
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
1180000000c00.serial: ttyS1 at MMIO 0x1180000000c00 (irq = 35) is a OCTEON
loop: module loaded
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
OcteonUSB 16f0010000000.usbc: Octeon Host Controller
OcteonUSB 16f0010000000.usbc: new USB bus registered, assigned bus number 1
OcteonUSB 16f0010000000.usbc: irq 56, io mem 0x00000000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
OcteonUSB: Registered HCD for port 0 on irq 56
usbcore: registered new interface driver usb-storage
octeon_wdt: Initial granularity 5 Sec
TCP: cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
Bootbus flash: Setting flash for 4MB flash at 0x1f800000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0000a7
Amd/Fujitsu Extended Query Table at 0x0040
  Amd/Fujitsu Extended Query version 1.1.
phys_mapped_flash: Swapping erase regions for top-boot CFI table.
number of CFI chips: 1
3 cmdlinepart partitions found on MTD device phys_mapped_flash
Creating 3 MTD partitions on "phys_mapped_flash":
0x000000000000-0x000000080000 : "boot0"
0x000000080000-0x000000100000 : "boot1"
0x000000100000-0x000000110000 : "eeprom"
Waiting 15sec before mounting root device...
usb 1-1: new high-speed USB device number 2 using OcteonUSB
usb-storage 1-1:1.0: USB Mass Storage device detected
scsi0 : usb-storage 1-1:1.0
scsi 0:0:0:0: Direct-Access              USB DISK 2.0     PMAP PQ: 0 ANSI: 6
sd 0:0:0:0: [sda] 7831552 512-byte logical blocks: (4.00 GB/3.73 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] No Caching mode page found
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] No Caching mode page found
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 sda2
sd 0:0:0:0: [sda] No Caching mode page found
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
kjournald starting.  Commit interval 3 seconds
EXT3-fs (sda2): using internal journal
EXT3-fs (sda2): mounted filesystem with journal data mode
VFS: Mounted root (unionfs filesystem) on device 0:11.
Freeing unused kernel memory: 272K (ffffffffc064c000 - ffffffffc0690000)
Algorithmics/MIPS FPU Emulator v1.5
INIT: version 2.88 booting
INIT: Entering runlevel: 2
[ ok ] Starting routing daemon: rib nsm ribd.
[ ok ] Starting EdgeOS router: migrate rl-system configure.
Starting network plug daemon: netplugd.

Welcome to EdgeOS ubnt ttyS0

By logging in, accessing, or using the Ubiquiti product, you
acknowledge that you have read and understood the Ubiquiti
License Agreement (available in the Web UI at, by default,
http://192.168.1.1) and agree to be bound by its terms.

ubnt login:
Password:
Linux ubnt 3.10.20-UBNT #1 SMP Wed Aug 30 02:48:37 PDT 2017 mips64
Welcome to EdgeOS
[email protected]:~$

Last edited by ricktendo; 09-19-2017 at 11:17 PM.
Reply With Quote
  #2  
Old 09-20-2017, 09:07 AM
usbbdm usbbdm is offline
Administrator
 
Join Date: Jul 2005
Posts: 8,488
Default

Based on datasheet, this is MIPS64 and JTAG it should be very possible.
However I had only done one or two MIPS64 before and not sure if there is need for development work on this target.
Your current xml selection is clearly wrong and will not work.
Reply With Quote
  #3  
Old 09-20-2017, 12:13 PM
ricktendo ricktendo is offline
Senior Member
 
Join Date: Nov 2014
Posts: 137
Default

Quote:
Originally Posted by usbbdm View Post
Based on datasheet, this is MIPS64 and JTAG it should be very possible.
However I had only done one or two MIPS64 before and not sure if there is need for development work on this target.
Your current xml selection is clearly wrong and will not work.
I know, I tried almost all the EJTAG config xml's and they all showed the same detect result.
Reply With Quote
  #4  
Old 09-20-2017, 01:10 PM
usbbdm usbbdm is offline
Administrator
 
Join Date: Jul 2005
Posts: 8,488
Default

Quote:
Originally Posted by ricktendo View Post
I know, I tried almost all the EJTAG config xml's and they all showed the same detect result.
Try DCT6412 and see if you get any result.
Reply With Quote
  #5  
Old 09-20-2017, 06:22 PM
ricktendo ricktendo is offline
Senior Member
 
Join Date: Nov 2014
Posts: 137
Default

Quote:
Originally Posted by usbbdm View Post
Try DCT6412 and see if you get any result.
Same result, only difference instead of TRAP ON I got DEBUG ON

Can you also look into the EdgeRouterX, this one may need it more than the Lite because the Lite you can remove the USB and connect this to your PC to back up, the X has on board flash

Here is what the usbjtag nt show when I hit detect

Code:
-detect
IDCODE 1762124F
Manufacturer not found 127
Here is the latest version of the GPL Archive (source code)

https://dl.ubnt.com/firmwares/edgema...001797.tar.bz2

Datasheet

https://dl.ubnt.com/datasheets/edgem...outer_X_DS.pdf

OpenWRT Wiki Info (pictures of device here)

https://wiki.openwrt.org/toh/ubiquit...uter_x_er-x_ka

And here is a Serial log output (see attached)
Attached Files
File Type: zip erx_uart_log.zip (5.4 KB, 62 views)

Last edited by ricktendo; 09-20-2017 at 08:09 PM.
Reply With Quote
  #6  
Old 09-21-2017, 10:34 AM
usbbdm usbbdm is offline
Administrator
 
Join Date: Jul 2005
Posts: 8,488
Default

Looks like development is needed for these new CPUs.
Reply With Quote
  #7  
Old 09-22-2017, 01:11 PM
ricktendo ricktendo is offline
Senior Member
 
Join Date: Nov 2014
Posts: 137
Default

Quote:
Originally Posted by usbbdm View Post
Looks like development is needed for these new CPUs.
If you need to "poke" around and stuff remotely let me know when would be a good time for me to bug you in the chat
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 06:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.