StreamBox Alix v.0.1

Last changed: 2009/05/13 01:06 

 

This revision is from 2009/02/07 14:59. You can Restore it.

ALIX 3C3 CODENAME SILVER_ALICE VERSION 0.1

http://nujus.net/~locusonus/dropbox/alejo/alix_pics_streambox/alix3c3_fondoblanco.jpg

Specifications of the Alix 3c3:

(an image map is here: http://www.flickr.com/photos/alejoduque/2768134486/)

CPU: 500 MHz AMD Geode LX800

DRAM: 256 MB DDR DRAM

Storage: CompactFlash socket

Power: DC jack or passive POE, min. 7V to max. 20V

Three LEDs

Expansion: 2 miniPCI slots, LPC bus

Connectivity: 1 Ethernet channel (Via VT6105M 10/100)

I/O: DB9 serial port, dual USB, VGA, audio headphone out / microphone in

RTC battery

Board size: 100 x 160 mm

Firmware: Award BIOS

Specifications for the streambox on the beagleboard will be developed here:

StreamBox Beagleboard

The process

Date Saturday 15, august, 2008

Fisrt step was to try to re-use the filesystem from the previuos alix board (redalix) hoping that the File System image i made in Nice could serve as a clone for this new boards, that will save a lot of time since i wont have to begin installing stuff from scratch.

IT DIDNT WORK !!

So, simple, i had to reinstall all from zero.. deboostrap debian to the CF card, install a new kernel, install X window system, have issued with the video, install kernel sources, compile a new custom kernel....

Date August 31 2008 3am

After an intense week of strembox work, im glad o report before september begins that:

-Finally i got it to boot my own customized kernel and the X window session.

-The alix 3c3 boots now into debian linux.

-It launches a window manager called xfce4 (it took 3 days debugging a kernel that could properly control the video card, all the linux images that are in the internet are for headless systems, mostly cause the device is too new and cause people that works with them intend mobility or low power so having a monitor is not on the list of things to have or carry. this boxes are used simply as wireless routers or firewalls). I tested 2 window managers (both are included in the latest image), DWM and XFCE4, the last one is the default one.

-sound card was configured via alsconf, it gave no problems whatsoever.

so, GUI works and mid-size window manager is installed (along with a lightweight one called DWM that will not be easy for the novice, right now one can either startx for dwm or startxfc4 for the friendly one, it will go to xfce4 automatically). All this with the spirit of allowing the user to open and see the patch (hoping s/he is versed on pd)

what im missing right now:

-(the usual) a simple amplified microphone... but, this should be the job of someone with the know-how in LS, i have still a lot of work on init scripts.

-beta testing the image, for this im ready to send this week a board to peter so he can help test the pd patch and comment on how things work for this "beta version"

Here below are some screenshots of the current status:

http://nujus.net/~locusonus/dropbox/alejo/alix_pics_streambox/desktop_alix.png

a first look at the desktop, we should add the icon to pd that now is located in the multimedia menu that appears with a right click.

http://nujus.net/~locusonus/dropbox/alejo/alix_pics_streambox/pd_alix_streaming_patch.png

few pages got sent, stream proved stable after i changed the oggcast~ buffer settings

and here is a short 5min video: http://vimeo.com/1650869 http://vimeo.com/1650869

Date Sep 1, 2008

Wireless card is installed, drivers are in place, i made stream tests yesterday with it. The box includes now a second streaming option via Darkice, but the default is via PureData and the oggcast~ object, that got me busy til i finally got to stop a glitch produced by the buffer setting of the original patch from locus sonus 2007.

Right now the box only makes dhcp requests on the wired cable automatically is my intention to fine tune few scripts, as we talked in VA one of them could take care of resolving IP's either with one (eth0) or the other (eth1), this can be easily tweaked remotely if the streambox is on a network that allows remote access (i also tested this yesterday ssh) or one can just send a new 2gig CF card with the improved version of the OS (operative system).

I decided to send you this one now so to cover terrain regarding the pd patch. you have by far sharper eye on that.

Many other things are there to be solved, this is just a release candidate that on my side proved stable.

Also, the box can stream using the Darkice software, withouth opening a GUI. So this streambox can stream with 2 diff methods, 2 different cards..right now is just set to eth0+pd

For the case of the paraboles it could be as simple as, eth1+any player (mpd, vlc, xmms, mplayer, etc)

Date Sept. 2

I just send the first box to Peter, I hope he gets it by friday.

Date Sept.3

im assembling box #2 and updating this wiki notes, This below is an image on how i decided this time to connect the pigtail for the antenna.

http://nujus.net/~locusonus/dropbox/alejo/alix_pics_streambox/alix_top.png

Date Sept.6

Is nice to know that the board arrived to the south of france, Peter just set it up replacing the machine that was streaming to the mountpoint /marseille_cap15.ogg perhaps the most stable of the streams in the locus sonus map, here an image he took with his mobile:

http://nujus.net/~locusonus/dropbox/alejo/alix_pics_streambox/alix_cap15.png

you can listen to the open microphone streaming from the box shown above by telling your VLC client to open this URL:

http://locus.creacast.com:9001/marseille_cap15.ogg

This was needed:

-add to the patch this:



[setxkbdmap fr(
|
|  [setxkbdmap en(
|  |
|  |
[shell]

-add to the patch a rutine to make a DHCP request before rebooting

The alix image has now few bash scripts to configure the network devices accordingly to the different situations of use. DCHP, Fixed IP or AD-HOC

Nov. 12 2008

The above things got integrated in the new alix image via the puredata patch that will be controlling some shell scripts and commands. This time i got rid of the shell object in favor or popen. Still the reconnect loop has to be fixed.

Ad-Hoc

4 alix computers ready for the Le Fresnoy workshop, any number of laptop computers can be added to share a wireless network called 'streambox' (on channel 1). Since Now the pd stream patch includes a basic netsend-netreceive system with one click on the patch interface one can set their mode for opening and connecting to other clients on a 2 way communication with one or many involved parties... there are also few new scripts that run from pd to configure the network accordingly.

Here is a simple image to show the basic network topology:

http://nujus.net/~locusonus/dropbox/alejo/lille/topology_lille.png

and here is the video: http://vimeo.com/2236743 to demo is use.

Nov. 19 Le Fresnoy

After getting tired of carrying a computer screen around to configure the boxes for the network in Le Fresnoy, i began loggin in remotely, something tested in Villa Arson but not really used, this chance i didnt use a linux host but OS X and x11 as you can see in the image below:

http://nujus.net/~locusonus/dropbox/alejo/xfwding_from_alix.png

the command, after enabling X forwarding on the alix (/etc/ssh/ssh_config) is this one:


ssh -Y user@ip

then one simple need to open puredata and get the result you can see above.

Nov. 24 Le Fresnoy aftermath:

-spotted the kernel bug that doma from bitnik had with this boards... the machine wont boot unless theres a screen connected.

FIXED

+found a cheap hardware hack bridging pins 12 and 5 on the video out connector. Now it boots without the need to attach a monitor

-install awesome instead of xfce4

(since we hardly needed or used the window manager, is clear we dont need xfce4 and can use something lighter like dwm or awesome.

TODO

-for the next version of the new flash image, i will also add an account for a user. right now we have them running as root and this is not only in terms of security but bad practice.

TODO

-consider and not forget testing the delay buffer in the pd audio settings.

-hardware wise fix tight the bolts

-network wise, assign a fixed IP to the wireless card and set it to ad-hoc mode. mark the box with this unique IP (as its ID). This will allow remote login and administration.

DONE!

-in the patch, fix the boxes to input own name for the stream, fix the auto reconnect along as the manual reconnect/disconnect.

-peter mention adding a compressor to the patch

-julien mention adding a test for the netsend/netreceive stuff that is already present.

-we tested a battery with the alix, it was at least 7hours streaming. 7.2amp/hours was the capacity of the battery,

-fix nfs bug

POTENTIAL SOLUTION: run fsck on the volume

December 01.2008

I got to boot the latest (leek&potato) puredyne kernel, at first i did a liveCD style install but since the card has no partitions it was a pain to modify the original pure:dyne configurations so i decided to just copy the kernel and its modules, modify grub accordingly and compare this kernel with the one i manually compiled to see if the rt (real time) label of the p:d project could benefit the alix processing power in terms of CPU cycles.

here is a screenshot of the alix running pure:dyne:

http://nujus.net/~locusonus/dropbox/alejo/alix_pics_streambox/puredyne_alix_color.png


|    ,---.,---..   .,---.    ,---.,---.,---..   .,---.
|    |   ||    |   |`---.    `---.|   ||   ||   |`---.
`---'`---'`---'`---'`---'    `---'`---'`   '`---'`---'

Some useful commands, in no particular order.



Backup: dd if=/dev/hda | gzip > /mnt/hdb1/system_drive_backup.img.gz
Restore: gzip -dc /mnt/hdb1/system_drive_backup.img.gz | dd of=/dev/hda




/etc/inittab:

    1:2345:respawn:/sbin/mingetty --autologin USER tty1




streambox:~# lspci 
00:01.0 Host bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] Host Bridge (rev 33)
00:01.1 VGA compatible controller: Advanced Micro Devices [AMD] Geode LX Video
00:01.2 Entertainment encryption device: Advanced Micro Devices [AMD] Geode LX AES Security Block
00:09.0 Ethernet controller: VIA Technologies, Inc. VT6105M [Rhine-III] (rev 96)
00:0c.0 Ethernet controller: Atheros Communications Inc. AR5413 802.11abg NIC (rev 01)
00:0f.0 ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA (rev 03)
00:0f.2 IDE interface: Advanced Micro Devices [AMD] CS5536 [Geode companion] IDE (rev 01)
00:0f.3 Multimedia audio controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] Audio (rev 01)
00:0f.4 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC (rev 02)
00:0f.5 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] EHC (rev 02)

Info regarding the configuration of wireless interfaces

Man Interfaces

Notes by alejo duque on the process of getting the locus sonus streambox ready. Previous info related can be found here:

streambox