Pebble Wireless Installation Readme

  Title:  General Wireless Inter/Networking Readme
 Author:  Richard J. Kreider
Contact:  rjkreider@gmail.com
   Date:  July 11, 2005
   $REV:  1.0.0
##############################################################################

----------------------------------INDEX---------------------------------------

A] Pebble Installation (v41) HOWTO
B] Post-Installation Set-up (Valkyrie Specific)

		------------------------------------------
############### Section A: PEBBLE INSTALLATION (v41) HOWTO ###################
		------------------------------------------

A1] Format CF card
A2] Create filesystem on CF card
A3] Create needed directories
A4] Untar pebble distribution
A5] Run pebble install script

	------------------
	A1] FORMAT CF CARD
	------------------

You'll need to fdisk the compact flash card accordingly:

	# fdisk /dev/hde

NOTE:  If you can't figure out which device the card was mounted to,
	please check by executing:

	# dmesg

	At the bottom, you should see what it was mounted as.  Usually,
	it's mounted as /dev/hde, but could be a number of points such as
	/dev/hdg, /dev/hdh and so on.  It's even possible to see it mounted
	as /dev/sda, /dev/sdb and so on.

Once inside the fdisk program, you'll be presented with options.  You'll need
to delete any existing partitions.  Press "d" to delete partition.  Next, you
will need to create a PRIMARY partition.  Type "n" (new), and select primary
by pressing "p".  Use the defaults by just pressing enter when asked for start
point, and end points.  Once you have done that, you can either print out the
tables by pressing "p".  That will just show you what you're about to write to
that device.  After you do that, you can press "w" to write/sync the CF card.
Once that has completed, you have successfully fdisk'd your CF card.  Continue
on to the next step.

	--------------------------------
	A2] CREATE FILESYSTEM ON CF CARD
	--------------------------------

Now that you have fdisk'd the card, you'll need to create a filesystem on it.
The recommend is EXT2, and that is what I use on my 128mb CF card.  If you
have a larger card, such as a 256mb, or 512mb, you can use ext3 -- but it's
not necessary.

To create the filesystem:

	# mkfs.ext2 /dev/hde1

NOTE:  Remember, replace "/dev/hde1" with YOUR device name.  I'm just using
	"/dev/hde1" for continuity.

	-----------------------------
	A3] CREATE NEEDED DIRECTORIES
	-----------------------------

You'll need to create 2 directories now.  One directory will be the mount
point for your CF card, and the other is where we'll unpack and install the
Pebble Linux distribution from.

	# mkdir /mnt/cf
	# mkdir /mnt/pebble

"/mnt/cf" is where your CF card will be mounted.
"/mnt/pebble" is where you'll be unpacking your Pebble distribution in prep.
for the installation to your CF card.

	-----------------------------
	A4] UNTAR PEBBLE DISTRIBUTION
	-----------------------------

The last step before installation can begin, is to unpack your Pebble Linux
distribution you downloaded.

	# cd /mnt/pebble
	# tar --numeric-operator -jxvf pebble.v41.tar.bz2

NOTE:  pebble.v41.tar.bz2 can be replaced with the version you have, such
	as pebble.v39.tar.bz2.

	If it's not a .bz2 format, but possibly .gz or .tgz, take out the "j" and
	replace it with a "z":

	# tar --numeric-operator -zxvf pebble.v41.tar.gz

	----------------------------------
	A5] RUN PEBBLE INSTALLATION SCRIPT
	----------------------------------

Now all that's left is the easy part; running the install script.  Make sure
you're in "/mnt/pebble" directory.  You can check this by:

	# pwd

It should echo back "/mnt/pebble".  If not, simply change to the "/mnt/pebble"
directory.

	# cd /mnt/pebble

Next, you'll simply run the install script.

	# ./pebble.update

Follow the on-screen instructions.

If all goes well, you'll have a fresh install of Pebble Linux on your CF card
ready to go!

		----------------------------------------------
############### Section B: Pebble Configuration (POST-INSTALL) ###############
		----------------------------------------------

1] /etc/fstab
2] /etc/inittab
3] /etc/network/interfaces
4] /etc/rcS.d/S99local
5] /etc/motd
6] /etc/modules

	B0] IMPORTANT! IMPORTANT! IMPORTANT!
	------------------------------------

	!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
	!!Before ANY changes, you need to run this command:!!
	!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

	# remountrw

NOTE: That remounts the filesystem to have read/write access, so that anything
	we make changes to is saved!

UPDATE: I will be making a finalized POST-INSTALL script that will be run
	AFTER installing a FRESH copy of Pebble Linux to a CF card.

	--------------
	B1] /etc/fstab
	--------------

Change the tmpfs entry's "size=" to your CF card size.

tmpfs           /rw     tmpfs   defaults,size=128M       0       0

	----------------
	B2] /etc/inittab
	----------------

Comment out the last line that has nocat in it.

	---------------------------
	B3] /etc/network/interfaces
	---------------------------

This will be the interfaces file:

# # # START COPY # # #
# /etc/network/interfaces
#
# Richard J. Kreider
# _ADMIN_EMAIL_LINK_

# lo
auto lo
iface lo inet loopback

# eth0
auto eth0
iface eth0 inet static
	address 10.0.0.10
	netmask 255.255.255.0
	broadcast 10.255.255.255
	gateway 10.0.0.1

# eth1
auto eth1
iface eth1 inet static
	address 10.0.0.11
	netmask 255.255.255.0
	broadcast 10.255.255.255
	gateway 10.0.0.1

# wlan0
iface wlan0 inet static
	address 10.0.0.12
	netmask 255.255.255.0
	broadcast 10.255.255.255
	gateway 10.0.0.1
# # # STOP COPY # # #

	-----------------------
	B4] /etc/rcS.d/S99local
	-----------------------

Create a file in /etc/rcS.d/ called S99local using nano or vi:

	# nano /etc/rcS.d/S99local

Enter the following:

	#!/bin/sh
	ifup --force -v wlan0

Save it, then run:

	# chmod 777 /etc/rcS.d/S99local

	-------------
	B5] /etc/motd
	-------------

Change /etc/motd to something neat-o.

	----------------
	B6] /etc/modules
	----------------

Uncomment "hostap_pci" module if it's commented out.

	-------------
	X] FINAL STEP
	-------------

	# remountro
	# shutdown -r now

You'll be remounting your filesystem to read-only, and rebooting the machine.
If all goes well, you should come up and everything should be configured
accordingly!

Enjoy.

==============================================================================
MISC	MISC	MISC	MISC	MISC	MISC	MISC	MISC	MISC	MISC
==============================================================================

Bring wlan0 down on boot-up

Assign ap mode

assign channel

assign txpower

make sure eth0 is up and eth1 is up (TESTING ONLY) but eth1 down eth0 up for
distribution

Tue Apr  8 22:35:48 EDT 2008

Leave a Reply

Your email address will not be published. Required fields are marked *