To see if I can base my cpufreq work on 2.6.26, I compiled a 2.6.26
kernel and successfully booted it both on both qemu and a real GTA01Bv4.
I used:
- The "August snapshot" u-boot[1]
- A kernel based on the stable-2.6 branch[2] with the following changes
to defconfig-2.6.26[3] (which I used as the .config):
CONFIG_S3C_LOWLEVEL_UART_PORT=0
CONFIG_MTD_NAND_S3C2410_DEBUG is not set
CONFIG_DEBUG_S3C_UART=0
- An openmoko-devel-image from today (compiled from the org.openmoko.dev
branch)[4]
I haven't tested the peripheral chips (GSM, BT, GPS); however, sound
works (this defconfig has everything built-in instead of using modules,
which is much better than having sound as a module).
The only problem I found so far is that the battery status icon seems to
be broken; it's displaying an exclamation icon and an almost-empty red
battery icon (I don't know if it's the fault of the kernel or the
userspace). To check that it's not the kernel that's broken, I took a
look at sysfs:
[EMAIL PROTECTED]:/sys/class/i2c-adapter/i2c-0/0-0008# cat chgmode
fast_cccv
[EMAIL PROTECTED]:/sys/class/i2c-adapter/i2c-0/0-0008# cat chgcur
255
[EMAIL PROTECTED]:/sys/class/i2c-adapter/i2c-0/0-0008# cat chgstate
fast_enabled present fast_ok
[EMAIL PROTECTED]:/sys/class/i2c-adapter/i2c-0/0-0008# cat battemp
37
[EMAIL PROTECTED]:/sys/class/i2c-adapter/i2c-0/0-0008# cat battvolt
4037
After some time (while typing this message in fact), battemp is now at 40.
I have attached the dmesg output (copied via ssh over usb ethernet)[5],
which is probably more informative than anything else on this message ;-) .
If you want me to do some other test on it, just ask[6].
[1] Yes, it's that old, but it's the last "officially recommended"
u-boot version for the GTA01 AFAIK. I'm playing with the kernel, not
with u-boot.
[2] Currently pointing at 0535fda1958587000a4abe711a50d221e0f82379.
[3] It also has a few local changes to the cpufreq core, which were not
compiled in.
[4] Tried ASU, but it suspended within qemu in a few seconds, and I
didn't find out yet how to recover from that on qemu.
[5] Yes, the clock is wrong. Nothing in userspace seems to have ever set
it correctly, and I didn't ever set it manually.
[6] However, I don't expect much help from the userspace on testing things.
--
Cesar Eduardo Barros
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[ 0.000000] Linux version 2.6.26-mokodev ([EMAIL PROTECTED]) (gcc version
4.1.2) #2 PREEMPT Sat Aug 2 17:36:50 BRT 2008
[ 0.000000] CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
[ 0.000000] Machine: GTA01
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] DMA zone: 256 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 32512 pages, LIFO batch:7
[ 0.000000] Normal zone: 0 pages used for memmap
[ 0.000000] Movable zone: 0 pages used for memmap
[ 0.000000] CPU S3C2410A (id 0x32410002)
[ 0.000000] S3C2410: core 266.000 MHz, memory 133.000 MHz, peripheral 66.500
MHz
[ 0.000000] S3C24XX Clocks, (c) 2004 Simtec Electronics
[ 0.000000] CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
[ 0.000000] CPU0: D VIVT write-back cache
[ 0.000000] CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8
sets
[ 0.000000] CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8
sets
[21474536.480000] Built 1 zonelists in Zone order, mobility grouping on. Total
pages: 32512
[21474536.480000] Kernel command line: rootfstype=jffs2 root=/dev/mtdblock4
console=ttySAC0,115200 console=tty0 loglevel=8
mtdparts=neo1973-nand:0x00040000(u-boot),0x00004000(u-boot_env),0x00200000(kernel),0x000a0000(splash),0x03d1c000(rootfs)
[21474536.480000] irq: clearing pending ext status 00000280
[21474536.480000] irq: clearing subpending status 00000002
[21474536.480000] PID hash table entries: 512 (order: 9, 2048 bytes)
[21474536.480000] pclk = 66500000
[21474536.480000] timer_usec_ticks = 5913
[21474536.480000] timer tcon=00500000, tcnt d877, tcfg 00000200,00000000, usec
00001719
[21474536.485000] Console: colour dummy device 80x30
[21474536.485000] console [tty0] enabled
[21474536.495000] console [ttySAC0] enabled
[21474536.505000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc.,
Ingo Molnar
[21474536.510000] ... MAX_LOCKDEP_SUBCLASSES: 8
[21474536.515000] ... MAX_LOCK_DEPTH: 48
[21474536.520000] ... MAX_LOCKDEP_KEYS: 2048
[21474536.525000] ... CLASSHASH_SIZE: 1024
[21474536.530000] ... MAX_LOCKDEP_ENTRIES: 8192
[21474536.535000] ... MAX_LOCKDEP_CHAINS: 16384
[21474536.540000] ... CHAINHASH_SIZE: 8192
[21474536.540000] memory used by lock dependency info: 1024 kB
[21474536.545000] per task-struct memory footprint: 3072 bytes
[21474536.550000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[21474536.555000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[21474536.585000] Memory: 128MB = 128MB total
[21474536.585000] Memory: 123392KB available (3708K code, 2604K data, 140K init)
[21474536.590000] Calibrating delay loop... 131.89 BogoMIPS (lpj=329728)
[21474536.705000] Mount-cache hash table entries: 512
[21474536.715000] CPU: Testing write buffer coherency: ok
[21474536.730000] khelper used greatest stack depth: 6664 bytes left
[21474536.740000] net_namespace: 704 bytes
[21474536.755000] NET: Registered protocol family 16
[21474536.810000] S3C2410 Power Management, (c) 2004 Simtec Electronics
[21474536.815000] GSM wakeup interrupt (IRQ 17)
[21474536.820000] wake enabled for irq 17
[21474536.825000] Enabled GSM wakeup IRQ 17 (rc=0)
[21474536.830000] S3C2410: Initialising architecture
[21474536.835000] S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
[21474536.840000] DMA channel 0 at c8800000, irq 33
[21474536.845000] DMA channel 1 at c8800040, irq 34
[21474536.850000] DMA channel 2 at c8800080, irq 35
[21474536.855000] DMA channel 3 at c88000c0, irq 36
[21474536.885000] khelper used greatest stack depth: 6628 bytes left
[21474536.900000] khelper used greatest stack depth: 6284 bytes left
[21474536.960000] Linux Plug and Play Support v0.97 (c) Adam Belay
[21474536.980000] khelper used greatest stack depth: 6244 bytes left
[21474536.985000] SCSI subsystem initialized
[21474537.000000] usbcore: registered new interface driver usbfs
[21474537.010000] usbcore: registered new interface driver hub
[21474537.015000] usbcore: registered new device driver usb
[21474537.070000] Bluetooth: Core ver 2.11
[21474537.080000] NET: Registered protocol family 31
[21474537.080000] Bluetooth: HCI device and connection manager initialized
[21474537.085000] Bluetooth: HCI socket layer initialized
[21474537.090000] pnp: the driver 'system' has been registered
[21474537.120000] NET: Registered protocol family 2
[21474537.175000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[21474537.190000] TCP established hash table entries: 4096 (order: 3, 32768
bytes)
[21474537.195000] TCP bind hash table entries: 4096 (order: 5, 147456 bytes)
[21474537.200000] TCP: Hash tables configured (established 4096 bind 4096)
[21474537.205000] TCP reno registered
[21474537.225000] NET: Registered protocol family 1
[21474537.240000] NetWinder Floating Point Emulator V0.97 (double precision)
[21474537.285000] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat,
Inc.
[21474537.295000] msgmni has been set to 241
[21474537.300000] io scheduler noop registered
[21474537.300000] io scheduler deadline registered (default)
[21474537.365000] Console: switching to colour frame buffer device 80x58
[21474537.390000] fb0: s3c2410fb frame buffer device
[21474537.435000] s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70)
is a S3C2410
[21474537.445000] s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73)
is a S3C2410
[21474537.545000] khelper used greatest stack depth: 6120 bytes left
[21474537.550000] brd: module loaded
[21474537.570000] Driver 'sd' needs updating - please use bus_type methods
[21474537.575000] Driver 'sr' needs updating - please use bus_type methods
[21474537.595000] S3C24XX NAND Driver, (c) 2004 Simtec Electronics
[21474537.610000] s3c2410-nand s3c2410-nand: Tacls=3, 22ns Twrph0=8 60ns,
Twrph1=3 22ns
[21474537.615000] NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung
NAND 64MiB 3,3V 8-bit)
[21474537.620000] s3c2410_nand_update_chip: chip c7fddcbc: 9
[21474537.625000] Bad block table found at page 131040, version 0x01
[21474537.630000] Bad block table found at page 131008, version 0x01
[21474537.635000] 5 cmdlinepart partitions found on MTD device neo1973-nand
[21474537.640000] Creating 5 MTD partitions on "neo1973-nand":
[21474537.645000] 0x00000000-0x00040000 : "u-boot"
[21474537.660000] 0x00040000-0x00044000 : "u-boot_env"
[21474537.675000] 0x00044000-0x00244000 : "kernel"
[21474537.690000] 0x00244000-0x002e4000 : "splash"
[21474537.700000] 0x002e4000-0x04000000 : "rootfs"
[21474537.725000] spi_s3c24xx_gpio spi_s3c24xx_gpio.1: registering c03d0e90:
jbt6k74
[21474537.760000] ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller
(OHCI) Driver
[21474537.770000] s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
[21474537.785000] s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned
bus number 1
[21474537.790000] s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
[21474537.860000] usb usb1: configuration #1 chosen from 1 choice
[21474537.870000] hub 1-0:1.0: USB hub found
[21474537.875000] hub 1-0:1.0: 2 ports detected
[21474537.995000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[21474538.000000] usb usb1: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[21474538.005000] usb usb1: Product: S3C24XX OHCI
[21474538.010000] usb usb1: Manufacturer: Linux 2.6.26-mokodev ohci_hcd
[21474538.015000] usb usb1: SerialNumber: s3c24xx
[21474538.025000] usbcore: registered new interface driver cdc_acm
[21474538.030000] cdc_acm: v0.26:USB Abstract Control Model driver for USB
modems and ISDN adapters
[21474538.035000] Initializing USB Mass Storage driver...
[21474538.045000] usbcore: registered new interface driver usb-storage
[21474538.050000] USB Mass Storage support registered.
[21474538.060000] usbcore: registered new interface driver libusual
[21474538.070000] usbcore: registered new interface driver usbserial
[21474538.080000] usbserial: USB Serial support registered for generic
[21474538.085000] usbcore: registered new interface driver usbserial_generic
[21474538.090000] usbserial: USB Serial Driver core
[21474538.095000] usbserial: USB Serial support registered for GSM modem
(1-port)
[21474538.100000] usbcore: registered new interface driver option
[21474538.105000] option: USB Driver for GSM modems: v0.7.2
[21474538.125000] gta01_udc_command(2)
[21474538.135000] ether gadget: using random self ethernet address
[21474538.140000] ether gadget: using random host ethernet address
[21474538.155000] usb0: Ethernet Gadget, version: May Day 2005
[21474538.160000] usb0: using s3c2410_udc, OUT ep2-bulk IN ep1-bulk STATUS
ep3-bulk
[21474538.165000] usb0: MAC b6:f8:de:59:26:8c
[21474538.170000] usb0: HOST MAC 0e:f4:06:fe:67:6b
[21474538.175000] usb0: RNDIS ready
[21474538.180000] gta01_udc_command(1)
[21474538.185000] mice: PS/2 mouse device common for all mice
[21474538.195000] input: Neo1973 Buttons as /class/input/input0
[21474538.230000] wake enabled for irq 50
[21474538.235000] wake enabled for irq 48
[21474538.250000] s3c2410-ts s3c2410-ts: successfully loaded
[21474538.260000] input: s3c2410 TouchScreen as /class/input/input1
[21474538.290000] i2c /dev entries driver
[21474538.300000] s3c2410-i2c s3c2410-i2c: slave address 0x10
[21474538.305000] s3c2410-i2c s3c2410-i2c: bus frequency set to 377 KHz
[21474538.320000] s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
[21474538.350000] input: FIC Neo1973 PMU events as /class/input/input2
[21474538.420000] wake enabled for irq 53
[21474538.430000] pcf50606: dev (254:0)
[21474538.435000] pcf50606 0-0008: rtc core: registered pcf50606 as rtc0
[21474538.445000] neo1973-pm-bt neo1973-pm-bt.0: FIC Neo1973 Bluetooth Power
Management: starting
[21474538.570000] pcf50633_attach_adapter: entering, calling i2c_probe
[21474538.585000] APM Battery Driver
[21474538.595000] Bluetooth: HCI USB driver ver 2.9
[21474538.605000] usbcore: registered new interface driver hci_usb
[21474538.615000] pnp: the driver 'sdio_wlan' has been registered
[21474538.625000] Registered led device: neo1973:vibrator
[21474538.635000] usbcore: registered new interface driver usbhid
[21474538.640000] usbhid: v2.6:USB HID core driver
[21474538.650000] Advanced Linux Sound Architecture Driver Version 1.0.16.
[21474538.660000] ASoC version 0.13.2
[21474538.670000] Entered neo1973_init
[21474538.675000] wm8753: WM8753 Audio Codec 0.16
[21474538.700000] asoc: WM8753 HiFi <-> s3c24xx-i2s mapping ok
[21474538.710000] asoc: WM8753 Voice <-> Bluetooth mapping ok
[21474538.945000] Only GTA02 hardware supported by ASoc driver
[21474538.950000] ALSA device list:
[21474538.955000] #0: neo1973 (WM8753)
[21474538.975000] TCP cubic registered
[21474538.980000] NET: Registered protocol family 17
[21474538.990000] Bridge firewalling registered
[21474538.995000] Bluetooth: L2CAP ver 2.9
[21474539.000000] Bluetooth: L2CAP socket layer initialized
[21474539.005000] Bluetooth: SCO (Voice Link) ver 0.5
[21474539.010000] Bluetooth: SCO socket layer initialized
[21474539.020000] Bluetooth: RFCOMM socket layer initialized
[21474539.025000] Bluetooth: RFCOMM TTY layer initialized
[21474539.030000] Bluetooth: RFCOMM ver 1.8
[21474539.035000] Bluetooth: BNEP (Ethernet Emulation) ver 1.2
[21474539.040000] Bluetooth: BNEP filters: protocol multicast
[21474539.045000] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[21474539.140000] pcf50606 0-0008: setting system clock to 2000-02-01 05:23:53
UTC (949382633)
[21474556.065000] VFS: Mounted root (jffs2 filesystem).
[21474556.070000] Freeing init memory: 140K
[21474556.100000] khelper used greatest stack depth: 5560 bytes left
[21474557.015000] PM: Removing info for No Bus:vcs1
[21474557.025000] PM: Removing info for No Bus:vcsa1
[21474557.045000] PM: Removing info for No Bus:vcs1
[21474557.055000] PM: Removing info for No Bus:vcsa1
[21474557.165000] PM: Removing info for No Bus:vcs1
[21474557.175000] PM: Removing info for No Bus:vcsa1
[21474557.195000] PM: Removing info for No Bus:vcs1
[21474557.205000] PM: Removing info for No Bus:vcsa1
[21474557.235000] PM: Removing info for No Bus:vcs1
[21474557.250000] PM: Removing info for No Bus:vcsa1
[21474558.060000] mount used greatest stack depth: 5216 bytes left
[21474718.080000] rc used greatest stack depth: 5032 bytes left
[21474730.700000] GSM wakeup interrupt (IRQ 17)
[21474741.585000] mapped channel 10 to 2
[21474743.845000] PM: Removing info for No Bus:vcs1
[21474743.850000] PM: Removing info for No Bus:vcsa1
[21474746.770000] PM: Removing info for No Bus:vcs2
[21474746.775000] PM: Removing info for No Bus:vcsa2
[21474760.250000] Alignment trap: phone-kit (2266) PC=0x00011d9c
Instr=0xe5970008 Address=0xbe9ff537 FSR 0x013
[21474801.650000] usb0: full speed config #1: 500 mA, Ethernet Gadget, using
CDC Ethernet
[21474801.655000] udc: enabling fast charge