Archivio mensile:Gennaio 2015

RTL2832u

Mi sono deciso a giocare con questa chiavetta usb per ricevere segnali radio..
e la figata è che con linux basta il comando

rtl_fm -f 99.6e6 -s 200000 -r 48000 – | play -r 48k -t raw -e s -b 16 -c 1 -V1 –

per sentire Radio Globo a Roma !!!!

ho messo nella blacklist il driver_rtl28xxu aggiungendo a
/etc/modprobe.d/blacklist.conf
la riga
blacklist dvb_usb_rtl28xxu

VMWare e Linux

Con l’uscita del nuovo kernel, il 3.14, come al solito i soliti problemi con VMWare si riaffacciano…

Il solito San Google ci aiuta a trovare la soluzione ai molti dei problemi informatici; infatti durante la fase di compilazione dei moduli, un errore si manifesta, manco fosse Bettlejuice 🙁

 

 

diff -ur a/vmblock-only/shared/vm_assert.h b/vmblock-only/shared/vm_assert.h
— a/vmblock-only/shared/vm_assert.h    2013-10-18 21:56:12.000000000 +0400
+++ b/vmblock-only/shared/vm_assert.h    2014-03-24 13:59:49.716994000 +0400
@@ -256,7 +256,8 @@
__FILE__, __LINE__, __FUNCTION__, \
_fix))
#else
–   #define DEPRECATED(_fix) do {} while (0)
+    #undef DEPRECATED /* in <linux/printk.h> since 3.14.0 */
+    #define DEPRECATED(_fix) do {} while (0)
#endif

diff -ur a/vmci-only/shared/vm_assert.h b/vmci-only/shared/vm_assert.h
— a/vmci-only/shared/vm_assert.h    2013-10-18 21:56:12.000000000 +0400
+++ b/vmci-only/shared/vm_assert.h    2014-03-24 13:59:14.281994000 +0400
@@ -256,7 +256,8 @@
__FILE__, __LINE__, __FUNCTION__, \
_fix))
#else
–   #define DEPRECATED(_fix) do {} while (0)
+    #undef DEPRECATED /* in <linux/printk.h> since 3.14.0 */
+    #define DEPRECATED(_fix) do {} while (0)
#endif

diff -ur a/vmmon-only/include/vm_assert.h b/vmmon-only/include/vm_assert.h
— a/vmmon-only/include/vm_assert.h    2013-10-18 23:11:54.000000000 +0400
+++ b/vmmon-only/include/vm_assert.h    2014-03-24 14:00:03.940994000 +0400
@@ -256,7 +256,8 @@
__FILE__, __LINE__, __FUNCTION__, \
_fix))
#else
–   #define DEPRECATED(_fix) do {} while (0)
+    #undef DEPRECATED /* in <linux/printk.h> since 3.14.0 */
+    #define DEPRECATED(_fix) do {} while (0)
#endif

diff -ur a/vmmon-only/linux/driver.c b/vmmon-only/linux/driver.c
— a/vmmon-only/linux/driver.c    2013-10-28 02:31:11.000000000 +0400
+++ b/vmmon-only/linux/driver.c    2014-03-24 13:48:23.959994000 +0400
@@ -1338,7 +1338,9 @@
*—————————————————————————–
*/

-__attribute__((always_inline)) static Bool
+#include <linux/compiler-gcc.h>
+
+__always_inline static Bool
LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max – TSC min
{
TSCDelta tscDelta;
diff -ur a/vmnet-only/filter.c b/vmnet-only/filter.c
— a/vmnet-only/filter.c    2013-10-18 23:11:55.000000000 +0400
+++ b/vmnet-only/filter.c    2013-12-04 01:15:21.000000000 +0400
@@ -27,6 +27,7 @@
#include “compat_module.h”
#include <linux/mutex.h>
#include <linux/netdevice.h>
+#include <linux/version.h>
#if COMPAT_LINUX_VERSION_CHECK_LT(3, 2, 0)
#   include <linux/module.h>
#else
@@ -203,7 +204,11 @@
#endif

static unsigned int
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
VNetFilterHookFn(unsigned int hooknum,                 // IN:
+#else
+VNetFilterHookFn(const struct nf_hook_ops *ops,        // IN:
+#endif
#ifdef VMW_NFHOOK_USES_SKB
struct sk_buff *skb,                  // IN:
#else
@@ -252,7 +257,12 @@

/* When the host transmits, hooknum is VMW_NF_INET_POST_ROUTING. */
/* When the host receives, hooknum is VMW_NF_INET_LOCAL_IN. */
–   transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
+    transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
+#else
+    transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
+#endif

packetHeader = compat_skb_network_header(skb);
ip = (struct iphdr*)packetHeader;
diff -ur a/vmnet-only/vm_assert.h b/vmnet-only/vm_assert.h
— a/vmnet-only/vm_assert.h    2013-10-18 23:11:55.000000000 +0400
+++ b/vmnet-only/vm_assert.h    2014-03-24 14:00:31.691994000 +0400
@@ -256,7 +256,8 @@
__FILE__, __LINE__, __FUNCTION__, \
_fix))
#else
–   #define DEPRECATED(_fix) do {} while (0)
+    #undef DEPRECATED /* in <linux/printk.h> since 3.14.0 */
+    #define DEPRECATED(_fix) do {} while (0)
#endif

diff -ur a/vsock-only/shared/vm_assert.h b/vsock-only/shared/vm_assert.h
— a/vsock-only/shared/vm_assert.h    2013-10-18 21:56:12.000000000 +0400
+++ b/vsock-only/shared/vm_assert.h    2014-03-24 14:00:58.855994000 +0400
@@ -256,7 +256,8 @@
__FILE__, __LINE__, __FUNCTION__, \
_fix))
#else
–   #define DEPRECATED(_fix) do {} while (0)
+    #undef DEPRECATED /* in <linux/printk.h> since 3.14.0 */
+    #define DEPRECATED(_fix) do {} while (0)
#endif