Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pandaboard questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 5531
Location: ~Brussels - Belgique

PostPosted: Sun Aug 21, 2011 12:50 pm    Post subject: Pandaboard questions Reply with quote

Hello,

I just received a Pandaboard and managed to install Gentoo thanks to armin76's Gentoo documentation.

I have still some questions:
1. Is it possible to boot directly from a USB disk drive? For now, I use a small SD card with U-Boot and the kernel, with the root on /dev/sda1
2. What CFLAGS can I use? I don't know if those in the generic armv7l could be m re adapted to the OMAP4 processor (-march=native?)
3. I see the .config provided by armin76 don't use modules. Can I use modules for drivers not necessary for the boot process?
4. I use a DVI display with a HDMI->DVI adapter and the screen resolution is really low (640x480 or so). Is it possible to have a higher resolution? (this quesiton is less important because my Pandaboard will be headless).

Thanks in advance for your help.
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
robm
n00b
n00b


Joined: 20 Jan 2003
Posts: 10
Location: Boston

PostPosted: Mon Aug 29, 2011 8:27 pm    Post subject: Reply with quote

I've just got a pandaboard as well and maybe I can help a bit.

1. The USB disk performance is so bad due to a kernel bug that the sdcard is actually faster for me. Looks like the solution has been identified recently, at least.

2. For CFLAGS, I'm using
Code:
-march=armv7-a -mfpu=neon -mfloat-abi=softfp

The hardfp ABI apparently reduces binary size and increases performance, but binary blob drivers compiled with softfp (like the PowerVR graphics driver) will fail because the ABIs can't be mixed. Supposedly TI is going to release hardfp versions at some point. But, I can't get hardware accelerated video to work anyway, so I might try a hardfp system rebuild.

3. I've compiled to allow modules and they do work.

4. I'm using a straight HDMI connection and it does 1920x1080 just fine. Maybe X can't get the EDID codes through the HDMI-DVI adapter so maybe try modelines in the xorg.conf?
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 5531
Location: ~Brussels - Belgique

PostPosted: Tue Aug 30, 2011 7:06 am    Post subject: Reply with quote

Hello,

Thank you for your reply.

- USB: I have quite slow SD cards, so I prefer staying on USB for the moment.
- CFLAGs : I will use XORG drivers, so I won't have any blob, except the firmware for the Wifi card

And I don't have sound, I don't find a simple .config working for the moment. At least vanilla "make omap2plus_defconfig" or configs provided by armin76 and gr3h0und don't have sound support.

I downloaded the documentation and will try to activate all needed modules. Once I will have the smaller working .config, I will post it.
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
robm
n00b
n00b


Joined: 20 Jan 2003
Posts: 10
Location: Boston

PostPosted: Tue Aug 30, 2011 4:41 pm    Post subject: Reply with quote

I've only been able to get sound over the HDMI connection, which won't work for you since you're using the HDMI-DVI adapter. This is what my hardware config shows:
Code:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SDP4430 [SDP4430], device 0: Multimedia null-codec-dai-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 2: Voice null-codec-dai-2 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 3: Tone Playback null-codec-dai-3 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 4: VIB-DL null-codec-dai-4 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 5: MODEM null-codec-dai-5 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 6: Multimedia null-codec-dai-6 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 7: Multimedia FM Digital-7 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 8: Headset Playback twl6040-dl1-8 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 10: HS Playback twl6040-dl1-10 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 12: HF Playback twl6040-dl2-12 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 13: Vibra twl6040-vib-13 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 14: BT Bluetooth-14 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 15: FM FM Digital-15 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SDP4430 [SDP4430], device 16: MODEM MODEM-16 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PandaHDMI [PandaHDMI], device 0: HDMI omap4-hdmi-audio-codec-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Using the following ~/.asoundrc:
Code:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 0
sound works over HDMI. But, changing the .asoundrc to anything using card 0, say:
Code:
defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 8
to try to output over the analog audio out produces:
Code:
mplayer test.wav
MPlayer SVN-r33094-4.4.5 (C) 2000-2011 MPlayer Team

Playing test.wav.
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[AO_ALSA] Playback open error: Invalid argument
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
and dmesg reports
Code:
asoc: no valid backend routes for PCM: SDP4430 Media


Here's my log and here's my kernel .config, although it's still mostly without modules.
Back to top
View user's profile Send private message
XavierMiller
Moderator
Moderator


Joined: 23 Jul 2004
Posts: 5531
Location: ~Brussels - Belgique

PostPosted: Tue Aug 30, 2011 5:01 pm    Post subject: Reply with quote

Thank you, Rob!

I will take a look on your braindump and config and if I succeed to have audio on jacks, I will give my .config
_________________
Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum