1) Build FreeBSD kernel for any QorIQ (for example T2080)2
2) Build kernel
3) boot kernel
=> tftpboot 0x4000000 k0
Using FM1@DTSEC3 device
TFTP from server 192.168.2.23; our IP address is 192.168.2.22
Filename 'k0'.
Load address: 0x4000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######################################################
2.7 MiB/s
done
Bytes transferred = 9380324 (8f21e4 hex)
=>
4) Run kernel
go 0x4001000
5) Once kernel hits KDB - ensure that it responds on your input
=> go 0x4001000
## Starting application at 0x04001000 ...
HELLO FROM t2080 FREEBSD!!
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 12.0-CURRENT #40 9d6a66c(master)-dirty: Sun Aug 21 12:15:46 PDT 2016
root@int0dh-home:/usr/obj/powerpc.powerpc/usr/home/int0dh/WORK/freebsd.original/sys/AMIGAX5000 powerpc
gcc version 4.2.1 20070831 patched [FreeBSD]
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
cpu0: Freescale e6500 core revision 0.0, 1533.33 MHz
cpu0: Features dc008000<PPC32,PPC64,ALTIVEC,FPU,MMU,BOOKE>
cpu0: HID0 80800000<EMCP,DOZE>
real memory = 2124398592 (2025 MB)
available KVA = 996249599 (950 MB)
Physical memory chunk(s):
0x001600000 - 0x07dc1efff, 2086793216 bytes (509471 pages)
avail memory = 2075365376 (1979 MB)
panic: lock "bufwait" 0xdff81050 already initialized
cpuid = 0
KDB: stack backtrace:
0xc2608940: at kdb_backtrace+0x5c
0xc2608960: at vpanic+0x1d4
0xc26089d0: at kassert_panic+0xd4
0xc2608a30: at lock_init+0x70
0xc2608a70: at lockinit+0xf0
0xc2608aa0: at vm_pager_bufferinit+0xe0
0xc2608ae0: at ptrace_set_pc+0x19c
0xc2608b00: at mi_startup+0x184
0xc2608b50: at __start+0x1b8
KDB: enter: panic
[ thread pid 0 tid 0 ]
Stopped at kdb_enter+0x70: addi r0, r0, 0x0
db>
db>
db> ?
?
db> p
c02f03f8
db> help
alltrace b break bt
c call capture continue
countfreebufs d delete dhwatch
dump dwatch em_dump_queue em_reset_dev
examine findstack gdb halt
hwatch kill kldstat match
next p panic print
ps reboot reset run
s script scripts search
set show step t