Archive for the ‘maemo’ Category

N810: 3 OS and 1 DEVICE (Mamona/Maemo/Debian)

Monday, June 23rd, 2008

I have a N810 and 3 OS in the same device.

Now you will ask me : How?

The answer is below:

1 - Move your Maemo to the MMC internal

* Advantage : you will have more space.

Steps:  http://maemo.org/community/wiki/HowTo_EASILY_Boot_From_MMC_card/

Now you have the Maemo in the internal MMC.

2 -  Flash Mamona in your flash memory

* Advantage: Nowadays Mamona distro is good for developers. ;)

Steps:  http://dev.openbossa.org/trac/mamona/wiki/Releases/0.1/RunningMamona

3 - Debian XFCE in external MMC

* Advantage:  Debian rocks !! :P

You should partition your MicroSD in 2 parts:

- partition 1 - 100MB - fat32

- partition 2 - ALL THE REST - ext2

Download the Debian rootfs

wget  http://debian.i2c3.com/debian-armel-n800-xfce-beta3.tar.bz2

Untar the Debian rootfs in the second partition:

tar -xvjf  debian-armel-n800-xfce-beta3.tar.bz2

Boot using your external MMC.

That’s all!!

SD GPS OMAP 1710 ( SDIO GPS )

Monday, December 3rd, 2007

Hi all,

+

I tested SDIO GPS with a OMAP1710 and it works. Many phones and internet tablets are based on this platform. The steps below show the procedures I’ve done:

== KERNEL SIDE ==

Compile a new kernel from linux-omap with some additional features activated.

Device Drivers  ---><*> MMC/SD card support  --->   SDIO UART/GPS class support

Boot your device with this feature.

Maemo-omap1710:~# modprobe sdio_uart

Plug your SDIO card and the message below will be printed.

mmc_slot (GPIO 193) is now openmmci-omap mmci-omap.1: cover is now closedmmci-omap mmci-omap.1: command timeout (CMD8)mmc0: new SDIO card at address f111

The entry /dev/ttySDIO0 should be created.

== USER SIDE ==

I’m using GPSd to test it. Download the last version, compile and install on my device using scratchbox.

Start the GPS daemon

Maemo-omap1710:~# gpsd -N -n -D 2 /dev/ttySDIO0 &Maemo-omap1710:~# gpsd: launching (Version 2.34)gpsd: listening on port 2947gpsd: running with effective group ID 0gpsd: running with effective user ID 0gpsd: opening GPS data source at '/dev/ttySDIO0'gpsd: speed 4800, 8N1gpsd: garmin_gps not active.gpsd: gpsd_activate(1): opened GPS (4)gpsd: SiRF packet seen when NMEA expected.gpsd: FV  0x06: Firmware version: MEW-05-00-030627Wgpsd: FV  0x06: Firmware version: 2.4.02.02 0800003f21

Get you position:

Maemo-omap1710:~# gpspipe -rgpsd: client connect on 7gpsd: client(0) turned on raw modeGPSD,R=1$GPRMC,000004,V,0000.0000,S,00000.0000,W,0.0000,0.000,090602,,*3C$GPGSA,A,1,,,,,,,,,,,,,,,,*32$GPRMC,000005,V,0000.0000,S,00000.0000,W,0.0000,0.000,090602,,*3D$GPGSA,A,1,,,,,,,,,,,,,,,,*32$GPRMC,000006,V,0000.0000,S,00000.0000,W,0.0000,0.000,090602,,*3E$GPGSA,A,1,,,,,,,,,,,,,,,,*32$GPRMC,000007,V,0000.0000,S,00000.0000,W,0.0000,0.000,090602,,*3F$GPGSA,A,1,,,,,,,,,,,,,,,,*32$GPRMC,000008,V,0000.0000,S,00000.0000,W,0.0000,0.000,090602,,*30$GPGSA,A,1,,,,,,,,,,,,,,,,*32

The filesystem used is based on Maemo.

N810 : measure standard memory consumption using IA

Monday, November 12th, 2007

Hi all,

Maemo gave me a discount to buy a N810 and soon I’ll do some test using the tool that I based my final project (SOM-IA + MAEMO + MEMORY). ;)

Regards,

Alecrim.

xautomation armel

Friday, January 19th, 2007

Hi all ,
Last week,I was doing my final project and using an interesting tool,called Xautomation ( http://hoopajoo.net/projects/xautomation.html ). I’m using a Nokia 770 to do some test and this tool is very important to automate my test.It is already available on x86,I packaged for ARMEL.It is avaliable on my web page under construction. I tested on N800 and it works.

Xautomation ARMEL Debian package :

http://extindt01.indt.org/keppler/

PS : I will talk about my final project in few days. ;)


ass:
Keppler Alecrim
indt osmrc

Startup USB network on Nokia 770

Saturday, August 12th, 2006

Host Side

Kernel options

Compile kernel with correct options

Device DriversUSB supportUSB Network Adapters Multi-purpose USB Networking Framework Simple USB Network Links (CDC Ethernet subset)[*]     Embedded ARM Linux links (iPaq, ...)USB Gadget Support<*> Support for USB Gadgets<*> USB Gadget Drivers (Ethernet Gadget (with CDC Ethernet support))

NetworkingNetworking support (NET [=y])Networking optionsNetwork packet filtering (replaces ipchains) (NETFILTER [=y])IP: Netfilter Configuration<*> Connection tracking (required for masq/NAT)

OBS : Feel free to add more options as I,ve done.;)



USB Hotplug

Install hotplug (Be carefull)

         apt-get install hotplug



Load modules

  modprobe  usbnetmodprobe  cdc_ether


Configure USB interface

Add to file /etc/network/interfaces

 iface usb0 inet static       address 192.168.2.14       netmask 255.255.255.0 broadcast 192.168.2.255


Target side(nokia770)

Activate USB network on device

Create connection on device

http://maemo.org/maemowiki/HowToSetUpUsbNetworkingDebian

Host side



Activate USB network on host

  ifup usb0

Now,connection is OK. You can test using comand ping. ;) (devive <-> host)



NAT

Install iptables to create a NAT.

  apt-get install iptables

Create and add to file /etc/init.d/iptables

  #!/bin/bash

iniciar(){#modprobe iptable_natecho 1 > /proc/sys/net/ipv4/ip_forwardiptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEiptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -m  tcpmss --mss 1400:1536 -j TCPMSS --clamp-mss-to-pmtu}

parar(){iptables -F -t nat}

case "$1" in"start")iniciar;;"stop")parar;;*)echo "Use os parâmetros start ou stop"esac

This is going to be our script to start NAT. So,turn it executable and execute :

             chmod +x /etc/init.d/iptables         /etc/init.d/iptables start

And now , the device is connected to network (device <-> host <-> network)

  Nokia770:~# ifconfiglo        Link encap:Local Loopback     inet addr:127.0.0.1  Mask:255.0.0.0     UP LOOPBACK RUNNING  MTU:16436  Metric:1     RX packets:0 errors:0 dropped:0 overruns:0 frame:0     TX packets:0 errors:0 dropped:0 overruns:0 carrier:0     collisions:0 txqueuelen:0     RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

usb0      Link encap:Ethernet  HWaddr BA:C3:E8:40:38:1F     inet addr:192.168.2.15  Bcast:192.168.2.255  Mask:255.255.255.0     UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1     RX packets:241 errors:0 dropped:0 overruns:0 frame:0     TX packets:249 errors:0 dropped:0 overruns:0 carrier:0     collisions:0 txqueuelen:1000     RX bytes:24380 (23.8 KiB)  TX bytes:82482 (80.5 KiB)Nokia770:~#Now you can ping.



Some links used to made this small howto :

http://www.falkotimme.com/howtos/debian_kernel2.6_compile/

http://embedded.seattle.intel-research.net/wiki/index.php?title=Setting_up_USBnet

http://www.falkotimme.com/howtos/debian_kernel2.6_compile/

http://handhelds.org/moin/moin.cgi/UsbNet


http://maemo.org/maemowiki/HowToSetUpUsbNetworkingDebian