[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: booting on the soekris serial console



Hi all,

So I was able to boot my soekris machine on Debian GNU/kFreeBSD. The two
key points were to setup the console to be at 9600 baud and use the 486
kernel instead of the stock 686 kernel, which doesn't boot:

Loading kernel of FreeBSD 7.2-1-686 ...
Copyright (c) 1992-2009 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.
#0 Fri Jan 15 18:15:20 UTC 2010
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by AMD PCS (Unknown-class CPU)
  Origin = "AuthenticAMD"  Id = 0x5a2  Stepping = 2
  Features=0x88a93d<FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CLFLUSH,MMX>
  AMD Features=0xc0400000<MMX+,3DNow!+,3DNow!>
panic: CPU class not configured
Uptime: 1s

So I removed the stock kernel and installed kfreebsd-image-7-486, then
setup the serial console in /etc/grub.d/40_custom:

menuentry "Debian GNU/kFreeBSD, with kFreeBSD 7.2-1-486" {
        insmod ufs2
        insmod bsd
        set root=(hd0,1)
        search --no-floppy --fs-uuid --set 4b81dce84e75710d
        echo                    Loading kernel of FreeBSD 7.2-1-486 ...
        kfreebsd                /boot/kfreebsd-7.2-1-486.gz  -D -h
        kfreebsd_module_elf     /lib/modules/7.2-1-486/acpi.ko
        set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad0s1
        set kFreeBSD.vfs.root.mountfrom.options=rw
}

Then set that kernel to be the default one:

GRUB_DEFAULT=1

in /etc/default/grub.

Then I can connect to the serial console using a command like:

cu -l /dev/ttyS0 -s 9600

and victory is mine!

GNU/kFreeBSD roadkiller 7.2-1-486 #0 Fri Jan 15 17:03:43 UTC 2010 i586 i386 Geode(TM) Integrated Processor by AMD PCS GNU/kFreeBSD

Copyright (c) 1992-2009 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.
#0 Fri Jan 15 17:03:43 UTC 2010
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by AMD PCS (499.91-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x5a2  Stepping = 2
  Features=0x88a93d<FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CLFLUSH,MMX>
  AMD Features=0xc0400000<MMX+,3DNow!+,3DNow!>
real memory  = 536870912 (512 MB)
avail memory = 515928064 (492 MB)
kbd1 at kbdmux0
K6-family MTRR support enabled (2 registers)
ACPI Error (tbxfroot-0308): A valid RSDP was not found [20070320]
ACPI: Table initialisation failed: AE_NOT_FOUND
ACPI: Try disabling either ACPI or apic support.
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci0: <encrypt/decrypt, entertainment crypto> at device 1.2 (no driver attached)
vr0: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe100-0xe1ff mem 0xa0004000-0xa00040ff irq 11 at device 6.0 on pci0
vr0: Quirks: 0x2
vr0: Revision: 0x96
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:00:24:cc:93:44
vr0: [ITHREAD]
vr1: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe200-0xe2ff mem 0xa0004100-0xa00041ff irq 5 at device 7.0 on pci0
vr1: Quirks: 0x2
vr1: Revision: 0x96
miibus1: <MII bus> on vr1
ukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus1
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr1: Ethernet address: 00:00:24:cc:93:45
vr1: [ITHREAD]
vr2: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe300-0xe3ff mem 0xa0004200-0xa00042ff irq 9 at device 8.0 on pci0
vr2: Quirks: 0x2
vr2: Revision: 0x96
miibus2: <MII bus> on vr2
ukphy2: <Generic IEEE 802.3u media interface> PHY 1 on miibus2
ukphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr2: Ethernet address: 00:00:24:cc:93:46
vr2: [ITHREAD]
vr3: <VIA VT6105M Rhine III 10/100BaseTX> port 0xe400-0xe4ff mem 0xa0004300-0xa00043ff irq 12 at device 9.0 on pci0
vr3: Quirks: 0x2
vr3: Revision: 0x96
miibus3: <MII bus> on vr3
ukphy3: <Generic IEEE 802.3u media interface> PHY 1 on miibus3
ukphy3:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr3: Ethernet address: 00:00:24:cc:93:47
vr3: [ITHREAD]
isab0: <PCI-ISA bridge> at device 20.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD CS5536 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 20.2 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
ohci0: <OHCI (generic) USB controller> mem 0xa0005000-0xa0005fff irq 15 at device 21.0 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 4 ports with 4 removable, self powered
ehci0: <AMD CS5536 (Geode) USB 2.0 controller> mem 0xa0006000-0xa0006fff irq 15 at device 21.1 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb1: EHCI version 1.0
usb1: companion controller, 4 ports each: usb0
usb1: <AMD CS5536 (Geode) USB 2.0 controller> on ehci0
usb1: USB revision 2.0
uhub1: <AMD EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb1
uhub1: 4 ports with 4 removable, self powered
cpu0 on motherboard
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc8000-0xd27ff pnpid ORM0000 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]
atkbd0: [ITHREAD]
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console   
sio0: [FILTER]
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
sio1: [FILTER]
ppc0: parallel port not found.
Timecounter "TSC" frequency 499905104 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 3919MB <SanDisk SDCFH2-004G HDX 4.32> at ata0-master WDMA2
GEOM_LABEL: Label for provider ad0s1 is ufsid/4b81dce84e75710d.
GEOM_LABEL: Label for provider ad0s1 is msdosfs/NEW VOLUME.
Trying to mount root from ufs:/dev/ad0s1
Invalid time in clock: check and reset the date!
WARNING: TMPFS is considered to be a highly experimental feature in FreeBSD.
GEOM_LABEL: Label msdosfs/NEW VOLUME removed.
GEOM_LABEL: Label ufsid/4b81dce84e75710d removed.
GEOM_LABEL: Label for provider ad0s1 is ufsid/4b81dce84e75710d.
GEOM_LABEL: Label for provider ad0s1 is msdosfs/NEW VOLUME.
GEOM_LABEL: Label msdosfs/NEW VOLUME removed.
GEOM_LABEL: Label ufsid/4b81dce84e75710d removed.

Thanks for the help! Now real work starts. :)

-- 
Antoine Beaupré
Réseau Koumbit Networks
+1.514.387.6262

Attachment: signature.asc
Description: Digital signature


Reply to: