Skip to content

Instantly share code, notes, and snippets.

View rngadam's full-sized avatar
💭
coderbunker.ca

Ricky Ng-Adam rngadam

💭
coderbunker.ca
View GitHub Profile
@rngadam
rngadam / gist:2760600
Created May 21, 2012 04:50
reproducing the wifi dongle problem
root@lophilo1:~#
usb 1-2: new high-speed USB device number 2 using atmel-ehci
usb 1-2: New USB device found, idVendor=0bda, idProduct=8176
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2: Product: 802.11n WLAN Adapter
usb 1-2: Manufacturer: Realtek
usb 1-2: SerialNumber: 00e04c000001
rtl8192cu: rtl8192cu: Chip version 0x10
rtl8192cu: MAC address: e8:4e:06:02:c1:ef
rtl8192cu: Board Type 0
@rngadam
rngadam / gist:2760605
Created May 21, 2012 04:52
wifi dongle: without wpa_supplicant
About interactions with USB flash drive, if I don't activate
wpa_supplicant, everything seems to be fine:
usb 1-2: New USB device found, idVendor=05e3, idProduct=0723
usb 1-2: New USB device strings: Mfr=3, Product=4, SerialNumber=2
usb 1-2: Product: USB Storage
usb 1-2: Manufacturer: Generic
usb 1-2: SerialNumber: 000000009454
@rngadam
rngadam / gist:2761125
Created May 21, 2012 08:13
Kernel crashes when USB gadget networking function is turned on.
at91_ohci at91_ohci: can't request overcurrent gpio 0
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 2
at91_ohci at91_ohci: irq 22, io mem 0x00700000
Unable to handle kernel NULL pointer dereference at virtual address 0000000c
pgd = c0004000
[0000000c] *pgd=00000000
Internal error: Oops: 5 [#1] ARM
Modules linked in:
CPU: 0 Not tainted (3.4.0-rc6+ #10)
@rngadam
rngadam / gist:2766920
Created May 22, 2012 05:55
initialization and disconnection
[ 112.218837] usbcore: registered new interface driver usbserial
[ 112.218862] USB Serial support registered for generic
[ 112.218937] usbcore: registered new interface driver usbserial_generic
[ 112.218939] usbserial: USB Serial Driver core
[ 112.237240] USB Serial support registered for FTDI USB Serial Device
[ 112.237534] ftdi_sio 2-1.1.4.1:1.0: FTDI USB Serial Device converter detected
[ 112.237598] usb 2-1.1.4.1: Detected FT2232H
[ 112.237604] usb 2-1.1.4.1: Number of endpoints 2
[ 112.237609] usb 2-1.1.4.1: Endpoint 1 MaxPacketSize 512
[ 112.237614] usb 2-1.1.4.1: Endpoint 2 MaxPacketSize 512
@rngadam
rngadam / gist:2768258
Created May 22, 2012 10:43
Lophilo OS (Debian Wheezy) on Lophilo Tabby with Linux Kernel 3.4
Booting Linux on physical CPU 0
Linux version 3.4.0-rc7+ (rngadam@rngadam-think) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #4 Tue May 22 15:04:54 CST 2012
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Lophilo
Memory policy: ECC disabled, Data cache writeback
AT91: Detected soc type: at91sam9g45
AT91: Detected soc subtype: at91sam9m10
AT91: sram at 0x300000 of 0x10000 mapped at 0xfef68000
Clocks: CPU 400 MHz, master 133 MHz, main 12.000 MHz
@rngadam
rngadam / gist:2772970
Created May 23, 2012 02:43
Output of connecting the wifi header to 3.4rc7
usb 1-2: new high-speed USB device number 2 using atmel-ehci
hub 1-0:1.0: unable to enumerate USB device on port 2
usb 2-2: new full-speed USB device number 2 using at91_ohci
usb 2-2: not running at top speed; connect to a high speed hub
usb 2-2: New USB device found, idVendor=0bda, idProduct=8176
usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-2: Product: 802.11n WLAN Adapter
usb 2-2: Manufacturer: Realtek
usb 2-2: SerialNumber: 00e04c000001
cfg80211: Calling CRDA to update world regulatory domain
@rngadam
rngadam / gist:2773000
Created May 23, 2012 02:53
dpkg -L firmware-realtek
root@lophilo1:~# dpkg -L firmware-realtek
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/firmware-realtek
/usr/share/doc/firmware-realtek/changelog.gz
/usr/share/doc/firmware-realtek/copyright
/usr/share/bug
/usr/share/bug/firmware-realtek
@rngadam
rngadam / gist:2773005
Created May 23, 2012 02:54
inserting wifi with firmware
root@lophilo1:~# usb 1-2: new high-speed USB device number 3 using atmel-ehci
usb 1-2: New USB device found, idVendor=0bda, idProduct=8176
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2: Product: 802.11n WLAN Adapter
usb 1-2: Manufacturer: Realtek
usb 1-2: SerialNumber: 00e04c000001
cfg80211: Calling CRDA to update world regulatory domain
rtl8192cu: Chip version 0x10
rtl8192cu: MAC address: e8:4e:06:02:c1:ef
rtl8192cu: Board Type 0
@rngadam
rngadam / gist:2773011
Created May 23, 2012 02:57
dhclient wlan0 -> kernel Oops
root@lophilo1:~# dhclient wlan0
rtl8192cu: MAC auto ON okay!
rtl8192cu: Tx queue select: 0x05
------------[ cut here ]------------
kernel BUG at /home/rngadam/lophilo/upstream/linux/arch/arm/include/asm/dma-mapping.h:321!
Internal error: Oops - BUG: 0 [#1] ARM
Modules linked in: rtl8192cu rtl8192c_common rtlwifi mac80211 cfg80211 nls_cp437 [last unloaded: cfg80211]
CPU: 0 Not tainted (3.4.0-rc7+ #5)
PC is at usb_hcd_map_urb_for_dma+0x388/0x398
LR is at usb_hcd_map_urb_for_dma+0xac/0x398
@rngadam
rngadam / gist:2785794
Created May 25, 2012 04:35
rtl8192cu kernel crash at boot.
Starting new kernel
Bye!
Booting Linux on physical CPU 0
Linux version 3.4.0-rc7+ (rngadam@rngadam-think) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #10 Fri May 25 12:04:40 CST 2012
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Lophilo
Memory policy: ECC disabled, Data cache writeback
AT91: Detected soc type: at91sam9g45
AT91: Detected soc subtype: at91sam9m10