Skip to content

Instantly share code, notes, and snippets.

@shamun
Created October 10, 2011 07:11
Show Gist options
  • Select an option

  • Save shamun/1274795 to your computer and use it in GitHub Desktop.

Select an option

Save shamun/1274795 to your computer and use it in GitHub Desktop.
Press CTRL-A Z for help on special keys
db> AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
db> help
DDB Quick Help
-------------------
Type 'c' to continue, 'reset' or 'panic' to restart.
print p examine x search set write
w delete d break dwatch watch dhwatch
hwatch step s continue c until next
match trace alltrace where bt call show
ps gdb reset kill watchdog thread panic
dumpsys ddbdumpsys
db> break
db> next
cpld_dcd_poll+0x58 (80010000,1fbf000b,801,1fbf000b) ra 807742bc sz 24
octeon_clockintr_periodic+0xa8 (80010000,1fbf000b,801,1fbf000b) ra 807552fc sz 32
clockintr+0x18 (80010000,1fbf000b,801,1fbf000b) ra 807446bc sz 32
mips_interrupt+0x218 (80010000,1fbf000b,801,1fbf000b) ra 809852cc sz 32
MipsKernIntr+0x144 (80a10000,80bf3738,ffff8010,80bf3738) ra 807428f0 sz 360
cpu_idle+0x10 (80a10000,80bf3738,ffff8010,80bf3738) ra 801f7458 sz 24
idle_proc+0x22c (80a10000,80bf3738,ffff8010,80bf3738) ra 801f1b7c sz 64
fork_exit+0x25c (80a10000,80bf3738,ffff8010,80bf3738) ra 80985d0c sz 48
MipsNMIException+0x2c (80a10000,80bf3738,ffff8010,80bf3738) ra 0 sz 0
pid 21, process: idle: cpu1
cpu:1-Trap cause = 4 (address error (load or I-fetch) - kernel mode)
badvaddr = 0x1fbf000b, pc = 0x807b6fb0, ra = 0x807742bc, sr = 0x802
U-Boot 1.1.6-JNPR-1.9 (Build time: May 17 2010 - 06:30:31)
SRX_210_HIGHMEM board revision major:1, minor:34, serial #: AAAT2330
OCTEON CN5020-SCP pass 1.1, Core clock: 400 MHz, DDR clock: 200 MHz (400 Mhz data rate)
DRAM: 1024 MB
Starting Memory POST...
Checking datalines... OK
Checking address lines... OK
Checking 512K memory for U-Boot... OK.
Running U-Boot CRC Test... OK.
Flash: 4 MB
USB: scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Clearing DRAM........ done
BIST check passed.
Starting PCI
PCI Status: PCI 32-bit
PCI BAR 0: 0xf8000000, PCI BAR 1: Memory 0x00000000 PCI 0x00000000
Boot Media: nand-flash usb
Net: octeth0
POST Passed
Press SPACE to abort autoboot in 1 seconds
ELF file is 32 bit
Loading .text @ 0x8f000078 (244680 bytes)
Loading .rodata @ 0x8f03bc40 (13940 bytes)
Loading .rodata.str1.4 @ 0x8f03f2b4 (16432 bytes)
Loading set_Xcommand_set @ 0x8f0432e4 (100 bytes)
Loading .rodata.cst4 @ 0x8f043348 (20 bytes)
Loading .data @ 0x8f044000 (5608 bytes)
Loading .data.rel.ro @ 0x8f0455e8 (120 bytes)
Loading .data.rel @ 0x8f045660 (136 bytes)
Clearing .bss @ 0x8f0456e8 (11656 bytes)
## Starting application at 0x8f000078 ...
Consoles: U-Boot console
Found compatible API, ver. 1.9
FreeBSD/MIPS U-Boot bootstrap loader, Revision 1.9
(builder@zigeth.juniper.net, Mon May 17 05:45:58 UTC 2010)
Memory: 1024MB
[1]Booting from nand-flash slice 1
Un-Protected 1 sectors
writing to flash...
Protected 1 sectors
Loading /boot/defaults/loader.conf
/kernel data=0xa1dac0+0xdbfe4 syms=[0x4+0x7fb30+0x4+0xb7345]
Hit [Enter] to boot immediately, or space bar for command prompt.
Booting [/kernel]...
Kernel entry at 0x801000d8 ...
getbootinfo: magic 0x0 md 0x80d32000 memsize 0x0
getbootinfo: boothowto 0x1000 kernend 0x80e00000 memsize 1024MB kernelname /kernel
Platform Starting
init regular console
Initializing octeon watchdog
GDB: debug ports: uart
GDB: current port: uart
KDB: debugger backends: ddb gdb
KDB: current backend: ddb
getmemsize: msgbufp[size=32768] = 0x8000cfe4
Copyright (c) 1996-2011, Juniper Networks, Inc.
All rights reserved.
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
JUNOS 11.1R3.5 #0: 2011-06-25 01:21:06 UTC
builder@briath.juniper.net:/volume/build/junos/11.1/release/11.1R3.5/obj-octeon/bsdl
JUNOS 11.1R3.5 #0: 2011-06-25 01:21:06 UTC
builder@briath.juniper.net:/volume/build/junos/11.1/release/11.1R3.5/obj-octeon/bsdl
real memory = 1073741824 (1024MB)
avail memory = 526499840 (502MB)
cpuid: 0, btlb_cpumap:0xffffffff
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
Initializing watchdog interupt
Loading RT Fifo module.....
Loaded RT Fifo module
pmap_helper loaded (interface version 6, syscall 210)
cpu0 on motherboard
: CAVIUM's Octeon CPU Rev. 0.1 with no FPU implemented
L1 Cache: I size 32kb(128 line), D size 8kb(128 line), sixty four way.
L2 Cache: Size 128kb, ? way
obio0 on motherboard
uart0: <Octeon-16550 channel 0> on obio0
uart0: console (9600,n,8,1)
twsi0 on obio0
dwc0: <Synopsis DWC OTG Controller Driver> on obio0
usb0: DWC OTG Controller
Using DMA mode
Init: Port Power? op_state=1
Init: Power Port (0)
usb0: <USB Bus for DWC OTG Controller> on dwc0
usb0: USB revision 2.0
uhub0: vendor 0x0000 DWC OTG root hub, class 9/0, rev 2.00/1.00, addr 1
uhub0: 1 port with 1 removable, self powered
uhub1: vendor 0x0409 product 0x005a, class 9/0, rev 2.00/1.00, addr 2
uhub1: single transaction translator
uhub1: 3 ports with 2 removable, self powered
umass0: STMicroelectronics ST72682 High Speed Mode, rev 2.00/2.10, addr 3
pcib0: <Cavium on-chip PCI bridge> on obio0
Disabling Octeon big bar support
PCI Status: PCI 32-bit: 0xc041b
pcib0: Initialized controller
pci0: <PCI bus> on pcib0
pci0: <simple comms> at device 1.0 (no driver attached)
pci0: <serial bus, USB> at device 2.0 (no driver attached)
pci0: <serial bus, USB> at device 2.2 (no driver attached)
cpld0 on obio0
gblmem0 on obio0
octpkt0: <Octeon RGMII> on obio0
cfi0: <AMD/Fujitsu - 4MB> on obio0
platform_cookie_read not implemented
Timecounter "mips" frequency 400000000 Hz quality 0
Timecounters tick every 1.000 msec
Loading the NETPFE ethernet module
Loading E1/T1/J1 driver
Loading the NETPFE DS3 module
Loading the DS1/E1 Media Layer; Attaching to media services layer
Loading the DS3/E3 Media Layer; Attaching to media services layer
Loading common multilink module.
Loading the NETPFE PPPoE module
Loading the netpfe services driver
Loading the NETPFE docsis module
Loading DS0 driver
Loading the DS0 Media Layer; Attaching to media services layer
Loading the XDSL Media Layer; Attaching to media services layer
Loading the IPSec driver
Loading the PTM driver
Loading the ISDN driver
Loading the ISDN BRI Media Layer; Attaching to media services layer
Loading Link Services PICs module.
IPsec: Initialized Security Association Processing.
SMP: AP CPU #1 Launched!
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <ST ST72682 2.10> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 1000MB (2048000 512 byte sectors: 64H 32S/T 1000C)
Trying to create bootdev, rootpartition da0s1a
Trying to mount root from ufs:/dev/da0s1a
WARNING: / was not properly dismounted
Attaching /cf/packages/junos via /dev/mdctl...
Mounted junos package on /dev/md0...
Media check on da0
Automatic reboot in progress...
** /dev/da0s1a
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
723 files, 241515 used, 218479 free (1583 frags, 27112 blocks, 0.3% fragmentation)
***** FILE SYSTEM MARKED CLEAN *****
** /dev/bo0s1e
** Last Mounted on /config
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
35 files, 35 used, 12467 free (11 frags, 1557 blocks, 0.1% fragmentation)
***** FILE SYSTEM MARKED CLEAN *****
Verified junos signed by PackageProduction_11_1_0
Verified jboot signed by PackageProduction_11_1_0
Verified junos-11.1R3.5-domestic signed by PackageProduction_11_1_0
** /dev/bo0s1f
** Last Mounted on /cf/var/log
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
62 files, 2465 used, 28693 free (149 frags, 3568 blocks, 0.5% fragmentation)
***** FILE SYSTEM MARKED CLEAN *****
Loading configuration ...
mgd: commit complete
Setting initial options: debugger_on_panic=NO debugger_on_break=NO.
Starting optional daemons: usbd.
Doing initial network setup:
.
Initial interface configuration:
additional daemons: eventd.
savecore: /dev/bo0s1b: No such file or directory
root@% e: Reboot reason(s): 0x1: power cycle/failure
savecore: no dumps found
Additional routing options:kern.module_path: /boot//kernel;/boot/modules -> /boot//kernu
Loading the DIALER driver
les
kld netpfe drv: ifpfed_dialer.
Doing additional network setup:.
Starting final network daemons:.
setting ldconfig path: /usr/lib /opt/lib
starting standard daemons: cron.
Initial rc.mips initialization:.
Local package initialization:.
starting local daemons:.
kern.securelevel: -1 -> 1
Creating JAIL MFS partition...
JAIL MFS partition created
boot.upgrade.uboot="0xBFC00000"
boot.upgrade.loader="0xBFE00000"
Boot media /dev/da0 does not have dual root support
Mon Oct 10 06:57:40 UTC 2011
Amnesiac (ttyu0)
login: root
Password:
--- JUNOS 11.1R3.5 built 2011-06-25 01:21:06 UTC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment