Re: SOEKRIS kernel config

2014-09-28 Thread Tom Everett
That's a great idea.  I'll give it a try and get back to the list.


On Sun, Sep 28, 2014 at 12:33 AM, Scot Hetzel swhet...@gmail.com wrote:

 On Sat, Sep 27, 2014 at 9:47 PM, Tom Everett t...@khubla.com wrote:
  I see there is no SOEKRIS config on the tree, here
 
  https://svnweb.freebsd.org/base/head/sys/i386/conf/
 
  I have attached one for addition to the tree.
 
 

 Since you only appended a few configuration options to the end of the
 GENERIC configuration, it would be better to use the include directive
 in the SOEKRIS config file.  This allows changes to be made to the
 GENERIC configuration, and the SOEKRIS kernel would automatically get
 those changes.  Here's a shorter version of that configuration file:


 #
 # SOEKRIS -- Generic Kernel configuration file for FreeBSD/i386 on SOEKRIS
 #
 # $FREEBSD

 include GENERIC

 ident SOEKRIS

 # To Make a SOEKRIS Kernel, the next options are needed
 options  CPU_SOEKRIS
 options  CPU_ELAN
 #options  CPU_ELAN_PPS
 #options  CPU_ELAN_XTAL=32768000
 options  CPU_GEODE

 # Include TMPFS
 options  TMPFS


 --
 DISCLAIMER:

 No electrons were maimed while sending this message. Only slightly bruised.




-- 
A better world shall emerge based on faith and understanding  - Douglas
MacArthur
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: SOEKRIS kernel config

2014-09-28 Thread Tom Everett
Bugzilla ID is *194003
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194003*


On Sun, Sep 28, 2014 at 8:59 AM, Tom Everett t...@khubla.com wrote:

 That's a great idea.  I'll give it a try and get back to the list.


 On Sun, Sep 28, 2014 at 12:33 AM, Scot Hetzel swhet...@gmail.com wrote:

 On Sat, Sep 27, 2014 at 9:47 PM, Tom Everett t...@khubla.com wrote:
  I see there is no SOEKRIS config on the tree, here
 
  https://svnweb.freebsd.org/base/head/sys/i386/conf/
 
  I have attached one for addition to the tree.
 
 

 Since you only appended a few configuration options to the end of the
 GENERIC configuration, it would be better to use the include directive
 in the SOEKRIS config file.  This allows changes to be made to the
 GENERIC configuration, and the SOEKRIS kernel would automatically get
 those changes.  Here's a shorter version of that configuration file:


 #
 # SOEKRIS -- Generic Kernel configuration file for FreeBSD/i386 on SOEKRIS
 #
 # $FREEBSD

 include GENERIC

 ident SOEKRIS

 # To Make a SOEKRIS Kernel, the next options are needed
 options  CPU_SOEKRIS
 options  CPU_ELAN
 #options  CPU_ELAN_PPS
 #options  CPU_ELAN_XTAL=32768000
 options  CPU_GEODE

 # Include TMPFS
 options  TMPFS


 --
 DISCLAIMER:

 No electrons were maimed while sending this message. Only slightly
 bruised.




 --
 A better world shall emerge based on faith and understanding  - Douglas
 MacArthur




-- 
A better world shall emerge based on faith and understanding  - Douglas
MacArthur
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


SOEKRIS kernel config

2014-09-27 Thread Tom Everett
I see there is no SOEKRIS config on the tree, here

https://svnweb.freebsd.org/base/head/sys/i386/conf/

I have attached one for addition to the tree.


-- 
A better world shall emerge based on faith and understanding  - Douglas
MacArthur
#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the config(5) manual page,
# and/or the handbook section on Kernel Configuration Files:
#
#
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: head/sys/i386/conf/GENERIC 271137 2014-09-04 21:06:33Z markj $

cpu I486_CPU
cpu I586_CPU
cpu I686_CPU
ident   SOEKRIS

makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols
makeoptions WITH_CTF=1  # Run ctfconvert(1) for DTrace support

options SCHED_ULE   # ULE scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options TCP_OFFLOAD # TCP offload
options SCTP# Stream Control Transmission Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL# Enable gjournal-based UFS journaling
options QUOTA   # Enable disk quotas for UFS
options MD_ROOT # MD is a potential root device
options NFSCL   # New Network Filesystem Client
options NFSD# New Network Filesystem Server
options NFSLOCKD# Network Lock Manager
options NFS_ROOT# NFS usable as /, requires NFSCL
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_PART_GPT   # GUID Partition Tables.
options GEOM_RAID   # Soft RAID functionality.
options GEOM_LABEL  # Provides labelization
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options COMPAT_FREEBSD7 # Compatible with FreeBSD7
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options STACK   # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options PRINTF_BUFR_SIZE=128# Prevent printf output being 
interspersed.
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
options AUDIT   # Security event auditing
options CAPABILITY_MODE # Capsicum capability mode
options CAPABILITIES# Capsicum capabilities
options MAC # TrustedBSD MAC Framework
options KDTRACE_HOOKS   # Kernel DTrace hooks
options DDB_CTF # Kernel ELF linker loads CTF data
options INCLUDE_CONFIG_FILE # Include this file in kernel

# Debugging support.  Always need this:
options KDB # Enable kernel debugger support.
options KDB_TRACE   # Print a stack trace for a panic.
# For full debugger support use (turn off in stable branch):
options DDB # Support DDB.
options GDB # Support remote GDB.
options DEADLKRES   # Enable the deadlock resolver
options INVARIANTS  # Enable calls of extra sanity checking
options INVARIANT_SUPPORT 

Crash in GEOM, booting on Soekris

2014-09-20 Thread Tom Everett
I am seeing this crash on r271882, booting a Soekris 4501.

POST: 012345689bcefghipsajklnopqr,,,tvwxy

comBIOS ver. 1.33  20080103  Copyright (C) 2000-2007 Soekris Engineering.

net45xx

0064 Mbyte MemoryCPU Elan SC520 133 Mhz

Pri Mas  SanDisk SDCFX-016G  LBA Xlt 1024--63  15625 Mbyte

Slot   Vend Dev  ClassRev Cmd  Stat CL LT HT  Base1Base2   Int
---
0:00:0 1022 3000 0600 0006 2280 00 00 00  
0:18:0 100B 0020 0200 0107 0290 00 3F 00 E001 A000 10
0:19:0 100B 0020 0200 0107 0290 00 3F 00 E101 A0001000 11
0:20:0 100B 0020 0200 0107 0290 00 3F 00 E201 A0002000 05

 1 Seconds to automatic boot.   Press Ctrl-P for entering Monitor.
/boot/config: -h

Consoles: serial port
BIOS drive C: is disk0
BIOS 639kB/64512kB available memory

FreeBSD/x86 bootstrap loader, Revision 1.1
(tom@bernice, Fri Sep 19 19:39:16 MDT 2014)
Loading /boot/defaults/loader.conf
/boot/kernel/kernel text=0x790cd5 data=0x5e2a0+0x2f0eb8
syms=[0x4+0x89480+0x4+0xebe59]

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2014 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-CURRENT #0 r271882M: Fri Sep 19 20:21:03 MDT 2014

tom@bernice:/storage/home/tom/crochet-kientzle/crochet-freebsd/work/obj/i386.i386/storage/home/tom/crochet/src/FreeBSDHead/head/sys/SOEKRIS
i386
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
WARNING: WITNESS option enabled, expect reduced performance.
CPU: AMD Enhanced Am486DX4/Am5x86 Write-Back (486-class CPU)
  Origin=AuthenticAMD  Id=0x494  Family=0x4  Model=0x9  Stepping=4
  Features=0x1FPU
real memory  = 67108864 (64 MB)
avail memory = 47398912 (45 MB)
random device not loaded; using insecure entropy
random: Software, Yarrow initialized
module_register_init: MOD_LOAD (vesa, 0xc0a447c0, 0) error 19
kbd1 at kbdmux0
ACPI BIOS Error (bug): A valid RSDP was not found (20130823/tbxfroot-223)
ACPI: Table initialisation failed: AE_NOT_FOUND
ACPI: Try disabling either ACPI or apic support.
sysctl machdep.i8254_freq=1189161 returns 0
Timecounter ELAN frequency 833 Hz quality 1000
pcib0 pcibus 0 on motherboard
pci0: PCI bus on pcib0
sis0: NatSemi DP8381[56] 10/100BaseTX port 0xe000-0xe0ff mem
0xa000-0xafff irq 10 at device 18.0 on pci0
sis0: Silicon Revision: DP83816A
miibus0: MII bus on sis0
nsphyter0: DP83815 10/100 media interface PHY 0 on miibus0
nsphyter0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:00:24:c8:d4:d4
sis1: NatSemi DP8381[56] 10/100BaseTX port 0xe100-0xe1ff mem
0xa0001000-0xa0001fff irq 11 at device 19.0 on pci0
sis1: Silicon Revision: DP83816A
miibus1: MII bus on sis1
nsphyter1: DP83815 10/100 media interface PHY 0 on miibus1
nsphyter1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis1: Ethernet address: 00:00:24:c8:d4:d5
sis2: NatSemi DP8381[56] 10/100BaseTX port 0xe200-0xe2ff mem
0xa0002000-0xa0002fff irq 5 at device 20.0 on pci0
sis2: Silicon Revision: DP83816A
miibus2: MII bus on sis2
nsphyter2: DP83815 10/100 media interface PHY 0 on miibus2
nsphyter2:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis2: Ethernet address: 00:00:24:c8:d4:d6
cpu0 on motherboard
isa0: ISA bus on motherboard
pmtimer0 on isa0
orm0: ISA Option ROM at iomem 0xc8000-0xd0fff pnpid ORM on isa0
ata0: ATA channel at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1: ATA channel at port 0x170-0x177,0x376 irq 15 on isa0
atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atrtc0: AT realtime clock at port 0x70 irq 8 on isa0
Event timer RTC frequency 32768 Hz quality 0
attimer0: AT timer at port 0x40 on isa0
Timecounter i8254 frequency 1189161 Hz quality 0
Event timer i8254 frequency 1189161 Hz quality 100
uart0: 16550 or compatible at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
uart0: console (9600,n,8,1)
uart1: 16550 or compatible at port 0x2f8-0x2ff irq 3 on isa0
Timecounters tick every 1.000 msec
interrupt storm detected on irq5:; throttling interrupt source
Elan-mmcr driver: MMCR at 0xc37ff000.
Elan-mmcr Soekris net45xx comBIOS ver. 1.33 20080103 Copyright (C) 2000-2007
random: unblocking device.
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: SanDisk SDCFX-016G HDX 7.03 CFA-0 device
ada0: Serial Number AJZ061813191928
ada0: 16.700MB/s transfers (PIO4, PIO 512bytes)
ada0: 15259MB (31250432 512 byte sectors: 16H 63S/T 31002C)
ada0: Previously was known as ad0
panic: Bio not on queue bp=0xc2aaa4c0 target 0xc0c0f8bc
KDB: stack backtrace:

SOEKRIS kernel crash

2014-09-14 Thread Tom Everett
I've compiled a SOEKRIS kernel which I'm booting with Crochet-BSD.  It's
reliably crashing on boot, with the below message.   The kernel revision is
271600, and the kernel config is here:

https://github.com/kientzle/crochet-freebsd/blob/master/board/Soekris/conf/SOEKRIS11


Event timer RTC frequency 32768 Hz quality 0

attimer0: AT timer at port 0x40 on isa0

Timecounter i8254 frequency 1189161 Hz quality 0

Event timer i8254 frequency 1189161 Hz quality 100

uart0: 16550 or compatible at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0

uart0: console (9600,n,8,1)

uart1: 16550 or compatible at port 0x2f8-0x2ff irq 3 on isa0

Timecounters tick every 1.000 msec

interrupt storm detected on irq5:; throttling interrupt source

Elan-mmcr driver: MMCR at 0xc37ff000.

Elan-mmcr Soekris net45xx comBIOS ver. 1.33 20080103 Copyright (C) 2000-2007

random: unblocking device.

ada0 at ata0 bus 0 scbus0 target 0 lun 0

ada0: SanDisk SDCFX-016G HDX 7.03 CFA-0 device

ada0: Serial Number AJZ061813191928

ada0: 16.700MB/s transfers (PIO4, PIO 512bytes)

ada0: 15259MB (31250432 512 byte sectors: 16H 63S/T 31002C)

ada0: Previously was known as ad0

panic: Bio not on queue bp=0xc2ab74c0 target 0xc0c0f43c

KDB: stack backtrace:

db_trace_self_wrapper(c0b3e6fa,c2a01800,c2689be4,c061fdf1,c2a01830,...) at
db_trace_self_wrapper+0x2d/frame 0xc2689bb8

kdb_backtrace(c0b39cc6,c0c11408,c0b26e7a,c2689c70,c0b26e7a,...) at
kdb_backtrace+0x30/frame 0xc2689c1c

vpanic(c0c112a8,100,c0b26e7a,c2689c70,c2689c70,...) at vpanic+0x80/frame
0xc2689c40

kassert_panic(c0b26e7a,c2ab74c0,c0c0f43c,0,c28d9c40,...) at
kassert_panic+0xe9/frame 0xc2689c64

g_bioq_first(c0c0f454,0,c0b26c3c,5c,0,...) at g_bioq_first+0x63/frame
0xc2689c80

g_io_schedule_up(c28d9c40,0,c0b27089,60,c2689cf4,...) at
g_io_schedule_up+0x94/frame 0xc2689cb4

g_up_procbody(0,c2689d08,c0b3335e,3c9,0,...) at g_up_procbody+0x9d/frame
0xc2689ccc

fork_exit(c0703210,0,c2689d08) at fork_exit+0x7f/frame 0xc2689cf4

fork_trampoline() at fork_trampoline+0x8/frame 0xc2689cf4

--- trap 0, eip = 0, esp = 0xc2689d40, ebp = 0 ---

KDB: enter: panic

[ thread pid 13 tid 19 ]

Stopped at  kdb_enter+0x3d: movl$0,kdb_why

db bt

Tracing pid 13 tid 19 td 0xc28d9c40

kdb_enter(c0b39f64,c0b39f64,c0b26e7a,c2689c70,c0b26e7a,...) at
kdb_enter+0x3d/frame 0xc2689c1c

vpanic(c0c112a8,100,c0b26e7a,c2689c70,c2689c70,...) at vpanic+0xcb/frame
0xc2689c40

kassert_panic(c0b26e7a,c2ab74c0,c0c0f43c,0,c28d9c40,...) at
kassert_panic+0xe9/frame 0xc2689c64

g_bioq_first(c0c0f454,0,c0b26c3c,5c,0,...) at g_bioq_first+0x63/frame
0xc2689c80

g_io_schedule_up(c28d9c40,0,c0b27089,60,c2689cf4,...) at
g_io_schedule_up+0x94/frame 0xc2689cb4

g_up_procbody(0,c2689d08,c0b3335e,3c9,0,...) at g_up_procbody+0x9d/frame
0xc2689ccc

fork_exit(c0703210,0,c2689d08) at fork_exit+0x7f/frame 0xc2689cf4

fork_trampoline() at fork_trampoline+0x8/frame 0xc2689cf4

--- trap 0, eip = 0, esp = 0xc2689d40, ebp = 0 ---

db

-- 
A better world shall emerge based on faith and understanding  - Douglas
MacArthur
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org