38400 serial boot console through all stages of boot? (reposting from sparc64 list)

From: Tillman Hodgson (tillman_at_seekingfire.com)
Date: 08/20/03

  • Next message: Mark Woodson: "Re: newbie questions (2) 5.1"
    Date: Wed, 20 Aug 2003 12:59:49 -0600
    To: FreeBSD-Questions <freebsd-questions@freebsd.org>
    
    

    Howdy,

    I originally posted this to the sparc64 mailing list and haven't
    received a response. It occurs to me that this might not be sparc
    specific and so I'm reposting it on -questions@. It's a -CURRENT sparc64
    system, so I'm not sure that -questions@ covers all the territory either
    :-)

    I have the serial boot console and a login getty working, and I wanted
    to move them to 38400 from the default 9600. The short story is that it
    works until it mounts root, then I get garbage like this:

    xx|xx@x|@x@xxx@@|xxxxx@x||x|x@xxx|x@x@|x|x||x|@x|x|xx|xx@x|@|x|x| (etc)

    Which I assume is due a serial speed mismatch. After a little bit of
    time, the computer finishes booting and I'm presented with a working
    serial login (i.e., the speed matches again).

    Here's a rough synopsis of what happens:

    ...
    Timecounters tick every 0.976 msec
    IPsec: Initialized Security Association Processing.
    IP Filter: v3.4.31 initialized. Default = pass all, Logging = enabled
    ad0: 8223MB <ST38410A> [16708/16/63] at ata2-master WDMA2
    acd0: CDROM <CRD-8322B> at ata3-master PIO4
    Mounting root from ufs:/dev/ad0a
    |xx@x|x|x@x@x|@xx|x@xxxx|@@|@xx@|xpx@@xx|xx@ (etc for several lines)
    FreeBSD/sparc64 (caliban.rospa.ca) (ttyb)
    login:

    The parts that work at 38400:

    * Getting into the Sparc firmware via ~# in tip (this is /so/ handy!)
    * Getting into the loader (this is /so/ handy!)
    * The kernel messages reporting detected hardware
    * The getty to login

    To set this up, I've:
    * Set ttyb setenv'd as the input and output devices and the speed set to
      38400 in the Sparc firmware (this part is sparc64 specific)
    * Set BOOT_COMCONSOLE_SPEED= 38400 in /etc/make.conf
    * Set options CONSPEED=38400 in my kernel config file
    * cd /usr/src && time make buildkernel && make installkernel
    * cd /usr/src/sys/boot && make all install clean
    * sunlabel -B ad0 (sparc64 specific - sunlabel rather than bsdlabel)

    Am I missing something?

    -T

    -- 
    Page 2: Unix today is nothing less than a worldwide culture, comprising
    many tools, ideas and customs.
    	- Harley Hahn, _The Unix Companion_
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Mark Woodson: "Re: newbie questions (2) 5.1"

    Relevant Pages

    • [GIT]: Sparc
      ... Remove SunOS signal frame support, ... restart handling on sparc64. ... SBUS video driver fixes and cleanups from Robert Reif. ... sparc: Remove old style signal frame support. ...
      (Linux-Kernel)
    • Re: No dma_sync_* during pci_probe? (Sparc, post 2.6.22 regression)
      ... pci_device's or device's probe was finished. ... Would that be a bug in the Sparc platform code? ... a NULL iommu pointer or something like that. ... subsystem doesn't get as far on sparc64 on 2.6.23 and 2.6.24. ...
      (Linux-Kernel)
    • [GIT]: Sparc
      ... initrd handling was broken by NUMA changes on sparc64, fix. ... Don't build USB_ISP1760_OF on sparc, ... Revert sparc64 change that added irq_to IPI handlers, ... Fix mmap VA span checking. ...
      (Linux-Kernel)
    • Re: More info for DSM w/r/t sunffb on 2.6.15-rc6
      ... > and effectively without adding any complexity. ... There is an obscure program I wrote a long time ago, ... > Though really the check ought to be in the sparc and sparc64 ...
      (Linux-Kernel)
    • [GIT]: Sparc
      ... Several Sparc updates for 2.6.26: ... NUMA support, detection is added for Niagara machines. ... boolean in the trap return paths to the signal dispatch. ... [SPARC64]: Move ramdisk discovery code out to seperate function. ...
      (Linux-Kernel)