2008年10月28日 星期二

Finally, my serial console works....

To have a login shell in console, modify /etc/inittab

# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

S:2345:respawn:/sbin/getty 115200 ttySAC2
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin
S:2345:respawn:/sbin/getty 115200 ttySAC2
# /sbin/getty invocations for the runlevels.

qt-extended 4.4.1 + uImage-gta02-g291a9d50_mwester-stable.bin
U-Boot 1.3.2-moko12 (Aug 26 2008 - 08:24:58)

I2C: ready
DRAM: 128 MB
Flash: 2 MB
NAND: 256 MiB
Found Environment offset in OOB..
Glamo core device ID: 0x3650, Revision 0x0002
USB: S3C2410 USB Deviced
In: serial
Out: serial
Err: serial
Unrecognized hardware revision 0x305. Defaulting to GTA02v6.
PCB rev: 0x305
Power: GTA02v6 # Uncompressing Linux.............................................................................................................................. done, booting the kernel.
Linux version 2.6.24mw-g291a9d50 (mwester@mw-g291a9d50_mwester-stable) (gcc version 4.1.2) #52 PREEMPT Fri Oct 3 10:56:54 CDT 2008
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: GTA02
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
DMA zone: 256 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 32512 pages, LIFO batch:7
Normal zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
CPU S3C2442B (id 0x32440aab)
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=ext2 root=/dev/mmcblk0p3 rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro
irq: clearing pending ext status 000912f0
irq: clearing pending ext status 000902d0
irq: clearing subpending status 00000087
irq: clearing subpending status 00000082
PID hash table entries: 512 (order: 9, 2048 bytes)
pclk = 50000000
timer_usec_ticks = 7864
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
console [tty0] enabled
console [ttySAC2] enabled
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 125696KB available (3624K code, 436K data, 132K init)
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 64 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
modem wakeup interrupt
wake enabled for irq 17
wake enabled for irq 49
S3C2442: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c8800000, irq 33
DMA channel 1 at c8800040, irq 34
DMA channel 2 at c8800080, irq 35
DMA channel 3 at c88000c0, irq 36
S3C2442: Clock Support, DVS off
Linux Plug and Play Support v0.97 (c) Adam Belay
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Bluetooth: Core ver 2.11
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
pnp: the driver 'system' has been registered
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
s3c24xx_pwm s3c24xx_pwm.0: s3c24xx_pwm is registered
Enabling FIQ using irq 29
not changing prescaler of PWM 3, since it's shared with timer4 (clock tick)
NetWinder Floating Point Emulator V0.97 (double precision)
neo1973-version neo1973-version.0: starting
neo1973-pm-host neo1973-pm-host.0: starting
neo1973-resume neo1973-resume.0: starting
neo1973-memconfig neo1973-memconfig.0: starting
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
glamo3362 glamo3362.0: Detected Glamo core 3650 Revision 0002 (49119232Hz CPU / 81887232Hz Memory)
glamo3362 glamo3362.0: Glamo core now 49119232Hz CPU / 89980928Hz Memory)
Detected S-Media IRQ# pullup, enabling interrupt
glamo-spi-gpio glamo-spi-gpio.0: registering c03bb500: jbt6k74
SMEDIA Glamo frame buffer driver (C) 2007 Openmoko, Inc.
Console: switching to colour frame buffer device 80x58
fb0: SMedia Glamo frame buffer device
glamo-mci glamo-mci.0: glamo_mci driver (C)2007 Openmoko, Inc
glamo-mci glamo-mci.0: probe: mapped mci_base:c8864400 irq:0.
glamo-mci glamo-mci.0: glamo_mci_set_ios: power down.
glamo-mci glamo-mci.0: initialisation done.
mmc_set_power(power_mode=1, vdd=20
physmap platform flash device: 00200000 at 18000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0039
Intel/Sharp Extended Query Table at 0x0039
Intel/Sharp Extended Query Table at 0x0039
Intel/Sharp Extended Query Table at 0x0039
Intel/Sharp Extended Query Table at 0x0039
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0x0,size=0x2000,blocks=8
erase region 1: offset=0x10000,size=0x10000,blocks=31
physmap-flash.0: 1 set(s) of 1 interleaved chips --> 4 partitions of 512 KiB
mtd: bad character after partition (\)
RedBoot partition parsing not available
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 30ns Twrph0=7 70ns, Twrph1=3 30ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xaa (Samsung NAND 256MiB 1,8V 8-bit)
s3c2410_nand_update_chip: chip c7d0f8b8: 11
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
nand_read_bbt: Bad block at 0x0fb60000
spi_s3c24xx_gpio spi_s3c24xx_gpio.1: registering c03bb47c: lis302dl
spi_s3c24xx_gpio spi_s3c24xx_gpio.1: registering c03bb4a8: lis302dl
usbmon: debugfs is not available
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
s3c2410_udc: debugfs dir creation failed -19
s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes
gta02_udc_command(2)
ether gadget: using random self ethernet address
ether gadget: using random host ethernet address
usb0: Ethernet Gadget, version: May Day 2005
usb0: using s3c2410_udc, OUT ep2-bulk IN ep1-bulk STATUS ep3-bulk
usb0: MAC 9a:dd:6e:8a:e0:92
usb0: HOST MAC ca:c0:42:5e:59:4c
usb0: RNDIS ready
gta02_udc_command(1)
mice: PS/2 mouse device common for all mice
input: Neo1973 Buttons as /devices/platform/neo1973-button.0/input/input0
wake enabled for irq 48
s3c2440-ts s3c2440-ts: successfully loaded
input: s3c2410 TouchScreen as /devices/virtual/input/input1
input: lis302-1 (top) as /devices/virtual/input/input2
lis302dl spi0.0: Found lis302-1 (top)
input: lis302-2 (bottom) as /devices/virtual/input/input3
lis302dl spi0.1: Found lis302-2 (bottom)
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 390 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
input: GTA02 PMU events as /devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/input/input4
usb0: full speed config #1: 500 mA, Ethernet Gadget, using CDC Ethernet
wake enabled for irq 53
pcf50633: dev (254:0)
pcf50633 0-0073: rtc core: registered pcf50633 as rtc0
pcf50633 0-0073: probe completed
neo1973-pm-bt neo1973-pm-bt.0: FIC Neo1973 Bluetooth Power Management: starting
SD power -> 3200mV
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 0kHz div=255 (req: 0kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 20) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: Error after cmd: 0x8120
glamo-mci glamo-mci.0: Error after cmd: 0x120
glamo-mci glamo-mci.0: Error after cmd: 0x8120
glamo-mci glamo-mci.0: Error after cmd: 0x120
mmc_set_power(power_mode=2, vdd=15
SD power -> 2700mV
neo1973-pm-gps neo1973-pm-gps.0: FIC Neo1973 GPS Power Managerment:starting
APM Battery Driver
bq27000-battery bq27000-battery.0: BQ27000 Battery Driver (C) 2008 Openmoko, Inc
power_supply bat: driver failed to report `status' property
Bluetooth: HCI USB driver ver 2.9
usbcore: registered new interface driver hci_usb
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 195kHz div=255 (req: 195kHz). Bus width=0
S3c2440 SDIO Host controller
pnp: the driver 'sdio_s3c24xx_hcd' has been registered
mapped channel 0 to 0
S3c24xx SDIO: IRQ:37 Detect IRQ:0 DMA channel:0 base@0xc9c00000 PCLK@50000 kHz
sdio_s3c24xx_hcd 00:00: driver attached
sdio_s3c24xx_hcd 00:00: SDIO device, IDs SD_0008 (active)
pnp: the driver 'sdio_wlan' has been registered
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 195kHz div=255 (req: 195kHz). Bus width=0
Registered led device: neo1973:vibrator
Registered led device: gta02-power:orange
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 195kHz div=255 (req: 195kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 16666kHz div=2 (req: 16666kHz). Bus width=0
glamo-mci glamo-mci.0: powered (vdd = 15) clk: 16666kHz div=2 (req: 16666kHz). Bus width=2
mmc0: new high speed SDHC card at address b368
mmcblk0: mmc0:b368 USD 7878656KiB
mmcblk0:<6>Registered led device: gta02-power:blue
p1 p2 p3 p4
Registered led device: gta02-aux:red
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC).
ASoC version 0.13.1
Only GTA01 hardware supported by ASoc driver
wm8753: WM8753 Audio Codec 0.16
asoc: WM8753 HiFi <-> s3c24xx-i2s mapping ok
asoc: WM8753 Voice <-> Bluetooth mapping ok
ALSA device list:
#0: neo1973-gta02 (WM8753)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Bluetooth: L2CAP ver 2.9
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO (Voice Link) ver 0.5
Bluetooth: SCO socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8
Bluetooth: BNEP (Ethernet Emulation) ver 1.2
Bluetooth: BNEP filters: protocol multicast
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
pcf50633 0-0073: setting system clock to 2008-10-28 10:23:25 UTC (1225189405)
Waiting 5sec before mounting root device...
CRCFAIL 0x1a3f
CRCFAIL 0x1a3f
CRCFAIL 0x1a3f
sdio_wlan 00:01: driver attached
sdio_wlan 00:01: SDIO device, IDs SD_0001 (active)
BMI Get Target Info: Exit (ver: 0x20000059 type: 0x1)
SDIO_INT_CTRL enable IRQ
AR6000 Reg Code = 0x40000060
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 132K
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
Alignment trap: hald-probe-volu (1269) PC=0x0000ce78 Instr=0xe59b300c Address=0xbecaa5aa FSR 0x013
Alignment trap: hald-probe-volu (1269) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbecaa5a6 FSR 0x013
Alignment trap: hald-probe-volu (1269) PC=0x0000ce78 Instr=0xe59b300c Address=0xbecaa5ba FSR 0x013
Alignment trap: hald-probe-volu (1269) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbecaa5b6 FSR 0x013
Alignment trap: hald-probe-volu (1269) PC=0x0000ce78 Instr=0xe59b300c Address=0xbecaa5ca FSR 0x013
Alignment trap: hald-probe-volu (1269) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbecaa5c6 FSR 0x013
Alignment trap: hald-probe-volu (1269) PC=0x0000ce78 Instr=0xe59b300c Address=0xbecaa5da FSR 0x013
Alignment trap: hald-probe-volu (1269) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbecaa5d6 FSR 0x013
Alignment trap: hald-probe-volu (1270) PC=0x0000ce78 Instr=0xe59b300c Address=0xbeb805aa FSR 0x013
Alignment trap: hald-probe-volu (1270) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbeb805a6 FSR 0x013
Alignment trap: hald-probe-volu (1270) PC=0x0000ce78 Instr=0xe59b300c Address=0xbeb805ba FSR 0x013
Alignment trap: hald-probe-volu (1270) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbeb805b6 FSR 0x013
Alignment trap: hald-probe-volu (1270) PC=0x0000ce78 Instr=0xe59b300c Address=0xbeb805ca FSR 0x013
Alignment trap: hald-probe-volu (1270) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbeb805c6 FSR 0x013
Alignment trap: hald-probe-volu (1270) PC=0x0000ce78 Instr=0xe59b300c Address=0xbeb805da FSR 0x013
Alignment trap: hald-probe-volu (1270) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbeb805d6 FSR 0x013
Alignment trap: hald-probe-volu (1271) PC=0x0000ce78 Instr=0xe59b300c Address=0xbeb125aa FSR 0x013
Alignment trap: hald-probe-volu (1271) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbeb125a6 FSR 0x013
Alignment trap: hald-probe-volu (1271) PC=0x0000ce78 Instr=0xe59b300c Address=0xbeb125ba FSR 0x013
Alignment trap: hald-probe-volu (1271) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbeb125b6 FSR 0x013
Alignment trap: hald-probe-volu (1271) PC=0x0000ce78 Instr=0xe59b300c Address=0xbeb125ca FSR 0x013
Alignment trap: hald-probe-volu (1271) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbeb125c6 FSR 0x013
Alignment trap: hald-probe-volu (1271) PC=0x0000ce78 Instr=0xe59b300c Address=0xbeb125da FSR 0x013
Alignment trap: hald-probe-volu (1271) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbeb125d6 FSR 0x013
Alignment trap: hald-probe-volu (1272) PC=0x0000ce78 Instr=0xe59b300c Address=0xbec1b5aa FSR 0x013
Alignment trap: hald-probe-volu (1272) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbec1b5a6 FSR 0x013
Alignment trap: hald-probe-volu (1272) PC=0x0000ce78 Instr=0xe59b300c Address=0xbec1b5ba FSR 0x013
Alignment trap: hald-probe-volu (1272) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbec1b5b6 FSR 0x013
Alignment trap: hald-probe-volu (1272) PC=0x0000ce78 Instr=0xe59b300c Address=0xbec1b5ca FSR 0x013
Alignment trap: hald-probe-volu (1272) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbec1b5c6 FSR 0x013
Alignment trap: hald-probe-volu (1272) PC=0x0000ce78 Instr=0xe59b300c Address=0xbec1b5da FSR 0x013
Alignment trap: hald-probe-volu (1272) PC=0x0000ce94 Instr=0xe59b1008 Address=0xbec1b5d6 FSR 0x013

.-------.
| | .-.
| | |-----.-----.-----.| | .----..-----.-----.
| | | __ | ---'| '--.| .-'| | |
| | | | | |--- || --'| | | ' | | | |
'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
-' |
'---'

The Openmoko Distribution -- powered by Angstrom om-gta02 ttySAC2

Openmoko P1-Snapshot-20080801 om-gta02 ttySAC2

om-gta02 login: root
root@om-gta02:~#
root@om-gta02:~#

Dissembling Freerunner to connect the debug board

http://wiki.openmoko.org/wiki/Disassembling_Neo1973





remove the sticker



I don't have guitar pick with me, so use a knife instead...



The Freerunner is up-side down actually.

Earpiece is part of the front plastic

I have no guts to remove the PCB as described on the wiki. I'm just trying to connect the debug board afterall.

SMT connector (That's how Andy Green call it) is located at top right, above the LCM





The following cable insertion is not correct!!!
the cable could/should be inserted into SMT connector on the phone until no white line seen.


Insert the cable into the SMT connector on the phone until the white line on the cable cannot be seen


Unlike the situation on the phone, the debug board side white line seems align the white line printed on the board.


But in my case, the left side cable is somewhat prominent than the right side. Well, It works anyway.




http://lists.openmoko.org/pipermail/openmoko-kernel/2008-October/006048.html
http://lists.openmoko.org/pipermail/openmoko-kernel/2008-October/006037.html

2008年10月26日 星期日

Using Openmoko Debug Board on Freerunner

the debug board provide:

  • serial port (via USB)
  • JTAG (via USB)
  • write to NOR



Is Debug Board flashed correctly?
Connect the USB uplink port to PC,
root@test-laptop:~# lsusb -d 1457:5118;lsusb -d 0403:6010;
Bus 003 Device 007: ID 1457:5118
root@test-laptop:~#

USB ID 1457:5118 ==> everything is correct.
USB ID 0403:6010 ==> the board needs to be reflashed, check here


Install driver
No /dev/ttyUSBx will show up if debug board connected to PC without driver installed.

on Ubuntu 8.04
  1. Install libftdi >=0.8
    apt-get install libftdi0
    (which install 0.10-2)
  2. rmmod ftdi_sio ;modprobe ftdi_sio vendor=0x1457 product=0x5118;
    add the following line to /etc/modprobe.d/options (wiki says modules.conf)
    options ftdi_sio vendor=0x1457 product=0x5118
  3. Download http://people.openmoko.org/laforge/misc/debug_board_v2/udev_rules/099_neo1973_debugboard.rules to /etc/udev/rules.d, and make the following changes:
    # udev rules file for Neo1973 Debug Board v2
    #

    ACTION!="add", GOTO="neo1973_dbg_rules_end"
    #SUBSYSTEM!="usb_device", GOTO="neo1973_dbg_rules_end"
    SUBSYSTEM!="usb", GOTO="neo1973_dbg_rules_end"

    SYSFS{idVendor}=="1457", SYSFS{idProduct}=="5118", MODE="664", GROUP="users"
    #For debugging
    #use tail -n 50 /var/log/messages to see if this script is ran
    #SYSFS{idVendor}=="1457", SYSFS{idProduct}=="5118", RUN+="/usr/bin/logger ==="


    LABEL="neo1973_dbg_rules_end"
    Uncomment the debug rule to see whether it is working or not.
  4. Install OpenOCD for JTAG debugging, or use the terminal emualtor (minicom, cu, zc, ...) for the console message dumping
JTAG => /dev/ttyUSB0
serial => /dev/ttyUSB1, 115200

(I didn't use openocd, so that's all I have done.....)


The recommended connection sequence is:
  1. Unplug both USB cables
  2. Remove the Neo1973 battery
  3. Connect the FPC between the Neo1973 and the debug board
  4. Replace the Neo1973 battery
  5. Plug the Neo1973 USB cable into your PC
  6. If the Neo1973 does not turn on automatically at this point, hold the power button for 5 seconds
  7. Plug the debug-board USB cable into your PC

一看debug板子上有留JTAG和UART的socket就衝動的以為PC是用這兩個跟FR相聯接,差點把缺的socket焊上去了,還一邊找 socket一邊念,怎麼這樣搞,連socket也不附......跟Andrew研究過更發現:怎麼連RS-232 tranceiver也沒有!! 這...真的是太超過了...!#@$^%@#$!#@$

冷靜一點以後,想想,這麼複雜的東西應該不會連wiki也不寫吧,差點要 mail去問了說,卻總是覺得怪怪的。再三研究過電路圖後才發現,從FR來的JTAG, J1,和FT2232D Channel A, UART, J10, FT2232D的Channel B是連在一起的!!

原來那兩個JTAG與UART的位置是留給其他 非Freerunner/GTA01 device 讓它們也可以透過這個debug board跟PC做連接;換句話說,就是這塊Debug board就是提供JTAG, serial to USB的功能,這兩個port是連接其他device,而不是連接到PC用的。第1張圖也說明的很清楚了,"Non-Neo1973"...

所以在PC上沒有其他device佔用ttyUSB的情況下,JTAG在PC就變成/dev/ttyUSB0,UART變成/dev/ttyUSB0,當然不需要Tranceiver囉

軟性印刷電路版(FPC:Flexible Printed Circuit)
sometimes called flex cable or flexible cable

SMT connector (Andy Green是這麼說的)
After plugging both USB of FR and Debug board to PC, the PC dmesg reports:
[22932.304312] usb 5-2: new full speed USB device using uhci_hcd and address 18
[22932.487138] usb 5-2: configuration #1 chosen from 2 choices
[22932.497342] /build/buildd/linux-2.6.24/drivers/usb/class/cdc-acm.c: This device cannot do calls on its own. It is no modem.
[22932.497373] cdc_acm 5-2:1.0: ttyACM0: USB ACM device
[22935.663858] usb 5-1: new full speed USB device using uhci_hcd and address 19
[22935.816913] usb 5-1: configuration #1 chosen from 1 choice
[22935.818759] hub 5-1:1.0: USB hub found
[22935.820674] hub 5-1:1.0: 4 ports detected
[22936.137318] usb 5-1.1: new full speed USB device using uhci_hcd and address 20
[22936.297399] usb 5-1.1: configuration #1 chosen from 1 choice
However, only /dev/ttyACM0 is available, no /dev/ttyUSB0 and /dev/ttyUSB1
minicom, /dev/ttyUSB1, 115200, 8N1, no flow control
It shows nothing, but when I input characters, it show:
�[ `��!����'�!���������������������������������
At last, I reconnect the flex cable, and found that I could insert the cable deeper to the SMT connector on the phone. and all fix!!!! refer

http://wiki.openmoko.org/wiki/Category:Debug_Board
http://wiki.openmoko.org/wiki/Debug_Board_v2
http://wiki.openmoko.org/wiki/Debug_Board_v2#Hardware_connection
http://wiki.openmoko.org/wiki/Debug_Board_v3

http://wiki.openmoko.org/wiki/Connecting_GTA01Bv2_with_Debug_Board
http://wiki.openmoko.org/wiki/Connecting_Neo_1973_with_Debug_Board_v2

http://wiki.openmoko.org/wiki/Disassembling_Neo1973

http://wiki.openmoko.org/wiki/Neo_FreeRunner_GTA02_Hardware#Debug_Board

http://people.openmoko.org/laforge/doc/hardware/neo1973_debug_board/neo1973_debugboard_v2_schematics.pdf
http://www.ftdichip.com/Documents/DataSheets/DS_FT2232D.pdf
http://www.datasheetcatalog.org/datasheet/sipex/SP213EHEA.pdf
http://www.maxim-ic.com.cn/pdfserv/en/ds/MAX3222-MAX3241.pdf

2008年10月24日 星期五

Trescend 8G SHDC uSD on Freerunner

I found the thread: unable to read from Sandisk 8Gb SD‏
http://downloads.openmoko.org/daily/testing-om-gta02-20081024.uImage.bin

   Image Name:   openmoko/2.6.24+gitr75986+f5b973
Created: 2008-10-24 12:17:30 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1757432 Bytes = 1.7 MB


It works just fine!!!

新買的Tresend 8G SHDC class4 uSD

本來是想可以灌個好幾個distribution什麼的
結果問題一堆...
結論是,現在只有qtextended/mwest的kernel能支援8G的uSD

u-boot能support 8G uSD
但是bootargs裡不能再放${}之類的變數,u-boot直接把${bootargs}送給kernel,不會展開變數

kernel裡只有QT extended的mwester的kernel可以讀8G uSD的partition table

約081022用debian的install.sh下載的uImage.bin
   Image Name:   openmoko/2.6.24+r5+gitr1+ca19d15
Created: 2008-09-11 10:06:55 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1935876 Bytes = 1.8 MB


uImage-gta02-g291a9d50_mwester-stable.bin
   Image Name:   Openmoko Freerunner Kernel
Created: 2008-10-03 15:57:45 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1938960 Bytes = 1.8 MB


Om2008.9-gta02-20080916.uImage.bin
   Image Name:   Openmoko/2.6.24+git75969+a1e97c6
Created: 2008-09-03 11:06:25 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1894652 Bytes = 1.8 MB




my u-boot: 2008/08/26

8G SDHC uSD
partition 1: 1G
partition 2: 1G
partition 3: 1G
partition 4: 5G

kernel是約081022用debian的install.sh下載的,放在partition 1
=================
mmcinit;ext2ls mmc 1:1;ext2ls mmc 1:2;ext2ls mmc 1:3;ext2ls mmc 1:4;
完全正常

setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 1;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=\${rootfstype} root=\${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;

${rootfstype}和${root}給kernel時竟然沒有被置換掉??
kernel complain
1. cannot read partition table
2. cannot open root ${root} or unknown-block(2,0)
3. available partition只有/dev/mmcblk0

暫時先用

setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 1;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=${rootfstype} root=${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;

kernel complain
1. cannot read partition table
2. cannot open root mmcblk0p1 or unknown-block(179,1)
3. available partition只有/dev/mmcblk0


512MB uSD
partition 1: 250MB
partition 2: 240MB
kernel是約081022用debian的install.sh下載的,放在partition 1
=================
mmcinit;ext2ls mmc 1:1;ext2ls mmc 1:2;ext2ls mmc 1:3;ext2ls mmc 1:4;
完全正常 (partition 3,4不存在)

setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 1;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=\${rootfstype} root=\${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;

${rootfstype}和${root}給kernel時仍然沒有被置換掉??
kernel complain
1. cannot read partition table
2. cannot open root ${root} or unknown-block(2,0)
3. available partition只有/dev/mmcblk0 有mmcblk0, mmcblk0p1, mmcblk0p2

setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 1;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=${rootfstype} root=${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;

kernel complain: No init found
Ok,這才是預期中的結果

8G SDHC uSD
partition 1: 1G
partition 2: 1G
partition 3: 1G
partition 4: 5G

kernel是uImage-gta02-g291a9d50_mwester-stable.bin,放在partition 3
=================
mmcinit;ext2ls mmc 1:1;ext2ls mmc 1:2;ext2ls mmc 1:3;ext2ls mmc 1:4;
完全正常

setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 3;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=\${rootfstype} root=\${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;

${rootfstype}和${root}給kernel時仍然沒有被置換掉??
kernel complain
1. cannot read partition table
2. cannot open root ${root} or unknown-block(2,0)
3. available partition只有/dev/mmcblk0 有mmcblk0, mmcblk0p1, mmcblk0p2, mmcblk0p3, mmcblk0p4

setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 3;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=${rootfstype} root=${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;

kernel complain: No init found
符合預期

==>看來是debian的kernel(uImage.bin)沒辦法讀8G uSD的partition table


8G SDHC uSD
partition 1: 1G
partition 2: 1G
partition 3: 1G
partition 4: 5G

kernel是Om2008.9-gta02-20080916.uImage.bin,放在partition 3
=================
mmcinit;ext2ls mmc 1:1;ext2ls mmc 1:2;ext2ls mmc 1:3;ext2ls mmc 1:4;
完全正常


setenv root /dev/mmcblk0p1;
setenv rootfstype ext2;
setenv kpart 3;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=\${rootfstype} root=\${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;

${rootfstype}和${root}給kernel時仍然沒有被置換掉??
kernel complain
1. cannot read partition table
2. cannot open root ${root} or unknown-block(2,0)
3. available partition只有/dev/mmcblk0

==>Om2008.9-gta02-20080916.uImage.bin狀況同debian


8G SDHC uSD
partition 1: 1G
partition 2: 1G
partition 3: 1G
partition 4: 5G

qt-extended 4.4+uImage-gta02-g291a9d50_mwester-stable.bin放在partition 3
=================
setenv root /dev/mmcblk0p3;
setenv rootfstype ext2;
setenv kpart 3;
setenv kfile uImage.bin;
setenv bootargs console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot rootfstype=${rootfstype} root=${root} rootdelay=5 mtdparts=physmap-flash:-(nor)\;neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) ro;
mmcinit; ${rootfstype}load mmc 1:${kpart} 0x32000000 ${kfile}; bootm 0x32000000;

正常開機

2008年10月22日 星期三

Flash memory info

http://en.wikipedia.org/wiki/Computer_memory
Computer memory types

  • Volatile
    • DRAM, e.g. DDR SDRAM
    • SRAM
    • Upcoming
      • Z-RAM
      • TTRAM
    • Historical
      • Williams tube
      • Delay line memory
  • Non-volatile
    • ROM
      • PROM
      • EAROM
      • EPROM
      • EEPROM
    • Flash memory
      • NOR
      • NAND
    • Upcoming
      • FeRAM
      • MRAM
      • CBRAM
      • PRAM
      • SONOS
      • RRAM
      • Racetrack memory
      • NRAM
    • Historical
      • Drum memory
      • Magnetic core memory
      • Plated wire memory
      • Bubble memory
      • Twistor memory


Static RAM(SRAM)http://en.wikipedia.org/wiki/Static_random_access_memory
does not need to be periodically refreshed, unlike DRAM, volatile

http://en.wikipedia.org/wiki/Flash_memory

single-level cell (SLC) devices
each cell stores only one bit of information.

multi-level cell (MLC) devices
can store more than one bit per cell by choosing between multiple levels of electrical charge to apply to the floating gates of its cells

  • NOR
    • Read
      • provides an external address bus for read and program operations (and thus supports random-access);
      • similar to reading from random-access memory, provided the address and data bus are mapped correctly.

      • most microprocessors can use NOR flash memory as execute in place (XIP) memory, meaning that programs stored in NOR flash can be executed directly without the need to first copy the program into RAM.
    • Write
      • unlocking and erasing NOR memory must proceed on a block-by-block basis.
      • Erasure must happen a block at a time
      • slow write speeds compared with NAND flash.

  • NAND
    These memories are accessed much like block devices such as hard disks or memory cards. Each block consists of a number of pages.
    • Read
      • reading and programming is performed on a page basis

    • Write
      • unlocking and erasing must be performed on a block basis

Write Endurance
SLC Floating Gate NOR (100k~1000k) > MLC Floating Gate NOR, NAND Flash (100k)



http://www.toshiba.com/taec/Catalog/components/Description/images/NANDvsNOR.swf
Erase
SLC/MLC NAND (2ms) >> MLC NOR(900ms)

Program
SLC NAND(8MBps) > MLC NAND(2.4MBps) > MLC NOR(0.47MBps)

Read
MLC NOR(103MBps) > SLC NAND(24MBps) > MLC NAND(18.6MBps)

Density
NAND (128Mb~32Gb) > NOR(8Mb~512Mb)


http://www2.electronicproducts.com/NOR_and_NAND_flash_for_high-capacity_mobile_apps-article-m-systems-feb2006-html.aspx
NOR vs. NAND
Characteristic NOR NAND
Density 1 to 64 Mbytes 16 Mbytes to 1 Gbyte
Code execution Yes No
Performance Very slow erase
Slow write
Fast read
Fast erase
Fast write
Fast read
Reliability High Low
Ease of use Easy Complicated
Price High Low

http://scottshulinux.blogspot.com/2008/10/nor-flash.html
http://scottshulinux.blogspot.com/2008/10/nand-flash.html


NAND flash benefits multimedia handsets
http://www.eetindia.co.in/ART_8800542316_1800009_NT_3b7bfbe6.HTM

在手機設計中採用NAND快閃記憶體
http://www.eettaiwan.com/ART_8800542727_628626_TA_6a05b30d.HTM


Multichip packages (MCP)
Package-on-package (PoP)
PoP technology is essentially an MCP stacked on top of a processor to save board space. This requires that the top memory PoP be compatible with the bottom processor. The memory alternatives described for MCP also apply to PoP. However, because of potentially tighter height restrictions, the maximum memory density that can be supported within PoP is typically less than that of MCP.

low-density RAM + NOR
pseudostatic SRAM (PSRAM) + NOR + NAND
DRAM + NAND
NAND flash and DRAM have to their advantage economies of scale as the two most widely used memory technologies.

controller is then incorporated with the MLC NAND device to manage error-code correction (ECC), wear leveling and bad block management requirements of the MLC NAND die, relieving the host processor of this task.

single-level cell (SLC) NAND
multilevel cell (MLC) NAND

SLC NAND interface
MMC interface
SD interface


Toshiba's mobileLBA NAND
use a NAND die + controller, where the NAND die can be partitioned between SLC NAND and MLC NAND

Debian on an OpenMoko FreeRunner

http://wiki.openmoko.org/wiki/Debian
http://wiki.debian.org/DebianOnFreeRunner

wget http://pkg-fso.alioth.debian.org/freerunner/install.sh
chmod +x install.sh
./install.sh all

會把uSD partition成兩個ext2 partition,分別放kernel和rootfs

因為我用的是8G的uSD,所以把下載的kernel換成這個http://downloads.openmoko.org/daily/testing-om-gta02-20081024.uImage.bin, detailed reason please refer: http://mkl-note.blogspot.com/2008/10/trescend-8g-shdc-usd-on-freerunner.html


開機後

(................)
/dev/mmcblk0p1 is mounted. e2fsck: Cannot continue, aborting.

fsck died with exit status 8
failed (code 8).
(blablabla...)
A maintenance shell will now be started. CONTROL-D will terminate this shell and resume system boot. (warning).
Give root password for maintenance
(or type Control-D to continue):

看來得搞個鍵盤來接。可是大多看到的鍵盤都是usb介面,少有miniUSB的,所以去買了USB AF對AF 轉接頭

F(Female)母頭, M(Male)公頭

搭配USB AM對mini5P

2008年10月21日 星期二

Mastering IPTables

Mastering IPTables, Part I
http://www.linuxjournal.com/video/mastering-iptables-part-i

Mastering IPTables, Part 2
http://www.linuxjournal.com/video/mastering-iptables-part-2

SATA related

http://shea.homelinux.net/Main/sata.html
http://linux-ata.org/software-status.html
http://linux-ata.org/driver-status.html
http://linux-ata.org/devel.html


http://www.synopsys.com/products/designware/sata_solutions.html
http://www.synopsys.com/products/designware/docs/ds/c/dwc_sata_host.html
http://www.synopsys.com/products/designware/docs/ds/c/dwc_sata_ahci.html

ATA/ATAPI-7 spec
http://www.t13.org/Documents/UploadedDocuments/docs2007/

Download AHCI spec
http://www.intel.com/technology/serialata/ahci.htm

http://sata-io.org/index.asp
SATA spec have to be purchased
https://sata-io.org/secure/spec_download.asp
Serial ATA 2.6 Specification (released February 2007) - $25.00 USD
Serial ATA 2.5 Specification (released October 2005) - $25.00 USD
Serial ATA 2.5 and 2.6 Specification - $40.00 USD

http://en.wikipedia.org/wiki/Serial_ATA

[wiki] NCQ
http://zh.wikipedia.org/wiki/NCQ

[wiki] Native Command Queuing
http://en.wikipedia.org/wiki/Native_Command_Queuing
....allowing the individual hard disk to internally optimize the order in which received read and write commands are executed. ....


SATA II、NCQ、作業系統三者的情慾糾結
http://blog.yam.com/leo2016/article/9925778

ATA-7
3.1.55 LBA(logical block address): The addressing of data on the device by the linear mapping of sectors
* not byte

2008年10月19日 星期日

How Pixar Fosters Collective Creativity

http://harvardbusinessonline.hbsp.harvard.edu/hbsp/hbr/articles/article.jsp?articleID=R0809D&ml_action=get-article&print=true



by Ed Catmull

Behind Pixar's string of hit movies, says the studio's president, is a peer-driven process for solving problems.

Listen to Ed Catmull discuss managing creativity.

A few years ago, I had lunch with the head of a major motion picture studio, who declared that his central problem was not finding good people—it was finding good ideas. Since then, when giving talks, I've asked audiences whether they agree with him. Almost always there's a 50/50 split, which has astounded me because I couldn't disagree more with the studio executive. His belief is rooted in a misguided view of creativity that exaggerates the importance of the initial idea in creating an original product. And it reflects a profound misunderstanding of how to manage the large risks inherent in producing breakthroughs.

When it comes to producing breakthroughs, both technological and artistic, Pixar's track record is unique. In the early 1990s, we were known as the leading technological pioneer in the field of computer animation. Our years of R&D culminated in the release of Toy Story in 1995, the world's first computer-animated feature film. In the following 13 years, we have released eight other films (A Bug's Life; Toy Story 2; Monsters, Inc.; Finding Nemo; The Incredibles; Cars; Ratatouille; and WALL·E), which also have been blockbusters. Unlike most other studios, we have never bought scripts or movie ideas from the outside. All of our stories, worlds, and characters were created internally by our community of artists. And in making these films, we have continued to push the technological boundaries of computer animation, securing dozens of patents in the process.

While I'm not foolish enough to predict that we will never have a flop, I don't think our success is largely luck. Rather, I believe our adherence to a set of principles and practices for managing creative talent and risk is responsible. Pixar is a community in the true sense of the word. We think that lasting relationships matter, and we share some basic beliefs: Talent is rare. Management's job is not to prevent risk but to build the capability to recover when failures occur. It must be safe to tell the truth. We must constantly challenge all of our assumptions and search for the flaws that could destroy our culture. In the last two years, we've had a chance to test whether our principles and practices are transferable. After Pixar's 2006 merger with the Walt Disney Company, its CEO, Bob Iger, asked me, chief creative officer John Lasseter, and other Pixar senior managers to help him revive Disney Animation Studios. The success of our efforts prompted me to share my thinking on how to build a sustainable creative organization.

What Is Creativity?

People tend to think of creativity as a mysterious solo act, and they typically reduce products to a single idea: This is a movie about toys, or dinosaurs, or love, they'll say. However, in filmmaking and many other kinds of complex product development, creativity involves a large number of people from different disciplines working effectively together to solve a great many problems. The initial idea for the movie—what people in the movie business call “the high concept”—is merely one step in a long, arduous process that takes four to five years.

A movie contains literally tens of thousands of ideas. They're in the form of every sentence; in the performance of each line; in the design of characters, sets, and backgrounds; in the locations of the camera; in the colors, the lighting, the pacing. The director and the other creative leaders of a production do not come up with all the ideas on their own; rather, every single member of the 200- to 250-person production group makes suggestions. Creativity must be present at every level of every artistic and technical part of the organization. The leaders sort through a mass of ideas to find the ones that fit into a coherent whole—that support the story—which is a very difficult task. It's like an archaeological dig where you don't know what you're looking for or whether you will even find anything. The process is downright scary.

Then again, if we aren't always at least a little scared, we're not doing our job. We're in a business whose customers want to see something new every time they go to the theater. This means we have to put ourselves at great risk. Our most recent film, WALL·E, is a robot love story set in a post-apocalyptic world full of trash. And our previous movie, Ratatouille, is about a French rat who aspires to be a chef. Talk about unexpected ideas! At the outset of making these movies, we simply didn't know if they would work. However, since we're supposed to offer something that isn't obvious, we bought into somebody's initial vision and took a chance.

To act in this fashion, we as executives have to resist our natural tendency to avoid or minimize risks, which, of course, is much easier said than done. In the movie business and plenty of others, this instinct leads executives to choose to copy successes rather than try to create something brand-new. That's why you see so many movies that are so much alike. It also explains why a lot of films aren't very good. If you want to be original, you have to accept the uncertainty, even when it's uncomfortable, and have the capability to recover when your organization takes a big risk and fails. What's the key to being able to recover? Talented people! Contrary to what the studio head asserted at lunch that day, such people are not so easy to find.

2008年10月17日 星期五

Linux Ipsec

  • FreeS/WAN, Openswan, strongSwan
    • KLIPS
    • pluto
  • KAME
    • for NetBSD, FreeBSD
    • racoon
  • isakmpd
    • for OpenBSD
    • isakmpd
  • NETKEY
    • Linux builtin ipsec stack, aka native
    • Alexey Kuznetsov and David S. Miller
    • can be used with pluto, isakmpd, racoon, or without any daemon (using manual keying).


[Wiki]Ipsec
http://en.wikipedia.org/wiki/IPsec

2008年10月16日 星期四

Openmoko @ Taiwan

Openmoko 中文 Wiki
http://wiki.openmoko.org/wiki/Main_Page/zh_tw

台灣的Group sale都又跑一回了(11/2已截止)今天(10/20)再看還是以為截止了,還好mail給Chelsea問了才發現,這不是眼殘,是腦殘....
不知道Chealsea有沒有發現...丟臉丟大了....
http://wiki.openmoko.org/wiki/Taiwan_Group_Sale

還有 中文論壇
http://openmoko-tw.net/phpbb/index.php

2008年10月15日 星期三

Vanilla kernel

http://en.wikipedia.org/wiki/Linux_kernel

Versions

Further developing his own code and integrating changes made by other programmers, Linus Torvalds keeps releasing new versions of the Linux kernel. These are called "vanilla" kernels, meaning they have not been further modified by anyone. Many Linux operating system vendors modify the kernels of their product, mainly in order to add support for drivers or features which have not officially been released as stable, while some distributions rely on vanilla kernels.



http://www.linuxquestions.org/questions/linux-general-1/what-is-vanilla-kernel-79388/
The kernels at www.kernel.ORG are vanilla kernels.

Each different distribution takes these vanilla kernels and adds their own type of flavoring. They may fix particular bugs in the code (Debian is very good at doing this), and they may add their own patches to do fancy things (SuSE adds a patch to do a boot screen animation), and they may add patches to enhance the facilities of the kernel (often using the source from the developmental branch of the kernel eg for very new USB devices).

Thus, although all kernels are derived from the same kernel source, not all kernels are equal.

So if you have a particular distribution and take advantage of some of the non standard features of the kernel, and then go and download a vanilla kernel, your hot new trendy USB device may no longer work and if you are on SusE you will no longer see a flashy boot time animation.

2008年10月13日 星期一

Linux kernel release process

2.6.28-rc1 stable prepatch is released exactly at 2008/10/24!!



  • 每次2.6.x stable release後,2.6.(x+1) 開始為期兩個星期 merge window
  • merge window 結束後release 2.6.(x+1)-rc1 stable prepatch
  • 在 merge window 內加入新功能;merge window 結束後只作 bug fix

http://en.wikipedia.org/wiki/Merge_window
The merge window is a period of time that occurs directly after the release of a new version of the software. During this time, lots of patches are merged and hence have a long time to get scrutinized and tested before the next release.
The Linux kernel have used the merge window process since July 2005 with the release of version 2.6.14, since then every 2.6.x release has been followed by a two week merge window.


http://ldn.linuxfoundation.org/blog-entry/the-2627-merge-window-closes
On July 28, Linus Torvalds released the 2.6.27-rc1 prepatch and closed the merge window for 2.6.27. That means we now know what will be in this kernel, which will probably be released sometime in October. Recent cycles have featured a lot of internal cleanup and relatively few new features, but 2.6.27 will reverse that trend somewhat. Linux users will see a lot of new things here.


http://kerneltrap.org/merge_window
From 2.6.14 on, the release of each official 2.6.y kernel has been followed by a two week period during which major changes are merged into the kernel, followed by a 2.6.y-rc1 release.


http://kerneltrap.org/node/14152
Following a recent merge request, Linus Torvalds stressed that he was serious about not wanting to merge any big changes after the merge window closes, "get the changes in before -rc1, or just *wait*. If they aren't ready before the merge window opens, they simply shouldn't be merged at all." Jeff Garzik reiterated, "once -rc1 is out there, that means the focus should be on stabilizing the existing codebase. Pushing a big driver update means that effort must restart from scratch. We just don't want to go down that road, which a big reason for the merge window in general."



Linux提供的餘興節目....


http://lwn.net/Articles/290498/

(..................)
Linus

PS. And to get wider distribution for this message: Digg users - you're
all a bunch of Wanking Walruses
. And you can quote me on that.
Wanking Walrus
http://tw.youtube.com/watch?v=ybK_qbo9h70




http://article.gmane.org/gmane.linux.kernel/706950
(...................)
Security people are often the black-and-white kind of people that I can't
stand. I think the OpenBSD crowd is a bunch of masturbating monkeys, in
that they make such a big deal about concentrating on security to the
point where they pretty much admit that nothing else matters to them.
(...................)
Linus
masturbating monkey
http://tw.youtube.com/watch?v=ciLllSAcF-8

2008年10月6日 星期一

wbt201 config of KH and me

KH



我的

Linux RAID

RAID Definition & Analysis
[Wiki] RAID
http://en.wikipedia.org/wiki/RAID
[Wiki] Standard RAID levels
http://en.wikipedia.org/wiki/Standard_RAID_levels

RAID and Data Protection Solutions for Linux
http://linas.org/linux/raid.html
http://linux-raid.osdl.org/index.php/Linux_Raid
http://tldp.org/HOWTO/Software-RAID-HOWTO.html

Other RAID related topics
https://www.amcc.com/MyAMCC/retrieveDocument/PowerPC/440SP/PPC440SP_SPe_PB2014_RAID.pdf

Optional:16 Programmable Galois Field polynomials including 14d and 11d


[MATH] Galois field -- 伽羅瓦代數體 (解釋的很好)
http://www.wretch.cc/blog/glCheng/7081441



http://en.wikipedia.org/wiki/Finite_field


RAID Spec??
http://www.snia.org/tech_activities/standards/curr_standards/ddf/SNIA-DDFv1.2.pdf

first RAID defination(raid0~5)
http://www.eecs.berkeley.edu/Pubs/TechRpts/1987/CSD-87-391.pdf

SNIA(Storage Networking Industry Association)
http://www.snia.org

Storage Networking Certification Program (SNCP)
http://www.snia.org/education/certification/
(這是對人的專業認証,而不是對產品的認証)

Operation
Linux Software RAID 1 實作
http://cha.homeip.net/blog/archives/2007/12/linux_software.html
Managing RAID and LVM with Linux (v0.5) (RAID5)
http://www.gagme.com/greg/linux/raid-lvm.php

Problems & Solutions
Accessing the data on a mirrored drive in Linux that won't boot
http://www.solvedit.com.au/content/view/81/42/


LVM
[Wiki]Logical Volume Manager (Linux)
http://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)

第 4章 邏輯磁區管理員(LVM)
http://freesf.tnc.edu.tw/docs/rh/rhl-cg-zh_TW-9/ch-lvm-intro.html

[鳥哥]特殊的 filesystem: LVM
http://linux.vbird.org/linux_basic/0610hardware.php#lvm

LVM HOWTO
http://tldp.org/HOWTO/LVM-HOWTO/

linux中的用户管理(磁盘限额),LVM,RAID关系
http://www.linuxidc.com/Linux/2007-07/5998.htm

2008年10月3日 星期五

我把我的Wii給拆了....

今天去買了這本

心血來潮,按著書上的步驟,拆了我的Wii

我的改機晶片和斷點

其實還可以再拆下去,只是我很怕裝不回去。還好,只有兩顆螺絲釘找不到家。只是,這似乎就是這本書最大的用處了.....



傳神的電子郵件攻防

Dear John

http://tw.youtube.com/watch?v=xrWxIf50u5k


http://www.actionext.com/names_r/red_sovine_lyrics/dear_john_letter.html
[ with June Stearns ]
Dear John oh how I hate to write dear John I must let you know tonight
That my love for you has died away like grass upon the lawn
And tonight I wed another dear John

I was overseas in battle when the postman came to me
And he handed me a letter I was just as happy as I could be
For the fighting was all over and the battle have been won
Then I opened up the letter and that started dear John

Dear John oh how I hate to write dear John I must let you know tonight
That my love for you has died away like grass upon the lawn
And tonight I wed another dear John

Will you please send back my picture my husband wants it now
And when I tell you who I'm wedding I know you won't care dear anyhow
Now the ceremony has just started and tonight I'll wed your brother Don
Will you please wish us happiness forever dear John

2008年10月2日 星期四

媽媽的幼稚園完全手冊

食品添加物

http://skygene.blogspot.com/2008/07/food-additives.html
靠夭,那是給人吃的嗎?!


http://skygene.blogspot.com/2008/07/omnivores-dilemma.html
靠夭,我們吃的到底是什麼!?(上)


http://skygene.blogspot.com/2008/07/natural-history-of-four-meals.html
靠夭,我們吃的到底是什麼!?(下)


http://skygene.blogspot.com/2008/07/in-defense-of-food.html
我們到底要吃什麼?(上)


http://skygene.blogspot.com/2008/07/eaters-manifesto.html
我們到底要吃什麼?(下)

中文 on Freerunner


Current status: no clue...



available package
root@om-gta02:~# opkg list |grep font -i
font-update-common - 0.1-r0 - Scripts to be called when fonts are installed or removed to make them known to the WM, whether X11 or Opie
font-update-common-dbg - 0.1-r0 - Scripts to be called when fonts are installed or removed to make them known to the WM, whether X11 or Opie
font-update-common-dev - 0.1-r0 - Scripts to be called when fonts are installed or removed to make them known to the WM, whether X11 or Opie
fontcacheproto-dbg - 1:0.1.2-r1.01 - X protocol headers: fontcacheproto
fontcacheproto-dev - 1:0.1.2-r1.01 - X protocol headers: fontcacheproto
fontconfig-utils - 2.4.1-r2 - A library for configuring and customizing font access.
fontsproto-dbg - 1:2.0.2-r1.01 - X protocol headers: fontsproto
fontsproto-dev - 1:2.0.2-r1.01 - X protocol headers: fontsproto
glibc-localedata-translit-font - 2.6.1-r5 - locale definition for translit-font
libfontconfig-dbg - 2.4.1-r2 - A library for configuring and customizing font access.
libfontconfig-dev - 2.4.1-r2 - A library for configuring and customizing font access.
libfontconfig-doc - 2.4.1-r2 - A library for configuring and customizing font access.
libfontconfig1 - 2.4.1-r2 - A library for configuring and customizing font access.
libfontenc-dbg - 1:1.0.4-r1 - X11 font encoding library
libfontenc-dev - 1:1.0.4-r1 - X11 font encoding library
libfontenc1 - 1:1.0.4-r1 - X11 font encoding library
libfreetype-dbg - 2.3.5-r2 - Freetype font rendering library
libfreetype-dev - 2.3.5-r2 - Freetype font rendering library
libfreetype6 - 2.3.5-r2 - Freetype font rendering library
libsdl-ttf - 2.0.3-r0 - Simple DirectMedia Layer truetype font library.
libsdl-ttf-dbg - 2.0.3-r0 - Simple DirectMedia Layer truetype font library.
libsdl-ttf-dev - 2.0.3-r0 - Simple DirectMedia Layer truetype font library.
libxfont-dbg - 1:1.3.1-r0 - X11 font rasterisation library
libxfont-dev - 1:1.3.1-r0 - X11 font rasterisation library
libxfont1 - 1:1.3.1-r0 - X11 font rasterisation library
libxfontcache-dbg - 1:1.0.4-r1 - X-TrueType font cache extension client library
libxfontcache-dev - 1:1.0.4-r1 - X-TrueType font cache extension client library
libxfontcache-doc - 1:1.0.4-r1 - X-TrueType font cache extension client library
libxfontcache1 - 1:1.0.4-r1 - X-TrueType font cache extension client library
libxft-dbg - 1:2.1.12-r1 - FreeType-based font drawing library for X
libxft-dev - 1:2.1.12-r1 - FreeType-based font drawing library for X
libxft-doc - 1:2.1.12-r1 - FreeType-based font drawing library for X
libxft2 - 1:2.1.12-r1 - FreeType-based font drawing library for X
qtopia-phone-x11-qpf-fonts - 4.3.2+git429+563d5f4c781efe1a11680c6a055b409034b528ab-r39.2 - Qtopia OpenSource
ttf-dejavu-common - 2.23-r0 - DejaVu font - TTF Edition
ttf-dejavu-dbg - 2.23-r0 - DejaVu font - TTF Edition
ttf-dejavu-sans - 2.23-r0 - DejaVu font - TTF Edition
ttf-dejavu-sans-condensed - 2.23-r0 - DejaVu font - TTF Edition
ttf-dejavu-sans-mono - 2.23-r0 - DejaVu font - TTF Edition
ttf-dejavu-serif - 2.23-r0 - DejaVu font - TTF Edition
ttf-dejavu-serif-condensed - 2.23-r0 - DejaVu font - TTF Edition
ttf-liberation-dbg - 0.2-r1 - Liberation fonts - TTF Version
ttf-liberation-mono - 0.2-r1 - Liberation fonts - TTF Version
ttf-liberation-sans - 0.2-r1 - Liberation fonts - TTF Version
ttf-liberation-serif - 0.2-r1 - Liberation fonts - TTF Version
xf86bigfontproto-dbg - 1:1.1.2-r1.01 - X protocol headers: xf86bigfontproto
xf86bigfontproto-dev - 1:1.1.2-r1.01 - X protocol headers: xf86bigfontproto
root@om-gta02:~#


currently installed package
root@om-gta02:~# opkg list_installed |grep font -i
font-update-common - 0.1-r0 -
libfontconfig1 - 2.4.1-r2 -
libfontenc1 - 1:1.0.4-r1 -
libxfont1 - 1:1.3.1-r0 -
libxfontcache1 - 1:1.0.4-r1 -
root@om-gta02:~#


OM ml
Trying to Port Fitx(chinese input method) for Neo‏
Displaying and writing traditional chinese text‏
[patch] reading Chinese SMS‏

reference
http://huakai.shangdu.com/UNIX_html/Articles/Make_ZH_Knoppix_CD.htm
http://phi.sinica.edu.tw/aspac/reports/94/94003/chap2.html
http://packages.debian.org/zh-tw/etch/xfonts-intl-chinese
http://www.myfaq.com.cn/2005September/2005-09-13/193422.html
http://www.myfaq.com.cn/2005September/2005-09-13/193422.html

2008年10月1日 星期三

OM2008.X & FDOM (Fat and Dirty Openmoko)

http://downloads.openmoko.org/releases/Om2008.12/
http://downloads.openmoko.org/daily/testing/
昨天試了om2008.12,跟前陣子試了om-testing-20081211的結果一樣,kernel boot到一半就卡住了

強烈懷疑是我自己的問題,其他人都玩的好好的說....


081027今天早上"不小心"開到FDOM(本來是想開Debian試鍵盤的說),竟然開進去了
可是看起來問題很多,像 USB ethernet不會動,不管是插鍵盤還是接到PC都沒訊息(dmesg),在想是不是rootfs的module跟kernel有問題?得搞個console來用用,不然USB ethernet一不動就很難看東西了.....
Fat_and_Dirty_OM.200809_20081023.rootfs.tar.gz+testing-om-gta02-20081024.uImage.bin
booting stop with following kernel message:
(.............)
Starting gpsd: success

touch: /var/lock/subsys/gpsd: No such file or directory
Starting gpsd-neo2 daemon: (ok)
Starting at daemon: atd.
Starting Xserver
ar6000_ioctl_giwscan(): data length 0



http://www.tuxbrain.com/fdom_en.html
mail list thread: New home for the New FDOM‏
FDOM release新的image,也搬到新家去了

有wifi介面(Mofi),但是連no security也連不上去

小問題好像不少,但又不是很明顯
有幾次來電我接了,可是卻聽不到聲音,對方說是被切斷了,但我只是按接聽,有時又ok...
有時鈴聲會不見,只剩振動
似乎有點不穩定,有時會hang住,尤其是跑Duke3D時經常會爛掉

最近在研究X,這是ps的結果
root@om-gta02:~# ps ax -HF
root 1429 1 0 643 628 0 Oct05 ? S 0:00 xinit /etc/X11/Xsession -- /usr/bin/Xglamo :0 -pn +extension Composite -nolisten tcp -dp
root 1435 1429 1 3379 10148 0 Oct05 ? S


http://atmospccu.twbbs.org/blogs/post/1/137
http://wiki.openmoko.org/wiki/Switching_Keyboards_on_OM_2007.2
http://wiki.openmoko.org/wiki/FDOM
http://compartida.net/openmoko/FDOM/
http://wiki.openmoko.org/wiki/Om2008.9_Update
http://downloads.openmoko.org/releases/Om2008.9/

到目前都還好,基本接聽電話沒問題,對方反應聲音稍小

opkg install openmoko-calculator qtopia-phone-x11-ringprofile qtopia-phone-x11-ringprofile-app-data gpe-scap
qtopia-phone-x11-ringprofile: 能夠自己定義profile、改鈴聲
gpe-scap(or fbgrab): screenshot

icon圖放在/usr/share/pixmaps/
鈴聲在/opt/Qtopia/etc/SystemRingTones
桌面上的捷徑設定在/usr/share/applications
捷徑檔名為*.desktop,內容很容易了解,不過特別要提的是其中Categories的System,凡是有System類別的都不會出現在桌面,而是會出現在下拉選單的工具圖案中。因為我想要把ring profile放在桌面上,所以就copy一個qtopia-ringprofile.desktop,把System類別拿掉,就會出現在桌面上了



換OM2008.9+FDOM
http://downloads.openmoko.org/releases/Om2008.9/Om2008.9-gta02-20080916.uImage.bin
http://downloads.openmoko.org/releases/Om2008.9/Om2008.9-gta02-20080916.rootfs.tar.gz
http://compartida.net/openmoko/FDOM/Fat_and_Dirty_OM.200809_20080927.rootfs.tar.gz
http://compartida.net/openmoko/FDOM/Fat_and_Dirty_OM.200809_20080927.rootfs.jffs2

http://downloads.openmoko.org/releases/Om2008.8-update/Om2008.8-gta02-20080903.uImage.bin
http://downloads.openmoko.org/releases/Om2008.8-update/Om2008.8-gta02-20081001.rootfs.jffs2
開機就遇上第一個問題:我要輸入PIN碼,可鍵盤上只有英文字母,沒有數字鍵??其實有,用拖拉的
http://wiki.openmoko.org/wiki/Om_2008.8#Known_Issues
Usability

* The Pin-Dialog by default just shows letters. You have to slide your finger up/down over the keyboard to make the numbers/uppercase/special characters appear.

Qtopia Image

http://qtextended.org/downloads/neo/qtextended-4.4.2-gta02-flash.tgz
解開後發現它改用testing-om-gta02-20081029.uImage.bin了

錄音依然有問題
default不會suspend? 我放了半個多小時,只有背光關掉而已,連LCD都沒關掉,更別說suspend....
重複來電的問題 (?)
BT耳機 (?)


change the default font setting to wanquanyi
--- /home/prj/qt-extended-4.4.1.ori/devices/neo/configure-common 2008-09-29 11:03:18.000000000 +0800
+++ /home/prj/qt-extended-4.4.1/devices/neo/configure-common 2008-10-14 04:43:38.000000000 +0800
@@ -23,13 +23,16 @@
-add-modules location
-add-modules media
-add-modules messaging
--add-modules pim
+#-add-modules pim
-add-modules pkgmanagement
-add-modules telephony
-add-modules ui

# Device config
-displaysize 480x640
+-font wenquanyi:120,130,150,160:50
+-font wenquanyi:120,130,150,160:75
+-font unifont:160:50
-font dejavu_sans_condensed:10,12,13,16,28:50
-font dejavu_sans_condensed:13,14,15,16,20,21,23,32,36:75


結果就像下圖,但是這並不是真的build出來的,只是換字型而已;因為qt-extended-4.4.1那包並沒有screenshot(也沒有terminal),但是只換字型似乎某些程式會有問題,如Note開不起來,而重build的Note則ok。字有點小,需要轉大一點的字型。

這樣utf8的字就可以直接顯示,如Note、Message(簡訊)(所以看來簡訊也是用utf8)

但是Contact(連絡人)還是一樣亂碼



apt-get install qt3-dev-tools-embedded
for makeqpf

試試看不轉utf8能不能開中文檔 or 新增
不轉utf8新增的檔案會是亂碼,不過已經新增的檔案則可以看到中文
應該是因為code是big5(?),因此要先轉成utf8;而已存在的檔案已經是utf8了,只需要指定中文字型就可以正確顯示。
若是utf8編碼但沒有該字型,則qt不會顯示任何字元;若是big5則會出現亂碼,但是sim卡電話簿的亂碼又跟big5的亂碼不太一樣,所以電話簿的編碼應該不是big5/utf8

qt只需要正確的中文字型,即可正確顯示utf8中文字
不是utf8的則要轉成utf8

1. 轉中文字型->qpf
待補
qt-extended內建的中文字型有unifont, wenquanyi
日文字 japanese
外來的mingliu

2. 改code
http://descent-incoming.blogspot.com/2008/10/qt-extend.html
--- qt-extended-4.4.1.ori/src/applications/textedit/textedit.cpp 2008-09-30 13:01:54.000000000 +0800
+++ qt-extended-4.4.1/src/applications/textedit/textedit.cpp 2008-10-13 17:51:00.000000000 +0800
@@ -25,6 +25,7 @@
#include <qdocumentselector.h>
#include <qsoftmenubar.h>
#include <qtopiaservices.h>
+#include <QFontDialog>

#include <QListWidget>
#include <QClipboard>
@@ -619,6 +620,26 @@
editor->document()->setModified(false);
setReadOnly(false);
updateCaption();
+
+bool ok;
+QFont font = QFontDialog::getFont(&ok, this);
+if (ok)
+{
+setFont(font);
+qDebug("ok");
+
+
+}
+else
+{
+qDebug("not ok");
+}
+
+QByteArray qstr="我是";
+QTextCodec *codec = QTextCodec::codecForName("UTF-8");
+QString string = codec->toUnicode(qstr);
+editor->document()->setPlainText(string);
+
}

void TextEdit::setDocument(const QString& f)

亂碼的部份是故意弄成big5的,沒title的是中文utf8但沒字型顯示的

選擇 新增 或 編輯 任ㄧ文件,就會跳出font畫面,選擇含中文的字型

內容和title就都變成中文了



大大 ~~你這樣不是為難我嗎,這樣我每個app都得改過才能看中文喔,應該有更簡單的辦法吧~~~

http://qtextended.org/modules/newbb_plus/viewtopic.php?topic_id=898&forum=16
For the memory card, the neo isn't set up to scan the card. In
opt/Trolltech/Qtopia/etc/default/Trolltech/storage.conf
replace by 1 the 0 on the line :
ContentDatabase = 0
in section
[MountPoint0]
After reboot, media player had acces to the files I have on the sd card.

基本上可以聽,但會規律的聽到斷一下斷一下....

/default: Prerequisite failed
/sub_default: Prerequisite failed
/src/default_sub: Prerequisite failed
/src/default: Prerequisite failed
/src/sub_default: Prerequisite failed
/src/tools/default_sub: Prerequisite failed
/src/tools/default: Prerequisite failed
/src/tools/sub_default: Prerequisite failed
/src/tools/phonesim/default_sub: Prerequisite failed
/src/tools/phonesim/default: Prerequisite failed
/src/tools/phonesim/sub_default: Prerequisite failed
/src/tools/phonesim/lib/default_sub: Prerequisite failed
/src/tools/phonesim/lib/default: Prerequisite failed
/src/tools/phonesim/lib/sub_default: Prerequisite failed
/src/tools/phonesim/lib/phonesim/default_sub: Prerequisite failed
/src/tools/phonesim/lib/phonesim/default: Prerequisite failed
/src/tools/phonesim/lib/phonesim/module_dep: Prerequisite failed
/src/tools/phonesim/lib/phonesim/target_post: Prerequisite failed
/src/tools/phonesim/lib/phonesim/cpp_compiler_target: Command execution failed
$$COMPILER.LINK $${COMPILER.LFLAGS} -o $$[OUTPUT.0] $$[INPUT] $${COMPILER.LIBS}
g++ -Wl,--no-undefined -L/home/prj/qt-extended-4.4.1/devices/neo/lib -L/home/prj/qt-build/sdk/lib/host -shared -Wl,-rpath,/home/prj/qt-build/sdk/qtopiacore/host/lib -Wl,-rpath,/home/prj/qt-build/sdk/lib/host -Wl,-soname,libphonesim.so.1 -pipe -fpermissive -o /home/prj/qt-build/sdk/lib/host/libphonesim.so.1.0.0 /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/phonesim.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/server.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/hardwaremanipulator.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qsmsmessagelist.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qsmsmessage.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qcbsmessage.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/callmanager.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/simfilesystem.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/simapplication.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qgsmcodec.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qatutils.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qatresultparser.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qatresult.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qwsppdu.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qsimcommand.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qsimenvelope.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qsimterminalresponse.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qsimcontrolevent.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qtopialog.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_phonesim.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_server.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_hardwaremanipulator.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qsmsmessagelist.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qsmsmessage.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qcbsmessage.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_callmanager.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_simfilesystem.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_simapplication.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qgsmcodec.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qatutils.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qatresultparser.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qatresult.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qwsppdu.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qsimcommand.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qsimenvelope.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qsimterminalresponse.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qsimcontrolevent.o /home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/moc_qtopialog.o -L/home/prj/qt-build/sdk/qtopiacore/host/lib -lQtXml -L/home/prj/qt-build/qtopiacore/host/lib -lQtCore -L/home/prj/qt-build/qtopiacore/host/lib -lz -lm -lrt -lpthread -ldl -L/home/prj/qt-build/sdk/qtopiacore/host/lib -lQtGui -L/home/prj/qt-build/qtopiacore/host/lib -lpng -lQtNetwork -L/home/prj/qt-build/qtopiacore/host/lib -lQtCore -lz -lm -lrt -lpthread -ldl -L/home/prj/qt-build/sdk/qtopiacore/host/lib -lQtNetwork -L/home/prj/qt-build/qtopiacore/host/lib -lQtCore -L/home/prj/qt-build/qtopiacore/host/lib -lz -lm -lrt -lpthread -ldl -L/home/prj/qt-build/sdk/qtopiacore/host/lib -lQtCore -L/home/prj/qt-build/qtopiacore/host/lib -lz -lm -lrt -lpthread -ldl
/home/prj/qt-build/src/tools/phonesim/lib/phonesim/.obj/qcbsmessage.o: In function `QCBSMessage::print()':
qcbsmessage.cpp:(.text+0x886): undefined reference to `QLogBase::log(char const*)'
collect2: ld returned 1 exit status

make: *** [all] Error 1
temporarily skipped by
--- qt-extended-4.4.1.ori/devices/neo/configure-common 2008-09-29 11:03:18.000000000 +0800
+++ qt-extended-4.4.1/devices/neo/configure-common 2008-10-13 23:43:50.000000000 +0800
@@ -23,7 +23,7 @@
-add-modules location
-add-modules media
-add-modules messaging
--add-modules pim
+#-add-modules pim
-add-modules pkgmanagement
-add-modules telephony
-add-modules ui


apt-get install qt4-dev-tools qt4-qtconfig libqt4-dev
cd /
wget http://qtextended.org/downloads/toolchains/arm920t-eabi.tgz
tar xf arm920t-eabi.tgz

export QPEDIR=/home/prj/qt-extended-4.4.1;
$QPEDIR/configure --device neo;bin/qbuild image;

http://jserv.sayya.org/qtopia/doc/qte.txt
Qt/Embedded 與 Qtopia 中文處理實戰
黃敬群

/doc/html/qt-embedded-fonts.html

http://qtextended.org/downloads/toolchains/arm920t-eabi.tgz
http://qtopia.net/sdk/Embedix-sdk.tgz
http://qtextended.org/downloads/neo/qtextended-4.4.1-neo-update.tgz
http://qtextended.org/downloads/neo/qtopia-4.3.2-neo-update.tgz
http://qtextended.org/downloads/neo/qtopia-4.3.3-snapshot-neo-update.tgz
http://qtextended.org/modules/mydownloads/cache/files/qss2-201006.tgz
http://qtextended.org/modules/mydownloads/cache/files/qpe-timezones_4.4.1_arm.ipk
http://nchc.dl.sourceforge.net/sourceforge/qpe/qtopia-ficgta01-sdk-4.3.2.iso
http://qtextended.org/modules/mydownloads/cache/files/filemanager-1.2.tar.gz


root@om-gta02:~# ps ax -Hf
root 1 0 0 12:11 ? Ss 0:02 init [5]
root 383 1 0 12:11 ? S<s 0:01 udevd --daemon
daemon 1196 1 0 12:11 ? Ss 0:00 /sbin/portmap
root 1235 1 0 12:11 ? Ss 0:00 /bin/sh /etc/init.d/rc 5
root 1348 1235 0 12:11 ? S 0:00 /bin/ash /etc/rc5.d/S98qpe start
root 1349 1348 0 12:11 ? S 0:00 /bin/ash /opt/Trolltech/Qtopia/qpe.sh start
root 1367 1349 1 12:12 ? Sl 2:35 qpe
root 1394 1367 0 12:12 ? S 0:02 /opt/Trolltech/Qtopia/bin/mediaserver -noshow
root 1396 1367 0 12:12 ? S 0:02 /opt/Trolltech/Qtopia/bin/messageserver -noshow
root 1399 1367 0 12:12 ? S 0:02 /opt/Trolltech/Qtopia/bin/qdsync -noshow
root 1779 1367 0 14:00 ? SN 0:03 /opt/Trolltech/Qtopia/bin/quicklauncher
root 1782 1367 0 14:00 ? SN 0:03 /opt/Trolltech/Qtopia/bin/quicklauncher
root 1368 1349 0 12:12 ? S 0:00 logger -t Qtopia

聲音太小的問題沒了,只是我覺得我聽起來對方的聲音仍稍小
有時list型式的列表第一個項目會跑到上面,還得特別把它scroll下來
有個不影響功能的小bug,就是當有來電時,如果很快的接起來(響很久的話則不會有),會突然出現另一個incomming call,斷掉後會出現一個來電未接;目前已經接起來的來電則變成已接來電。
要刪除電話紀錄時會卡在Are you sure?那個問題yes/no都只看的到按不到,只好按PWR跳掉
用BT無線耳機,可配對,聯接handfree,也可以由耳機操作接聽,但是雙方都聽不到聲音
Voice Note仍然無法錄音
再次進入BT去解除連接時整個系統hang住了,來電也顯示不出來,PWR也沒用--->拆電池

mailing list thread
one day usage of qtextended‏

Qtopia改名為Qt etxtend,網址改到http://qtextended.org
kernel是用http://moko.mwester.net/dl.html#kernels
http://qtextended.org/downloads/neo/qtextended-4.4.1-gta02-rootfs-release-10022309.jffs2
http://moko.mwester.net/download/uImage-gta02-g291a9d50_mwester-stable.bin
http://moko.mwester.net/download/modules-min-gta02-g291a9d50_mwester-stable.tgz

前陣子試了一下Qtopia的image(http://qtopia.net/downloads/neo/qtopia-4.3.3-snapshot-09012242-gta02-flash.tgz)
本來是想說有 很悶騷不願具名但是在Link就已經指名的的大大 當靠山,至少可以解決中文化的問題
可是沒想到第一個遇到的問題是 聲音太小
小到如果旁邊不是安靜無聲,你根本不會聽到聲音
就算旁邊都很安靜好了,你大概也是聽到小到不能再小的聲音,說老實話,蚊子從你耳邊飛過可能都還比較大聲

把玩了一下,大約手機該有的功能都有了,可是因為聲音的問題,所以根本還不能當作手機使用,沒時間解決,就暫時先換回OM2007.2,有時間試試看build Qtopia的source看看,不知道是不是image不是最新的關係