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:~#

沒有留言: