Hi,
I am trying to get FreeBSD working on the 2+ board but suspect there wont be much difference for the 2.
Please see the following thread on the freebsd-mips list:
https://marc.info/?t=149417069200002&r=1&w=2
I am hoping here were some other Omega2/2+ owners/users out there who are interested in getting FreeBSD working on them and wants to try as well or has some ideas to help.
Below is as far as I have got using the freebsd-wifi-build stuff with some changes (see thread on freebsd-mips for more info) but basic build info:
% cat ~/.freebsd-wifi-build-settings.cfg
X_SKIP_MORE_STUFF=YES
X_EXTRA_SRC_CONF=~/omega2/src.conf
% cat ~/omega2/src.conf
WITHOUT_CLANG=YES
WITHOUT_CLANG_FULL=YES
get dts files from thread http://community.onion.io/topic/1099/openwrt-on-the-omega-2/8
cd ~/omega2/src/sys/gnu/dts/mips
fetch https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dtsi
fetch https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2.dts
fetch https://raw.githubusercontent.com/WereCatf/source/image/target/linux/ramips/dts/OMEGA2P.dts
To run build need to specify DTS file so in bash/sh:
X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink buildworld
X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink buildkernel
X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink installworld
X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink installkernel
X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink distribution
~/omega2/tftpboot]$ readelf -h kernel.MT7628_FDT | grep Entry
Entry point address: 0x80001100
UBOOT_KERN_LOADADDR="0x80001000" UBOOT_KERN_STARTADDR="0x80001100" X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink mfsroot
UBOOT_KERN_LOADADDR="0x80001000" UBOOT_KERN_STARTADDR="0x80001100" X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink fsimage
UBOOT_KERN_LOADADDR="0x80001000" UBOOT_KERN_STARTADDR="0x80001100" X_DTS_FILE=OMEGA2P.dts KERNCONF=MT7628_FDT ../freebsd-wifi-build/build/bin/build ralink uboot
I had problems with the compressed lzma kernel so made a uBoot one with:
mkimage -A mips -C none -O linux -T kernel -a 0x80001000 -e 0x80001100 -n "FreeBSD" -d kernel.MT7628_FDT kernel.MT7628_FDT.uImage
============================================
Onion Omega2 UBoot Version: 4.3.0.3
ASIC 7628_MP (Port5<->None)
DRAM component: 1024 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 128 MBytes
Flash component: SPI Flash
Date:Oct 18 2016 Time:17:29:05
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
CPU freq = 575 MHZ
Estimated memory size = 128 Mbytes
Resetting MT7628 PHY.
Initializing MT7688 GPIO system.
- Hold Reset button for more options *
You have 40 seconds left to select a menu option...
Please select option:
[ Enter ]: Boot Omega2.
[ 0 ]: Start Web recovery mode.
[ 1 ]: Start command line mode.
[ 2 ]: Flash firmware from USB storage.
Option [1] selected.
1: System Enter Boot Command Line Interface.
U-Boot 1.1.3 (Oct 18 2016 - 17:29:05)
Omega2 # printenv
bootcmd=tftp
bootdelay=5
baudrate=115200
ethaddr="00:AA:BB:CC:DD:10"
ipaddr=192.168.8.8
serverip=192.168.8.1
stdin=serial
stdout=serial
stderr=serial
Environment size: 150/4092 bytes
Omega2 # usbreset
Unknown command 'usbreset' - try 'help'
Omega2 # usb reset
(Re)start USB...
LOW LEVEL INIT USB0:
Scanning bus 0 for devices...
New Device 0
...
usb_control_msg: status = success?
Manufacturer
Product USB Flash Drive
SerialNumber 070B00012340350
Device is a hub?
2 USB Device(s) found
scan end
Scanning bus for storage devices...
=================================================
1: Hub, USB Revision 1.10
- OHCI Root Hub
- Class: Hub
- PacketSize: 8 Configurations: 1
- Vendor: 0x0000 Product 0x0000 Version 0.0
=================================================
2: Mass Storage, USB Revision 2.0
- USB Flash Drive 070B00012340350
- Class: (from Interface) Mass Storage
- PacketSize: 64 Configurations: 1
- Vendor: 0x1005 Product 0xb113 Version 1.0
Testing BULK mode...Identifying a storage device...*
USB_STORAGE: 1 Storage Device(s) found
Omega2 # fatload usb 0:1 0x80000000 kernel.MT7628_FDT.uImage
Reading file "kernel.MT7628_FDT.uImage"
*
**
**
**
**
**
**
**
**
**
**
FAT: 5654824 Bytes read
Omega2 # bootm 0x80000000
Booting image at 80000000 ...
Image Name: FreeBSD
Image Type: MIPS Linux Kernel Image (uncompressed)
Data Size: 5654760 Bytes = 5.4 MB
Load Address: 80001000
Entry Point: 80001100
Verifying Checksum ... OK
OK
No initrd
Transferring control to Linux (at address 80001100) ...
Giving linux memsize in MB, 128
Starting kernel ...
And then nothing the red led on the expansion dock stays on - when linux from flash boots this goes off - and the console is dead.