[Ukfreebsd] Question about linprocfs
andy thomas
andy at time-domain.co.uk
Fri May 27 16:05:19 BST 2011
I'm trying to get the Linux binary of the Magma computational algebra
software package running on amd64 FreeBSD 8.2. When this binary is
executed on a Linux system, it reads /proc/net/dev to determine the
system's MAC address and compares this with an encrypted license file to
decided whether or not the system is licenced to run the software.
On FBSD, the Linux /proc filesystem is mounted on /compat/linux/proc so
that the Linux /proc/net/dev is actually at /compat/linux/proc/net/dev.
The problem is /compat/linux/proc/net/dev contains no data:
andy at dell380:~$ cat /compat/linux/proc/net/dev
Inter-| Receive|
Transmit
face| bytes packets errs drop fifo frame compressed|
bytes packets errs drop fifo frame compressed
eth0: 0 0 0 0 0 0 0 0 0
$
0 0 0 0 0 0 0
plip0: 0 0 0 0 0 0 0 0 0
$
0 0 0 0 0 0 0
lo0: 0 0 0 0 0 0 0 0 0
$
0 0 0 0 0 0 0
Can anyone think of a reason for this? It ought to look something like
this (from a Debian Squeeze system):
andy at tornado:~$ cat /proc/net/dev
Inter-| Receive |
Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes
packets errs drop fifo colls carrier compressed
lo:79938338 564655 0 0 0 0 0 0 79938338
564655 0 0 0 0 0 0
eth0:4743228657 6582199 0 0 0 0 0 224017
558374203 2678846 0 0 0 0 0 0
pan0: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
I've built & installed the linux_base-f10 compatibility libs, etc from
ports and the kernel modules for Linux binary support and the Linux /proc
filesystem are loaded:
andy at dell380:~ kldstat
Id Refs Address Size Name
1 12 0xffffffff80100000 d6aa98 kernel
2 2 0xffffffff81022000 1c4c4 linux.ko
3 1 0xffffffff8103f000 3a28 linprocfs.ko
Any ideas? Some other items in linprocfs are empty, such as
/proc/scsi/scsi for example.
Thanks in advance,
Andy
---------------------------------
Andy Thomas,
Time Domain Systems
Tel: +44 (0)7866 556626
Fax: +44 (0)20 8372 2582
http://www.time-domain.co.uk
More information about the Ukfreebsd
mailing list