Date: Mon, 8 Jan 2018 16:37:51 -0800 From: Mark Millard <markmi@dsl-only.net> To: bob prohaska <fbsd@www.zefox.net> Cc: freebsd-arm@freebsd.org Subject: Re: RPI2 boot hangs with red light on Message-ID: <4575C772-CEC0-4F64-8F04-F820568B51AF@dsl-only.net> In-Reply-To: <20180108230957.GA33370@www.zefox.net> References: <20180102222730.GB10596@www.zefox.net> <3EE68320-8359-495D-AFCE-098A2220C6AE@dsl-only.net> <20180108230957.GA33370@www.zefox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2018-Jan-8, at 3:09 PM, bob prohaska <fbsd at www.zefox.net> wrote: > On Tue, Jan 02, 2018 at 03:50:40PM -0800, Mark Millard wrote: >>=20 >> I use a file that includes GENERIC. >> As far as I know at this point RPI2 is >> no longer maintained. >=20 > Aye, there's the rub. GENERIC works. > Bulky, at over 10MB, however. RPI2 > was around 8MB. While after the include I primarily adjust the debug/non-debug types of status of things, as I understand other types of lines can override what is included vs. excluded from the kernel. So if one knows what one is doing about what is optional vs. not for their purposes, smaller kernels are possible while still being based on GENERIC. (And, so, being somewhat auto-updating as GENERIC progresses.) Using powerpc64 as an example, the below adds filemon and geom_label to the kernel (because I have a context for which dynamic loading of modules crashes the kernel): # more /usr/src/sys/powerpc/conf/GENERIC64vtsc-NODBG=20 # # GENERIC -- Custom configuration for the powerpc/powerpc64 # include "GENERIC64" ident GENERIC64vtsc-NODBG makeoptions DEBUG=3D-g # Build kernel with gdb(1) = debug symbols nooptions PS3 # Sony Playstation 3 = HACK!!! to allow sc options KDB # Enable kernel debugger support options ALT_BREAK_TO_DEBUGGER options BREAK_TO_DEBUGGER # For minimum debugger support (stable branch) use: options KDB_TRACE # Print a stack trace for a = panic options DDB # Enable the kernel debugger options GDB # HACK!!! ... # Extra stuff: #options VERBOSE_SYSINIT # Enable verbose sysinit = messages #options BOOTVERBOSE=3D1 #options BOOTHOWTO=3DRB_VERBOSE #options KTR #options KTR_MASK=3DKTR_TRAP ##options KTR_CPUMASK=3D0xF #options KTR_VERBOSE # HACK!!! to allow sc for 2560x1440 display on Radeon X1950 that vt = historically mishandled during booting device sc #device kbdmux # HACK: already listed by vt options SC_OFWFB # OFW frame buffer options SC_DFLT_FONT # compile font in makeoptions SC_DFLT_FONT=3Dcp437 # Disable any extra checking for. . . nooptions DEADLKRES # Enable the deadlock resolver nooptions INVARIANTS # Enable calls of extra sanity = checking nooptions INVARIANT_SUPPORT # Extra sanity checks of = internal structures, required by INVARIANTS nooptions WITNESS # Enable checks to detect = deadlocks and cycles nooptions WITNESS_SKIPSPIN # Don't run witness on spinlocks = for speed nooptions DIAGNOSTIC nooptions MALLOC_DEBUG_MAXZONES # Separate malloc(9) zones device filemon device geom_label It also has sc in the kernel, in addition to vt, but I had to disable PS3 support to allow such back when I did this. =3D=3D=3D Mark Millard markmi at dsl-only.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4575C772-CEC0-4F64-8F04-F820568B51AF>