Raspberry Pi: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
Line 20: Line 20:
* Alfa WiFi adapter
* Alfa WiFi adapter
* 7" Lilliput DisplayLink monitor with touchscreen
* 7" Lilliput DisplayLink monitor with touchscreen
* Parani UD100 bluetooth adapter
* Apple bluetooth keyboard
* Apple bluetooth keyboard
* AData 32 GB Class 10 SDHC card
* AData 32 GB Class 10 SDHC card

Revision as of 02:19, 24 June 2015

I have 2 Pi's now -- a Pi 2 Model B that I bought this spring, and a First Edition :-) Model B from 2012

I have printed a case for the old one, now I am Printing a Pi 2 case. Turns out making cases is one of the most fun things I have done with a Pi so far.

1/1/2013 Happy New Year!

I got a heavy duty 7 port USB hub for it, a nice cast al box, and now I want to make it work with my Lilliput 7" DisplayLink monitor.

To do that I will need to compile a kernel (ugh! back to doing that again!)

See also 8track and Lilliput DisplayLink monitor

Hardware

besides the PI

  • industrail strength 7 port USB hub
  • UBlox GPS
  • Alfa WiFi adapter
  • 7" Lilliput DisplayLink monitor with touchscreen
  • Apple bluetooth keyboard
  • AData 32 GB Class 10 SDHC card
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 010: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen
Bus 001 Device 011: ID 17e9:02a9 DisplayLink 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 047d:2043 Kensington 
Bus 001 Device 005: ID 0409:0050 NEC Corp. 7-port hub
Bus 001 Device 006: ID 0bda:817f Realtek Semiconductor Corp. RTL8188RU 802.11n WLAN Adapter
Bus 001 Device 009: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 012: ID 1546:01a4 U-Blox AG 
Bus 001 Device 007: ID 046d:c06c Logitech, Inc. Optical Mouse
Bus 001 Device 008: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

Distro

I tried the arch linux option. Gave up on it and went with Debian. Still the best.

DisplayLink kernel build

Some help with kernels and DisplayLink http://karuppuswamy.com/wordpress/2012/08/17/lilliput-displaylink-usb-monitor-um-70-17e902a9-with-raspberry-pi-on-raspbian/

Following Mitchtech kernel compile instructions with a few variations. I am using Linux Mint 14 as my build host. This installs the newest (4.7) compiler and creates symlinks. This step (building a working ARM tool chain) used to take days to figure out. Ah, progress! I love the Linux world I live in!

sudo apt-get install gcc-arm-linux-gnueabi git-core ncurses-dev

Fetching code

mkdir -p ~/src/raspberrypi
cd ~/src/raspberrypi
git clone https://github.com/raspberrypi/tools.git
git clone https://github.com/raspberrypi/linux.git
cd linux
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- bcmrpi_cutdown_defconfig
# enabled the DisplayLink module and disable many things I will never use
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- menuconfig
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- -k -j5
mkdir ../modules
make modules_install ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- INSTALL_MOD_PATH=../modules/
cd ../tools/mkimage/
# Create kernel.img
./imagetool-uncompressed.py ../../linux/arch/arm/boot/Image
cp kernel.img /media/bwilson/8B12-9112/
sudo rm -rf /media/bwilson/29b6c2f5-5469-49f2-abd5-daa9149021cc/lib/modules/
sudo rm -rf /media/bwilson/29b6c2f5-5469-49f2-abd5-daa9149021cc/lib/firmware/
sudo cp -a lib/modules/ /media/bwilson/29b6c2f5-5469-49f2-abd5-daa9149021cc/lib
sudo cp -a lib/firmware/ /media/bwilson/29b6c2f5-5469-49f2-abd5-daa9149021cc/lib

Zoom zoom away we go. Put SD card in Pi. Connect monitor and boot. Worked on first try for me! Fabulous.

X11

Before diving in to the above instructions on how to get X11 going, I typed "startx" and it came up! Okay. Moving on. I need the touchscreen to work. It acts like it works but is not calibrated. I am using a mouse at the moment.

Wifi

ALFA AWUS036H works but does not show up in wpa_gui.

ALFA AWUS036NHR works. wpa_gui does not fit on the small monitor. This is a problem!

Trying to get this sorted by following the instructions for wicd from this page: http://wiki.debian.org/WiFi/HowToUse

apt-get install wicd

Could be the only problem was that bwilson was not a member of netdev

Wardriving

apt-get install kismet

Given that wardriving is low priority, I am leaving kismet set-up for another rainy day.

Bluetooth keyboard

The Zonet USB bluetooth adapter which I used in 8track does not work in the Pi. It identifies itself as ID 0a5c:2101 Broadcom Corp. BCM2045 Bluetooth

The Parani UD100 does though. I think I need a few more Parani's! They are cool.

apt-get install bluez blueman

root@raspberrypi:/etc/default# hcitool scan Scanning ... 00:80:25:1C:C0:27 SMA001d SN: 2120048888 SN2120048888 E8:06:88:4F:52:48 Apple Wireless Keyboard

Once confident that there really was a bluetooth device on the Pi, I ran blueman-assistant from the console and it worked! Presto! I wonder if it works after rebooting...

GPS stuff

Hardware: probably a UBlox AEK-4P with a mag mount antenna on the roof. Using the Ublox means I can connect the Pi via USB and the Kenwood radio via RS232 adapter.

sudo apt-get install foxtrotgps gpsd
sudo dpkg-reconfigure gpsd gpsd-clients