Send commitlog mailing list submissions to
        commitlog@lists.openmoko.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        commitlog-requ...@lists.openmoko.org

You can reach the person managing the list at
        commitlog-ow...@lists.openmoko.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r4933 - developers/werner/cam (wer...@docs.openmoko.org)
   2. r4934 - in developers/werner: . gta03 gta03/cam
      (wer...@docs.openmoko.org)
   3. r4935 - developers/werner/gta03 (wer...@docs.openmoko.org)
   4. r4936 - developers/werner/gta03 (wer...@docs.openmoko.org)
   5. r4937 - in developers/werner/gta03: . cam
      (wer...@docs.openmoko.org)
--- Begin Message ---
Author: werner
Date: 2009-02-25 15:31:29 +0100 (Wed, 25 Feb 2009)
New Revision: 4933

Added:
   developers/werner/cam/BRINGUP
Log:
Hypothetical hardware bringup sequence.



Added: developers/werner/cam/BRINGUP
===================================================================
--- developers/werner/cam/BRINGUP                               (rev 0)
+++ developers/werner/cam/BRINGUP       2009-02-25 14:31:29 UTC (rev 4933)
@@ -0,0 +1,14 @@
+# adjust CAM clock divider. Instead of 27 MHz (nominally), it was 400 MHz :-)
+# This makes it 26.6 MHz
+poke 0x7E00F020 0x01943310
+# CAMERA_1V5
+pmu 0x30=0x21
+# CAMERA_2V8 (change voltage from 3.3 V to 2.8 V first)
+pmu 0x39=0x13
+pmu 0x3a=0x21
+# CAM_PWDN
+gpio-s3c6410 f15=0
+# nCAM_RESET
+gpio-s3c6410 f3=1
+# show what's on the bus
+i2cdetect 0




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2009-02-25 15:32:48 +0100 (Wed, 25 Feb 2009)
New Revision: 4934

Added:
   developers/werner/gta03/
   developers/werner/gta03/cam/
   developers/werner/gta03/cam/BRINGUP
Log:
Add intermediate gta03 directory.



Copied: developers/werner/gta03/cam (from rev 4931, developers/werner/cam)


Property changes on: developers/werner/gta03/cam
___________________________________________________________________
Name: svn:mergeinfo
   + 

Copied: developers/werner/gta03/cam/BRINGUP (from rev 4933, 
developers/werner/cam/BRINGUP)
===================================================================
--- developers/werner/gta03/cam/BRINGUP                         (rev 0)
+++ developers/werner/gta03/cam/BRINGUP 2009-02-25 14:32:48 UTC (rev 4934)
@@ -0,0 +1,14 @@
+# adjust CAM clock divider. Instead of 27 MHz (nominally), it was 400 MHz :-)
+# This makes it 26.6 MHz
+poke 0x7E00F020 0x01943310
+# CAMERA_1V5
+pmu 0x30=0x21
+# CAMERA_2V8 (change voltage from 3.3 V to 2.8 V first)
+pmu 0x39=0x13
+pmu 0x3a=0x21
+# CAM_PWDN
+gpio-s3c6410 f15=0
+# nCAM_RESET
+gpio-s3c6410 f3=1
+# show what's on the bus
+i2cdetect 0




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2009-02-25 16:16:18 +0100 (Wed, 25 Feb 2009)
New Revision: 4935

Added:
   developers/werner/gta03/GETTING_STARTED
Log:
GTA03 bringup.



Added: developers/werner/gta03/GETTING_STARTED
===================================================================
--- developers/werner/gta03/GETTING_STARTED                             (rev 0)
+++ developers/werner/gta03/GETTING_STARTED     2009-02-25 15:16:18 UTC (rev 
4935)
@@ -0,0 +1,34 @@
+GIT=/home/moko/git
+SVN=/home/moko/svn.openmoko.org
+SD=sdb
+
+# build qi
+
+cd $GIT/qi
+make CPU=s3c6410
+
+# make a bootable uSD card
+./6410-partition-sd.sh $SD sdhc image/qi-s3c6410-master_5c8f74ac149a4812
+
+# build the kernel
+cd $GIT/kernel
+cp arch/arm/config/gta03_defconfig
+PATH=$PATH:../u-boot/tools
+make -j5 ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage
+
+# put kernel and command line on the card
+mkdir -p /mnt/tmp
+mount /dev/sdb2 /mnt/tmp
+mkdir -p /mnt/tmp/boot
+cp arch/arm/boot/uImage /mnt/tmp/boot/uImage-GTA03.bin
+echo init=/sbin/init >/mnt/tmp/boot/append-GTA03
+
+# build the rootfs
+cd $SVN/developers/werner/gta03
+../myroot/myroot gta03.myroot
+
+# copy the rootfs to the uSD card
+cp -a root/* /mnt/tmp/
+
+# done
+umount /mnt/tmp




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2009-02-25 16:21:21 +0100 (Wed, 25 Feb 2009)
New Revision: 4936

Added:
   developers/werner/gta03/gta03.init
   developers/werner/gta03/gta03.myroot
Log:
Descriptions for GTA03 rootfs creation.



Added: developers/werner/gta03/gta03.init
===================================================================
--- developers/werner/gta03/gta03.init                          (rev 0)
+++ developers/werner/gta03/gta03.init  2009-02-25 15:21:21 UTC (rev 4936)
@@ -0,0 +1,44 @@
+#!/bin/sh
+PATH=/sbin:/bin/:/usr/bin:/usr/local/bin
+
+# if booting from microSD, rootfs may be read-only
+mount -n -o remount,rw /
+
+ldconfig
+mod_dir=/lib/modules/`uname -r`
+mkdir -p $mod_dir
+touch $mod_dir/modules.dep
+
+# mounts
+mount -t proc none /proc
+mount -t sysfs none /sys
+mount -t tmpfs none /tmp
+
+# devices and sshd
+mount -t tmpfs none /dev
+mknod /dev/null c 1 3
+mknod /dev/tty c 5 0
+mknod /dev/ttySAC3 c 204 67
+mkdir /dev/pts
+mount -t devpts none /dev/pts
+( udevd --daemon; udevtrigger && udevsettle && /usr/sbin/sshd;
+  echo "<*** System initialization complete ***>" >/dev/console ) &
+
+# network
+ifconfig usb0 192.168.0.202 up
+route add default gw 192.168.0.200
+
+# X
+TSLIB_TSDEVICE=/dev/input/touchscreen0
+export TSLIB_TSDEVICE
+
+# shell
+PS1='con:\w\$ '
+HOME=/home/root
+cd $HOME
+export PS1 HOME PATH
+
+# The gta03 kernel is quite chatty at the moment. Silence it.
+dmesg -n 1
+
+exec setsid /bin/bash -l </dev/ttySAC3 >/dev/ttySAC3 2>&1


Property changes on: developers/werner/gta03/gta03.init
___________________________________________________________________
Name: svn:executable
   + *

Added: developers/werner/gta03/gta03.myroot
===================================================================
--- developers/werner/gta03/gta03.myroot                                (rev 0)
+++ developers/werner/gta03/gta03.myroot        2009-02-25 15:21:21 UTC (rev 
4936)
@@ -0,0 +1,189 @@
+#
+# Werner's customized development root FS.
+#
+# Highlights:
+# - no GUI or fancy system daemons
+# - has lots of exploration tools used (only) for system-level development
+# - wherever possible, installs full versions of programs, not busybox
+#
+
+# ----- paths -----------------------------------------------------------------
+
+
+root
+calypso=http://people.openmoko.org/joerg/calypso_moko_FW/
+my=$SVN/developers/werner
+
+
+# ----- basic setup -----------------------------------------------------------
+
+
+pkg udev procps
+pkg task-proper-tools
+
+# OE.net's talk-proper-tools already has the following packages in
+# task-proper-tools, but OM.org hasn't caught up with it yet
+pkg net-tools iproute2 iputils-ping psmisc debianutils tcptraceroute
+
+pkg grep bash debianutils
+pkg mtd-utils sysfsutils apm
+pkg e2fsprogs-mke2fs e2fsprogs-tune2fs
+pkg openssh ntpdate netkit-telnet bind-utils
+pkg dhcp-client wireless-tools wpa-supplicant
+pkg portmap ppp rsync
+pkg alsa-state alsa-utils-alsamixer alsa-utils-alsactl alsa-utils-aplay
+pkg file
+pkg opkg gzip
+pkg perl python make
+#pkg xserver-kdrive-glamo xset xhost xdpyinfo
+
+
+# ----- general exploration tools ---------------------------------------------
+
+
+pkg gdb strace ldd
+
+make -C $SVN/trunk/src/target/gpio clean all
+cp $SVN/trunk/src/target/gpio/gpio-s3c6410 usr/bin
+
+make -C $my/poke clean all
+cp $my/poke/poke usr/bin
+
+make -C $my/pmu clean all
+cp $my/pmu/pmu usr/bin
+
+make -C $my/wkalrm clean all
+cp $my/wkalrm/wkalrm usr/bin
+
+ln -s /usr/bin/gpio-s3c6410 usr/bin/gpio
+
+
+# ----- fun with GSM ----------------------------------------------------------
+
+
+pkg cu
+
+#echo "uucp:*:2:2:uucp:/:/bin/true" >>etc/passwd
+#chown 2 dev/ttySAC0
+
+
+# ----- network testing -------------------------------------------------------
+
+
+pkg tcpdump wmiconfig
+
+make -C $my/ttcp clean all
+cp $my/ttcp/ttcp-1.12/ttcp usr/bin
+
+make -C $my/owping clean all
+cp $my/owping/owping usr/bin
+
+cp $my/bin/wlanscan usr/bin
+
+
+# ----- create /sbin/init -----------------------------------------------------
+
+
+# inspired by kboot's scripts/kboot
+
+cp $my/gta03/gta03.init sbin/init
+
+
+# ----- set up sshd -----------------------------------------------------------
+
+# @@@ cache the keys ?
+
+mkdir -p etc/ssh
+ssh-keygen -t rsa1 -f etc/ssh/ssh_host_key -N ""
+ssh-keygen -t dsa -f etc/ssh/ssh_host_dsa_key -N "" 
+ssh-keygen -t rsa -f etc/ssh/ssh_host_rsa_key -N "" 
+
+echo "sshd:*:1:1:SSH:/:/bin/true" >>etc/passwd
+
+mkdir -p var/run/sshd
+
+
+# ----- enable passwordless SSH entry -----------------------------------------
+
+
+cd home/root
+mkdir .ssh
+chmod 700 .ssh
+cp $HOME/.ssh/id_rsa.pub .ssh/authorized_keys
+root
+
+
+# ----- install things we don't have in the feed yet --------------------------
+
+
+# only df is missing now !
+
+
+# ----- copy configuration files from the host --------------------------------
+
+
+cp /etc/hosts etc/hosts
+cp /etc/services etc/services
+
+# cp /etc/resolv.conf etc/resolv.conf
+
+# prefer to hard-code it here
+
+cat <<EOF >>etc/resolv.conf
+# opendns
+nameserver 208.67.222.222
+nameserver 208.67.220.220
+EOF
+# prevent DHCP from messing with it
+chmod 444 etc/resolv.conf
+
+
+# ----- shell init ------------------------------------------------------------
+
+
+sed -i 's|/bin/sh|/bin/bash|' etc/passwd
+
+cat <<EOF >home/root/.bash_profile
+[ "\${PS1#con}" = "\$PS1" ] && PS1='ssh:\w\\\$ '
+export PS1
+EOF
+
+
+# ----- save some space -------------------------------------------------------
+
+
+rm usr/lib/opkg/lists/*
+rm -rf usr/share/vim
+
+ln -sf uptime.procps usr/bin/uptime
+
+
+# ----- miscellaneous ---------------------------------------------------------
+
+
+ln -s bash bin/sh
+
+# vim gets a little confused on the console. Fortunately, this is easy to fix:
+# see http://vt100.net/docs/vt102-ug/chapter5.html
+# restore cursor, reset scrolling region, restore cursor
+
+cat <<EOF >usr/bin/vi
+#!/bin/sh
+/usr/bin/vim "\$@"
+code=\$?
+echo -ne '\e7\e[;r\e8'
+exit \$?
+EOF
+chmod 755 usr/bin/vi
+
+
+# seems that we've reached the limits of the update-alternatives hack ;-)
+
+for n in sbin/*.26; do
+    mv $n sbin/`basename $n .26`
+done
+
+echo "audio:*:10:" >>etc/group
+
+
+# -----------------------------------------------------------------------------


Property changes on: developers/werner/gta03/gta03.myroot
___________________________________________________________________
Name: svn:executable
   + *




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2009-02-26 07:13:06 +0100 (Thu, 26 Feb 2009)
New Revision: 4937

Modified:
   developers/werner/gta03/GETTING_STARTED
   developers/werner/gta03/cam/BRINGUP
Log:
- GETTING_STARTED: specify destination of config file
- cam/BRINGUP: Allen found that we have to set CAM_PWDN to 1 not 0



Modified: developers/werner/gta03/GETTING_STARTED
===================================================================
--- developers/werner/gta03/GETTING_STARTED     2009-02-25 15:21:21 UTC (rev 
4936)
+++ developers/werner/gta03/GETTING_STARTED     2009-02-26 06:13:06 UTC (rev 
4937)
@@ -12,7 +12,7 @@
 
 # build the kernel
 cd $GIT/kernel
-cp arch/arm/config/gta03_defconfig
+cp arch/arm/config/gta03_defconfig .config
 PATH=$PATH:../u-boot/tools
 make -j5 ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- uImage
 

Modified: developers/werner/gta03/cam/BRINGUP
===================================================================
--- developers/werner/gta03/cam/BRINGUP 2009-02-25 15:21:21 UTC (rev 4936)
+++ developers/werner/gta03/cam/BRINGUP 2009-02-26 06:13:06 UTC (rev 4937)
@@ -7,7 +7,7 @@
 pmu 0x39=0x13
 pmu 0x3a=0x21
 # CAM_PWDN
-gpio-s3c6410 f15=0
+gpio-s3c6410 f15=1
 # nCAM_RESET
 gpio-s3c6410 f3=1
 # show what's on the bus




--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to