Skip to content

Instantly share code, notes, and snippets.

@gonzopancho
Created June 1, 2016 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gonzopancho/df6f0730fa54fec0d782eea00d7653a0 to your computer and use it in GitHub Desktop.
Save gonzopancho/df6f0730fa54fec0d782eea00d7653a0 to your computer and use it in GitHub Desktop.
First boot of pfSense on uFW
U-Boot SPL 2016.03 (May 31 2016 - 22:53:46)
Trying to boot from MMC
Card doesn't support part_switch
MMC partition switch failed
*** Warning - MMC partition switch failed, using default environment
reading u-boot.img
reading u-boot.img
U-Boot 2016.03 (May 31 2016 - 22:53:46 -0500)
Watchdog enabled
I2C: ready
DRAM: 512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
reading u-boot.env
** Unable to read "u-boot.env" from mmc0:1 **
Using default environment
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
Booting from: mmc 0 ubldr.bin
reading ubldr.bin
224696 bytes read in 23 ms (9.3 MiB/s)
## Starting application at 0x88000000 ...
Consoles: U-Boot console
Compatible U-Boot API signature found @0x9ef3ab58
FreeBSD/armv6 U-Boot loader, Revision 1.2
(root@fbsd-current-amd64-loos, Sun May 29 01:24:33 CDT 2016)
DRAM: 512MB
Number of U-Boot devices: 3
U-Boot env: loaderdev='mmc 0'
Found U-Boot device: disk
Checking unit=0 slice=<auto> partition=<auto>... good.
Booting from disk0s2a:
/boot/kernel/kernel data=0x6b7ae4+0x9851c syms=[0x4+0x95fa0+0x4+0xad2e0]
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
/boot/dtb/ufw.dtb size=0x7c61
Loaded DTB from file 'ufw.dtb'.
Kernel entry at 0x0x88200100...
Kernel args: (null)
ARM Debug Architecture not supported
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 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.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-ALPHA1 #1 0f06d18(devel-11)-dirty: Tue May 31 23:58:23 CDT 2016
root@buildbot2.netgate.com:/usr/obj/arm.armv6/ubmc/freebsd-src/sys/pfSense-uBMC arm
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
WARNING: WITNESS option enabled, expect reduced performance.
MEMGUARD DEBUGGING ALLOCATOR INITIALIZED:
MEMGUARD map base: 0xc2800000
MEMGUARD map size: 100456 KBytes
CPU: Cortex A8-r3 rev 2 (Cortex-A core)
Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
WB enabled LABT branch prediction disabled
LoUU:2 LoC:3 LoUIS:1
Cache level 1:
32KB/64B 4-way data cache WT WB Read-Alloc
32KB/64B 4-way instruction cache Read-Alloc
Cache level 2:
256KB/64B 8-way unified cache WT WB Read-Alloc Write-Alloc
real memory = 536870912 (512 MB)
avail memory = 510951424 (487 MB)
Texas Instruments AM335x Processor, Revision ES1.2
random: entropy device external interface
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
simplebus1: <Flattened device tree simple bus> on simplebus0
simplebus2: <Flattened device tree simple bus> mem 0x210000-0x211fff on simplebus1
ti_scm0: <TI Control Module> mem 0-0x7ff on simplebus2
aintc0: <TI AINTC Interrupt Controller> mem 0x48200000-0x48200fff on simplebus0
aintc0: Revision 5.0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
pmu0: <Performance Monitoring Unit> irq 3 on ofwbus0
am335x_prcm0: <AM335x Power and Clock Management> mem 0x200000-0x203fff on simplebus1
am335x_prcm0: Clocks: System 24.0 MHz, CPU 550 MHz
ti_pinmux0: <TI Pinmux Module> mem 0x800-0xa37 on simplebus2
gpio0: <TI AM335x General Purpose I/O (GPIO)> mem 0x44e07000-0x44e07fff irq 96 on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
gpioc0: <GPIO controller> on gpio0
gpio1: <TI AM335x General Purpose I/O (GPIO)> mem 0x4804c000-0x4804cfff irq 98 on simplebus0
gpiobus1: <OFW GPIO bus> on gpio1
gpioc1: <GPIO controller> on gpio1
gpio2: <TI AM335x General Purpose I/O (GPIO)> mem 0x481ac000-0x481acfff irq 32 on simplebus0
gpiobus2: <OFW GPIO bus> on gpio2
gpioc2: <GPIO controller> on gpio2
gpio3: <TI AM335x General Purpose I/O (GPIO)> mem 0x481ae000-0x481aefff irq 62 on simplebus0
gpiobus3: <OFW GPIO bus> on gpio3
gpioc3: <GPIO controller> on gpio3
uart0: <TI UART (16550 compatible)> mem 0x44e09000-0x44e0afff irq 72 on simplebus0
uart0: console (115384,n,8,1)
iichb0: <TI I2C Controller> mem 0x44e0b000-0x44e0bfff irq 70 on simplebus0
iichb0: I2C revision 4.0 FIFO size: 32 bytes
iicbus0: <OFW I2C bus> on iichb0
iic0: <I2C generic I/O> on iicbus0
icee0: <AT24C256> at addr 0xa0 on iicbus0
icee1: <AT24C256> at addr 0xa0 on iicbus0
iichb1: <TI I2C Controller> mem 0x4802a000-0x4802afff irq 71 on simplebus0
iichb1: I2C revision 4.0 FIFO size: 32 bytes
iicbus1: <OFW I2C bus> on iichb1
iic1: <I2C generic I/O> on iicbus1
sdhci_ti0: <TI MMCHS (SDHCI 2.0)> mem 0x48060000-0x48060fff irq 64 on simplebus0
mmc0: <MMC/SD bus> on sdhci_ti0
sdhci_ti1: <TI MMCHS (SDHCI 2.0)> mem 0x481d8000-0x481d8fff irq 28 on simplebus0
mmc1: <MMC/SD bus> on sdhci_ti1
ti_wdt0: <TI Watchdog Timer> mem 0x44e35000-0x44e35fff irq 91 on simplebus0
ti_mbox0: <TI System Mailbox> mem 0x480c8000-0x480c81ff irq 77 on simplebus0
ti_mbox0: revision 4.0
am335x_dmtimer0: <AM335x DMTimer2> mem 0x48040000-0x480403ff irq 68 on simplebus0
Event timer "DMTimer2" frequency 24000000 Hz quality 500
am335x_dmtimer1: <AM335x DMTimer3> mem 0x48042000-0x480423ff irq 69 on simplebus0
Timecounter "DMTimer3" frequency 24000000 Hz quality 500
usbss0: <TI AM33xx integrated USB OTG controller> mem 0x47400000-0x47400fff on simplebus0
usbss0: TI AM335X USBSS v0.0.13
musbotg0: <TI AM33xx integrated USB OTG controller> mem 0x47401400-0x474017ff,0x47401000-0x474011ff irq 18 on usbss0
usbus0: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM
usbus0 on musbotg0
musbotg1: <TI AM33xx integrated USB OTG controller> mem 0x47401c00-0x47401fff,0x47401800-0x474019ff irq 19 on usbss0
usbus1: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM
usbus1 on musbotg1
am335x_pwmss0: <AM335x PWM> mem 0x48300000-0x4830000f on simplebus0
am335x_ecap0: <AM335x eCAP> mem 0x48300100-0x4830017f irq 31 on am335x_pwmss0
am335x_ehrpwm0: <AM335x EHRPWM> mem 0x48300200-0x4830027f on am335x_pwmss0
am335x_pwmss1: <AM335x PWM> mem 0x48302000-0x4830200f on simplebus0
am335x_ecap1: <AM335x eCAP> mem 0x48302100-0x4830217f irq 47 on am335x_pwmss1
am335x_ehrpwm1: <AM335x EHRPWM> mem 0x48302200-0x4830227f on am335x_pwmss1
am335x_pwmss2: <AM335x PWM> mem 0x48304000-0x4830400f on simplebus0
am335x_ecap2: <AM335x eCAP> mem 0x48304100-0x4830417f irq 61 on am335x_pwmss2
am335x_ehrpwm2: <AM335x EHRPWM> mem 0x48304200-0x4830427f on am335x_pwmss2
cpswss0: <3-port Switch Ethernet Subsystem> mem 0x4a100000-0x4a1007ff,0x4a101200-0x4a1012ff irq 40,41,42,43 on simplebus0
cpswss0: CPSW SS Version 1.12 (0)
cpswss0: Initial queue size TX=128 RX=384
cpsw0: <Ethernet Switch Port> on cpswss0
miibus0: <MII bus> on cpsw0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
cpsw0: Ethernet address: 80:30:dc:54:43:6d
cpsw1: <Ethernet Switch Port> on cpswss0
miibus1: <MII bus> on cpsw1
ukphy1: <Generic IEEE 802.3u media interface> PHY 2 on miibus1
ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
cpsw1: Ethernet address: 80:30:dc:54:43:6f
ti_adc0: <TI ADC controller> mem 0x44e0d000-0x44e0dfff irq 16 on simplebus0
ti_adc0: scheme: 0x1 func: 0x730 rtl: 0 rev: 0.1 custom rev: 0
cryptosoft0: <software crypto>
Timecounters tick every 10.000 msec
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <Mentor Graphics> at usbus0
uhub0: <Mentor Graphics OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Mentor Graphics> at usbus1
uhub1: <Mentor Graphics OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
mmcsd0: 8GB <SDHC USDU1 0.2 SN 05C00916 MFG 09/2014 by 116 JE> at mmc0 48.0MHz/4bit/65535-block
uhub0: 1 port with 1 removable, self powered
uhub1: 1 port with 1 removable, self powered
mmcsd1: 4GB <MMCHC S10004 0.8 SN 2E53D905 MFG 11/1999 by 112 0x0000> at mmc1 48.0MHz/8bit/65535-block
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]...
warning: no time-of-day clock registered, system time will not be set accurately
Configuring crash dumps...
No suitable dump device was found.
/dev/mmcsd0s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/mmcsd0s2a: clean, 154786 free (5090 frags, 18712 blocks, 1.4% fragmentation)
Filesystems are clean, continuing...
Mounting filesystems...
random: unblocking device.
___
___/ f \
/ p \___/ Sense
\___/ \
\___/
Welcome to pfSense 2.4-DEVELOPMENT on the 'pfSense' platform...
realpath: /dev/dumpdev: No such file or directory
Dump device does not exist. Savecore not run.
Creating symlinks...lock order reversal:
1st 0xd35161f0 bufwait (bufwait) @ /ubmc/freebsd-src/sys/kern/vfs_bio.c:3512
2nd 0xc93cfa00 dirhash (dirhash) @ /ubmc/freebsd-src/sys/ufs/ufs/ufs_dirhash.c:281
stack backtrace:
...ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/ipsec
Soft Float compatibility ldconfig path:
done.
pkg: No package(s) matching pfSense-kernel-*
>>> Locking package ataidle... done.
<jemalloc>: /ubmc/freebsd-src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:1129: Failed assertion: "((uintptr_t)ptr - ((uintptr_t)rpages + (uintptr_t)bin_info->reg0_offset)) % bin_info->reg_interval == 0"
pid 314 (fcgicli), uid 0 inumber 9 on /var/run: filesystem full
/var/run: write failed, filesystem is full
Failed to write core file for process fcgicli (error 28)
pid 314 (fcgicli), uid 0: exited on signal 6
Abort trap
Launching the init system....... done.
Initializing.................. done.
Starting device manager (devd)...done.
Loading configuration......done.
Default interfaces not found -- Running interface assignment option.
cpsw0: link state changed to DOWN
cpsw1: link state changed to UP
Valid interfaces are:
cpsw0 80:30:dc:54:43:6d (down) Ethernet Switch Port
cpsw1 80:30:dc:54:43:6f (down) Ethernet Switch Port
Do VLANs need to be set up first?
If VLANs will not be used, or only for optional interfaces, it is typical to
say no here and use the webConfigurator to configure VLANs later, if required.
Should VLANs be set up now [y|n]? n
If the names of the interfaces are not known, auto-detection can
be used instead. To use auto-detection, please disconnect all
interfaces before pressing 'a' to begin the process.
Enter the WAN interface name or 'a' for auto-detection
(cpsw0 cpsw1 or a): a
Connect the WAN interface now and make sure that the link is up.
Then press ENTER to continue.
No link-up detected.
Enter the WAN interface name or 'a' for auto-detection
(cpsw0 cpsw1 or a): cpsw1: link state changed to DOWN
a
Connect the WAN interface now and make sure that the link is up.
Then press ENTER to continue.
cpsw1: link state changed to UP
Detected link-up on interface cpsw1.
Enter the LAN interface name or 'a' for auto-detection
NOTE: this enables full Firewalling/NAT mode.
(cpsw0 a or nothing if finished): cpsw0
Enter the Optional 1 interface name or 'a' for auto-detection
( a or nothing if finished):
The interfaces will be assigned as follows:
WAN -> cpsw1
LAN -> cpsw0
Do you want to proceed [y|n]? y
Writing configuration...done.
Updating configuration...done.
Cleaning backup cache...done.
Setting up extended sysctls...done.
Setting timezone...done.
Configuring loopback interface...done.
Starting syslog...done.
Starting Secure Shell Services...done.
Setting up polling defaults...done.
Setting up interfaces microcode...done.
Configuring loopback interface...done.
Creating wireless clone interfaces...done.
Configuring LAGG interfaces...done.
Configuring VLAN interfaces...done.
Configuring QinQ interfaces...done.
Configuring WAN interface...done.
Configuring LAN interface...done.
Configuring CARP settings...done.
Syncing OpenVPN settings...done.
Configuring firewall......done.
Starting PFLOG...done.
Setting up gateway monitors...done.
Synchronizing user settings...lock order reversal:
1st 0xc914e934 ufs (ufs) @ /ubmc/freebsd-src/sys/kern/vfs_syscalls.c:3389
2nd 0xd35161f0 bufwait (bufwait) @ /ubmc/freebsd-src/sys/ufs/ffs/ffs_vnops.c:263
3rd 0xc95ffb74 ufs (ufs) @ /ubmc/freebsd-src/sys/kern/vfs_subr.c:2498
stack backtrace:
done.
Starting webConfigurator...done.
Configuring CRON...done.
Starting DNS Resolver...done.
Starting NTP time client...done.
lock order reversal:
1st 0xc9847b74 ufs (ufs) @ /ubmc/freebsd-src/sys/kern/vfs_mount.c:848
2nd 0xc9846c94 devfs (devfs) @ /ubmc/freebsd-src/sys/kern/vfs_subr.c:2498
stack backtrace:
Starting DHCP service...done.
Starting DHCPv6 service...done.
Configuring firewall......done.
Generating RRD graphs...done.
ERROR: Error trying to get packages list. Aborting...
pkg: No active remote repositories configured
Starting syslog...done.
Starting CRON... done.
<jemalloc>: /ubmc/freebsd-src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:1129: Failed assertion: "((uintptr_t)ptr - ((uintptr_t)rpages + (uintptr_t)bin_info->reg0_offset)) % bin_info->reg_interval == 0"
Abort trap (core dumped)
pkg: No package(s) matching pfSense-kernel-*
pfSense (pfSense) 2.4-DEVELOPMENT arm Wed May 25 11:35:18 CDT 2016
Bootup complete
FreeBSD/arm (pfSense.localdomain) (ttyu0)
INTERACTIVE
*** Welcome to pfSense 2.4-DEVELOPMENT (arm full-install) on pfSense ***
WAN (wan) -> cpsw1 -> v4/DHCP4: 172.21.0.122/24
v6/DHCP6: 2001:470:1f0f:281:8230:dcff:fe54:436f/64
LAN (lan) -> cpsw0 -> v4: 192.168.1.1/24
0) Logout (SSH only) 9) pfTop
1) Assign Interfaces 10) Filter Logs
2) Set interface(s) IP address 11) Restart webConfigurator
3) Reset webConfigurator password 12) pfSense Developer Shell
4) Reset to factory defaults 13) Update from console
5) Reboot system 14) Enable Secure Shell (sshd)
6) Halt system 15) Restore recent configuration
7) Ping host 16) Restart PHP-FPM
8) Shell
Enter an option: lock order reversal:
1st 0xc8f51508 if_addr_lock (if_addr_lock) @ /ubmc/freebsd-src/sys/netpfil/pf/pf_if.c:445
2nd 0xc094001c ifnet_rw (ifnet_rw) @ /ubmc/freebsd-src/sys/netpfil/pf/pf_if.c:485
stack backtrace:
Message from syslogd@pfSense at Jun 1 07:06:08 ...
pfSense php-fpm[311]: /index.php: webConfigurator authentication error for 'admin' from 192.168.1.2
Message from syslogd@pfSense at Jun 1 07:06:16 ...
pfSense php-fpm[313]: /index.php: Successful login for user 'admin' from: 192.168.1.2
FreeBSD/arm (pfSense.localdomain) (ttyu0)
INTERACTIVE
*** Welcome to pfSense 2.4-DEVELOPMENT (arm full-install) on pfSense ***
WAN (wan) -> cpsw1 -> v4/DHCP4: 172.21.0.122/24
LAN (lan) -> cpsw0 -> v4: 192.168.1.1/24
0) Logout (SSH only) 9) pfTop
1) Assign Interfaces 10) Filter Logs
2) Set interface(s) IP address 11) Restart webConfigurator
3) Reset webConfigurator password 12) pfSense Developer Shell
4) Reset to factory defaults 13) Update from console
5) Reboot system 14) Enable Secure Shell (sshd)
6) Halt system 15) Restore recent configuration
7) Ping host 16) Restart PHP-FPM
8) Shell
Enter an option: 8
[2.4-DEVELOPMENT][root@pfSense.localdomain]/root: cat /etc/res
resolv.conf@ resolvconf.conf@
[2.4-DEVELOPMENT][root@pfSense.localdomain]/root: cat /etc/resolv.conf
nameserver 127.0.0.1
search netgate.com
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 172.27.32.5
nameserver 172.27.32.6
[2.4-DEVELOPMENT][root@pfSense.localdomain]/root: traceroute google.com
traceroute to google.com (216.58.194.142), 64 hops max, 40 byte packets
1 172.21.0.1 (172.21.0.1) 1.731 ms 1.563 ms 0.776 ms
2 n-o-p-e.static.grandenetworks.net (n.o.p.e) 2.464 ms 12.048 ms 2.144 ms
3 xe-0-0-2.0.core01.gf01.dllstx.grandecom.net (24.155.121.121) 7.452 ms 7.922 ms 7.744 ms
4 72.14.211.194 (72.14.211.194) 7.755 ms 8.085 ms 7.787 ms
5 108.170.240.65 (108.170.240.65) 8.875 ms 9.076 ms 7.724 ms
6 209.85.250.83 (209.85.250.83) 10.078 ms 8.768 ms 8.409 ms
7 dfw06s49-in-f14.1e100.net (216.58.194.142) 8.712 ms 9.354 ms 9.177 ms
[2.4-DEVELOPMENT][root@pfSense.localdomain]/root:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment