Discussion:
some 2.6.39 experiences (SD card worked! suspend and sound still broken...)
Timo Juhani Lindfors
2011-10-20 22:27:29 UTC
Permalink
Hi,

today I tried the shr-2.6.39-nodrm branch of
git://gitorious.org/shr/linux with my debian system.

I can finally boot with rootfs on SD card! Also usbhost works now, and
wifi (omhacks rfkill support is coming soon!).

There are still some issues though. For some reason sound card seems to
appear only very randomly. Also resume just shows a blinking cursor in
top left corner and then watchdog kills the system.

More minor issues are that I can't find current_now node or "temp"
(temperature) node for battery.

***@ginger:~$ uname -r
2.6.39-37d242a328800930
***@ginger:~$ bzgrep commit -A4 /usr/share/doc/linux-image-2.6.39-37d242a328800930/gitlog.bz2 | head -n 30
commit 37d242a32880093018a8665131e4b3e2b34d5dab
Author: Timo Juhani Lindfors <***@iki.fi>
Date: Thu Oct 20 17:47:21 2011 +0300

Add .config from http://build.shr-project.org/tests/jama/kernel-nodrm/config-2.6.39.gz
--
commit 74c481b35be9bf9b7d512de6942c7be345a7db47
Author: Klaus Kurzmann <***@fluxnetz.de>
Date: Fri Jun 10 08:47:27 2011 +0200

wm8753: allow setting DAI mode even while pcm is active
--
commit 1f3750e2cf3895b269589495147416c61ba523c5
Author: Gennady Kupava <***@bsdmn.com>
Date: Fri Jan 7 16:32:00 2011 +0100

s3c2410_ts: jitter less touchscreen for glamo, version 4
--
commit b05f074d5eb6f77cefcef35f7f2b2aaeb27af069
Author: Gennady Kupava <***@bsdmn.com>
Date: Fri Jan 7 15:53:54 2011 +0100

touchscreen: ignore unexpected interrupts
--
commit f0e6a6317de2567383a543a545cf50e58b3caa3d
Author: Arnaud Patard <***@rtp-net.org>
Date: Tue Aug 17 07:30:06 2010 +0200

tslib relies on ts pressures events so this hack is needed to get tslib stuff working
--
***@ginger:~$ lsmod
Module Size Used by
fuse 66772 1
option 13487 0
usb_wwan 9212 1 option
usbserial 27125 2 option,usb_wwan
tun 14843 0
g_ether 32843 0
btusb 10303 0
bluetooth 83534 1 btusb
joydev 10188 0
snd_soc_s3c24xx 3362 0
ar6000 129271 0
snd_soc_s3c24xx_i2s 3468 0
s3c2410_udc 13635 1 g_ether
snd_soc_wm8753 26742 0
snd_soc_core 62698 3 snd_soc_s3c24xx,snd_soc_s3c24xx_i2s,snd_soc_wm8753
snd_pcm 59839 2 snd_soc_s3c24xx,snd_soc_core
snd_timer 17950 1 snd_pcm
snd 43334 3 snd_soc_core,snd_pcm,snd_timer
soundcore 4859 1 snd
ohci_hcd 20553 0
snd_page_alloc 3796 1 snd_pcm
usbcore 121672 5 option,usb_wwan,usbserial,btusb,ohci_hcd
***@ginger:~$ dmesg
[ 0.000000] Linux version 2.6.39-37d242a328800930 (***@fomalhaut) (gcc version 4.2.4 (Debian 4.2.4-6)) #1 Thu Oct 20 21:11:42 EEST 2011
[ 0.000000] CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: GTA02
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] BUG: mapping for 0x19000000 at 0xe0000000 overlaps vmalloc space
[ 0.000000] CPU S3C2442B (id 0x32440aab)
[ 0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics
[ 0.000000] S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
[ 0.000000] CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
[ 0.000000] On node 0 totalpages: 32512
[ 0.000000] free_area_init_node: node 0, pgdat c03d39c0, node_mem_map c0423000
[ 0.000000] Normal zone: 254 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32258 pages, LIFO batch:7
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32258
[ 0.000000] Kernel command line: loglevel=4 console=tty0 console=ttySAC2,115200 init=/sbin/init ro mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(qi),0x00040000(depr-ub-env),0x00820000(kernel),0x000a0000(depr),0x00040000(identity-ext2),0x0f680000(rootfs) g_ether.dev_addr=00:1F:11:01:97:73 g_ether.host_addr=00:1F:11:01:97:74 root=/dev/mmcblk0p2 rootdelay=1 rootdelay=1 panic=19 mem=127M root=/dev/mmcblk0p2 loglevel=8
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 127MB = 127MB total
[ 0.000000] Memory: 124652k/124652k available, 5396k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xc8000000 - 0xf6000000 ( 736 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc7f00000 ( 127 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc0029000 ( 132 kB)
[ 0.000000] .text : 0xc0029000 - 0xc03b4bf0 (3631 kB)
[ 0.000000] .data : 0xc03b6000 - 0xc03d4060 ( 121 kB)
[ 0.000000] NR_IRQS:85 nr_irqs:85 85
[ 0.000000] irq: clearing pending ext status 000912f0
[ 0.000000] irq: clearing pending ext status 000902d0
[ 0.000000] irq: clearing subpending status 00000180
[ 0.000000] irq: clearing subpending status 00000080
[ 0.000000] timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.000000] console [ttySAC2] enabled
[ 0.005000] Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
[ 0.050000] pid_max: default: 32768 minimum: 301
[ 0.050000] Mount-cache hash table entries: 512
[ 0.055000] CPU: Testing write buffer coherency: ok
[ 0.060000] devtmpfs: initialized
[ 0.065000] print_constraints: dummy:
[ 0.065000] NET: Registered protocol family 16
[ 0.075000] S3C Power Management, Copyright 2004 Simtec Electronics
[ 0.085000] S3C2442: Initialising architecture
[ 0.085000] S3C24XX DMA Driver, Copyright 2003-2006 Simtec Electronics
[ 0.090000] DMA channel 0 at c8008000, irq 33
[ 0.095000] DMA channel 1 at c8008040, irq 34
[ 0.095000] DMA channel 2 at c8008080, irq 35
[ 0.100000] DMA channel 3 at c80080c0, irq 36
[ 0.105000] S3C244X: Clock Support, DVS off
[ 0.110000] s3c-adc s3c24xx-adc: attached adc driver
[ 0.115000] s3c24xx-pwm s3c24xx-pwm.0: tin at 25000000, tdiv at 25000000, tin=divclk, base 0
[ 0.120000] s3c24xx-pwm s3c24xx-pwm.1: tin at 25000000, tdiv at 25000000, tin=divclk, base 8
[ 0.125000] s3c24xx-pwm s3c24xx-pwm.2: tin at 8333333, tdiv at 8333333, tin=divclk, base 12
[ 0.130000] s3c24xx-pwm s3c24xx-pwm.3: tin at 8333333, tdiv at 8333333, tin=divclk, base 16
[ 0.140000] bio: create slab <bio-0> at 0
[ 0.140000] s3c-i2c s3c2440-i2c: slave address 0x10
[ 0.140000] s3c-i2c s3c2440-i2c: bus frequency set to 97 KHz
[ 0.155000] pcf50633 0-0073: Probed device version 19 variant 132
[ 0.185000] wake enabled for irq 53
[ 0.185000] print_constraints: auto: 3300 mV normal
[ 0.190000] print_constraints: down1: 1300 <--> 1600 mV at 1300 mV normal
[ 0.205000] print_constraints: down2: 1800 mV normal
[ 0.205000] print_constraints: ldo1: 3300 mV normal
[ 0.210000] print_constraints: ldo2: 3300 mV normal
[ 0.215000] print_constraints: ldo3: 3000 mV normal
[ 0.220000] print_constraints: ldo4: 3200 mV normal
[ 0.225000] print_constraints: ldo5: 3000 mV normal
[ 0.230000] print_constraints: ldo6: 3000 mV normal
[ 0.235000] print_constraints: hcldo: 2000 <--> 3300 mV at 3000 mV normal
[ 0.240000] print_constraints: memldo: 1800 mV normal
[ 0.245000] s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
[ 0.295000] NET: Registered protocol family 2
[ 0.295000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.305000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.310000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.315000] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.320000] TCP reno registered
[ 0.325000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.330000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.340000] NET: Registered protocol family 1
[ 0.340000] gta02-pm-bt gta02-pm-bt.0: Openmoko Freerunner Bluetooth Power Management: starting
[ 0.345000] gta02-pm-bt gta02-pm-bt.0: __gta02_pm_bt_toggle_radio 1
[ 0.370000] gta02-pm-gps gta02-pm-gps.0: starting
[ 0.370000] gta02-pm-wlan gta02-pm-wlan.0: starting
[ 0.575000] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.580000] msgmni has been set to 243
[ 0.585000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.590000] io scheduler noop registered
[ 0.595000] io scheduler deadline registered (default)
[ 0.620000] print_constraints: GSM: 3700 mV normal
[ 0.640000] print_constraints: USBHOST: 3700 mV normal
[ 0.650000] s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440
[ 0.650000] s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440
[ 0.655000] s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440
[ 0.685000] brd: module loaded
[ 0.685000] neo1973-resume neo1973-resume.0: starting
[ 0.725000] SMEDIA Glamo frame buffer driver (C) 2007 Openmoko, Inc.
[ 0.725000] glamo-fb glamo-fb.0: spin_lock_init
[ 0.800000] Console: switching to colour frame buffer device 60x40
[ 0.865000] fb0: SMedia Glamo frame buffer device
[ 0.870000] glamo3362 glamo3362.0: Glamo core PLL1: 49119232Hz, PLL2: 89980928Hz
[ 0.880000] physmap platform flash device: 00200000 at 18000000
[ 0.880000] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000020 Chip ID 0x008813
[ 0.885000] Intel/Sharp Extended Query Table at 0x0039
[ 0.885000] Intel/Sharp Extended Query Table at 0x0039
[ 0.890000] Intel/Sharp Extended Query Table at 0x0039
[ 0.895000] Intel/Sharp Extended Query Table at 0x0039
[ 0.900000] Intel/Sharp Extended Query Table at 0x0039
[ 0.905000] cfi_cmdset_0001: Erase suspend on write enabled
[ 0.910000] erase region 0: offset=0x0,size=0x2000,blocks=8
[ 0.915000] erase region 1: offset=0x10000,size=0x10000,blocks=31
[ 0.920000] physmap-flash.0: 1 set(s) of 1 interleaved chips --> 4 partitions of 512 KiB
[ 0.930000] RedBoot partition parsing not available
[ 0.940000] S3C24XX NAND Driver, (c) 2004 Simtec Electronics
[ 0.945000] s3c24xx-nand s3c2440-nand: Tacls=1, 10ns Twrph0=3 30ns, Twrph1=2 20ns
[ 0.950000] s3c24xx-nand s3c2440-nand: NAND soft ECC
[ 0.955000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xaa (Samsung NAND 256MiB 1,8V 8-bit)
[ 0.960000] 6 cmdlinepart partitions found on MTD device neo1973-nand
[ 0.965000] Creating 6 MTD partitions on "neo1973-nand":
[ 0.970000] 0x000000000000-0x000000040000 : "qi"
[ 0.980000] 0x000000040000-0x000000080000 : "depr-ub-env"
[ 0.990000] 0x000000080000-0x0000008a0000 : "kernel"
[ 1.000000] 0x0000008a0000-0x000000940000 : "depr"
[ 1.010000] 0x000000940000-0x000000980000 : "identity-ext2"
[ 1.020000] 0x000000980000-0x000010000000 : "rootfs"
[ 1.250000] mousedev: PS/2 mouse device common for all mice
[ 1.260000] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 1.265000] samsung-ts s3c2440-ts: driver attached, registering input device
[ 1.270000] input: S3C24XX TouchScreen as /devices/virtual/input/input1
[ 1.275000] input: PCF50633 PMU events as /devices/virtual/input/input2
[ 1.285000] pcf50633-rtc pcf50633-rtc: rtc core: registered pcf50633-rtc as rtc0
[ 1.290000] S3C24XX RTC, (c) 2004,2006 Simtec Electronics
[ 1.295000] i2c /dev entries driver
[ 1.415000] S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
[ 1.420000] s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
[ 1.430000] cpuidle: using governor ladder
[ 1.435000] s3c-sdi s3c2440-sdi: powered down.
[ 1.440000] s3c-sdi s3c2440-sdi: mmc0 - using pio, sw SDIO IRQ
[ 1.445000] glamo-mci glamo-mci.0: glamo_mci driver (C)2007 Openmoko, Inc
[ 1.450000] s3c-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
[ 1.455000] glamo-mci glamo-mci.0: glamo_mci_set_ios: power down.
[ 1.460000] Registered led device: gta02:red:aux
[ 1.470000] Registered led device: gta02:orange:power
[ 1.480000] Registered led device: gta02:blue:power
[ 1.485000] Registered led device: gta02::vibrator
[ 1.490000] TCP westwood registered
[ 1.495000] NET: Registered protocol family 17
[ 1.500000] Registering the dns_resolver key type
[ 1.510000] s3c-sdi s3c2440-sdi: running at 400kHz (requested: 400kHz).
[ 1.515000] regulator_init_complete: memldo: disabling
[ 1.525000] regulator_init_complete: hcldo: disabling
[ 1.535000] s3c-sdi s3c2440-sdi: running at 400kHz (requested: 400kHz).
[ 1.540000] s3c-sdi s3c2440-sdi: running at 400kHz (requested: 400kHz).
[ 1.545000] s3c-sdi s3c2440-sdi: running at 400kHz (requested: 400kHz).
[ 1.550000] pcf50633-rtc pcf50633-rtc: setting system clock to 2011-10-20 23:22:34 UTC (1319152954)
[ 1.555000] Waiting 1sec before mounting root device...
[ 1.565000] s3c-sdi s3c2440-sdi: running at 400kHz (requested: 400kHz).
[ 1.575000] mmc0: queuing unknown CIS tuple 0x01 (3 bytes)
[ 1.585000] mmc0: queuing unknown CIS tuple 0x1a (5 bytes)
[ 1.595000] mmc0: queuing unknown CIS tuple 0x1b (8 bytes)
[ 1.600000] s3c-sdi s3c2440-sdi: running at 25000kHz (requested: 25000kHz).
[ 1.605000] s3c-sdi s3c2440-sdi: running at 25000kHz (requested: 25000kHz).
[ 1.610000] mmc0: queuing unknown CIS tuple 0x80 (1 bytes)
[ 1.615000] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[ 1.620000] mmc0: queuing unknown CIS tuple 0x82 (1 bytes)
[ 1.625000] mmc0: new SDIO card at address 0001
[ 1.670000] glamo-mci glamo-mci.0: powered (vdd = 21) clk: 0kHz div=0 (req: 0kHz). Bus width=0
[ 1.695000] glamo-mci glamo-mci.0: powered (vdd = 21) clk: 399kHz div=0 (req: 400kHz). Bus width=0
[ 1.720000] glamo-mci glamo-mci.0: powered (vdd = 21) clk: 399kHz div=0 (req: 400kHz). Bus width=0
[ 1.730000] glamo-mci glamo-mci.0: powered (vdd = 21) clk: 399kHz div=0 (req: 400kHz). Bus width=0
[ 1.745000] glamo-mci glamo-mci.0: powered (vdd = 15) clk: 399kHz div=0 (req: 400kHz). Bus width=0
[ 1.755000] glamo-mci glamo-mci.0: powered (vdd = 15) clk: 399kHz div=0 (req: 400kHz). Bus width=0
[ 1.770000] glamo-mci glamo-mci.0: powered (vdd = 15) clk: 399kHz div=0 (req: 400kHz). Bus width=0
[ 1.795000] glamo-mci glamo-mci.0: powered (vdd = 15) clk: 399kHz div=0 (req: 400kHz). Bus width=0
[ 1.810000] glamo-mci glamo-mci.0: powered (vdd = 15) clk: 399kHz div=0 (req: 400kHz). Bus width=0
[ 1.820000] glamo-mci glamo-mci.0: powered (vdd = 15) clk: 16373kHz div=0 (req: 17000kHz). Bus width=0
[ 1.830000] glamo-mci glamo-mci.0: powered (vdd = 15) clk: 16373kHz div=0 (req: 17000kHz). Bus width=2
[ 1.835000] mmc1: new high speed SDHC card at address b368
[ 1.845000] mmcblk0: mmc1:b368 USD 7.46 GiB
[ 1.855000] mmcblk0: p1 p2
[ 2.580000] EXT3-fs: barriers not enabled
[ 2.590000] kjournald starting. Commit interval 5 seconds
[ 2.595000] EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
[ 2.600000] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
[ 2.610000] devtmpfs: mounted
[ 2.615000] Freeing init memory: 132K
[ 4.425000] pcf50633 0-0073: usb curlim to 1000 mA
[ 5.405000] udevd[94]: starting version 172
[ 7.290000] usbcore: registered new interface driver usbfs
[ 7.295000] usbcore: registered new interface driver hub
[ 7.350000] usbcore: registered new device driver usb
[ 7.535000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 7.545000] s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
[ 7.550000] s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
[ 7.615000] s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
[ 7.810000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[ 7.815000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 7.820000] usb usb1: Product: S3C24XX OHCI
[ 7.825000] usb usb1: Manufacturer: Linux 2.6.39-37d242a328800930 ohci_hcd
[ 7.830000] usb usb1: SerialNumber: s3c24xx
[ 7.840000] hub 1-0:1.0: USB hub found
[ 7.845000] hub 1-0:1.0: 2 ports detected
[ 8.470000] usb 1-1: new full speed USB device number 2 using s3c2410-ohci
[ 8.735000] usb 1-1: New USB device found, idVendor=0a12, idProduct=0001
[ 8.740000] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 9.310000] s3c2410_udc: debugfs dir creation failed -19
[ 9.325000] s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes
[ 9.880000] HIFInit
[ 12.305000] Bluetooth: Core ver 2.16
[ 12.310000] NET: Registered protocol family 31
[ 12.315000] Bluetooth: HCI device and connection manager initialized
[ 12.320000] Bluetooth: HCI socket layer initialized
[ 12.465000] Bluetooth: Generic Bluetooth USB driver ver 0.6
[ 12.520000] usbcore: registered new interface driver btusb
[ 14.360000] EXT3-fs (mmcblk0p2): using internal journal
[ 22.690000] usb0: MAC 00:1f:11:01:97:73
[ 22.695000] usb0: HOST MAC 00:1f:11:01:97:74
[ 22.700000] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 22.705000] g_ether gadget: g_ether ready
[ 22.735000] udevd[190]: renamed network interface usb0 to usb
[ 22.835000] tun: Universal TUN/TAP device driver, 1.6
[ 22.840000] tun: (C) 1999-2004 Max Krasnyansky <***@qualcomm.com>
[ 22.955000] g_ether gadget: full speed config #1: CDC Ethernet (ECM)
[ 23.290000] usbcore: registered new interface driver usbserial
[ 23.300000] USB Serial support registered for generic
[ 23.305000] usbcore: registered new interface driver usbserial_generic
[ 23.310000] usbserial: USB Serial Driver core
[ 23.460000] USB Serial support registered for GSM modem (1-port)
[ 23.465000] usbcore: registered new interface driver option
[ 23.470000] option: v0.7.2:USB Driver for GSM modems
[ 23.805000] Adding 65532k swap on /SWAP. Priority:-1 extents:17 across:65600k SS
[ 24.955000] fuse init (API version 7.16)
[ 25.960000] pcf50633 0-0073: usb curlim to 500 mA
[ 32.655000] wd_keepalive (668): /proc/668/oom_adj is deprecated, please use /proc/668/oom_score_adj instead.
[ 61.410000] gta02-pm-bt gta02-pm-bt.0: __gta02_pm_bt_toggle_radio 0
[ 61.420000] usb 1-1: USB disconnect, device number 2
[ 61.460000] mmc0: card 0001 removed
[ 61.465000] s3c-sdi s3c2440-sdi: powered down.
***@ginger:~$ aplay -l
aplay: device_list:242: no soundcards found...
***@ginger:~$ sudo modprobe snd_soc_neo1973_wm8753
***@ginger:~$ aplay -l
aplay: device_list:242: no soundcards found...
***@ginger:~$ find /lib/modules/2.6.39-37d242a328800930/ -type f|grep snd
/lib/modules/2.6.39-37d242a328800930/kernel/sound/core/oss/snd-mixer-oss.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/core/oss/snd-pcm-oss.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/core/snd-page-alloc.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/core/snd-timer.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/core/snd-pcm.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/core/seq/oss/snd-seq-oss.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/core/seq/snd-seq-midi-event.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/core/seq/snd-seq-device.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/core/seq/snd-seq.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/core/seq/snd-seq-dummy.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/core/snd.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/soc/codecs/snd-soc-dfbmcs320.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/soc/codecs/snd-soc-wm8753.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/soc/snd-soc-core.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/soc/samsung/snd-soc-neo1973-wm8753.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/soc/samsung/snd-soc-s3c24xx-i2s.ko
/lib/modules/2.6.39-37d242a328800930/kernel/sound/soc/samsung/snd-soc-s3c24xx.ko
***@ginger:~$ sudo rmmod snd_soc_neo1973_wm8753
***@ginger:~$ dmesg|tail -n20
[ 24.955000] fuse init (API version 7.16)
[ 25.960000] pcf50633 0-0073: usb curlim to 500 mA
[ 32.655000] wd_keepalive (668): /proc/668/oom_adj is deprecated, please use /proc/668/oom_score_adj instead.
[ 61.410000] gta02-pm-bt gta02-pm-bt.0: __gta02_pm_bt_toggle_radio 0
[ 61.420000] usb 1-1: USB disconnect, device number 2
[ 61.460000] mmc0: card 0001 removed
[ 61.465000] s3c-sdi s3c2440-sdi: powered down.
[ 288.730000] ------------[ cut here ]------------
[ 288.730000] WARNING: at /tmpfs/linux-2.6/kernel/irq/manage.c:1131 __free_irq+0xfc/0x174()
[ 288.730000] Trying to free already-free IRQ 48
[ 288.730000] Modules linked in: snd_soc_neo1973_wm8753(-) fuse option usb_wwan usbserial tun g_ether btusb bluetooth joydev snd_soc_s3c24xx ar6000 snd_soc_s3c24xx_i2s s3c2410_udc snd_soc_wm8753 snd_soc_core snd_pcm snd_timer snd soundcore ohci_hcd snd_page_alloc usbcore
[ 288.730000] [<c002e6b8>] (unwind_backtrace+0x0/0xf8) from [<c003f820>] (warn_slowpath_common+0x48/0x60)
[ 288.730000] [<c003f820>] (warn_slowpath_common+0x48/0x60) from [<c003f8cc>] (warn_slowpath_fmt+0x30/0x40)
[ 288.730000] [<c003f8cc>] (warn_slowpath_fmt+0x30/0x40) from [<c006e2a4>] (__free_irq+0xfc/0x174)
[ 288.730000] [<c006e2a4>] (__free_irq+0xfc/0x174) from [<c006e350>] (free_irq+0x34/0x64)
[ 288.730000] [<c006e350>] (free_irq+0x34/0x64) from [<bf087ea8>] (snd_soc_jack_free_gpios+0x2c/0x58 [snd_soc_core])
[ 288.730000] [<bf087ea8>] (snd_soc_jack_free_gpios+0x2c/0x58 [snd_soc_core]) from [<bf1a35c0>] (neo1973_exit+0x18/0x48 [snd_soc_neo1973_wm8753])
[ 288.730000] [<bf1a35c0>] (neo1973_exit+0x18/0x48 [snd_soc_neo1973_wm8753]) from [<c006b248>] (sys_delete_module+0x134/0x1c8)
[ 288.730000] [<c006b248>] (sys_delete_module+0x134/0x1c8) from [<c0029f00>] (ret_fast_syscall+0x0/0x2c)
[ 288.730000] ---[ end trace ef1f2b8323c79a6c ]---
***@ginger:~$

-Timo
Timo Juhani Lindfors
2011-10-21 12:28:51 UTC
Permalink
Post by Timo Juhani Lindfors
More minor issues are that I can't find current_now node or "temp"
(temperature) node for battery.
This seems to be caused by the fact that CONFIG_BATTERY_BQ27x00 is not
enabled. voltage_now is provided by arch/arm/mach-s3c2440/mach-gta02.c
but that does not know about current_now.

I enabled CONFIG_BATTERY_BQ27x00 and added some debug prints. Now I get

...
pcf50633-rtc pcf50633-rtc: rtc core: registered pcf50633-rtc as rtc0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
i2c /dev entries driver
------------[ cut here ]------------
WARNING: at /tmpfs/linux-2.6/fs/sysfs/dir.c:455 sysfs_add_one+0x8c/0xb0()
sysfs: cannot create duplicate filename '/class/power_supply/battery'
Modules linked in:
[<c002e6b8>] (unwind_backtrace+0x0/0xf8) from [<c003f820>] (warn_slowpath_common+0x48/0x60)
[<c003f820>] (warn_slowpath_common+0x48/0x60) from [<c003f8cc>] (warn_slowpath_fmt+0x30/0x40)
[<c003f8cc>] (warn_slowpath_fmt+0x30/0x40) from [<c00eaa58>] (sysfs_add_one+0x8c/0xb0)
[<c00eaa58>] (sysfs_add_one+0x8c/0xb0) from [<c00ebbc4>] (sysfs_do_create_link+0xb8/0x1fc)
[<c00ebbc4>] (sysfs_do_create_link+0xb8/0x1fc) from [<c01e0660>] (device_add_class_symlinks+0x74/0xcc)
[<c01e0660>] (device_add_class_symlinks+0x74/0xcc) from [<c01e11fc>] (device_add+0xc8/0x2e0)
[<c01e11fc>] (device_add+0xc8/0x2e0) from [<c0227acc>] (power_supply_register+0xa8/0xf4)
[<c0227acc>] (power_supply_register+0xa8/0xf4) from [<c0228c34>] (bq27x00_powersupply_init+0x7c/0xe0)
[<c0228c34>] (bq27x00_powersupply_init+0x7c/0xe0) from [<c02d1054>] (bq27000_battery_probe+0x78/0x104)
[<c02d1054>] (bq27000_battery_probe+0x78/0x104) from [<c01e50ec>] (platform_drv_probe+0x1c/0x24)
[<c01e50ec>] (platform_drv_probe+0x1c/0x24) from [<c01e3ca0>] (really_probe+0x100/0x180)
[<c01e3ca0>] (really_probe+0x100/0x180) from [<c01e3d70>] (driver_probe_device+0x50/0x6c)
[<c01e3d70>] (driver_probe_device+0x50/0x6c) from [<c01e3fb8>] (__driver_attach+0x80/0x84)
[<c01e3fb8>] (__driver_attach+0x80/0x84) from [<c01e2f80>] (bus_for_each_dev+0x58/0x84)
[<c01e2f80>] (bus_for_each_dev+0x58/0x84) from [<c01e37cc>] (bus_add_driver+0xa0/0x1c0)
[<c01e37cc>] (bus_add_driver+0xa0/0x1c0) from [<c01e4594>] (driver_register+0x5c/0xf4)
[<c01e4594>] (driver_register+0x5c/0xf4) from [<c001e48c>] (bq27x00_battery_init+0x30/0x60)
[<c001e48c>] (bq27x00_battery_init+0x30/0x60) from [<c00293f4>] (do_one_initcall+0xac/0x100)
[<c00293f4>] (do_one_initcall+0xac/0x100) from [<c0008374>] (do_initcalls+0x24/0x3c)
[<c0008374>] (do_initcalls+0x24/0x3c) from [<c0008858>] (kernel_init+0x38/0xc4)
[<c0008858>] (kernel_init+0x38/0xc4) from [<c002a7a8>] (kernel_thread_exit+0x0/0x8)
---[ end trace a98cef82ea5ae04f ]---
bq27x00_battery_voltage: volt 4124
bq27x00_battery_current: di c7972ba0 val c781be2c di->chip 0 (1)
bq27x00_battery_current: curr 0 flags 0
bq27x00_battery_current: intval 0
bq27000-battery bq27000-battery.0: failed to register battery: -17
bq27000-battery: probe of bq27000-battery.0 failed with error -17
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
cpuidle: using governor ladder
s3c-sdi s3c2440-sdi: powered down.
s3c-sdi s3c2440-sdi: mmc0 - using pio, sw SDIO IRQ
glamo-mci glamo-mci.0: glamo_mci driver (C)2007 Openmoko, Inc
...


-Timo

Loading...