Re: Any Dev interested in SIS Ethernet/SATA driver development?

2008-12-27 Thread Rene Maroufi
On Fri, Dec 26, 2008 at 10:10:04PM -0500, bofh wrote:
 On Fri, Dec 26, 2008 at 5:10 PM, Rene Maroufi i...@maroufi.net wrote:
  On Fri, Dec 26, 2008 at 03:32:50PM -0600, Marco Peereboom wrote:
  I'll comment by saying that developing a storage driver remotely is a
  total pain in the ass bordering impossible.
 
  Not, if there are 2 hard drives, both connected different (separate
  Controllers). My OpenBSD System (amd64, 4.4 stable) runs from the IDE
  drive. The SATA drive isn't in use any more.
 
 I think Marco's point was that if there are crashes, lockups, etc, it
 is a pain in the ass not to have console access, or to be able to
 unplug the power and reboot into a working config/kernel, etc etc.
 Even without any development experience I can see that as a pain.

OK, I understand, but I can provide a serial console from a neighbour
machine and a SSH account on the neighbour machine, too.

Is it possible with a serial console?

Cheers
Reni
-- 
Reni Maroufi
i...@maroufi.net



Problem with wpi in -current?

2008-12-27 Thread Michael Warmuth
Hello,

since beginning of December, wpi stopped working with -current on my 
system. 

It seems to get detected correctly (see attached dmesg) but when running
ifconfig I get on stderr:
  ifconfig: SIOCGIFNETMASK: Device not configured
  ifconfig: SIOCGIFNETMASK_IN6: Device not configured
  ifconfig: SIOCGIFAFLAG_IN6: Device not configured
  ifconfig: SIOCGIFALIFETIME_IN6: Device not configured
  ifconfig: SIOCGIFNETMASK_IN6: Device not configured
  ifconfig: SIOCGIFAFLAG_IN6: Device not configured
  ifconfig: SIOCGIFALIFETIME_IN6: Device not configured
and no wpi0.

With -current of November 28, it works.

Disabling ACPI did not change anything.

Any ideas?

Thank you,

Michael

[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of dmesg]



Re: Any Dev interested in SIS Ethernet/SATA driver development?

2008-12-27 Thread Rene Maroufi
On Fri, Dec 26, 2008 at 03:16:26PM -0600, Todd T. Fries wrote:
 You should try current.  I have these very chipsets on a board I have, and
 the IDE support works great for PATA drives, haven't plugged in any SATA
 drives I will admit, mind showing a dmesg so we can get an idea of how
 old a kernel you are running/

I tried the latest snapshot and DMA doesn't working:
pciide1 at pci0 dev 8 function 0 vendor SiS, unknown product 0x0183
rev 0x01: DMA (unsupported), channel 0 wired to native-PCI, channel
1 wired to native-PCI

My full dmesg with the latest snapshot:

OpenBSD 4.4-current (GENERIC) #1971: Wed Dec 24 01:45:08 MST 2008
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1026732032 (979MB)
avail mem = 996515840 (950MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xfc7b0 (45 entries)
bios0: vendor American Megatrends Inc. version 080012 date 08/13/2007
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC MCFG OEMB
acpi0: wakeup devices PS2K(S4) PS2M(S4) UAR1(S4) UAR2(S4) PCI0(S4) EUSB(S4) 
USB_(S4) USB2(S4) USB3(S4) AC97(S4) MC97(S4) MAC_(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 Processor 3200+, 2200.35 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: AMD erratum 89 present, BIOS upgrade may be required
cpu0: apic clock running at 200MHz
ioapic0 at mainbus0 apid 1 pa 0xfec0, version 14, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (P0P6)
acpiprt2 at acpi0: bus 3 (P0P7)
acpicpu0 at acpi0: PSS
acpibtn0 at acpi0: PWRB
cpu0: Cool'n'Quiet K8 2200 MHz: speeds: 2200 2000 1800 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 SiS 761 PCI rev 0x02
agp at pchb0 not configured
ppb0 at pci0 dev 1 function 0 SiS 86C202 VGA rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 SiS 6330 VGA rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 SiS 965 ISA rev 0x48
pciide0 at pci0 dev 2 function 5 SiS 5513 EIDE rev 0x01: 965: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: ATAPI, iHDP118 4, GL03 ATAPI 5/cdrom removable
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
wd0 at pciide0 channel 1 drive 0: ST380020A
wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
auich0 at pci0 dev 2 function 7 SiS 7012 AC97 rev 0xa0: apic 1 int 18 (irq 
11), SiS7012 AC97
ac97: codec id 0x41445368 (Analog Devices AD1888)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
ohci0 at pci0 dev 3 function 0 SiS 5597/5598 USB rev 0x0f: apic 1 int 20 (irq 
5), version 1.0, legacy support
ohci1 at pci0 dev 3 function 1 SiS 5597/5598 USB rev 0x0f: apic 1 int 21 (irq 
3), version 1.0, legacy support
ohci2 at pci0 dev 3 function 2 SiS 5597/5598 USB rev 0x0f: apic 1 int 22 (irq 
5), version 1.0, legacy support
ehci0 at pci0 dev 3 function 3 SiS 7002 USB rev 0x00: apic 1 int 23 (irq 5)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 SiS EHCI root hub rev 2.00/1.00 addr 1
SiS 190 rev 0x00 at pci0 dev 4 function 0 not configured
ppb1 at pci0 dev 6 function 0 SiS PCI-PCI rev 0x00
pci2 at ppb1 bus 2
ppb2 at pci0 dev 7 function 0 SiS PCI-PCI rev 0x00
pci3 at ppb2 bus 3
pciide1 at pci0 dev 8 function 0 vendor SiS, unknown product 0x0183 rev 0x01: 
DMA (unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide1: using apic 1 int 17 (irq 5) for native-PCI interrupt
wd1 at pciide1 channel 0 drive 0: ExcelStor Technology J8160S
wd1: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
pciide1: channel 1 ignored (not responding; disabled or no drives?)
rl0 at pci0 dev 9 function 0 Accton MPX 5030/5038 rev 0x10: apic 1 int 17 
(irq 5), address 00:e0:29:6a:8e:10
rlphy0 at rl0 phy 0: RTL internal PHY
pchb1 at pci0 dev 24 function 0 AMD AMD64 0Fh HyperTransport rev 0x00
pchb2 at pci0 dev 24 function 1 AMD AMD64 0Fh Address Map rev 0x00
pchb3 at pci0 dev 24 function 2 AMD AMD64 0Fh DRAM Cfg rev 0x00
kate0 at pci0 dev 24 function 3 AMD AMD64 0Fh Misc Cfg rev 0x00
ppb3 at pci0 dev 31 function 0 SiS PCI-PCI rev 0x00
pci4 at ppb3 bus 4
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0

Problem with wpi in -current?

2008-12-27 Thread Alexey Suslikov
Michael Warmuth wrote:

 Hello,

 since beginning of December, wpi stopped working with -current on my
 system.

 It seems to get detected correctly (see attached dmesg) but when running
 ifconfig I get on stderr:
  ifconfig: SIOCGIFNETMASK: Device not configured
  ifconfig: SIOCGIFNETMASK_IN6: Device not configured
  ifconfig: SIOCGIFAFLAG_IN6: Device not configured
  ifconfig: SIOCGIFALIFETIME_IN6: Device not configured
  ifconfig: SIOCGIFNETMASK_IN6: Device not configured
  ifconfig: SIOCGIFAFLAG_IN6: Device not configured
  ifconfig: SIOCGIFALIFETIME_IN6: Device not configured
 and no wpi0.

You have kernel and userland out of sync.

Alexey



Python in base?

2008-12-27 Thread Jordi Espasa Clofent

Hi misc@,

?Are there some plans to include python in base system (as Perl is at 
present)?


--
Thanks,
Jordi Espasa Clofent



Re: Python in base?

2008-12-27 Thread Peter Hessler
No.  It won't happen.  Check the archives, this has been discussed before.

pkg_add -i python


On 2008 Dec 27 (Sat) at 16:04:01 +0100 (+0100), Jordi Espasa Clofent wrote:
 Hi misc@,

 ?Are there some plans to include python in base system (as Perl is at  
 present)?

 -- 
 Thanks,
 Jordi Espasa Clofent


-- 
I doubt, therefore I might be.



Re: Python in base?

2008-12-27 Thread Zhang Huangbin

Jordi Espasa Clofent wrote:

Hi misc@,

?Are there some plans to include python in base system (as Perl is at 
present)?



Why make it shipped in base?

--
Best regards.

Zhang Huangbin

- Open Source Mail Server Solution for RHEL/CentOS 5.x:
 http://code.google.com/p/iredmail/



Re: Python in base?

2008-12-27 Thread Martin Toft
On Sat, Dec 27, 2008 at 04:04:01PM +0100, Jordi Espasa Clofent wrote:
 Are there some plans to include python in base system (as Perl is at
 present)?

... the people in charge don't like it ...
http://marc.info/?l=openbsd-miscm=121171346816874w=2



Re: Problem with wpi in -current?

2008-12-27 Thread Michael Warmuth
Hi,

On Sat, 27 Dec 2008 14:56:48 +0200, Alexey Suslikov wrote You have
kernel and userland out of sync.

Yes, you are right. Sorry for the stupid question.

Thanks,

Michael



/etc/netstart issue with dhcp and default route

2008-12-27 Thread Michael
Hi,

I have the problem that, when dhclient is started for my wireless
interface iwi0 from /etc/netstart, no IPv4 default route is created. If
I call dhclient iwi0 manually it works.


# cat /etc/hostname.bge0
rtsol
media autoselect \
priority 1 up
!/sbin/dhclient ``\$if''

For the wired connection it doesn't matter if I use dhcp or add the
!dhclient command, just trying out different things. Adding the default
route always works here.


# cat /etc/hostname.iwi0
rtsol
media autoselect nwid  \
nwkey 0x \
bssid aa:bb:cc:dd:ee:ff:gg \
priority 2 up
!/sbin/ifconfig ``\$if'' chan /dev/null 21
!/sbin/dhclient ``\$if''

For iwi0 I need the first ! line so it actually starts the connection to
the access point. Without that line I do not get associated and nothing
happens at all.

When I add dhcp to the head of the file dhclient complains about no
link... and with the !dhclient line at the bottom I get an IP address
etc, just NO default route (even when I remove the hostname.bge0 file or
pull the cable). As said above, it works if I manually execute dhclient.


Any ideas?


Its is the GENERIC kernel with NTFS enabled:

OpenBSD 4.4-current (BELENUS) #0: Thu Dec 18 17:37:11 CET 2008
r...@obsd.home.lechtermann.net:/usr/src/sys/arch/i386/compile/BELENUS
cpu0: Intel(R) Pentium(R) M processor 1.60GHz (GenuineIntel 686-class)
1.60 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
real mem  = 1600548864 (1526MB)
avail mem = 1538301952 (1467MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/14/06, BIOS32 rev. 0 @ 0xfd750,
SMBIOS rev. 2.33 @ 0xe0010 (59 entries)
bios0: vendor IBM version 74ET64WW (2.09 ) date 12/14/2006
bios0: IBM 2525FAG
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdec0/240 (13 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #5 is the last bus
bios0: ROM list: 0xc/0xf600! 0xcf800/0x1600 0xd1000/0x1000
0xdc000/0x4000! 0xe/0x1
cpu0 at mainbus0: (uniprocessor)
cpu0: Enhanced SpeedStep 1600 MHz (1116 mV): speeds: 1600, 1500, 1400,
1300, 1200, 1100, 1000, 900, 800, 600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82915GM Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82915GM Video rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0 at vga1: irq 11
drm0 at inteldrm0
Intel 82915GM Video rev 0x03 at pci0 dev 2 function 1 not configured
ppb0 at pci0 dev 28 function 0 Intel 82801FB PCIE rev 0x03: irq 11
pci1 at ppb0 bus 2
bge0 at pci1 dev 0 function 0 Broadcom BCM5751M rev 0x11, BCM5750 B1
(0x4101): irq 11, address 00:16:d3:29:ce:76
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
uhci0 at pci0 dev 29 function 0 Intel 82801FB USB rev 0x03: irq 11
uhci1 at pci0 dev 29 function 1 Intel 82801FB USB rev 0x03: irq 5
uhci2 at pci0 dev 29 function 2 Intel 82801FB USB rev 0x03: irq 6
uhci3 at pci0 dev 29 function 3 Intel 82801FB USB rev 0x03: irq 11
ehci0 at pci0 dev 29 function 7 Intel 82801FB USB rev 0x03: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xd3
pci2 at ppb1 bus 4
cbb0 at pci2 dev 0 function 0 Ricoh 5C476 CardBus rev 0x8d: irq 11
sdhc0 at pci2 dev 0 function 1 Ricoh 5C822 SD/MMC rev 0x13: irq 5
sdmmc0 at sdhc0
iwi0 at pci2 dev 2 function 0 Intel PRO/Wireless 2915ABG rev 0x05: irq
11, address 00:16:6f:b2:30:c7
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 5 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
auich0 at pci0 dev 30 function 2 Intel 82801FB AC97 rev 0x03: irq 11,
ICH6 AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
Intel 82801FB Modem rev 0x03 at pci0 dev 30 function 3 not configured
ichpcib0 at pci0 dev 31 function 0 Intel 82801FBM LPC rev 0x03: PM
disabled
pciide0 at pci0 dev 31 function 2 Intel 82801FBM SATA rev 0x03: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: TRANSCEND
wd0: 1-sector PIO, LBA, 30592MB, 62652416 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
wd1 at pciide0 channel 1 drive 0: ST9160821A
wd1: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801FB SMBus rev 0x03: irq 11
iic0 at ichiic0
spdmem0 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-4200CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub 

OpenBGPD: Announce all problem and strange rib-out entries.

2008-12-27 Thread Pehr Söderman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hello!

I hope this is the right forum to discuss OpenBGP on OpenBSD.

I am setting up a lab network using a combination of OpenBSD 4.4
(About as standard install as they get) and Junier routers and have
run into an interesting problem with OpenBGP. To summarize the issue,
it acts as if announce self is turned on for all neighbours, even
when it's not. I also get a weird duplicate entry in the rib-out for
local nets, if the router gets a more specific route from a neighbour
for a local network. No filters are active. Nada. Zip. I am not
certain if this is a bug with OpenBGPD, the juniper-bgpd combination
or (perhaps most likely) a configuration error on my side.

Here is the bgpd.conf. (I have obfuscated some addresses and cut it
short to save space)

# sample bgpd configuration file
# see bgpd.conf(5)

# global configuration
AS 65000
router-id x.y.z.62
listen on x.y.z.62
fib-update yes

#network inet connected
network 192.168.0.0/16
network 10.0.0.0/8

# neighbors and peers
group AS 65011 A1 {
remote-as 65011
neighbor x.y.z.34
announce all
}
group AS 65012 A2 {
remote-as 65012
neighbor x.y.z.35
announce all
}
group AS 65013 A3 {
remote-as 65013
neighbor x.y.z.36
announce all
}
group AS 65014 A4 {
remote-as 65014
neighbor x.y.z.37
announce all
}
16 more neighbors

And some bgpctl outputs.

# bgpctl show summary
Neighbor AS   MsgRcvdMsgSentOutQ  Up/Down
State/PrfRcvd
16 more neighbors
x.y.z.3765014 59 43 0 00:25:15  0
x.y.z.3665013  0  0 0 NeverActive
x.y.z.3565012 91 59 0 00:39:01  2
x.y.z.3465011  0  0 0 NeverActive

# bgpctl show network
flags: S = Static
flags destination
* 10.0.0.0/8

# bgpctl show rib
flags: * = Valid,  = Selected, I = via IBGP, A = Announced
origin: i = IGP, e = EGP, ? = Incomplete

flags destination gateway  lpref   med aspath origin
AI*  10.0.0.0/8  0.0.0.0100 0 i
*10.2.0.0/16 x.y.z.35   100 0 65012 i
*192.168.2.0/24  x.y.z.35   100 0 65012 i

# bgpctl show rib detail

BGP routing table entry for 10.0.0.0/8
Nexthop 0.0.0.0 (via 0.0.0.0) from LOCAL: ID x.y.z.62 (x.y.z.62)
Origin IGP, metric 0, localpref 100, internal, valid, best, announced
Last update: 00:03:58 ago

BGP routing table entry for 10.2.0.0/16
65012
Nexthop x.y.z.35 (via x.y.z.35) from x.y.z.35 (192.168.2.2)
Origin IGP, metric 0, localpref 100, external, valid, best
Last update: 00:55:38 ago
Aggregator: 62717.0 [192.168.2.2]

BGP routing table entry for 192.168.2.0/24
65012
Nexthop x.y.z.35 (via x.y.z.35) from x.y.z.35 (192.168.2.2)
Origin IGP, metric 0, localpref 100, external, valid, best
Last update: 00:55:38 ago
Aggregator: 62717.0 [192.168.2.2]

# bgpctl show rib out
flags: * = Valid,  = Selected, I = via IBGP, A = Announced
origin: i = IGP, e = EGP, ? = Incomplete

flags destination gateway  lpref   med aspath origin
AI*  10.0.0.0/8  0.0.0.0100 0 i
AI*  10.0.0.0/8  0.0.0.0100 0 i

#  bgpctl show rib out detail

BGP routing table entry for 10.0.0.0/8
Nexthop 0.0.0.0 (via 0.0.0.0) from LOCAL: ID x.y.z.62 (x.y.z.62)
Origin IGP, metric 0, localpref 100, internal, valid, best, announced
Last update: 00:01:02 ago

BGP routing table entry for 10.0.0.0/8
Nexthop 0.0.0.0 (via 0.0.0.0) from LOCAL: ID x.y.z.62 (x.y.z.62)
Origin IGP, metric 0, localpref 100, internal, valid, best, announced
Last update: 00:01:02 ago

.35 announces 2 networks: 10.2.0.0/16 and 192.168.2.0/24. I would have
expected .62 to reannounce both. The 10.2/16 and 192.168.2/24 routes
are correctly entered into the local routing table. However, for some
reason they are not announced, and never gets the announced flag.

Can somebody with more experience of BGPD help me solve this mystery?

/Pehr Svderman
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iEYEARECAAYFAklWfoQACgkQlIRLofxhDjZJ4gCfUtH0RcaYXOanFTJMMGbN5/OE
r3EAoIJZoqi+FI+9Nt9DHle2WDDd3TkE
=bbe4
-END PGP SIGNATURE-



environmental prerequisites for kernel development (was Re: Any Dev interested in SIS Ethernet/SATA driver development?)

2008-12-27 Thread Lars Noodén
bofh wrote:
 I think Marco's point was that if there are crashes, lockups, etc, it
 is a pain in the ass not to have console access, or to be able to
 unplug the power and reboot into a working config/kernel, etc etc.
 ...

Access to a second box, for control, which has both serial and Ethernet
connections to the development units is the first step.

What else is there on a wish-list for being able to do kernel-level work
remotely?

What architecture-specific troubles are common?  I notice some of the
PPC and AMD64 units I have do not have serial output.

As far as the power-cycling of hardware goes, I'm looking into GPIO on
the motherboard to control optocouplers (or equiv) to control power
relays which can then switch the wall current for some development units
on or off.  For equipment with hardware reset, the relay can be skipped.
 These would be controlled via the control box's GPIO using gpioctl.

I ask because I'm trying to set up an environment where kernel-level
work can be done remotely.  Having more perspectives will help.

regards,
-Lars



Re: environmental prerequisites for kernel development (was Re: Any Dev interested in SIS Ethernet/SATA driver development?)

2008-12-27 Thread Dave Wilson
Lars NoodC)n wrote:
 bofh wrote:
 I think Marco's point was that if there are crashes, lockups, etc, it
 is a pain in the ass not to have console access, or to be able to
 unplug the power and reboot into a working config/kernel, etc etc.
 ...
 
 Access to a second box, for control, which has both serial and Ethernet
 connections to the development units is the first step.
 
 What else is there on a wish-list for being able to do kernel-level work
 remotely?
 
 What architecture-specific troubles are common?  I notice some of the
 PPC and AMD64 units I have do not have serial output.
 
 As far as the power-cycling of hardware goes, I'm looking into GPIO on
 the motherboard to control optocouplers (or equiv) to control power
 relays which can then switch the wall current for some development units
 on or off.  For equipment with hardware reset, the relay can be skipped.
  These would be controlled via the control box's GPIO using gpioctl.
 
 I ask because I'm trying to set up an environment where kernel-level
 work can be done remotely.  Having more perspectives will help.
 
 regards,
 -Lars
 
 

Lars,

coupla things that might be useful, first off it bears mention that
quite a few higher-end machines (eg Sun Fire T1000) have a lights-out
management device or card of some sort which allows pretty much full
control over the machine over either ethernet or serial, or both. In the
case of the T1000, its only interfaces are 4 ethernet jacks for the
machine, and 2 RJ45's, one serial and one ethernet for the ALOM. A
machine of this type wouldn't need a management machine at all,
everything can be done over ethernet. Given it doesn't have peripheral
or monitor outputs, there is in fact no difference between being there
and being on another continent. The T1000 is the extreme case, but both
HP and Dell to name two companies provide management cards which give a
certain amount of remote control. Googling for Dell DRAC and HP iLOM may
be useful to you.

The other thing is that the guys over at CoreBoot have spent some time
addressing low-level remote control of motherboards for testing their
BIOS code. I don't know if they still do, but they used to have an
automated system which built, flashed and booted their code on a variety
of motherboards. I think Google provided some of the resources. I don't
know if its the sort of thing that you're looking for, but their work
might give you a head start on being able to reset systems with GPIOs.

si1entDave



Re: Python in base?

2008-12-27 Thread Abel Camarillo
On Sat, Dec 27, 2008 at 11:16:06PM +0800, Zhang Huangbin wrote:
 Jordi Espasa Clofent wrote:
 Hi misc@,

 ?Are there some plans to include python in base system (as Perl is at  
 present)?

 Why make it shipped in base?

 -- 
 Best regards.

 Zhang Huangbin

 - Open Source Mail Server Solution for RHEL/CentOS 5.x:
  http://code.google.com/p/iredmail/

 

Because it is needed by pkg_*, and perl is cool.



Re: Python in base?

2008-12-27 Thread Damien Miller
On Sat, 27 Dec 2008, Jordi Espasa Clofent wrote:

 Hi misc@,
 
 ?Are there some plans to include python in base system (as Perl is at
 present)?

No. We only need one such language in base and perl got there first.

-d