Re: [gentoo-user] ghosting(?) a drive

2005-11-18 Thread Digby Tarvin
I still think you need to partition the new drive first, then
dd the individual partitions.

Addresses within partitions are normally handled as sector offsets, but
booting and locating the start/extent of partitions don't always.

The fdisk format on PCs is ancient and predates SCSI (and IDE drives that
pretend to be SCSI). It encodes addresses in terms of sector/head/cylinder,
as well as storing block offset information.

Unless the old and new drives are identical geometry (for example,
the same make and model) then any code that tries to use physical
addressing based on geometry is going to screw up if the fdisk table
does not match the drive...

Regards,
DigbyT

On Mon, Nov 14, 2005 at 04:54:57PM -0800, maxim wexler wrote:
 
 boots into a panic. Here's the last 5 lines:
 
 [28.856347] ReiserFS: sda3: found reiserfs format
 3.6 with standard journal
 [31.560835] ReiserFS: sda3: warning: sh-2029: reiserfs
 read_bitmaps: bitmap bitlock(#14057372) reading failed
 [31.663418] UDF-fs: No partition found (1)
 [31.663466] Kernel panic - not syncing: VFS: Unable to
 mount root fs on unknown-block(8,3)
 [31.663493]
 
 After dd'ing I compared both drives w/fdisk and they
 were identical except for the device names, of course.
 I *did* update fstab and grub.conf and ran
 grub-install w/o error. Don't know why it was looking
 for a UDF fs.
 
 one thing I noticed though, the SATA drive is about 3M
 smaller than the ATA.
 
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ghosting(?) a drive

2005-11-12 Thread Digby Tarvin
I do this quite frequently - except that in most cases I am
replacing an old drive with a new larger driver, but want
the existing partitions copied accross identically as if
nothing has changed. To complicate matters, I often have
more that one operating system installed on the disk.

The basic appreach is really the same thing you would do if
your old drive failed completely and you were recovering from
backups - only this way you can make sure your backups are
completely up to date so that nothing is lost.

The best method (IMHO) is as follows:

Firstly, always make sure your backups are completely up
to date before you start plugging and unplugging hard drives.
Use 'fdisk -l' or similar to get the exact partitioning of the
old drive, and print a copy.

Next connect and partition the new drive with identically sized
partitions to the original drive. Any extra space will be available for
new partitions - these can be created now or later. 

Now load all of the partitions with the content of the corresponding
original. If I am using dump to backup ext2/ext3 filesystems, I usually
just use restore at this point.

Alternatively, boot your old system single user (so all filesystems
are read-only) and dd each old filsystem to the corresponding
new filesystem. 

Finally, move the new drive to its final address and remove the
original, boot using a floppy or CD, and use grub/lilo to update your
boot blocks. Then, of course, you chould run a filesystem check
on each of the filesystems just to make sure.

This ensures that the information in the boot sector is correct
for the new drive. Two 120G drives will typically not have
*exactly* the same number of sectors, and usually will have
a different geometry. So long as the new drive has the same
or more, then you are ok and just need to make sure you copy
the original partition sizes exactly. If you have slightly less,
then at least one partition will be smaller and should be
formatted and copied file by file (although you could avoid
this by choosing to shrink the swap partition).

The dd means I don't have to worry about what operating system
is in the partition, and there is no possibility that oversights
with rsync will have resulted in subtle changes that might go
un-noticed for a long time - such as forgetting to preserve
hard links (archive mode does not preserve everything..).

When I need to change the size of one or more filesystems, then
I use dump/restore (for ext2/3 filesystem) or rsync for Unix
based systems.

Regards,
DigbyT

On Fri, Nov 11, 2005 at 02:50:22PM -0800, maxim wexler wrote:
 Hello everyone,
 
 Just received a new, unformatted SATA 120G HD with the
 intention of moving my entire gentoo OS over to it
 from a flaky 120G ATA drive(reiserfs). Hopefully, I
 can just boot up from the new drive as if nothing had
 changed.
 
 Can anybody recommend any tool(s) for the job?
 Gotchas? Does SATA prefer a certain fs?
 
 -mw
 
 
   
 __ 
 Yahoo! FareChase: Search multiple travel sites in one click.
 http://farechase.yahoo.com
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] use of /usr/src/linux symlink

2005-11-09 Thread Digby Tarvin
On Wed, Nov 09, 2005 at 03:35:42PM +0100, Holly Bostick wrote:
 Norberto Bensa schreef:
  Peter Ruskin wrote:
  
  ebegin Checking that /usr/src/linux is linked to booted kernel...
   if [ /usr/src/linux-$(uname -r) != $(ls -l /usr/src/linux|cut 
  -f2 -d\|cut -f2,3,4 -d' ') ]
  
  
  This looks more complicated than it really should be. Just run ln 
  on reboot (stolen from your post):
  
  rm -f /usr/src/linux ln -s /usr/src/linux-$(uname -r) /usr/src/linux
  
 
 Thanks for the tip-- but (no offense meant) who cares?

Norbertos suggestion and Peters refinement were useful to me
as examples of one plausible interpretation of what /usr/src/linux symlink 
should be - a shorthand way of finding the source for the running kernel.

I was glad to see that I was not the only one who was not clear on its
intended use, and hence how it should be maintained.

 Can someone tell me on what basis this *needs* to be done as a standard
 operation?

If it were done as standard, then it would make the commonly held
assumption that it points to the currently running kernel correct
unless an explicit action had been taken by a super user since the
last reboot...

But that is a justification or argument for doing so - it appears from 
what you say that there is no *need* for it to be so (although the
same could be said about an awful lot of the Unix/Linux filesystem
organization - it is arbitrary until some application or process that
you use is written to depend on it)..

 -- If you have some external module that compiles against the kernel
 source, you most likely need it against *all* kernel sources, not just
 the running one (so redirecting the link is only of limited usefulness);

Ok - this seems to be the bit that I am a little unclear on.

If there are, as indicated in your earlier response (which I was
still mulling over) applications, libraries and external kernel
modules that need to be compiled against a kernel, and we want to
be able to use grubs ability to select from a choice of kernels,
what is the mechanism by these we ensure the correct applications,
libraries and external kernel modules (lets call them 'objects' to
avoid having to list the possibilities each time - not to be
confused with the current trendy programming paradigm) are used for the
currently running kernel?

If the binaries are to be stored in a kernel dependent location,
like the kernel modules build within the kernel source tree that
are built to /lib/modules/kernel-version, then /usr/src/linux
cannot really be being used as a symlink (ie a way of accessing
the kernel files without needing to know which version it is)
because the build process will need to know the target kernel
version in order to make the directory names or tag. In effect,
it could equally well be a file called '/usr/src/build-kernel'
which contains the version number of the kernel being compiled
for...?

Anyway, if I understand you correctly, if you are not building
anything, then it doesn't matter. And there is certainly no
justification is assuming you are building for the kernel that
is currently running. Right?

Presumably these kernel dependent objects only need emerge to
download the source once, but then must be rebuilt once for
each kernel you want to install - right? And somehow the
binaries will be kept separate and the correct ones chosen
at boot time based on the active kernels knowledge of its
own version identity.

Is this what 'sys-kernel/module-rebuild' is intended to take care
or for us? So we just /usr/src/linux to the newly installed
kernel and run module-rebuild and the kernel dependent modules
will all be made for the new (or modified) kernel.

It seems that the desirablility of having the boot process automatically
update the symlink depends on how much you want to be able to use
/usr/src/linux as a shorthand for manually typing /usr/src/linux-`uname -r`,
which is probably a bit arcane for a nieve user...

 Not getting it at all. How many kernels does one keep in a bootable
 state, anyway-- and use commonly, without needed external modules, no
 less-- that this would be necessary?

I typically have 3-4. The current which I think is fully working,
the previous kernel just in case I discover I was wrong and had
forgotten to test something vital, and the new kernel which I am
in the process of installing but havn't finished testing enough to
use when doing something important or letting others on the system..

I also have several kernels which boot to different filesystems
(eg the old SuSE system because its crypto filesystem is not
compatible with the gentoo one) and alternate operating systems
such as BSD/Plan9/Inferno/OS-9000 - can't think of any others worth
running just now ;)

But being different filesystems, they arn't relevent to the
/usr/src/linux link question.

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] use of /usr/src/linux symlink

2005-11-09 Thread Digby Tarvin
On Wed, Nov 09, 2005 at 11:59:43AM -0500, Chris Fairles wrote:
 Changed my symlink to point to 2.6.12-gentoo-r10, compiling ndiswrapper 
 1.5 is using running kernel 2.6.13
 ..
 make[2]: Entering directory `/usr/src/linux-2.6.13-gentoo-r3'
  Building modules, stage 2.
  MODPOST

Oops - seems like even kernel code developers are not all of one mind
when it comes to what the convention is regarding the /usr/src/linux
sym link.

I think my preference would be to make the intention more explicit - 
it a symlink is for use by scripts and makefile then it can be
verbose, such as
/usr/src/current_buid_kernel
which can be accompanied with a separate link to be used a shorthand
for the current kernel by human users, such as
/usr/src/sys
which could be set correctly during boot.
(linux would really need to be left as a confusing link for compatability)

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] use of /usr/src/linux symlink

2005-11-08 Thread Digby Tarvin
Something which I havn't found any explicit elaboration of in the
documentation...

The convention in the Linux/gentoo filesystem seems to be to have a unique
directory for each installed kernel in /usr/src, with a symbolic link to
the 'current' kernel directory named /usr/src/linux..

The question is - is this just a user convenience, or will parts of
the system break if it is not maintained correctly?

The reason I ask is that if I have several kernels which I have configured
grub to allow me to select from at boot time, where should this symlink
point? The newest kernel? An experimental one being worked on? The one most
recently booted from. If the latter case then it is likely to be wrong for
a finite period following boot until the system has come up far enough to
allow me to update it.

Anyone know what is likely to break (if anything) if I boot from a kernel
other than the one which corresponds to the directory /usr/src/linux points
to, and neglect to update the link? Does it direct (for instance) the target
directory for an emerge of new kernel components? Or does it perhaps have to
point to the kernel being built during any recompile?

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB mobile phone connection..

2005-11-03 Thread Digby Tarvin
I've had another look at the problem, and at last can report
a bit of success - at least I think I have bracketed the problem...

I started by enabling the USB debug messages in the kernel 
(CONFIG_USB_DEBUG) to see if that shed any light on what was
happening, but it just produced a lot of stuff like:
  usb 1-1: new full speed USB device using uhci_hcd and address 2
  uhci_hcd :00:07.2: uhci_result_control: failed with status 44
  [cb907240] link (0b9071b2) element (0b03e040)
0: [cb03e040] link (0b03e080) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 
EndPt
  =0 Dev=0, PID=2d(SETUP) (buf=0c3d0860)
1: [cb03e080] link (0b03e0c0) e3 SPD Active Length=0 MaxLen=3f DT1 EndPt=0 
Dev
  =0, PID=69(IN) (buf=0b31c9a0)
2: [cb03e0c0] link (0001) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 
De
  v=0, PID=e1(OUT) (buf=)

which didn't enlighten me very much.

So I then decided to try something fairly radical and booted a ubuntu live
CD which I picked up at a recent show in a different PC, and used
'apt-get install' to add all the pre-requisite packages and cvs to
download the latest version of moto4lin. 

The first interesting thing that I learned was that the error messages I was
getting on connection of the phone are not specific to gentoo - I get exactly
the same messages from ubuntu:
 usb 1-2: new full speed USB device using uhci_hcd and address 2
 usb 1-2: device descriptor read/64, error -71
 usb 1-2: device descriptor read/64, error -71
 usb 1-2: new full speed USB device using uhci_hcd and address 3
 usb 1-2: device descriptor read/64, error -71
 cdc_acm 1-2:1.0: ttyACM0: USB ACM device
 usbcore: registered new driver cdc_acm
 drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver for USB 
modems and ISDN adapters

This did produce the '/dev/ttyACM0' device file which you are seeing (rather
than the /dev/usb/acm/0 I am seeing on gentoo). It took me several attempts
before I found a configuration and sequence that worked, but eventually managed
to get the phone recognised in P2K mode and I successfully transfered all
accessible files from the phone onto my disk.

So now I know that my phone and cable are good, and just need track down
which difference between these systems is causing my problem with gentoo.

Havn't worked out yet where the phonebook or SMS inbox/outbox (two items
I really wanted to be able to archive from the phone) are stored.
Let me know if you have any suggestions.

Regards,
DigbyT

On Wed, Nov 02, 2005 at 06:46:48PM -0500, James Hiscock wrote:
  Thanks for going to all the trouble of testing out the phone
  operation on your SuSE machine. I havn't had any breakthrough
  yet, but your help has given me the confidence to persevere..
 
 No problem -- I'm a software tester in Real Life (tm), so stuff like
 this bugs the crap out of me. I have a tendency to get a hold of a
 problem, and beat it into the ground sometimes, and this is one of
 those things that drives me absolutely crazy: inconsistent behaviour
 of software is _extremely_ annoying and frustrating - especially when
 _I'm_ the one with the works for me response, but I can't figure out
 what I did (if anything) to solve the problem. sigh
 
 Anyway... I'm not convinced that the problem's in the kernel. If it
 was, then anybody with the same kernel would run into the same
 problem(s)...
 
 ...and, following that logic, I started digging through the code for
 moto4lin, trying to see if there was anything spectacularly obvious
 that _might_ be causing the behaviour we're seeing. In so doing, I
 _think_ I _might_ have found a typo in moto_ui/p2kproc.cpp, on line
 729... here's the function where that line appears:
 
 snip
 
 // Connect to phone.
 int P2kProc::drv_connect()
 {
 FUNC(drv_connect);
 int ph=drv_findPhone();
 if (ph==PHONE_NONE) RAISE(no phone)
 if (ph==PHONE_AT) drv_switchP2K();
 
 int t;
 t=time(NULL);
 
 while ((time(NULL)-t5)  (ph!=PHONE_P2K))
 {
 usb_find_devices();
 ph=drv_findPhone();
 usleep(1);
 }
 if (ph!=PHONE_P2K) return(-1);
 return(drv_openPhone());
 }
 /snip
 
 What's got me thinking there's a typo are the following two lines:
 
 if (ph==PHONE_NONE) RAISE(no phone)
 if (ph==PHONE_AT) drv_switchP2K();
 
 This looks to me like if there's no phone, an error is spit out (to
 the terminal, if you started moto4lin from there), then it checks to
 see if the phone's in AT mode, and then it tries to switch it to P2K
 mode. The problem here is that the switch to P2K will never be
 reached, because there's a missing semi-colon at the end of the first
 line, which means that if there's no phone _and_ it's in AT mode, then
 it'll do the switch... which makes little to no sense to me, if I'm
 reading this correctly...
 
 ...it might be worth trying out, though, to see if adding a semi-colon
 here would help, so that 

Re: [gentoo-user] USB mobile phone connection..

2005-11-02 Thread Digby Tarvin
Hi James,

Thanks for going to all the trouble of testing out the phone
operation on your SuSE machine. I havn't had any breakthrough
yet, but your help has given me the confidence to persevere..

On Wed, Nov 02, 2005 at 06:40:11AM -0500, James Hiscock wrote:
  I've just tried to use moto4lin with a Motorola Razr. It starts as with
  yours, but when I click Switch to P2K, /dev/ttyACM0 disappears! nothing
  works after that until I disconnect and reconnect the phone, at which
  point I am back in AT mode and it all starts again.
 
 That's what was happening for me for several hours until it magically
 started working... I honestly don't know what the heck changed. But
 once it decided to work, it works consistently.

It also sounds very much like what I am seeing. My /dev/usb/acm/0
disappears the first time it is accessed (either by moto4lin or by
just echoing anything to it), followed by a message along the lines
of
usb 1-1: USB disconnect, address 17
in /var/log/messages

So far I havn't managed to get it into a mode where it works more
sucessfully.

I have noticed that on connection I sometimes get:
 usb 1-1: new full speed USB device using uhci_hcd and address 5
 usb 1-1: device descriptor read/64, error -71
 usb 1-1: device descriptor read/64, error -71
 usb 1-1: new full speed USB device using uhci_hcd and address 6
 cdc_acm 1-1:1.0: ttyACM0: USB ACM device
whereas on other occasions I get:
 usb 1-1: new full speed USB device using uhci_hcd and address 16
 usb 1-1: device descriptor read/64, error -71
 usb 1-1: device descriptor read/64, error -71
 usb 1-1: new full speed USB device using uhci_hcd and address 17
 usb 1-1: device descriptor read/64, error -71
 cdc_acm 1-1:1.0: ttyACM0: USB ACM device
ie sometimes 2 descriptor read failures, sometimes 3.

so perhaps there is something a bit flakey in there that at some point
might just start working.

Anyone else seen these sort of error messages on plug-in? I'm really
not sure what they are telling me. I can't even find the error message
in the source. The closest I have found is in linux/drivers/usb/core/hub.c:
 dev_err(udev-dev, device descriptor read/%s, error %d\n, all, retval);
but the '%s' seems hard wired to produce the string all rather than 64,
unless dev_err is doing something funny with its 3rd arg.

 There's a note in the moto4lin wiki specifically for Razr phones
 (http://moto4lin.sourceforge.net/wiki/Razr_V3) that says that it's
 inconsistent, and you may need to run
 
 echo AT+MODE=8  /dev/ttyACM0
 
 When I was doing that last night on my laptop, the first time would
 work, and the second time it removed the device... I honestly don't
 know what the heck is going on with this program, but it _is_ a pretty
 early release... shrug

I get the device disappearing every time I attempt this. My gut feeling
is that the problem has nothing to do with moto4lin. After all, when I
am using echo it isn't even running.

I suspect it is more a compatability issue between the Linux USB/ACM
code and the Motorola gadget code.

 There isn't much info for the C380 in the wiki, other than the
 settings that should be used (which are the defaults)...

Yes, although it is listed as one of the models that work, so I assume
somebody must have managed to get it to go.

I still have to try tweaking the kernel USB related config parameters, but
if that doesn't help, I suspect I am going to have to bite the bullet and
try and find my way around the USB driver code. Anybody know of any good
references on USB protocols and drivers?

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB mobile phone connection..

2005-11-01 Thread Digby Tarvin
Sorry about the delayed reply - I have been away for a couple
of days.

On Thu, Oct 27, 2005 at 05:25:12PM -0400, James Hiscock wrote:
  and the fact that you get a /dev/ttyACM0 and I get a /dev/usb/acm/0.
  I wonder if that indicates a slight USB driver change between our
  two kernels?
 
 The device file difference might just be from me running
 sys-fs/udev-070-r1... not sure, though.

Is that non-standard? I only see
*  sys-fs/udev
  Latest version available: 068
  Latest version installed: [ Not Installed ]
  Size of downloaded files: 436 kB
  Homepage:
http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
  Description: Linux dynamic and persistent device naming support (aka 
userspace devfs)
  License: GPL-2

in portage, and as you can see I don't have it installed.

  I assume the two addresses I get on connect reflect the fact that my
  phone has two interfaces defined - one comm. with a single endpoint, and
  one data with 2 endpoints. Yours seems to have two configurations
  whereas mine has Cfg#=1
 
 You lost me there, but that's ok -- I think I know what you're talking
 about

It is all magic that I didn't know anything about till I started
trying to figure out how to get this phone to work ;)

  Errno 71 corresponds to protocol error which doesn't sound good.
 
 No, that it doesn't.
 
  What does your /proc/bus/usb/devices entry show for the phone?
 
 Here you go -- hope it makes more sense to you, than it does to me. ;)
 
 T:  Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  4 Spd=12  MxCh= 0
 D:  Ver= 1.10 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  2
 P:  Vendor=22b8 ProdID=4902 Rev= 0.01
 S:  Manufacturer=Motorola Inc.
 S:  Product=Motorola Phone (V3)

config 1 (active)

 C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=500mA
 I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm
 E:  Ad=89(I) Atr=03(Int.) MxPS=  16 Ivl=10ms
 I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
 E:  Ad=01(O) Atr=02(Bulk) MxPS=  32 Ivl=0ms
 E:  Ad=82(I) Atr=02(Bulk) MxPS=  32 Ivl=0ms

config 2

 C:  #Ifs= 2 Cfg#= 2 Atr=c0 MxPwr=100mA
 I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=
 E:  Ad=89(I) Atr=03(Int.) MxPS=  16 Ivl=10ms
 I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=
 E:  Ad=01(O) Atr=02(Bulk) MxPS=  32 Ivl=0ms
 E:  Ad=82(I) Atr=02(Bulk) MxPS=  32 Ivl=0ms

That tells me that you (or at least your phone) has two configurations,
of which the first is the active one. The only significant
difference I can see is that the first has a much higher maximum
power requirement (500mA vs 100mA) - however both are quite a bit
higher than the 20mA of my phone's single configuaration...

Both of your configurations have two Interfaces, the first is a 'comm.' type
with one end point, and the second a 'data' with two Bulk endpoints.
Thus they both look more or less the same as the single config that I have.

I tried installing the latest kernel (2.6.12-r10) but that did not seem
to make any difference - I get the same protocol error message on
connection.

So currently I am at a bit of a loss. Unless you have some subtly
different settings in your kernel config, it is starting to look
like resolving this may require a deeper understanding of USB, the
Linux USB driver implementation and the protocols used by Motorola
phones than I currently posess (I do not have a copy of the Windows
software for the phone, so I can't check to see what it is doing
differently).

Here is what 'grep USB /usr/src/linux/.conf' produces for me - does
anything standout as being different to your config?

# USB devices
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set
# USB support
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB=m
# CONFIG_USB_DEBUG is not set
# Miscellaneous USB options
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_SUSPEND is not set
# CONFIG_USB_OTG is not set
# USB Host Controller Drivers
CONFIG_USB_EHCI_HCD=m
# CONFIG_USB_EHCI_SPLIT_ISO is not set
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
CONFIG_USB_OHCI_HCD=m
# CONFIG_USB_OHCI_BIG_ENDIAN is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=m
# CONFIG_USB_SL811_HCD is not set
# USB Device Class drivers
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_MIDI is not set
CONFIG_USB_ACM=m
CONFIG_USB_PRINTER=m
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; 
see USB_STORAGE Help for more information
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_USBAT is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# USB Input Devices
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y

Re: [gentoo-user] USB mobile phone connection..

2005-10-27 Thread Digby Tarvin
On Thu, Oct 27, 2005 at 12:31:37AM -0400, James Hiscock wrote:
 
 Did you specify the correct device for moto4lin? Should be
 /dev/ttyACM0. Also, check the permissions on /dev/ttyACM0 -- by
 default, they're too restrictive.

It defaults to /dev/usb/acm/0 which seems to be correct for me. At least
this file exists, whereas /dev/ttyACM0 does not.

I tried it as root to make sure there were no permissions problems - it
had no effect.

 If you run moto4lin from a terminal, it spits out a bit of debugging
 info that might help too, that looks like this:
.
.
 snip
 doActConnect
 doActConnect
 P2kProc::doConnect()
 New mode: 2
 doActConnect
 Filelist received: 527
 /snip
 

For me it produces:
 Form1
 PhoneMan
 New mode: 1
 doActConnect
 doActConnect
 P2kProc::doConnect()
 New mode: 0

  What do your system messages look like?
 
 When I first plugged in the phone, I got this:
 snip
 usb 4-2: new full speed USB device using uhci_hcd and address 2
 usb 4-2: configuration #1 chosen from 2 choices
 usb.agent[24980]: Keeping default configuration with
 /sys//devices/pci:00/:00:1d.3/usb4/4-2
 cdc_acm 4-2:1.0: ttyACM0: USB ACM device
 usbcore: registered new driver cdc_acm
 drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver
 for USB modems and ISDN adapters
 /snip
 
Looks like the main clues are the error messages produced when I plug in:
 usb 1-1: new full speed USB device using uhci_hcd and address 8
 usb 1-1: device descriptor read/64, error -71
 usb 1-1: device descriptor read/64, error -71
 usb 1-1: new full speed USB device using uhci_hcd and address 9
 usb 1-1: device descriptor read/64, error -71
 cdc_acm 1-1:1.0: ttyACM0: USB ACM device

vs your
 usb 4-2: new full speed USB device using uhci_hcd and address 2
 usb 4-2: configuration #1 chosen from 2 choices
 usb.agent[24980]: Keeping default configuration with
 /sys//devices/pci:00/:00:1d.3/usb4/4-2
 cdc_acm 4-2:1.0: ttyACM0: USB ACM device

and the fact that you get a /dev/ttyACM0 and I get a /dev/usb/acm/0.
I wonder if that indicates a slight USB driver change between our
two kernels?

I assume the two addresses I get on connect reflect the fact that my
phone has two interfaces defined - one comm. with a single endpoint, and
one data with 2 endpoints. Yours seems to have two configurations
whereas mine has Cfg#=1

Errno 71 corresponds to protocol error which doesn't sound good.

What does your /proc/bus/usb/devices entry show for the phone?

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Kernel updates

2005-10-27 Thread Digby Tarvin
The portage system seems pretty effective in keeping the user level
code up to date on a gentoo system - but now that I have had my
system installed for 6-7 months it has occured to me that my
kernel is no longer current, and I havn't found anything in the
handbook suggesting how this should be approached.

Is there a recommended procedure that someone can point me to?

Thanks,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Digby Tarvin
Thanks, but I am ok on configuring the kernels and then installing
them in /boot.

The thing which isn't clear to me is how I should get the 'linux-new_version'
directory installed on my system without downloading a whole new install
image and copying it across manually?

Is there a kernel release tarball downloadable somewhere? Or is there
some way to ask emerge to do this?

Regards,
DigbyT

On Thu, Oct 27, 2005 at 08:06:35PM +0100, Qian Qiao wrote:
 On 10/27/05, Digby Tarvin [EMAIL PROTECTED] wrote:
  The portage system seems pretty effective in keeping the user level
  code up to date on a gentoo system - but now that I have had my
  system installed for 6-7 months it has occured to me that my
  kernel is no longer current, and I havn't found anything in the
  handbook suggesting how this should be approached.
 
  Is there a recommended procedure that someone can point me to?
 
 Updating the kernel? it's just like compiling a new one.
 
 # cd /usr/src
 # ln -sfn linux-new_version linux
 # cd linux
 # mount /boot
 # make menuconfig
 # make  make modules_install
 # make install
 
 Then make sure you re-emerge any kernel modues, e.g. alsa-driver or
 your graphic card driver.
 
 Finally, edit your boot loader's config files accordingly and reboot
 your system.
 
 One last thing tho, if there isn't any kernel bug that bothers you,
 and there isn't any new feature you are after in the new version, you
 don't have to upgrade your kernel.
 
 HTH.
 
 -- Joe
 
 --
 There are 3 kinds of people in the world:
 Those who can count, and those who can't.
 
 Money can't buy everything.
 Sometimes money can't even buy a gun...
 
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Digby Tarvin
P.S. See my other posts regarding trying to get USB to work for
my mobile for the inspiration behind wanting to update the kernel. 

I think if you get to the stage of having to debug kernel code, it
is always worth at least trying the latest kernel first.

Regards,
DigbyT

On Thu, Oct 27, 2005 at 08:06:35PM +0100, Qian Qiao wrote:
 
 One last thing tho, if there isn't any kernel bug that bothers you,
 and there isn't any new feature you are after in the new version, you
 don't have to upgrade your kernel.
 
 HTH.
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Digby Tarvin
Thanks,

Thats what wasn't clear to me. I assume this is a special case in that
an 'update world' won't install new kernel sources by default?

I assume that the separate kernel source trees means that a new
kernel can be build in parallel to an older one, and the active
kernel chosen at boot time.

Thanks,
DigbyT

P.S. is there an easy way to confirm which kernel source (gentoo/vanilla)
was originally installed?

On Thu, Oct 27, 2005 at 02:31:30PM -0500, John Jolet wrote:
 On Thursday 27 October 2005 14:25, Digby Tarvin wrote:
  Thanks, but I am ok on configuring the kernels and then installing
  them in /boot.
 
  The thing which isn't clear to me is how I should get the
  'linux-new_version' directory installed on my system without downloading a
  whole new install image and copying it across manually?
 
  Is there a kernel release tarball downloadable somewhere? Or is there
  some way to ask emerge to do this?
 for example, i installed with emerge vanilla-sources.  when a new version is 
 available, emerge vanilla-sources creates a new directory under /usr/src and 
 puts it there.
 
 
  Regards,
  DigbyT
 
  On Thu, Oct 27, 2005 at 08:06:35PM +0100, Qian Qiao wrote:
   On 10/27/05, Digby Tarvin [EMAIL PROTECTED] wrote:
The portage system seems pretty effective in keeping the user level
code up to date on a gentoo system - but now that I have had my
system installed for 6-7 months it has occured to me that my
kernel is no longer current, and I havn't found anything in the
handbook suggesting how this should be approached.
   
Is there a recommended procedure that someone can point me to?
  
   Updating the kernel? it's just like compiling a new one.
  
   # cd /usr/src
   # ln -sfn linux-new_version linux
   # cd linux
   # mount /boot
   # make menuconfig
   # make  make modules_install
   # make install
  
   Then make sure you re-emerge any kernel modues, e.g. alsa-driver or
   your graphic card driver.
  
   Finally, edit your boot loader's config files accordingly and reboot
   your system.
  
   One last thing tho, if there isn't any kernel bug that bothers you,
   and there isn't any new feature you are after in the new version, you
   don't have to upgrade your kernel.
  
   HTH.
  
   -- Joe
  
   --
   There are 3 kinds of people in the world:
   Those who can count, and those who can't.
  
   Money can't buy everything.
   Sometimes money can't even buy a gun...
  
   --
   gentoo-user@gentoo.org mailing list
 
  --
  Digby R. S. Tarvin
  [EMAIL PROTECTED] http://www.digbyt.com
 
 -- 
 John Jolet
 Your On-Demand IT Department
 512-762-0729
 www.jolet.net
 [EMAIL PROTECTED]
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Digby Tarvin
On Fri, Oct 28, 2005 at 12:45:49AM +0200, Renat Golubchyk wrote:
 On Thu, 27 Oct 2005 19:43:07 +0100 Digby Tarvin [EMAIL PROTECTED] wrote:
  The portage system seems pretty effective in keeping the user level
  code up to date on a gentoo system - but now that I have had my
  system installed for 6-7 months it has occured to me that my
  kernel is no longer current, and I havn't found anything in the
  handbook suggesting how this should be approached.
  
  Is there a recommended procedure that someone can point me to?
 
 http://www.gentoo.org/doc/en/kernel-upgrade.xml

Thanks. Not sure why I didn't stumble across then when searching
the documentation on the web site, but once I eventually got
emerge to install the new kernel, the messages left by emerge
led did lead me to that file:
 * If you are upgrading from a previous kernel, you may be interested
 * in the following documents:
 *   - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml
 *   - 2.4 to 2.6 migration guide: 
http://www.gentoo.org/doc/en/migration-to-2.6.xml

but of course I already had to have an idea on how to upgrade before seeing
that :-/. Thanks to all that offered advice...

Also, my initial
  emerge --update gentoo-sources
came back doing nothing - it just indicated that there were no packages
to update.

I tried again with just
  emerge gentoo-sources
and that went ahead and installed a new kernel source tree in /usr/src.

So now I just need to reproduce my kernel config and then I am
ready to try going from  linux-2.6.10-gentoo-r6 to linux-2.6.12-gentoo-r10.

I gather one cannot just copy the .config file for this much of a jump,
so I guess the best thing to do is a simultaneous 'make menuconfig' in both
old and new kernel using two different windows so that I can be sure
to copy each of the current settings across.

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread Digby Tarvin
Thanks James and Qian,

But doesn't this conflict with the advice given in kernel-upgrade.xml, which
says:

The only situation where this is appropriate is when upgrading from one Gentoo 
kernel revision to another. For example, the changes made between 
gentoo-sources-2.6.9-r1 and gentoo-sources-2.6.9-r2 will be very small, so it 
is usually OK to use the following method. However, it is not appropriate to 
use it in the example used throughout this document: upgrading from 2.6.8 to 
2.6.9. Too many changes between the official releases, and the method described 
below does not display enough context to the user, often resulting in the user 
running into problems because they disabled options that they really didn't 
want to.

As I am going from 2.6.10-gentoo-r6 to 2.6.12-gentoo-r10, which is more
than just a revision change, it would seen that 'make oldconfig' is not
recomended.

Regards,
DigbyT

On Thu, Oct 27, 2005 at 08:25:52PM -0400, James Hiscock wrote:
  I gather one cannot just copy the .config file for this much of a jump,
  so I guess the best thing to do is a simultaneous 'make menuconfig' in both
  old and new kernel using two different windows so that I can be sure
  to copy each of the current settings across.
 
 Easier solution: copy the .config, and then run make oldconfig --
 it'll prompt you for any changes made in the new kernel, and dump any
 invalid options...
 
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] USB interface

2005-10-26 Thread Digby Tarvin
I've been looking at the 'moto4lin' ebuild on my 2.6.10-gentoo-r6
system, and it seems to be looking for a file '/dev/usb/acm/0'
which does not seem to exist on my system:
  1.penemunde:mobile/moto4lin-0.3/moto_ui ls -lR /dev/usb
  /dev/usb:
  total 0
  drwxr-xr-x  1 root root 0 Jan  1  1970 hid
  
  /dev/usb/hid:
  total 0
  1.penemunde:mobile/moto4lin-0.3/moto_ui ls -lR /proc/bus/usb
  /proc/bus/usb:
  total 0
  dr-xr-xr-x  2 root root 0 Oct 23 01:20 001
  -r--r--r--  1 root root 0 Oct 24 02:45 devices
  
  /proc/bus/usb/001:
  total 0
  -rw-rw-r--  1 root usb 43 Oct 25 19:17 001
  -rw-rw-r--  1 root usb 85 Oct 25 19:17 008

The mobile I am trying to talk to shows up fine in /proc/bus/usb/devices.

Anyone know if the missing file is supposed to exist, or is this a
relic from an earlier instance of the USB driver software?

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB mobile phone connection..

2005-10-26 Thread Digby Tarvin
Hi,

Thanks - I did home in on that one as it seems to be the only one that
explicitly claims to support my model phone. I tried the other options
first as moto4lin was masked.

As per my recent post, the problem I am having seems to be a mismatch
in the USB system on my gentoo and what moto4lin expects.

Do you have it working? And if so, which kernel are you using?
Is your /dev/usb (which moto4lin seems to use) more populated than mine:
  /home2/digbyt ls -lR /dev/usb
  /dev/usb:
  total 0
  drwxr-xr-x  1 root root 0 Jan  1  1970 hid
  
  /dev/usb/hid:
  total 0

Is it a Kernel V2.6 thing, or is there some configuration that I need
to do?

Regards,
DigbyT

On Tue, Oct 25, 2005 at 07:58:34PM -0400, James Hiscock wrote:
 On 10/23/05, Digby Tarvin [EMAIL PROTECTED] wrote:
  Looking for anyone that can offer advice on connecting a Motorola C380
  mobile phone to my gentoo Linux system via the USB interface.
 
 I'd suggest trying moto4lin -- it's pretty slick. Not too sure about
 the error messages you're getting, though, so I'm not sure how much
 help moto4lin'll actually be... shrug
 
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB mobile phone connection..

2005-10-26 Thread Digby Tarvin
On Wed, Oct 26, 2005 at 04:43:23PM -0400, James Hiscock wrote:
  Do you have it working?
 
 Yes.

That is encouraging. Which model phone to you have it working
with?

  And if so, which kernel are you using?
 
 gentoo-sources-2.6.13-r3 (or some other -r? value - can't recall offhand)

Ok, hopefully my 2.6.10-gentoo-r6 is close enough to not make any
difference.

  Is it a Kernel V2.6 thing, or is there some configuration that I need
  to do?
 
 As I said in my reply to your other post, make sure you have USB Modem
 support in the kernel compiled as a module, and pay attention to dmesg
 when you plug your phone in -- it'll give you the right device path...
 just slap that into the configuration for moto4lin, and it should
 work...
 
 (I suspect I also had to change the permissions/ownership of the /dev
 entry for the USB Modem driver, but that was pretty straight-forward:
 since I'm working on a single-user system, I did the horribly insecure
 thing and just chmod 777'd the dev entry... ;)

You were right - my initail problem was having omitted the cdc_acm
driver from my kernel config.

Now that I have rectified that oversight I seem to get a little
closer, but something is still going wrong.

Plugging in the phone now results in the following messages:
  usb 1-1: new full speed USB device using uhci_hcd and address 2
  usb 1-1: device descriptor read/64, error -71
  usb 1-1: device descriptor read/64, error -71
  usb 1-1: new full speed USB device using uhci_hcd and address 3
  usb 1-1: device descriptor read/64, error -71
  cdc_acm 1-1:1.0: ttyACM0: USB ACM device

The last message is encouraging, but the preceding error '-71's are
worrying.

The /proc/bus/usb/devices entry for the phone has the correct driver
indicated:
  T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
  D:  Ver= 1.10 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
  P:  Vendor=22b8 ProdID=4902 Rev= 0.01
  S:  Manufacturer=Motorola Inc.
  S:  Product=Motorola Phone (C380)
  C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr= 20mA
  I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm
  E:  Ad=89(I) Atr=03(Int.) MxPS=  16 Ivl=10ms
  I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
  E:  Ad=01(O) Atr=02(Bulk) MxPS=  32 Ivl=0ms
  E:  Ad=82(I) Atr=02(Bulk) MxPS=  32 Ivl=0ms

And /proc/usb now contains
  1.penemunde:/proc/bus/usb ls -l /dev/usb
  total 0
  drwxr-xr-x  1 root root 0 Jan  1  1970 acm
  drwxr-xr-x  1 root root 0 Jan  1  1970 hid
  1.penemunde:/proc/bus/usb ls -lR /dev/usb
  /dev/usb:
  total 0
  drwxr-xr-x  1 root root 0 Jan  1  1970 acm
  drwxr-xr-x  1 root root 0 Jan  1  1970 hid
  
  /dev/usb/acm:
  total 0
  crw---  1 root root 166, 0 Jan  1  1970 0
  
  /dev/usb/hid:
  total 0


But when I try moto4lin I get
[info] Phone pluged as AT
Try to connect
[error] Unable to connect
[info] Phone is unpluged
and the following system messages are generated
  usb 1-1: USB disconnect, address 3
  usb 1-1: new full speed USB device using uhci_hcd and address 4
  usb 1-1: config 1 has an invalid interface number: 5 but max is 2
  usb 1-1: config 1 has an invalid interface number: 6 but max is 2
  usb 1-1: config 1 has an invalid interface number: 8 but max is 2
  usb 1-1: config 1 has no interface number 0
  usb 1-1: config 1 has no interface number 1
  usb 1-1: config 1 has no interface number 2

Any ideas what you are doing differently? What do your system messages
look like?

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] partition sizes and home directories

2005-10-25 Thread Digby Tarvin
I would strongly recomend putting the home directory on its own
partition. It then doesn't matter too much where you decide to mount
it, although some broken applications may assume the Linux convention
of using /home, so it is probably safest to preserve this and use a
sym link if you want to be able to use the /usr/home you are familiar
with.

Always keep the root partition small and relatively stable, since it
is minimal platform from which the rest of the system can be recovered.

I keep mine to about 20M, so I don't need to keep a separate /boot
partition. /tmp is a sym link to /var/tmp, so that in secure mode
/var and /home are the only two filesystems that should need to be
mounted read/write. The former is writeable space for the system, and the
latter for users. Other filesystem should only need to be made writeable
when modifying the sytstem if everything is configured right.

In practice there are still some annoying exceptions (like /etc/passwd
and /etc/mtab) which mean you have to do a bit more work to get the
root filesystem able to be mounted readonly, but if it is small it
doesn't take so long to back it up and fsck it after a crash, so
it is probably only worth worrying about it for a secure system.

Regards,
DigbyT

On Tue, Oct 25, 2005 at 09:44:23AM +, sean wrote:
 I know this can be a tough call on how to partition a drive, but I am 
 looking for some input.
 
 My system will be used as for my own personal use, no server for 
 outside, though I may run a web server for private in home use, some 
 games, whatever I wish to play and experiment.
 
 Users, mainly just me, and perhaps a family member or three.
 Here is what I quickly setup.
 
 $ df -h
 FilesystemSize  Used Avail Use% Mounted on
 /dev/hda3 471M  271M  176M  61% /
 udev 1004M  208K 1004M   1% /dev
 /dev/hda1  38M  2.6M   34M   8% /boot
 /dev/hda5 4.6G  185M  4.2G   5% /var
 /dev/hda6  31G  2.3G   27G   8% /usr
 shm  1004M 0 1004M   0% /dev/shm
 
 What caught me off guard was that fact that /home is located under / and 
 that is where my user profiles are being set, instead of /usr/home like 
 it is on my freebsd system.
 When I copied over my personal files, it quickly filled up the / 
 partition, which I have since deleted.
 Now I noticed that there is a /usr/home, what exactly is that used for, 
 since users are not there by default?
 
 I would figure /boot does not really change much in size, leave as is, 
 maybe shrink a few mb.
 /var, up and down, perhaps bring it down a gig, gig and a half.
 /usr, would grow depending on software installs, much as possible. I 
 have not installed much currently.
 If /home was on its own, I am guessing that the current / allocation 
 would be fine?
 Anyone confirm?
 Now I just have to figure what I want /home to be, or perhaps could the 
 default setup for users be located in /usr/home?
 Would this cause problems?
 Is it non standard?
 
   Thanks
   Sean
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] USB mobile phone connection..

2005-10-24 Thread Digby Tarvin
Looking for anyone that can offer advice on connecting a Motorola C380
mobile phone to my gentoo Linux system via the USB interface.

When I connect the phone, I see the following in /var/log/messages:
 usb 1-2: new full speed USB device using uhci_hcd and address 2
 usb 1-2: device descriptor read/64, error -71
 usb 1-2: device descriptor read/64, error -71
 usb 1-2: new full speed USB device using uhci_hcd and address 3
 usb 1-2: device descriptor read/64, error -71

A disconnect and reconnect produces:
 usb 1-2: USB disconnect, address 3
 usb 1-2: new full speed USB device using uhci_hcd and address 4
 usb 1-2: device descriptor read/64, error -71
 usb 1-2: device descriptor read/64, error -71
 usb 1-2: new full speed USB device using uhci_hcd and address 5
 usb 1-2: device descriptor read/64, error -71

Any idea what the error messages indicate, and should I be worried about
them? Is it normal that the addresses appear to be monotonically
increasing with each successive connect?

While connected, /proc/bus/usb/devices contains:
 T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  7 Spd=12  MxCh= 0
 D:  Ver= 1.10 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
 P:  Vendor=22b8 ProdID=4902 Rev= 0.01
 S:  Manufacturer=Motorola Inc.
 S:  Product=Motorola Phone (C380)
 C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr= 20mA
 I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=(none)
 E:  Ad=89(I) Atr=03(Int.) MxPS=  16 Ivl=10ms
 I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
 E:  Ad=01(O) Atr=02(Bulk) MxPS=  32 Ivl=0ms
 E:  Ad=82(I) Atr=02(Bulk) MxPS=  32 Ivl=0ms

I have tried emerge'ing gnoki, but it doesn't seem to succeed in
connecting, but perhaps there is some configuration that I havn't
stumbled across yet.

anyone have any experience or suggestions on what to try with this?

Thanks,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] vnc

2005-10-24 Thread Digby Tarvin
For remote access over the public Internet I usually use ssh. With the
'-X' option it gives you secure encrypted port forwarding to your
local X server, which appart from a speed hit is functionally pretty
close to having a directly connected X terminal.

Of course if you are trying to connect from a Windose or other non-X
system, then VNC is probably what you need.

Regards,
DigbyT

On Mon, Oct 24, 2005 at 09:28:15PM +1300, Nick Rout wrote:
 On Sun, 23 Oct 2005 18:10:55 -0500
 Mark [EMAIL PROTECTED] wrote:
 
  I followed the instructions on the Gentoo wiki about configuring VNC server,
  but I am not able to connect either inside the LAN or from the outside,
  despite having port forwarding enabled for it on my firewall. I went through
  the instructions twice, and everything is as listed. Anybody know if there
  are some common mistakes made not mentioned in the article that I might
  check for? Alternatively, is there a better solution for remote access to my
  Gentoo box I should be looking at? Thanks!
  
  --
  Mark
  [unwieldy legal disclaimer would go here - feel free to type your own]
  
 
 
 well what sort error are you getting?
 
 is there anything running on the vnc ports? (5800+, 5900+)
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Connecting a Motorola C380 mobile via USB

2005-10-24 Thread Digby Tarvin
Hi,

My post from yesterday seems to have disappeared into the ether, so
I'll try again - appologies if this is eventually repeated...

I would like to connect a mobile phone (Motorolo C380) with USB connector
to my gentoo system so as to give me both mobile Internet access and
also the ability to access phonebook, images, audio etc stored on the
phone.

When I connect the phone, the /proc/bus/usb/devices file shows:
 T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  8 Spd=12  MxCh= 0
 D:  Ver= 1.10 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
 P:  Vendor=22b8 ProdID=4902 Rev= 0.01
 S:  Manufacturer=Motorola Inc.
 S:  Product=Motorola Phone (C380)
 C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr= 20mA
 I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=(none)
 E:  Ad=89(I) Atr=03(Int.) MxPS=  16 Ivl=10ms
 I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
 E:  Ad=01(O) Atr=02(Bulk) MxPS=  32 Ivl=0ms
 E:  Ad=82(I) Atr=02(Bulk) MxPS=  32 Ivl=0ms

and /var/log/messages shows:
 usb 1-2: new full speed USB device using uhci_hcd and address 8

Although attempring to disconnect and reconnect typically returns
something like
 usb 1-2: USB disconnect, address 3
 usb 1-2: new full speed USB device using uhci_hcd and address 4
 usb 1-2: device descriptor read/64, error -71
 usb 1-2: device descriptor read/64, error -71
 usb 1-2: new full speed USB device using uhci_hcd and address 5
 usb 1-2: device descriptor read/64, error -71

Anyone have any suggestions or experience with this sort of thing?
I have emerged gnokii which so far has not recognised anything as
being connected. Not sure if it is compatability issue or a
configuration issue.

Also have emerged libusb, but I really need to find some more
documentation on USB interfaces to tackle cobbling anything together
with that.

Thanks,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [ot] PDF or PS format for daily use?

2005-10-24 Thread Digby Tarvin
In general, I think it is pretty straight forward to go from PDF
to postscript, and PDF seems easier to access for Windows users,
so if you can store a PDF file as your displayable format then
I don't think you need to also store the postscipt.

There are occasions, however, when PDF output isn't an option
and so postcript is necessary. For example, I have yet
to find a way to get TeX ducuments which include TeXdraw diagrams
into PDF without losing all the graphics. 

Does anyone know if gs or something similar is available for
windows? 

Regards,
DigbyT

On Mon, Oct 24, 2005 at 12:22:04PM -0200, Daniel da Veiga wrote:
 On 10/24/05, John Jolet [EMAIL PROTECTED] wrote:
  On Monday 24 October 2005 08:33, Daniel da Veiga wrote:
  Um, ps is itself proprietary.  Technically, adobe still owns the patent, 
  don't
  they?
 
 Yeah, my mistake. Still, postscript was always more portable than pdf (IMO).
 
   Take a look at this... PDF is the proprietary modification of ps,
   added some tags and some compression (that can easily be repeated with
   lots of advantages in any compressor). And, well, read for yourself.
  
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] inhouse email

2005-10-24 Thread Digby Tarvin
It is easy enough to set it up and test it in parallel with your
current setup. Nothing important should be directed there till you
advertise it..

I have been running a mail server on my home system ever since I got
my DSL connection at home. It is where I normally direct mailing
list traffic and other correspondence which is non critical,
because I can create dedicated aliases which all point the the
same ultimate mailbox, making it easy to identify where spammers
have been obtaining addresses from, and making it possible to just
invalidate the effected address...

For person mail that I want to be able to access when I am
travelling I use a mail forwarding address which can be
pointed at an ISP hosted POP3 mailbox (which is polled using
fetchmail when I am home) or when needed can be pointed direct
to my home server.

Regards,
DigbyT

On Mon, Oct 24, 2005 at 05:11:02PM +0100, Jonathan Wright wrote:
 Mark wrote:
 Can anyone who has done it comment on the downside (if any) of bringing 
 email in-house, as opposed to continuing to pay a hosting provider? My 
 plan is to have a separate server, sitting by itself in the DMZ, so the 
 internal LAN should remain relatively safe. The DSL provider we use will 
 host the DNS records (MX). We have a top-notch firewall already in 
 place, but this is the first step we've taken toward making anything 
 available inbound, so I'm cautiously optimistic.
 
 Generally, most mail will sit in a queue for around 3 days before 
 failing to deliver - but that depends on the host/server. So, the odd 
 outage shouldn't be a problem - at least it's not with me here :)
 
 Also, it's worth double-checking to see if your ISP will allow port 25 
 inwards. Some don't, and you wouldn't want to do all that work only to 
 find nothing happening! :/
 
 -- 
  Jonathan Wright   ~ mail at djnauk.co.uk
~ www.djnauk.co.uk
 --
  2.6.13-gentoo-r3-djnauk-b2 AMD Athlon(tm) XP 2100+
  up  4:46,  1 user,  load average: 0.69, 0.55, 0.50
 --
  Did you hear about the Scottish drag queen? He wore pants.
 
 ~ Lynn Lavner
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] inhouse email

2005-10-24 Thread Digby Tarvin
On Mon, Oct 24, 2005 at 06:08:05PM +0100, Jonathan Wright wrote:
 
 That's fine for outgoing mail, but unless an MX record exists for the 
 internal server on a domain/subdomain, it's difficult to 'direct' 
 traffic from the outside in.
 
 The only other way I can think off is to test the server using either a 
 telnet port or a script from an off-site computer onto the new server.

No, it is very easy. All I had was a static IP from my service provider
and a router with port 25 forwarded to an internal mail server host.

To get the mail working all I had to do was create a domain name
(using the free service at freedns.afraid.org) and point it at
my static IP.

I think it is possible to setup a MX record explicitly, but I have
never bothered because so far everything that has tried to sent
mail to it has worked fine defaulting to using the A record in
the absence of a MX record.

This mailing list is being delivered to my host using the address
gentoo_at_skaro.afraid.org, and dig gives me the following output
for the domain:
penemunde usb # dig skaro.afraid.org

;  DiG 9.2.5  skaro.afraid.org
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 34970
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 7, ADDITIONAL: 7

;; QUESTION SECTION:
;skaro.afraid.org.  IN  A

;; ANSWER SECTION:
skaro.afraid.org.   60  IN  A   195.157.127.247

;; AUTHORITY SECTION:
afraid.org. 86400   IN  NS  ns5.afraid.org.
afraid.org. 86400   IN  NS  ns6.afraid.org.
afraid.org. 86400   IN  NS  ns7.afraid.org.
afraid.org. 86400   IN  NS  ns1.afraid.org.
afraid.org. 86400   IN  NS  ns2.afraid.org.
afraid.org. 86400   IN  NS  ns3.afraid.org.
afraid.org. 86400   IN  NS  ns4.afraid.org.

;; ADDITIONAL SECTION:
ns1.afraid.org. 1800IN  A   70.84.177.198
ns2.afraid.org. 1800IN  A   204.11.167.30
ns3.afraid.org. 1800IN  A   69.28.135.46
ns4.afraid.org. 1800IN  A   70.86.10.35
ns5.afraid.org. 1800IN  A   70.86.10.32
ns6.afraid.org. 1800IN  A   70.86.10.33
ns7.afraid.org. 3600IN  A   70.86.10.34

;; Query time: 157 msec
;; SERVER: 203.27.41.5#53(203.27.41.5)
;; WHEN: Mon Oct 24 20:30:22 2005
;; MSG SIZE  rcvd: 288

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] system won't stop....

2005-07-03 Thread Digby Tarvin
Anyone experienced any problems with their gentoo system refusing
to shutdown..??

My system, running on a Tyan motherboard with twin PIII processors
and GeForce4 Ti 4200 display, seems to be unstoppable...

I suspect it is the X server which is refusing to stop, but I am
not sure what is getting it in such a state.

Any ideas?

Is there anything I can do other than a hard reset in this condition?

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: emerge of netkit-rsh

2005-06-11 Thread Digby Tarvin
Thanks for the suggestion Francesco, but I tried
 LDFLAGS='Wl,-z,now' emerge netkit-rsh
and that didn't seem to make any difference..

and still get a buch of warnings like the following:
 QA Notice: /usr/bin/rcp is setXid, dynamically linked and using lazy bindings.
 This combination is generally discouraged. Try: CFLAGS='-Wl,-z,now' emerge 
netkit-rsh

:-/

As a matter of interest, does anyone know how the '-z,now' option is supposed
to plug the security hole associated with dynamic library linking of suid
programs?  I assume that the important thing is to stop someone else
substituting their own libraries via something like the LD_LIBRARY_PATH
envar. The manual entry for the linker seems to say that '-z,now' just
causes the symbol to be resolved at load time rather than first use, but
it isn't clear to me what this change in timing achieves, assuming I
can get it to work..

Regards,
DigbyT

On Sat, Jun 11, 2005 at 07:42:02AM +0200, Francesco Talamona wrote:
 On Saturday 11 June 2005 04:46, Digby Tarvin wrote:
  When I emerge netkit-rsh (because I want to share a tape via rmt) I
  get several warning such as:
   QA Notice: /usr/bin/rlogin is setXid, dynamically linked and using
  lazy bindings. This combination is generally discouraged. Try:
  CFLAGS='-Wl,-z,now' emerge netkit-rsh
 
  Which seems pretty reasonable - I would rather not use dynamic libs
  on a suid program...
 
  but my command line was:
  # CFLAGS='-Wl,-z,now' emerge netkit-rsh
  as the warning suggests :-/
 
  So what is the best way to get emerge to build things in with the
  recommended compile options?
 
  Regards,
  DigbyT
  --
  Digby R. S. Tarvin
  [EMAIL PROTECTED] http://www.digbyt.com
 
 I think it should be LDFLAGS, not CFLAGS:
  LDFLAGS='Wl,-z,now' emerge netkit-rsh
 
 Ciao
   Francesco
 -- 
 Linux Version 2.6.11-gentoo-r9, Compiled #1 Wed Jun 8 05:32:03 2005 CEST 
 One 2.2GHz AMD Athlon 64 Processor, 2GB RAM, 4325.37 Bogomips Total
 aemaeth
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] emerge of netkit-rsh

2005-06-10 Thread Digby Tarvin
When I emerge netkit-rsh (because I want to share a tape via rmt) I get
several warning such as:
 QA Notice: /usr/bin/rlogin is setXid, dynamically linked and using lazy 
bindings.
 This combination is generally discouraged. Try: CFLAGS='-Wl,-z,now' emerge 
netkit-rsh

Which seems pretty reasonable - I would rather not use dynamic libs on a
suid program...

but my command line was:
# CFLAGS='-Wl,-z,now' emerge netkit-rsh
as the warning suggests :-/

So what is the best way to get emerge to build things in with the
recommended compile options?

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Skype is awesome, what is sound daemon for?

2005-06-09 Thread Digby Tarvin
Skype knows nothing about artsd or esd. The reason you see
that message is that the execution of skype is done by
a shell script which checks for the existence of one of
these daemons, and if found, fools skype into using it
via some clever (but not original) subterfuge.

I assume the wrapper was implemented by whoever packaged skype
for gentoo. The library subterfuge seems to have been developed
by the sound daemon developers as a transition aid to allow
legacy OSS apps to be used.

The mechanism involved is to insert a new dynamic linked
library for the interface to the open()/close()/.. etc
system calls, and check every open() call to see if it
is opening '/dev/dsp'. If it is, you replace it with a
sound daemon initialization and intercept all subsequent
I/O on the associated file descripter. All other IO is
passed through to the OS normally.

I have been tinkering with it because I wanted to use skype on
a remote X terminal with networked audio. That requires
intercepting the /dev/dsp I/O for both play and record, and
the full duplex operation is proving tricky.

If you want to see the details of what is going on, look at the
shell script: 
  % more /opt/skype/skype
  #!/bin/bash
  #
  # Wrapper script to run Skype with sound wrapper when possible
  logfile=${HOME}/.Skype/skype.log
  progname=skype
  progpath=/opt/${progname}/
  progopts=--resources-path ${progpath}
  shellcheck1=` which artsshell 2 /dev/null `
  shellcheck2=` which esd 2 /dev/null `
  artsdcheck=` ps x | grep artsd | grep -v grep `
  ## We use ps ax for esd as esd can be used globaly for all users.
  esdcheck=` ps ax | grep esd . | grep -v grep `
  skypecmd=${progpath}${progname}.bin
  wrapsound=yes
  .
  .
  .

You will see it is easy enough to get rid of those annoying messages
if you arn't interested in the sound daemons.

Regards,
DigbyT

On Thu, Jun 09, 2005 at 12:34:56AM +0200, Christoph Eckert wrote:
 
  What I'm confused about is the message I get when running
  skype from the command line:
 
  No running artsd or esd found
  Starting skype without sound daemon
 
 Same for me.
 
  There are arts and esd USE flags for skype.  Where do these
  sound daemons come in?
 
 I guess that Skype tells us that it seems to be aware of sound 
 deamons but it isn't (yet).
 
 
 Best regards
 
 
 ce
 
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] /boot and booting...

2005-06-06 Thread Digby Tarvin
I agree that trying to size partitions optimally is an annoying
chore, but I gather LVM should help with that problem - though I
havn't tried it yet.

However I disagree about the drive wear argument. Sensible partitioning
can be used to reduce seek time by keeping related data together, and
more importantly can significantly reduce the drive wear and tear
associated with the nightly backups. 

If rarely changing filesystems are mounted read-only, they don't need to
be scanned during the backups, and rebooting is much faster after a
crash.

For instance, here is a sample entry from my nightly backup script:
if mount|grep  /usr/local|grep -q read-only ;then
echo /usr/local is read-only, no backup required
else
echo Backing up /usr/local
/sbin/mount -u -o rw /backup/local
/usr/local/bin/rsync -avH /usr/local/ /backup/local
/sbin/mount -u -o ro,nosuid,nodev /backup/local
/sbin/mount -u -o ro,nosuid,nodev /usr/local

fi

In addition, the tape dumps simply are not practical if the hard drive
is not partitioned. I try to limit all my partitions to the size of a
single tape, which now is 60GB but until recently was 10GB.

Of course I can sympathise with with your view that it is always the
wrong partition that gets corrupted, but having everything on one
partition only makes that more certain.

If the root partition is kept small and fairly static, then the
chances of not having a runable base from which to repair the rest
of the system is greatly reduced. 

I have also had problems on some modest machines (32MB memory) trying
to run fsck on very large partitions when the system is not fully booted.

Regards,
DigbyT

On Mon, Jun 06, 2005 at 06:52:49PM +0200, Volker Armin Hemmann wrote:
 Hi,
 
 when I go some years back, I alo had a bunch of partitions, but I went away 
 from it for several reasons:
 it is a great waste of space
 at least one partition is always too small
 a lot moving head will reduce the lifetime of your hharddisk
 if a partition fails, it will always the wrong one.
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] /boot and booting...

2005-06-06 Thread Digby Tarvin
Hi,

I guess that means that you either have smaller disks than me, or a
larger tape drive...

But assuming you do regular backups, how do you figure out which
parts of the filesystem need to be scanned if the static stuff isn't
confined to a separate filesystem?

What do you use for your tape backpus? I prefer to use 'dump' for my
tape backups which really requires backups to be done by filesystem,
but I suppose if you use something else the partitioning might be
less critical. But I like to use the ability to mount filesytems
read-only to make sure that I know where changes have occured.

As far as usr/lib is concerned, historically it was not too important
except during software development. Putting shared libraries there is
comparitively recent, and it does seem a bit questionable to put programs
in /[s]bin that use shared libraries in /usr...

Perhaps this is the real explanation for the emergence of this 'boot'
partition. People that didn't understand that the root filesystem was
designed to be a self contained environment for the boot process had
introduced interdependencies, so a new 'minimal' filesystem for booting
was required. My adherence to the traditional layout means my root
partition is independent and under 2M, so I havn't needed a separate
'/boot' partition.

Regards,
DigbyT

On Mon, Jun 06, 2005 at 08:00:59PM +0200, Volker Armin Hemmann wrote:
 Hi,
 
 since my whole system (except /home) fits on one tape, the backup argument is 
 not too convincing for me.
 
 And it does not matter if /usr/lib is on its own part, or part of / - if it 
 is 
 gone, you have a problem ;)
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] /boot and booting...

2005-06-05 Thread Digby Tarvin
Following on from the recent discussions on grub and booting,
is there a good reason for having a separate partition for /boot,
other than perhaps to overcome BIOS addressing limitations for
people with very large root partitions??

The reason I ask is that I am quite particular about my partitioning
scheme, and have lots of reasons for wanting a lot of separate partitions,
but have never really felt the need for a separate /boot partition...

For instance:
1. / obviosly has to exist and provide a self contained standalone system
   capable of repairing and mounting all the rest of the filesystems.
   It is also fairly static if /tmp is kept off it (I have /tmp as a sym
   link to /var/tmp, with /var/tmp being a writable directory on the
   root filesystem giving me temporary storage before the /var filesystem
   is mounted.
2. /var must be separate because I want some writeable storage for the
   system.
3. /usr has most of the system files that don't have to be on the root
   partition, and usually is pretty static and can be mounted read-only
   for security and faster booting after a crash. (there isn't much
   point in having /bin and /usr/bin if they are on the same partition..)
4. /home is separate because we need a read/write partition for users,
   and it can be mounted nodev and sometimes nosuid for security. It
   also simplifies upgrades to separate personal data from distribution
   files.
5. I need a partition for swap...
6. I like to make /usr/local a separate partition because it contains
   things that are not part of the OS distribution. 
7. /opt is separate to keep the size of the root partition down.
8. /tmp is separate as previously mentioned.

In addition, my making /var and /home the only partitions that are
normally read/write, I avoid the need for regular backups on the
remainder.

I suppose I have an instinct to be miserly with partitions because of
my previous experience of BSD based systems which have a limited
number of them on a disk (8, but only 6 are really usable because one
is the raw 'entire disk' partition, and one is usually needed for swap).

But dedicating a partition to the boot process seems clumsy to me. I have
seen mention of not mounting your boot partition as being seen as in
some way improving security - but I certainly can't see it as being
anywhere near the most sensitive data on a root filesystem..

Anyway, my preference is to have my boot files on my root partition, and
to keep it small enough to be directly addressable by the BIOS in its
entirety. (my current 2M root is only 69% full and hardly ever changes).

But the concept of a separate boot partition seems so ingrained in the
Gentoo docs it makes me wonder what need I am overlooking. Or is it
just to keep the people that want to put an entire system all in one
big partition out of trouble?

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] More on Libretto/PCMCIA effort

2005-06-03 Thread Digby Tarvin
A. GENKERNEL
Well, I have now built a genkernal system to see if that helped, and
it didn't seem to. It got noticably less far than my manually configured
kernel, in that it did not recognise any PCMCIA slots at all :-(

It also produced a suspicious error message during boot:
/sbin/rc: line 271: /sbin/devfsd no such file or directory

I followed the instructions in the handbook, with the following exceptions:
1. Where it says to copy the config file from /proc/config.gz, I had to
grab one using an older install CD in another system (r1 rather than r3
kernel), as I was bootstrapping from a different Linux distro on this
notebook as described earlier.
2. I could not do the hotplug/coldplug emerge as these seemed to need
to download from from the net - and without PCMCIA I have not network
interface yet.

The only other thing that looked notable about the boot messages were a
number of attempts to load modules which did not exist. But I assume
genkernel knew what it was doing when deciding which modules to make.

B. MANUAL CONFIG

Going back to the more successful manaully configured kernel, it does
detect the card bridge and 3Com card.

a cat of /proc/bus/pccard/drivers gives:
3c589_cs1 1
serial_cs   1 1

As per Jerry's suggestion, the output of 'cardctl ident' is

Socket 0:
  product info: 3Com Corporation, 3C562D/3C563D, EtherLink III, 
LAN+Modem PC Card
  manfid: 0x0101, 0x0562
  function: 6 (network)
Socket 1:
  no product info available

ifconfig shows packets sent, but nothing received. My suspicion at this
stage is that there is some problem with the interrupts. I wonder what
changes have occured given that this bridge now seems to be supported
in a different driver to the one which I was using on 2.4/suse?

Here are what I think are the relevent lines from dmesg. Can anyone
diagnose what they mean, or suggest something I should try? I have
tried 'pci=routeirq' and it made no difference...

   ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
   ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
   ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
   ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
   ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
   
   PCI: setting IRQ 13 as level-triggered
   
   Linux Kernel Card Services
 options:  [pci] [cardbus] [pm]
   
   PCI: Using ACPI for IRQ routing
   ** PCI interrupts are no longer routed automatically.  If this
   ** causes a device to stop working, it is probably because the
   ** driver failed to call pci_enable_device().  As a temporary
   ** workaround, the pci=routeirq argument restores the old
   ** behavior.  If this argument makes the device work again,
   ** please email the output of lspci to [EMAIL PROTECTED]
   ** so I can fix the driver.
   
   serio: i8042 AUX port at 0x60,0x64 irq 12
   serio: i8042 KBD port at 0x60,0x64 irq 1
   Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
   ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
   pnp: the driver 'serial' has been registered
   pnp: match found with the PnP device '00:0a' and the driver 'serial'
   ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
   
   parport0: PC-style at 0x378, irq 7 [PCSPP(,...)]
   lp0: using parport0 (interrupt-driven).
   
   ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
   
   ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
   PCI: setting IRQ 11 as level-triggered
   ACPI: PCI interrupt :00:13.0[A] - GSI 11 (level, low) - IRQ 11
   Yenta: CardBus bridge found at :00:13.0 [1179:0001]
   Yenta: ISA IRQ mask 0x0638, PCI irq 11
   Socket status: 3011
   PCI: Enabling device :00:13.1 ( - 0002)
   ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
   ACPI: PCI interrupt :00:13.1[B] - GSI 11 (level, low) - IRQ 11
   Yenta: CardBus bridge found at :00:13.1 [1179:0001]
   Yenta: ISA IRQ mask 0x0638, PCI irq 11
   Socket status: 3007
   
   cs: IO port probe 0xc00-0xcff: clean.
   cs: IO port probe 0xc00-0xcff: clean.
   cs: IO port probe 0x800-0x8ff: clean.
   cs: IO port probe 0x800-0x8ff: clean.
   cs: IO port probe 0x100-0x4ff: excluding 0x220-0x22f 0x330-0x337 0x370-0x37f 
0x388-0x38f 0x480-0x48f 0x4d0-0x4d7
   cs: IO port probe 0x100-0x4ff: excluding 0x220-0x22f 0x330-0x337 0x370-0x37f 
0x388-0x38f 0x480-0x48f 0x4d0-0x4d7
   cs: IO port probe 0xa00-0xaff: clean.
   cs: IO port probe 0xa00-0xaff: clean.
   cs: memory probe 0xa000-0xa0ff: clean.
   
   eth0: 3Com 3c562, io 0x300, irq 3, hw_addr 00:60:97:FE:BE:6C
 8K FIFO split 5:3 Rx:Tx, auto xcvr
   ttyS1 at I/O 0x2f8 (irq = 11) is a 16550A
   eth0: flipped to 10baseT
   irq 11: nobody cared!
[c012c952] __report_bad_irq+0x22/0x80
[c012ca20] note_interrupt+0x50/0x80
[c012c600] __do_IRQ+0xd0/0xe0
[c01043e1] do_IRQ+0x41/0x60
===
[c0102f3a] common_interrupt+0x1a/0x20
[c0117a51] __do_softirq+0x31/0x90
[c01044c9] 

Re: [gentoo-user] More on Libretto/PCMCIA effort

2005-06-03 Thread Digby Tarvin
Mulling over this a little more, I think what these messages tell me
is that the driver is expecting interrupts on level 3 :
eth0: 3Com 3c562, io 0x300, irq 3, hw_addr 00:60:97:FE:BE:6C
but they are actually occuring on level 11:
irq 11: nobody cared!
Disabling IRQ #11

So the next question is - how does the PCMCIA bridge driver, which seems
to know it is using IRQ 11:
Yenta: CardBus bridge found at :00:13.0 [1179:0001]
Yenta: ISA IRQ mask 0x0638, PCI irq 11
communicate the interrupt level to the 3c562 driver, and why do they
seem to be disagreeing?

Any suggestions? 

Regards,
DigbyT

On Fri, Jun 03, 2005 at 03:18:14PM +0100, Digby Tarvin wrote:
 Here are what I think are the relevent lines from dmesg. Can anyone
 diagnose what they mean, or suggest something I should try? I have
 tried 'pci=routeirq' and it made no difference...
 
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)

PCI: setting IRQ 13 as level-triggered

Linux Kernel Card Services
  options:  [pci] [cardbus] [pm]

PCI: Using ACPI for IRQ routing
** PCI interrupts are no longer routed automatically.  If this
** causes a device to stop working, it is probably because the
** driver failed to call pci_enable_device().  As a temporary
** workaround, the pci=routeirq argument restores the old
** behavior.  If this argument makes the device work again,
** please email the output of lspci to [EMAIL PROTECTED]
** so I can fix the driver.

serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
pnp: the driver 'serial' has been registered
pnp: match found with the PnP device '00:0a' and the driver 'serial'
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

parport0: PC-style at 0x378, irq 7 [PCSPP(,...)]
lp0: using parport0 (interrupt-driven).

ide0 at 0x1f0-0x1f7,0x3f6 on irq 14

ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI interrupt :00:13.0[A] - GSI 11 (level, low) - IRQ 11
Yenta: CardBus bridge found at :00:13.0 [1179:0001]
Yenta: ISA IRQ mask 0x0638, PCI irq 11
Socket status: 3011
PCI: Enabling device :00:13.1 ( - 0002)
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
ACPI: PCI interrupt :00:13.1[B] - GSI 11 (level, low) - IRQ 11
Yenta: CardBus bridge found at :00:13.1 [1179:0001]
Yenta: ISA IRQ mask 0x0638, PCI irq 11
Socket status: 3007

cs: IO port probe 0xc00-0xcff: clean.
cs: IO port probe 0xc00-0xcff: clean.
cs: IO port probe 0x800-0x8ff: clean.
cs: IO port probe 0x800-0x8ff: clean.
cs: IO port probe 0x100-0x4ff: excluding 0x220-0x22f 0x330-0x337 
 0x370-0x37f 0x388-0x38f 0x480-0x48f 0x4d0-0x4d7
cs: IO port probe 0x100-0x4ff: excluding 0x220-0x22f 0x330-0x337 
 0x370-0x37f 0x388-0x38f 0x480-0x48f 0x4d0-0x4d7
cs: IO port probe 0xa00-0xaff: clean.
cs: IO port probe 0xa00-0xaff: clean.
cs: memory probe 0xa000-0xa0ff: clean.

eth0: 3Com 3c562, io 0x300, irq 3, hw_addr 00:60:97:FE:BE:6C
  8K FIFO split 5:3 Rx:Tx, auto xcvr
ttyS1 at I/O 0x2f8 (irq = 11) is a 16550A
eth0: flipped to 10baseT
irq 11: nobody cared!
 [c012c952] __report_bad_irq+0x22/0x80
 [c012ca20] note_interrupt+0x50/0x80
 [c012c600] __do_IRQ+0xd0/0xe0
 [c01043e1] do_IRQ+0x41/0x60
 ===
 [c0102f3a] common_interrupt+0x1a/0x20
 [c0117a51] __do_softirq+0x31/0x90
 [c01044c9] do_softirq+0x39/0x40
 ===
 [c01043e8] do_IRQ+0x48/0x60
 [c0102f3a] common_interrupt+0x1a/0x20
 [c0101030] default_idle+0x0/0x30
 [c0101054] default_idle+0x24/0x30
 [c01010e1] cpu_idle+0x41/0x60
 [c04996eb] start_kernel+0x13b/0x160
handlers:
[c02aec10] (yenta_interrupt+0x0/0x30)
[c02aec10] (yenta_interrupt+0x0/0x30)
Disabling IRQ #11
eth0: interrupt(s) dropped!
 
 On Wed, Jun 01, 2005 at 11:29:47PM -0400, Jerry McBride wrote:
  
  On my end... with 2.6.11, /proc/bus/pccard has /drivers which at the moment 
  says ide-cs due to the flashcard/pcmcia adapter I've got installed.
  
  Have you modprobed cs? How about a simple cardctl ident?
 -- 
 Digby R. S. Tarvin [EMAIL 
 PROTECTED]
 http://www.digbyt.com
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] PCMCIA progress

2005-06-02 Thread Digby Tarvin
Hi Jerry,

So your /proc/bus/pccard is also missing the two digit files aka:
% ls -l /proc/bus/pccard
total 0
dr-xr-xr-x2 root root0 Jun  2 13:13 00
dr-xr-xr-x2 root root0 Jun  2 13:13 01
dr-xr-xr-x2 root root0 Jun  2 13:13 02
dr-xr-xr-x2 root root0 Jun  2 13:13 03
-r--r--r--1 root root0 Jun  2 13:13 drivers

I decided to try and bracket the problem by making and booting an
install CD on another system so that I could copy the /proc/config.gz
file, which I needed in order to try the genkernel approach...

The genkernel is now building (under my host 2.4 kernel) so it will
be a couple of hours before I can try your suggestions.

Anyway, thanks for your offer of assistance. I'll see how the
autoconfig goes when genkernel finishes, and then if it looks
good (proving that 2.6 gentoo hasn't lost compatibility with any
of the hardware I am using) I'll have another go at working out
exactly which drivers I need for a manual config.

I think it is probably a worthwhile exercise to get the manual config
going, as it should give me a much better understanding of what drivers
my hardware is using, and give me a faster boot and smaller kernel footprint.

Regards,
DigbyT

On Wed, Jun 01, 2005 at 11:29:47PM -0400, Jerry McBride wrote:
 
 On my end... with 2.6.11, /proc/bus/pccard has /drivers which at the moment 
 says ide-cs due to the flashcard/pcmcia adapter I've got installed.
 
 Have you modprobed cs? How about a simple cardctl ident?
 
 I'll gladly exchange emails with you, if you want to tinker...
 
 Cheers.
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] genkernel-3.1.6 fails for my situation

2005-06-02 Thread Digby Tarvin
I would quite like to try something like that as a neat way of bootstrapping
a new install.

Can you tell me which pcmcia-usb2 adapter you are using? The one that
I have tried (an SDK adapter) didn't seem to work with Linux, and I
have had trouble finding anyone who can confirm a working card.

Thanks,
DigbyT

On Sun, Apr 03, 2005 at 03:37:32AM +0800, Yuan MEI wrote:
 My system configuration is a bit strange: (laptop)
 1 IDE hard drive, only /boot is on that, for storing kernel and
 initrd, and the place for grub
 1 pcmcia--usb2.0 adapter
 1 usb2.0 externel hard drive, for /, /usr, /home... everything else,
 because it is quite big :-)
 
 so, the laptop could find grub installed on hda1, then load the kernel
 and initrd properly.
 While, the initrd should do the magic, that it should drive pcmcia and
 usb in the booting before accessing the true / partition.  Here,
 title Gentoo Linux (2.6.11-gentoo-r4)
 root (hd0,0)
 kernel /kernel-2.6.11-gentoo-r4 root=/dev/ram0 init=/linuxrc
 real_root=/dev/scsi/host1/bus0/target0/lun0/part6
 video=vesafb:ywrap,mtrr,[EMAIL PROTECTED] splash=silent,theme:emergence
 initrd /initrd-2.6.11-gentoo-r4
 just works.
 
 well, make such a good initrd file each time along with the upgrading
 of kernels is quite time consuming, so I choose genkernel to do it for
 me.  What I have to do, is copy a .config to /etc/kernel.  This goes
 well till genkernel-3.1.1b, but the newest version 3.1.6 fails.  The
 new initrd finds the usb device, but it cannot drive it as a scsi
 drive.  Here, I didn't alter the .config file, so modules and kernel
 configuration should be good, thus the genkernel must be wrong.
 
 So, who can help me? Thank you! ^)^
 -- 
 Yuan MEI
 --
 gentoo-user@gentoo.org mailing list
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Getting PCMCIA to work

2005-06-01 Thread Digby Tarvin
Hi Nick and Richard,

Thanks for both of your comments...

On Wed, Jun 01, 2005 at 02:46:27PM +1200, Nick Rout wrote:
 On Wed, 1 Jun 2005 00:58:16 +0100
 Digby Tarvin wrote:
 
  But when I try to run /etc/init.d/pcmcia start on gentoo I get
  PCMCIA support detected.
  Starting pcmcia...
  cardmgr failed to start.  Make sure that you have PCMCIA
  modules built or support compiled into the kernel
 
 Theres a pretty telling error message. cardmgr failed to start

I figured it wasn't a good thing. But what exactly does it tell you?

At the moment I am thinking that I havn't yet got the kernel to see
the PCI to Cardbus adapter at all, rather than just having problems
with a card not being recognised.

I note that under my old working SuSE system, the pccard directory
in proc contains:
  % ls -l /proc/bus/pccard
  total 0
  dr-xr-xr-x2 root root0 Jun  1 00:05 00
  dr-xr-xr-x2 root root0 Jun  1 15:23 01
  dr-xr-xr-x2 root root0 Jun  1 15:23 02
  dr-xr-xr-x2 root root0 Jun  1 15:23 03
  -r--r--r--1 root root0 Jun  1 15:23 drivers

There are two slots for PCMCIA cards (one type I and one type II) in
the notebook, and two in the docking station, so I assume that the
two digit numbers refer to the slots and should show up even if no
card is inserted.

I tried booting with no docking station and no cards inserted, and
do indeed get:
  % ls -l /proc/bus/pccard
  total 0
  dr-xr-xr-x2 root root0 Jun  1 00:05 00
  dr-xr-xr-x2 root root0 Jun  1 15:23 01
  -r--r--r--1 root root0 Jun  1 15:23 drivers

However on my gentoo install, I get just
  % ls -l /proc/bus/pccard
  total 0
  -r--r--r--1 root root0 Jun  1 15:23 drivers

So I assume that my initial problem is a fairly fundamental failure
to recognise the the PCI to Cardbus device corresponding to the
SuSE boot messages:
  Linux PCMCIA Card Services 3.1.28
kernel build: 2.4.10-4GB #1 Fri Sep 28 17:20:21 GMT 2001
options:  [pci] [cardbus] [apm]
  Intel PCIC probe: 4PCI: No IRQ known for interrupt pin A of devicei
00:06.0. Please try using pci=biosirq.
  PCI: No IRQ known for interrupt pin B of device 00:06.1. Please try
using pci=biosirq.
  
Toshiba ToPIC97 rev 20 PCI-to-CardBus at slot 00:06, mem 0x1000
  host opts [0]: [slot 0xf0] [ccr 0x11] [cdr 0x86] [rcr 0x02] [no pci irq]
[lat 168/176] [bus 18/18]
 .
 .

But I gather 2.6 kernels handle this a bit differently, so I am not sure
what I should expect to see.

Can anyone with a working laptop gentoo install confirm what messages I should
expect to see from gentoo??

Is there something special in the kernel config that I need to tweak to
get this 'Toshiba ToPIC97' device to work? I see no mention of it in the
the gentoo dmesg output posted earlier.

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Getting PCMCIA to work

2005-06-01 Thread Digby Tarvin
Further to my earlier post...

I forgot to mention - one obvious thing to ask would be 'was the card
recognised by the installation CD or when usign genkernel?'

The answer is - I don't know, because

This notebook has no CD-Rom, and the only way to connect one would be
via PCMCIA or USB, and I have found no way to boot from either.
This appears to stop me from using genkernel.

Here are the details for anyone that thinks they might be able to offer
some suggestions:

The Libretto is a notoriously tricky machine to install on because it has
no bootable removable media other than a floppy, and even that is PCMCIA
based, so any install process where the bootrap expects to be able to 
read the boot media tends to fail. For instance, most floppy based installs
require a second modules floppy be inserted before a PCMCIA device like a
CDROM or the floppy drive can be accessed - catch 22. 

I have often thought that the floppy should be readable through BIOS routines
if it can be booted from, but if so I suppose it would have been done..

In the end I managed a network install using PLIP, and all subsequent
linux installs (SuSE and now gentoo) have been achieved using the previous
Linux system as a springboard.

Consequently I have followed the alternate install method which involves
initializing the gentoo partitions from my current linux and then chrooting
into it - I was actually quite surprised that running on a 2.4 kernel and
/proc directory on a 2.6 filesystem worked... 

The stage files were copied from the install CD using the network which was
still working on my SuSE host system.

Finally, the problem with genkernel is that the instructions in the
handbook assume you have booted from the install CD. Specifically, it
says to copy the installation CD kernel config using
zcat /proc/config.gz  /usr/share/genkernel/x86/kernel-2.6
and that obviously isn't going to work when I am installing using
a foreign (SuSE 2.4) kernel. 

I could probably get around this by just booting the CD somewhere else and
copying the config file, but at the time the manual config looked like an
easier option, and I wanted to minimum the kernel size as this old machine
has a maximum memory expansion of 64M. 

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Getting PCMCIA to work

2005-06-01 Thread Digby Tarvin
On Wed, Jun 01, 2005 at 07:43:16PM +0200, Richard Fish wrote:
 
 Grepping the 2.6 sources for ToPIC97 indicates you need the yenta
 driver.  It is probably best to compile that into your kernel, not as a
 module.

Hi Richard,

That surprises me, because in the configuration
bus options/pccard/bridges
section, there are 5 bridge types mentioned, and I had assumed that
the one I needed was i82365 based on my 2.4 kernel suse system
/sbin/lsmod output:
i82365 23296   4
pcmcia_core43008   0 [3c589_cs ds i82365]

I tried your grep on the working SuSE system and the string
'ToPIC97' shows up in drivers/pci/devlist.h, but it isn't obvious to
me how you managed to relate that to one of the bridge drivers.

Anyway, I am now re-compiling with the yenta-comatible bridge support
enabled, so I'll see if that helps.

Thanks,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Getting PCMCIA to work - ps

2005-06-01 Thread Digby Tarvin
Hello again Richard,

Well, the plot thickens...

I found that the header file with the ToPIC97 information is
/usr/src/linux/drivers/pcmcia/topic.h
on both SuSE and gentoo, and on my SuSE system that was indeed
included by the i82365 driver as I has surmised
[EMAIL PROTECTED]:/usr/src/linux/drivers/pcmcia  grep topic.h *.c
i82365.c:#include topic.h
but on my 2.6 gentoo system it has moved:
1.penemunde:/usr/src/linux/drivers/pcmcia grep topic.h *.c
yenta_socket.c:#include topic.h
as you had discovered.

So that would seem to explain why using my working 2.4 system to
identify the needed drivers might have misled me...

I'll let you know how it goes when the compile completes. It takes
a while on that 233MHz system...

Thanks again.

Regards,
DigbyT

On Wed, Jun 01, 2005 at 07:43:16PM +0200, Richard Fish wrote:
 Grepping the 2.6 sources for ToPIC97 indicates you need the yenta
 driver.  It is probably best to compile that into your kernel, not as a
 module.
 
 -Richard
 
 
 
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] PCMCIA progress

2005-06-01 Thread Digby Tarvin
Thanks Richard,

The yenta tip certainly seems to have helped. The system now seems
to recognise the existance of the bridge, and when I insert the 3Com
card, it recognises both the network interface and the serial port
from the modem.

There are still no '00' etc files in the /proc/bus/pccard directory,
so this must behave differently in the 2.6 kernel. 

It seems I still have a bit of work to do, however, as the network
interface doesn't seem to be working, and with the other (Xircom)
card it only recognises the serial interface. It doesn't see the
network part at all.

I also get some worrying messages about irq 11 which it seems to
use, along the lines of
irq 11: nobody cared!
Disabling IRQ #11
eth0: interrupt(s) dropped!
which may having something to do with the failure...

I'll need to install something like kermit before I can tell if the
modem is working.

Below is the latest dmesg output, in case anyone can spot any indications
of other misconfigurations...

I am a little puzzled as to why:
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
appears twice - is that normal?

Regards,
DigbyT

Linux version 2.6.11-gentoo-r3 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Gentoo 
Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)) #5 Thu Jun 2 01:00:49 BST 2005
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009fc00 (usable)
 BIOS-e820: 0009fc00 - 000a (reserved)
 BIOS-e820: 000f - 0010 (reserved)
 BIOS-e820: 0010 - 0401 (usable)
 BIOS-e820: 0401 - 0402 (ACPI data)
 BIOS-e820: 0402 - 0404 (reserved)
 BIOS-e820: fef8 - ff00 (reserved)
 BIOS-e820: fffe - fffe6e00 (reserved)
 BIOS-e820: fffe6e00 - fffe7000 (ACPI NVS)
 BIOS-e820: fffe7000 - 0001 (reserved)
64MB LOWMEM available.
On node 0 totalpages: 16400
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 12304 pages, LIFO batch:3
  HighMem zone: 0 pages, LIFO batch:1
DMI not present.
ACPI: RSDP (v000 TOSHIB) @ 0x000f4660
ACPI: RSDT (v001 TOSHIB 750  0x19980225 TASM 0x0401) @ 0x0401
ACPI: FADT (v001 TOSHIB 750  0x19980225 TASM 0x0401) @ 0x04010054
ACPI: DSDT (v001 TOSHIB Lib-100  0x19991112 MSFT 0x010b) @ 0x
Allocating PCI resources starting at 0410 (gap: 0404:faf4)
Built 1 zonelists
Kernel command line: auto BOOT_IMAGE=gentoo ro root=306 
BOOT_FILE=/boot/kernel-2.6.11-gentoo-r3
Initializing CPU#0
CPU 0 irqstacks, hard=c04c8000 soft=c04c7000
PID hash table entries: 512 (order: 9, 8192 bytes)
Detected 233.304 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 60452k/65600k available (2573k kernel code, 4672k reserved, 1105k data, 
164k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 459.77 BogoMIPS (lpj=229888)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 008001bf     
 
CPU: After vendor identify, caps: 008001bf     
 
Intel Pentium with F0 0F bug - workaround enabled.
CPU: After all inits, caps: 008001bf     
 
CPU: Intel Mobile Pentium MMX stepping 01
Checking 'hlt' instruction... OK.
ACPI: setting ELCR to 2000 (from 0804)
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfc5f8, last bus=21
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
Toshiba System Managment Mode driver v1.11 26/9/2001
ACPI: Subsystem revision 20050211
ACPI-0352: *** Error: Looking up [\_SB_.SBAT] in namespace, AE_NOT_FOUND
search_node c10a3820 start_node c10a3820 return_node 
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: Power Resource [PWH1] (on)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
PCI: setting IRQ 13 as level-triggered
pnp: PnP ACPI: found 14 devices
SCSI subsystem initialized
Linux Kernel Card Services
  options:  [pci] [cardbus] [pm]
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
** PCI interrupts are no longer routed automatically.  If this
** causes a device to stop working, it is probably because the
** driver failed to call 

[gentoo-user] Getting PCMCIA to work

2005-05-31 Thread Digby Tarvin
Hi all,

I am in the process of trying to upgrade my trusty Libretto 110CT from
SuSE Linux 7.3 (2.4.10 kernel) to the latest gentoo.

Base system is now coming up fine, but my PCMCIA lan card is not
being recognised.

Any suggestions on where I should look?

I did a manual config of the kernel, enabling
In bus options/pccard:
i82365 compatible bridge support
In device drivers/networking/pcmcia
3Com 3C589 (module)
Xircom 16 bit (module0
and have also emerged pcmcia-cs

I'm pretty sure the hardware delection is right, as lsmod on the old
SuSE 2.4 kernel gives me (when using the 3Com card)
pcmcia_core43008   0 [3c589_cs ds i82365]

But when I try to run /etc/init.d/pcmcia start on gentoo I get
PCMCIA support detected.
Starting pcmcia...
cardmgr failed to start.  Make sure that you have PCMCIA
modules built or support compiled into the kernel

Also,  /proc/bus/pccard/drivers is empty.

Finally, here is what dmesg produces during bootup:
   Linux version 2.6.11-gentoo-r3 ([EMAIL PROTECTED]) (gcc version 3.3.5 
(Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)) #2 Tue May 31 23:55:10 BST 
2005
   BIOS-provided physical RAM map:
BIOS-e820:  - 0009fc00 (usable)
BIOS-e820: 0009fc00 - 000a (reserved)
BIOS-e820: 000f - 0010 (reserved)
BIOS-e820: 0010 - 0401 (usable)
BIOS-e820: 0401 - 0402 (ACPI data)
BIOS-e820: 0402 - 0404 (reserved)
BIOS-e820: fef8 - ff00 (reserved)
BIOS-e820: fffe - fffe6e00 (reserved)
BIOS-e820: fffe6e00 - fffe7000 (ACPI NVS)
BIOS-e820: fffe7000 - 0001 (reserved)
   64MB LOWMEM available.
   On node 0 totalpages: 16400
 DMA zone: 4096 pages, LIFO batch:1
 Normal zone: 12304 pages, LIFO batch:3
 HighMem zone: 0 pages, LIFO batch:1
   DMI not present.
   ACPI: RSDP (v000 TOSHIB) @ 0x000f4660
   ACPI: RSDT (v001 TOSHIB 750  0x19980225 TASM 0x0401) @ 0x0401
   ACPI: FADT (v001 TOSHIB 750  0x19980225 TASM 0x0401) @ 0x04010054
   ACPI: DSDT (v001 TOSHIB Lib-100  0x19991112 MSFT 0x010b) @ 0x
   Allocating PCI resources starting at 0410 (gap: 0404:faf4)
   Built 1 zonelists
   Kernel command line: auto BOOT_IMAGE=gentoo ro root=306 
BOOT_FILE=/boot/kernel-2.6.11-gentoo-r3
   Initializing CPU#0
   CPU 0 irqstacks, hard=c04c1000 soft=c04c
   PID hash table entries: 512 (order: 9, 8192 bytes)
   Detected 233.308 MHz processor.
   Using tsc for high-res timesource
   Console: colour VGA+ 80x25
   Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
   Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
   Memory: 60456k/65600k available (2553k kernel code, 4668k reserved, 1094k 
data, 168k init, 0k highmem)
   Checking if this processor honours the WP bit even in supervisor mode... Ok.
   Calibrating delay loop... 458.75 BogoMIPS (lpj=229376)
   Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
   CPU: After generic identify, caps: 008001bf    
  
   CPU: After vendor identify, caps: 008001bf    
  
   Intel Pentium with F0 0F bug - workaround enabled.
   CPU: After all inits, caps: 008001bf     
 
   CPU: Intel Mobile Pentium MMX stepping 01
   Checking 'hlt' instruction... OK.
   ACPI: setting ELCR to 2000 (from 0804)
   NET: Registered protocol family 16
   PCI: PCI BIOS revision 2.10 entry at 0xfc5f8, last bus=21
   PCI: Using configuration type 1
   mtrr: v2.0 (20020519)
   Toshiba System Managment Mode driver v1.11 26/9/2001
   ACPI: Subsystem revision 20050211
   ACPI-0352: *** Error: Looking up [\_SB_.SBAT] in namespace, AE_NOT_FOUND
   search_node c10a3820 start_node c10a3820 return_node 
   ACPI: Interpreter enabled
   ACPI: Using PIC for interrupt routing
   ACPI: PCI Root Bridge [PCI0] (00:00)
   PCI: Probing PCI hardware (bus 00)
   ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
   ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
   ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
   ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
   ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
   ACPI: Power Resource [PWH1] (on)
   Linux Plug and Play Support v0.97 (c) Adam Belay
   pnp: PnP ACPI init
   PCI: setting IRQ 13 as level-triggered
   pnp: PnP ACPI: found 14 devices
   SCSI subsystem initialized
   Linux Kernel Card Services
 options:  [pci] [cardbus] [pm]
   usbcore: registered new driver usbfs
   usbcore: registered new driver hub
   PCI: Using ACPI for IRQ routing
   ** PCI 

Re: [gentoo-user] CFLAGS CPU optim

2005-05-30 Thread Digby Tarvin
Hello Andreas,

Thanks for the tip. I must admit that the details of the heirarchy of
Intel processors since they abondoned the purely numeric naming
conventions is something I don't have a complete handle on.

Regards,
DigbyT

On Sun, May 29, 2005 at 10:32:37PM +0200, Andreas Fredriksson wrote:
 On 5/29/05, Digby Tarvin [EMAIL PROTECTED] wrote:
  On the subject of CPU flags, anyone tried optimizing gentoo for a
  Toshiba Libretto (110CT)?
  model name  : Mobile Pentium MMX
  flags   : fpu vme de pse tsc msr mce cx8 mmx
 
 This is indeed a classic pentium chip with mmx added. You can use
 -mcpu=pentium (or -march=pentium), optionally adding the mmx USE flag
 for those packages that support it.
 
 // Andreas
 
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] CFLAGS CPU optimization question.

2005-05-29 Thread Digby Tarvin
On the subject of CPU flags, anyone tried optimizing gentoo for a
Toshiba Libretto (110CT)?

how do I determine which of the stage3 installation files:
stage3-athlon-xp-2005.0.tar.bz2
stage3-i686-2005.0.tar.bz2
stage3-pentium3-2005.0.tar.bz2
stage3-pentium4-2005.0.tar.bz2
stage3-x86-2005.0.tar.bz2
is appropriate? 'uname -m' (as suggested in the docs) reports i586 so I
assume it is pentium, but where is the boundry between P3 and P4?

Also, what would be the best CPUFLAGS where /proc/cpuinfo (under SuSE 7.3)
reports the following CPU information:
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 5
model   : 8
model name  : Mobile Pentium MMX
stepping: 1
cpu MHz : 233.292
fdiv_bug: no
hlt_bug : no
f00f_bug: yes
coma_bug: no
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr mce cx8 mmx
bogomips: 465.30

Is there anything else I need to check to work out my optimum settings?

Thanks,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] PCMCIA/USB2

2005-05-22 Thread Digby Tarvin
Anyone know of any good PCMCIA to USB2 cards (for adding USB ports to an older
laptop) that work with gentoo Linux?

Thanks,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] PCMCIA Modems

2005-04-25 Thread Digby Tarvin
Can anyone direct me to any useful resources for researching hardware
suitability for use in Gentoo systems?

My immediate need is to replace my old 10Mb PCMCIA LAN card in my
notebook with a 100Mb or better, ideally a multi-function
card that includes a modem as well (which would probably narrow
the field a bit).

I know there are Linux databases where I can check is a particular
card is currently supported, which is useful if I have a particular
card in mind, but as I have no personal preference, I am interested
in any opinions on which would be the 'best' card to go for.

For example, all other things being equal, I would prefer to support
a company that actively promotes Unix/Linux support by either providing
a (open source) driver themselves, or making good hardware documentation
available.  I wouldn't want to support a company just because someone has
managed to reverse engineer a driver in spite of the vendor!

If anyone can suggest any good resources, or has any suggestions
regarding good network cards, please let me know.

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: vi is mising from the portage

2005-04-21 Thread Digby Tarvin
Since we are discussing this

I too am used to (and quite happy with) vi. It does what I want.

Since moving to gentoo I have continued to type 'vi' when I
want to edit a text file, in blissful ignorance of the fact that
this is now a sym link to vim - or at least should have been..

Now this would have been fine if vim were a superset which, when invoked
with the old name, behaved sensibly... appart from having to put
up with the unnecessary bloat, ie
-rwxr-xr-x  1 root root 2041860 Apr 19 01:26 /usr/bin/vim
-r-xr-xr-x  3 bin  bin   225280 Jan 21  1997 /usr/bin/vi
which does make a difference when you still have old machines
running with 4Mb of ram... Even vi seemed big after 'ed'.

Anyway, what has been bugging me about the vi imposter on gentoo is
this gawdy psychadelic colourisation

It seems that whatever colour scheme I choose for my xterms,
some important part of my source file disappears because it
is displayed in the background colour, or in something with
very poor contrast over the background colour :-/

I don't know why other people arn't bitten by this. Perhaps it
is something to do with the fact that I use a propper networked
X terminal rather than sitting in the same room as my server.

It has been so annoying that I have often resorted to copying
files onto an old BSD machine to edit them, and then copy them
back.

So.. what is the secret to stopying vim from displaying text in
in invisible colours? And how can I tell it to stop messing
with the colours at all...

I can't find anything in the man page, '-C' doesn't inhibit
colourisation, nor does setting my TERM type to 'ansi' and don't
really want to have to resort to reading extensive documentation on an
application I wouldn't need if I had vi (there is still too much I have
to read up on for things that I actually do want to know about...)

Sorry if that sounds a bit whining, but it has been annoying me this
afternoon, so I couldn't resist the chance to have a whinge when it
came up on the list..

Regards,
DigbyT

On Thu, Apr 21, 2005 at 08:43:27PM +0200, Antoine wrote:
 Eamon Caddigan wrote:
  Ciaran McCreesh [EMAIL PROTECTED] wrote:
  
 On Wed, 20 Apr 2005 18:16:41 + (UTC) Eamon Caddigan
 [EMAIL PROTECTED] wrote:
 | Vim's great, but sometimes you just want vi.=20
 
 That's a shame, because I removed (traditional) vi from the tree. Your
 choices are Vim, nvi, elvis or fixing traditional vi to work with
 terminfo rather than termcap and submitting a bug with a patch.
 
 Can't you tell vim to act like good ol' vi? Is it still not good ol'
 vi, no matter how much they try and make it like it?
 Cheers
 Antoine
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] emerge --update failure...

2005-04-19 Thread Digby Tarvin
Anyone have any clues as to why my 'emerge --update world' seems to fail
on mozilla with the following output:

 Unpacking ipc-1.1.2.tar.gz to /var/tmp/portage/mozilla-1.7.7/work
 Unpacking enigmail-0.91.0.tar.gz to /var/tmp/portage/mozilla-1.7.7/work
 * Applying mozilla-stackgrowth.patch ... [ ok ]
 * Applying mozilla-1.3-fix-RAW-target.patch ...  [ ok ]
 * Applying mozilla-hppa.patch ...[ ok ]
 * Applying mozilla-1.7.3-4ft2.patch ...  [ ok ]
 * Patching smime to call perl from /usr/bin...   [ ok ]
 Source unpacked.
--- ACCESS VIOLATION SUMMARY ---
LOG FILE = /tmp/sandbox-www-client_-_mozilla-1.7.7-15107.log

open_wr:   /home2/digbyt/.history


I assume that for some reason the mozilla configure balked at the
HISTFILE=/home2/digbyt/.history
that was left in my environment after I su'd to root.

An 'export HISTFILE=' seemed to work around it, but I am not sure if
this should be reported as an 'emerge' bug or a 'mozilla' package bug.

Is there any reason why I should not run emerge after logging in as
myself and then 'su'ing? Are there guidelines on acceptable environment
settings that should be present when doing an emerge which I have
overlooked?

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] another emerge oddity.. update

2005-04-19 Thread Digby Tarvin
Just to answer my own question here, it seems that removing the
archive file
/usr/portage/distfiles/RealPlayer-10.0.3.748-20050223.i586.rpm
and letting emerge download it again got me back on track...

Still not sure how I ended up with a bad rpm file that stopped
my update. It wasn't a disk space problem because the bad file
(now in /tmp) was larger than the replacement:
 6679649 Apr 19 20:28 /tmp/RealPlayer-10.0.3.748-20050223.i586.rpm
 6642448 Apr 19 20:29 
/usr/portage/distfiles/RealPlayer-10.0.3.748-20050223.i586.rpm

I wonder where the extra 37201 bytes came from

Regards,
DigbyT

On Tue, Apr 19, 2005 at 08:17:16PM +0100, Digby Tarvin wrote:
 Still trying to get an 'emerge --update world' to complete...
 
 Now I am getting the following error:
 !!! Digest verification Failed:
 !!!/usr/portage/distfiles/RealPlayer-10.0.3.748-20050223.i586.rpm
 !!! Reason: Filesize does not match recorded size
 
 I tried unmerging and then re-emergeing realplayer, and doing 
 a new --sync, but I get getting this error.
 
 Can anyone tell me where the recorded size is that is conflicting,
 and how the discrepency can arise?
 
 Is there a simple way to correct this?
 
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] --update world aftermath...

2005-04-19 Thread Digby Tarvin
My first 'update world' seems to have complete sucessfully, having
overcome the mozilla sensitifity to environment settings and the mysterious
file size discrepency of my RealPlayer-10.0.3.748-20050223.i586.rpm
file...

That just left the protected directory file updates, all of which
seemed straight forward except for an update that was provided
for /etc/modules.d/alsa as follows:
diff alsa ._cfg_alsa 
17d16
 alias snd-card-0 snd-emu10k1
21d19
 alias sound-slot-0 snd-card-0

It looks to me like that would just remove my customization for
the local hardware, which I would expect would have stopped my
sound card from working

Or has there been some change that makes that configuration
information obsolete?

Is it safe/wise to decide to discard one of the update files
like this?

Regards,
DigbyT
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] another emerge oddity.. update

2005-04-19 Thread Digby Tarvin
Sorry - that was a typo. Typing 'bugzilla' must have made me think back
to my earlier problem with mozlla :-/

It was actually 'realplayer' that I searched on, and which produced
the five matches when I selected the 'bugs' link

I just tried it again, and all it gives me are ID's 6720, 79555,
86511, 87118 and 89045..

This is the URL that the link invokes:
http://bugs.gentoo.org/buglist.cgi?query_format=short_desc_type=allwordsshort_desc=realplayerbug_status=UNCONFIRMEDbug_status=NEWbug_status=ASSIGNEDbug_status=REOPENED

It looks like the problem was that checking for known problems this way
doesn't find but reports with a RESOLVED status, and in this case
RESOLVED is a little misleading in that a simple 'emerge --update'
wont fix it without manual intervention according to the instructions
in the problem entry.

Moral of the story seems to be to search for ALL bugs from the mozilla page
rather than relying on the bugs link in the package database.

Regards,
DigbyT

On Wed, Apr 20, 2005 at 12:18:04AM +0100, Neil Bothwick wrote:
 On Tue, 19 Apr 2005 22:56:21 +0100, Digby Tarvin wrote:
 
  I did check the bugzilla (by searching for mozilla in the package
  database and then invoking the 'bugs' link) but none of the
  five items listed seemed to refer to 10.0.3..
 
 Why 'mozilla' when the error was with RealPlayer? Searching for
 RealPlayer brings it up, bug no. 87198.
 
 
 -- 
 Neil Bothwick
 
 Bother said Pooh when C4 postponed B5
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] --update world aftermath...

2005-04-19 Thread Digby Tarvin
Ah, 'etc-update'! I knew there was some tool to semi-automate the
process, but I can never remember the name.

The emerge warning always directs me to consult 'emerge --help config'
for more information, but this omits any mention of anything other than
manual searching and updating..

Perhaps it would be better if the emerge warning directed people
to consult 'man etc-update' instead, with the content of
of 'emerge --help config' incorporated into that entry.

The other thing that I would quite like to see is some way
to identify the package that generated the update file. Maybe
encoded into the '._cfg..' filename, or logged in a file somewhere.
Sometimes it is not obvious where to look if more information is
needed to decide if an update is necessary.. Or is this information
available somewhere and I just havn't found it???

Anyway, thanks for the advice. I'll discard the alsa update file.

Regards,
DigbyT

On Tue, Apr 19, 2005 at 06:08:50PM -0500, Scott Jones wrote:
 Digby,
 
 Etc-update always wants to replace files that are different from the 
 standard files (baseline files). The secret is to remember which files you 
 changed and not let it replace them. So, if you want your alsa to keep 
 working do not let it modify your already-modified files. Also watch out for 
 it to want to change /etc/fstab, this is a quite common rookie mistake. 
 
 Good Luck,
 
 Scott Jones
 
 On 4/19/05, Digby Tarvin [EMAIL PROTECTED] wrote:
  
  My first 'update world' seems to have complete sucessfully, having
  overcome the mozilla sensitifity to environment settings and the 
  mysterious
  file size discrepency of my RealPlayer-10.0.3.748-20050223.i586.rpm
  file...
  
  That just left the protected directory file updates, all of which
  seemed straight forward except for an update that was provided
  for /etc/modules.d/alsa as follows:
  diff alsa ._cfg_alsa
  17d16
   alias snd-card-0 snd-emu10k1
  21d19
   alias sound-slot-0 snd-card-0
  
  It looks to me like that would just remove my customization for
  the local hardware, which I would expect would have stopped my
  sound card from working
  
  Or has there been some change that makes that configuration
  information obsolete?
  
  Is it safe/wise to decide to discard one of the update files
  like this?
  
  Regards,
  DigbyT
  --
  Digby R. S. Tarvin [EMAIL PROTECTED]
  http://www.digbyt.com
  --
  gentoo-user@gentoo.org mailing list
  
 

-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Anyone using gnat/bindx

2005-04-17 Thread Digby Tarvin
I have just done an emerge of gnat and adabindx and am having a bit
of trouble building the bindx demo programs to verify that it all
installed correctly...

The emege didn't leave a lot of clues as to what it had done, but
had there been a 'ReadMe' describing the adaptation to gentoo
portage, I surmise it should have said something like:
gcc 2.8.1 is installed as the version needed by gnat, and...
the executive is renamed 'gnatgcc' to avoid conflict with newer 
compilers..
Once you know the command to execute, it seems to work fine.

However I was less sucessful with the emerge of the adabindx X bindings, which
seemed to create the directories:
/usr/lib/ada/adalib/adabindx
and
/usr/lib/ada/adainclude/adabindx
where the lib directory contained a lot of .ali files but no actual
libraries except for a broken symlink to from libadabindx.a
to a non-existant libadabindx-0.7.2.a. The sources to the library files
seemed to exist in the include directory.

In addition, a directory called:
/usr/share/doc/adabindx-0.7.2
was created and contained some original documentation files and a
directory of sample programs. However the makefiles for these all
assumed the existance of a 'Local.conf' file which was supposed to
have been left over from the install - however it did not seem to
exist. The symbols it is supposed to define, and the values for the
ones I have worked out, are as follows:
ADA_MAKE=gnatmake
ADA_MAKE_FLAGS=
ADA_LINK_FLAGS=
XLIB_DIR=
XM_LIBS=-lXm
XMU_LIBS=-lXmu
ADABINDX_LIBS=

However clearly something else is still missing, as I have not yet managed
to get the sample programs to link as there seems to be some sort of
C glue that is not being found, with unresolved names such as
interfaces__c__wstrings__strlen
interfaces__c__wstrings__value__3
interfaces__c__wstrings(float, long double,...)(...)

So I am guessing that I am missing some magic from the 'Local.conf'
definitions, but couldn't find any libraries defining the missing
symbols.

I am pretty sure this all worked when I installed it from a tarball
on a different system a few years ago. But before I go back to trying
it that way, does anyone have any ideas on what happened to the
missing file, or what need to add to resolve the link errors?

Thanks
DigbyT

P.S. I also found that my build directory filled up with object files
which seem to be the result of compiling the xbind sources - any know
if this is supposed to happen, or is it just because the link to the
library object was broken..?
-- 
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
-- 
gentoo-user@gentoo.org mailing list