NeilNjae
Posts: 16
Joined: Tue Apr 03, 2012 9:44 am
Contact: Website

Re: Debian ARM on Raspberry Pi

Thu Apr 12, 2012 8:35 pm

@GizmoB73: I've run into the same problem with trying to build the module for my wifi dongle. It seems that RPi uses a non-standard kernel, so the standard Debian package don't match up.

I've got a copy of the RPi's custom kernel source, and I'm working on how to use that to set up the kernel headers needed for driver compilation. I should have some results in a day or two. (Unless, that is, some kind soul wants to step in and tell us both how to set it up..?)

GizmoB73
Posts: 80
Joined: Fri Jan 27, 2012 12:51 pm

Re: Debian ARM on Raspberry Pi

Thu Apr 12, 2012 8:44 pm

NeilNjae said:


@GizmoB73: I've run into the same problem with trying to build the module for my wifi dongle. It seems that RPi uses a non-standard kernel, so the standard Debian package don't match up.

I've got a copy of the RPi's custom kernel source, and I'm working on how to use that to set up the kernel headers needed for driver compilation. I should have some results in a day or two. (Unless, that is, some kind soul wants to step in and tell us both how to set it up..?)



Thanks for your reply, it's good to hear I am not alone and perhaps this isn't such a dumb noob question after all...

I will look forward to your results, or a response from someone who has beaten this already.

Thanks

pdp7
Posts: 31
Joined: Sat Mar 03, 2012 12:49 am
Contact: Website

Re: Debian ARM on Raspberry Pi

Fri Apr 13, 2012 7:37 am

Hi - I'm similarly stuck with getting wifi to work with a beta Pi board (using a rtl8187 device). I have the Debian 6 image (debian6-17-02-2012.img) but it doesn't seem to include any wireless kernel modules:
pi@raspberrypi:~$ uname -a
Linux raspberrypi 3.1.9+ #41 Mon Feb 13 18:50:12 GMT 2012 armv6l GNU/Linux
pi@raspberrypi:~$ cat /etc/issue
Debian GNU/Linux 6.0 \n \l

pi@raspberrypi:~$ find /lib/modules/3.1.9+/kernel/ |grep wireless
pi@raspberrypi:~$ find /lib/modules/3.1.9+/kernel/ |grep net
/lib/modules/3.1.9+/kernel/net
/lib/modules/3.1.9+/kernel/net/key
/lib/modules/3.1.9+/kernel/net/key/af_key.ko
<snip>

There are a handful of 'net' modules but no 'net/wireless' at all. Does anyone have a Debian image where wireless drivers are present?

I grabbed the RPi kernel source from github and cross compiled it. This yielded the module I needed: drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko. I copied that to:

/lib/modules/3.1.9+/kernel/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko

and ran depmod. Afterwhich I ran modprobe:

pi@raspberrypi:~$ sudo modprobe rtl8187
FATAL: Error inserting rtl8187 (/lib/modules/3.1.9+/kernel/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko): Invalid module format

There was also this related error in dmesg:

rtl8187: disagrees about version of symbol module_layout

modinfo shows the vermagic is "3.1.9+ mod_unload modversions ARMv6". This matched what the existing .ko's in the Debian image. There is also srcversion which I'm still trying to understand what impact it has.

Sorry for the long winded post. I would be very thankful to hear details from anyone who got a wireless adapter working with Debian on the Pi.

Thanks!
Drew 

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Debian ARM on Raspberry Pi

Fri Apr 13, 2012 9:07 am

According to

https://github.com/raspberrypi/linux/bl ... _defconfig

CONFIG_RTL8187=m
So if you install git and
git clone git://github.com/raspberrypi/firmware.git
Backup your /boot and /lib/modules/whatever
and graft them from the git, you should have
that (you need the new firmware in /boot,
it defaults to 128 ram, perhaps rename arm192
to start.elf as well?)
reboot, then depmod, then reboot

pdp7
Posts: 31
Joined: Sat Mar 03, 2012 12:49 am
Contact: Website

Re: Debian ARM on Raspberry Pi

Fri Apr 13, 2012 4:09 pm

Thanks for the assistance.  I had compile the github kernel source by just running 'make config' and accepting all the default options, so maybe that is my problem.

I did go back after getting some advice and copied uncompressed /proc/config.gz on the Pi to .config and ran 'make oldconfig'.  However, this resulted in the RTL8187 being left out.  I would try to add it to the end of .config, but make seemed to ignore building it.

Anyways, my git clone just finished and I see that all the compiled modules are in there:afustini@lappy486:~/dev/rpi/firmware/modules/3.1.9+$ find |grep rtl8187.ko
./kernel/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko Thanks for pointing that out!Drew

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Debian ARM on Raspberry Pi

Sat Apr 14, 2012 5:56 pm

Head's up -new Debian distro on the downloads page!

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Omer
Posts: 4
Joined: Wed Apr 11, 2012 12:33 pm
Contact: Website

Re: Debian ARM on Raspberry Pi

Sat Apr 14, 2012 8:52 pm

Hi folks,

I've managed to get wireless working on the board (with a zd1211 based adapter) with the new debian image and posted a little 'how-to' here.

Hope this comes in handy for people receiving their boards soon!

Cheers,

Omer.

Omer
Posts: 4
Joined: Wed Apr 11, 2012 12:33 pm
Contact: Website

Re: Debian ARM on Raspberry Pi

Sat Apr 14, 2012 9:05 pm

[I can"t find a relevant sub-forum to post this so mods: please feel free to move this as you see fit]

Trying to get audio out from the stereo jack, I seem to have run into a problem with  the snd_bcm2835 kernel module.

Thinking out loud… Here'"s the log of my experiment:

Install alsa and mplayer

$ sudo apt-get install alsa mplayer

Play an audio file with mplayer

$ mplayer 108. Blackwater Park.mp3
Creating config file: /home/pi/.mplayer/config
MPlayer 1.0rc3-4.4.4 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/pi/108. Blackwater Park.mp3.
Audio only file format detected.
Clip info:
Title: Blackwater Park
Artist: Opeth
Album: Blackwater Park
Year: 2002
Comment:
Genre: Unknown
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
socket(): Address family not supported by protocol
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver "pulse"
[AO_ALSA] alsa-lib: confmisc.c:768:(parse_card) cannot find card "0"
[AO_ALSA] alsa-lib: conf.c:4170:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:4170:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[AO_ALSA] alsa-lib: confmisc.c:1251:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:4170:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[AO_ALSA] alsa-lib: conf.c:4649:(snd_config_expand) Evaluate error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2190:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver "alsa"
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO SDL] using aalib audio driver.
[AO SDL] Unable to open audio: No available audio device
Failed to initialize audio driver "sdl:aalib"
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video

Exiting... (End of file)

Looks like no sound device is detected, let"s locate one.

# alsactl init
alsactl: init:1743: No soundcards found...

Hmm, no kernel modules loaded for audio perhaps?

# lsmod
Module Size Used by
fuse 49036 1
aes_generic 34484 2
arc4 764 2
zd1211rw 40444 0
mac80211 171628 1 zd1211rw
cfg80211 123084 2 zd1211rw,mac80211

Right, do we actually have a kernel module for audio?

$ modprobe -l
...
kernel/sound/arm/snd-bcm2835.ko
...

Cool! Where is the actual .ko?

$ locate snd-bcm2835.ko
/lib/modules/3.1.9+/kernel/sound/arm/snd-bcm2835.ko

Let"s load it.

# insmod /lib/modules/3.1.9+/kernel/sound/arm/snd-bcm2835.ko
insmod: error inserting "/lib/modules/3.1.9+/kernel/sound/arm/snd-bcm2835.ko": -1 Unknown symbol in module

dmesg says:

snd_bcm2835: Unknown symbol snd_ctl_add (err 0)
snd_bcm2835: Unknown symbol snd_pcm_new (err 0)
snd_bcm2835: Unknown symbol snd_card_register (err 0)
snd_bcm2835: Unknown symbol snd_card_free (err 0)
snd_bcm2835: Unknown symbol snd_pcm_lib_preallocate_pages_for_all (err 0)
snd_bcm2835: Unknown symbol snd_ctl_new1 (err 0)
snd_bcm2835: Unknown symbol snd_pcm_lib_malloc_pages (err 0)
snd_bcm2835: Unknown symbol snd_pcm_lib_ioctl (err 0)
snd_bcm2835: Unknown symbol snd_pcm_lib_free_pages (err 0)
snd_bcm2835: Unknown symbol snd_pcm_set_ops (err 0)
snd_bcm2835: Unknown symbol snd_device_new (err 0)
snd_bcm2835: Unknown symbol snd_card_create (err 0)
snd_bcm2835: Unknown symbol snd_pcm_period_elapsed (err 0)
snd_bcm2835: Unknown symbol snd_pcm_hw_constraint_step (err 0)
snd_bcm2835: Unknown symbol snd_pcm_format_width (err 0)


So it looks like snd_bcm2835 is broken.

It might be that I am blind, but I can"t seem to find any information regarding that particular module.

Any ideas?

Cheers,

Omer.

asb
Forum Moderator
Forum Moderator
Posts: 853
Joined: Fri Sep 16, 2011 7:16 pm
Contact: Website

Re: Debian ARM on Raspberry Pi

Sat Apr 14, 2012 9:46 pm

Omer, did you try modprobe? insmod won"t handle module dependencies.

I haven"t tried the precise image put up for download, but the following works for me:sudo modprobe snd-bcm2835
sudo apt-get install alsa-utils
cat /dev/urandom | aplay
Sound should come out through either the 3.5mm jack or HDMI (it"s audo-detected, it will prefer HDMI I believe if your display claims support). If you need to adjust that, you can use amixer cset numid=3. This script throws up a dialog to change it:#!/bin/sh

CUR_OUTPUT=$(amixer cget numid=3 | tail -n1 | sed -e "s/[^[0-9]]*//g")

NEW_OUTPUT=$(zenity --list --title="Choose audio output (currently $CUR_OUTPUT)"
--column="Setting" --column="Description"
0 "Auto"
1 "Audio jack"
2 "HDMI passthrough")
RET=$?

if [ $RET -eq 0 ]; then
amixer cset numid=3 $NEW_OUTPUT
fi

EditArghh, wretched forum insists on stripping the backslash character in the code above. Ther eshould be a backslash after each of the lines from the NEW_OUTPUT up to and including 1 "Audio jack". In fact...http://pastebin.com/bxHnQnKz

pdp7
Posts: 31
Joined: Sat Mar 03, 2012 12:49 am
Contact: Website

Re: Debian ARM on Raspberry Pi

Sat Apr 14, 2012 10:14 pm

Thanks for the heads up, Omer! Looks like my RTL8187-based 802.11g adapter should now work. Although, it doesn't seem to have r8712u which is what my 802.11n adapters use. Fedora did have that (but also freaked out with USB hub). I look forward to trying out this new image tomorrow! afustini@lappy486:/mnt/debian_pi/lib/modules/3.1.9+/kernel/drivers$ find . -type d |grep wireless./net/wireless
./net/wireless/rtlwifi
./net/wireless/rtlwifi/rtl8192cu
./net/wireless/rtlwifi/rtl8192c
./net/wireless/zd1211rw
./net/wireless/ath
./net/wireless/ath/carl9170
./net/wireless/ath/ath9k
./net/wireless/libertas_tf
./net/wireless/rtl818x
./net/wireless/rtl818x/rtl8187
./net/wireless/libertas
./net/wireless/mwifiex
./net/wireless/b43legacy
./net/wireless/iwmc3200wifi
./net/wireless/b43
./net/wireless/p54
./net/wireless/hostap
./net/wireless/wl1251
./net/wireless/rt2x00

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Debian ARM on Raspberry Pi

Sat Apr 14, 2012 10:33 pm

sudo modprobe snd-bcm2835
Add user to audio group so you don"t have to sudo

Omer
Posts: 4
Joined: Wed Apr 11, 2012 12:33 pm
Contact: Website

Re: Debian ARM on Raspberry Pi

Sat Apr 14, 2012 10:41 pm

asb said:


Omer, did you try modprobe? insmod won"t handle module dependencies.


Ah. You are absolutely right, should"ve used modprobe!

[Also: probably should have waited until I had some sleep before accusing the kernel module of being broken ]

asb said:


I haven"t tried the precise image put up for download, but the following works for me:sudo modprobe snd-bcm2835
sudo apt-get install alsa-utils
cat /dev/urandom | aplay

That kills my "Pi



Here"s what happens: pi@raspberrypi:~$ sudo modprobe snd-bcm2835pi@raspberrypi:~$ lsmod
Module Size Used by
snd_bcm2835 15304 0
snd_pcm 49240 1 snd_bcm2835
snd_seq 35080 0
snd_timer 13560 2 snd_pcm,snd_seq
snd_seq_device 3684 1 snd_seq
snd 31624 5 snd_bcm2835,snd_pcm,snd_seq,snd_timer,snd_seq_device
snd_page_alloc 2660 1 snd_pcm
fuse 49036 1 pi@raspberrypi:~$ sudo cat /dev/urandom | aplay
aplay: main:654: audio open error: Operation not permitted # So maybe set output before aplay? pi@raspberrypi:~$ sudo amixer cset numid=3 1

Message from syslogd@raspberrypi at Apr 14 22:35:23 ...
kernel:Internal error: Oops: 17 [#1]

Message from syslogd@raspberrypi at Apr 14 22:35:23 ...
kernel:Process amixer (pid: 1069, stack limit = 0xcac8a268)

Message from syslogd@raspberrypi at Apr 14 22:35:23 ...
kernel:Stack: (0xcac8bdd0 to 0xcac8c000)

<snip> 
..and I have to power-cycle the poor thing to get it running again.

(I must admit I usually let my distro handle audio for me so I am not an alsa expert.)

Any ideas?

Thanks.

Omer
Posts: 4
Joined: Wed Apr 11, 2012 12:33 pm
Contact: Website

Re: Debian ARM on Raspberry Pi

Sat Apr 14, 2012 10:47 pm

pepedog said:


Add user to audio group so you don"t have to sudo



Thanks, I'll keep that in mind!

GizmoB73
Posts: 80
Joined: Fri Jan 27, 2012 12:51 pm

Re: Debian ARM on Raspberry Pi

Sun Apr 15, 2012 9:48 am

Hi Drew,

Hope you are having more luck with the Wireless setup than me?

I have been following Omer's wifi 'How To' which is excellent, but I have a different adapter and I guess YMMV applies here.

I have been banging my head on a wall for the last four hours without any luck using the new debian image.

I have tried two different adapters, with different but both unsuccessful results.

The Edimax EW-7811Un which seems to use the rtl8192cu drivers that I loaded via the $ sudo apt-get install firmware-realtek command.

This is definitely further than I got with the previous debian image.

Despite this, I cannot seem to get a wlan0 interface when the adapter is plugged in.

I also seem to get a long timeout (about 3 minutes I guess) with this message:

cfg80211: calling crda to update world regulatory domain

Which seems to fail in the end.

For me, the first sign of a problem is when inserting the adapter after installing the realtek drivers.  When I try $ lsusb it just seems to hang.

When I try $ dmesg I get:

...

usb 1-1.2: new high speed USB device number 5 using dwc_otg
usb 1-1.2: New USB device found, idVendor=7392, idProduct=7811
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2: Product: 802.11n WLAN Adapter
usb 1-1.2: Manufacturer: Realtek
usb 1-1.2: SerialNumber: 00e04c000001
cfg80211: Calling CRDA to update world regulatory domain

and that's the end of the dmesg.

I have also tried a Zyxel NWD2105.

This uses use the rt2870 chipset

I installed the drivers with $ apt-get install firmware-ralink

it seems to use the rt2800 driver according to the lsmod.

With this, after a reboot, I can usually get a wlan0 interface but have issues with the wpa supplicant.

When the interface starts I get:

wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1

This is usually followed by a kernel panic shortly afterwards.

I'm going to have a rest now, but hope you have more luck.

Gary.

ferrymanr
Posts: 61
Joined: Fri Mar 16, 2012 11:09 pm

Re: Debian ARM on Raspberry Pi

Sun Apr 15, 2012 3:08 pm

I notice the new Debian6-13-04-2012 is less than half the size of the previous release.  I can't believe the code has been made more compact so what have we lost?

Richard

User avatar
grumpyoldgit
Posts: 1452
Joined: Thu Jan 05, 2012 12:20 pm

Re: Debian ARM on Raspberry Pi

Sun Apr 15, 2012 3:42 pm

In what way? The new image, at 1.9GB is about the same size as the previous one.

NeilNjae
Posts: 16
Joined: Tue Apr 03, 2012 9:44 am
Contact: Website

Re: Debian ARM on Raspberry Pi

Sun Apr 15, 2012 4:26 pm

Thanks for the new Debian image! The updated version, with driver modules, works a treat.

@Omer, thanks for the howto. Very useful. It was slightly different to get the WNA1100 dongle working. Here's what I did to get it going:

Unfortunately, the firmware required is in the squeeze-backports repo, so that needs to be added to the sources list. Edit the first two lines of /etc/apt/sources.list to read:

deb http://ftp.uk.debian.org/debian/ squeeze main non-freedeb http://backports.debian.org/debian-backports squeeze-backports main non-free
Then update apt and install the Atheros firmware from backports:
sudo aptitude updatesudo aptitude -t squeeze-backports install firmware-atheros

You can then follow the rest of the instructions from @Omer's howto about configuring the dongle. Alternatively, you could install and use wicd, which is probably more useful if you're moving the RPi from network to network.

NeilNjae
Posts: 16
Joined: Tue Apr 03, 2012 9:44 am
Contact: Website

Re: Debian ARM on Raspberry Pi

Sun Apr 15, 2012 5:13 pm

One other thing I had to do with the Debian image was resize it for the 8Gb SD cards I'm using. These are the steps I went through.

I did this on Ubuntu, with the card as /dev/sdd.

Start with the SD card image written to the card, in a card reader, but with nothing mounted.


$ sudo parted /dev/sdd

(parted) unit chs

(parted) print


(this gave me:)

Model: Generic- SD/MMC (scsi)
Disk /dev/sdd: 121535,3,31
Sector size (logical/physical): 512B/512B
BIOS cylinder,head,sector geometry: 121536,4,32. Each cylinder is 65.5kB.
Partition Table: msdos

Number Start End Type File system Flags
1 16,0,0 1215,3,31 primary fat32 lba
2 1232,0,0 26671,3,31 primary ext4
3 26688,0,0 29743,3,31 primary linux-swap(v1)

(Then carry on...)


(parted) move 3 118479,0,0

(parted) rm 2

(parted) mkpart primary 1232,0,0 118478,3,31

(parted) quit

$ sudo e2fsck -f /dev/sdd2


(allow it to add lost-and-found)


$ sudo resize2fs /dev/sdd2


Then put the card in the RPi and boot. You end up with a 7Gb partition...

$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 94M 4.0K 94M 1% /lib/init/rw
udev 10M 168K 9.9M 2% /dev
tmpfs 94M 0 94M 0% /dev/shm
rootfs 7.1G 1.3G 5.4G 20% /
/dev/mmcblk0p1 75M 28M 48M 37% /boot

ferrymanr
Posts: 61
Joined: Fri Mar 16, 2012 11:09 pm

Re: Debian ARM on Raspberry Pi

Sun Apr 15, 2012 5:42 pm

Grumpyoldgit said:


In what way? The new image, at 1.9GB is about the same size as the previous one.


I was looking at the size of the zip archive, not the size of the filesystem created.  This suggests that there was either less data to compress than in the earlier version or that compression ratio has miraculously improved.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26408
Joined: Sat Jul 30, 2011 7:41 pm

Re: Debian ARM on Raspberry Pi

Sun Apr 15, 2012 6:06 pm

ferrymanr said:


Grumpyoldgit said:


In what way? The new image, at 1.9GB is about the same size as the previous one.


I was looking at the size of the zip archive, not the size of the filesystem created.  This suggests that there was either less data to compress than in the earlier version or that compression ratio has miraculously improved.


Its possible that the data on the image was more easily compressible - no miracles required.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Debian ARM on Raspberry Pi

Sun Apr 15, 2012 6:24 pm

I suppose that the obvious course of action would be to d/l the new image, mount it (the /dev/sda2 partition) on a Linux box and compare the size used to that of the size used in the old image.  Surely, someone could do that and report back...
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5501
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Debian ARM on Raspberry Pi

Sun Apr 15, 2012 7:09 pm

ferrymanr said:


I notice the new Debian6-13-04-2012 is less than half the size of the previous release.  I can't believe the code has been made more compact so what have we lost?

Richard



After releasing the last image a few posters commented that running "apt-get clean" would clear out the apt-get cache, which roughly halves the size of the compressed file. (Thanks for the suggestion!)

User avatar
MoonTEC
Posts: 28
Joined: Sat Aug 20, 2011 8:20 am
Location: Lithuania
Contact: Website

Re: Debian ARM on Raspberry Pi

Sun Apr 15, 2012 8:53 pm

JamesH said:


Its possible that the data on the image was more easily compressible - no miracles required.


Maybe now free space for better image compression was zero filled?

dd if=/dev/zero of=/erase_me.txt bs=1M count=2048

rm erase_me.txt

And as seen on .bash_history, apt cache was cleaned(makes about 320MB free space)...

sudo apt-get clean

NeilNjae
Posts: 16
Joined: Tue Apr 03, 2012 9:44 am
Contact: Website

Re: Debian ARM on Raspberry Pi

Sun Apr 15, 2012 9:01 pm

Oh, in case anyone's interested, there seems to be a bug in the Apache2 package installer that doesn't add the www-data group for the www-data (Apache) user. Fix it with


$ sudo groupadd www-data

$ sudo usermod -a -G www-data www-data


after installation, then restart Apache:


$ sudo service apache2 restart


I don't know if this is peculiar to RPi, or is an upstream bug.

Gooseman
Posts: 19
Joined: Mon Apr 16, 2012 5:08 pm

Re: Debian ARM on Raspberry Pi

Mon Apr 16, 2012 6:34 pm

GizmoB73 said:


Hi Drew,

Hope you are having more luck with the Wireless setup than me?

I have been following Omer's wifi 'How To' which is excellent, but I have a different adapter and I guess YMMV applies here.

I have been banging my head on a wall for the last four hours without any luck using the new debian image.

I have tried two different adapters, with different but both unsuccessful results.

The Edimax EW-7811Un which seems to use the rtl8192cu drivers that I loaded via the $ sudo apt-get install firmware-realtek command.

This is definitely further than I got with the previous debian image.

Despite this, I cannot seem to get a wlan0 interface when the adapter is plugged in.

I also seem to get a long timeout (about 3 minutes I guess) with this message:

cfg80211: calling crda to update world regulatory domain

Which seems to fail in the end.

For me, the first sign of a problem is when inserting the adapter after installing the realtek drivers.  When I try $ lsusb it just seems to hang.

When I try $ dmesg I get:

...

usb 1-1.2: new high speed USB device number 5 using dwc_otg
usb 1-1.2: New USB device found, idVendor=7392, idProduct=7811
usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.2: Product: 802.11n WLAN Adapter
usb 1-1.2: Manufacturer: Realtek
usb 1-1.2: SerialNumber: 00e04c000001
cfg80211: Calling CRDA to update world regulatory domain

and that's the end of the dmesg.


Hi all,

same problem here with a Netgear N150 (RTL8188CUS chipset).. any ideas?

Achim

Return to “Debian”