Active Topics

 


Reply
Thread Tools
Capn_Fish's Avatar
Posts: 140 | Thanked: 13 times | Joined on Mar 2008
#1
I figured it'd be good to have all the info at least linked to in one place, and have a single place to discuss problems/fixes. Current info is mostly here:
http://talk.maemo.org/showthread.php?t=49660

Somewhat here:
http://talk.maemo.org/showthread.php?t=48744


Issues (not necessarily kernel issues) I've found (regarding using tmr's patched 2.6.33.2 kernel) and some solutions:

1. The Fn key doesn't behave nicely; changing it in arch/arm/mach-omap2/board-n8x0.c from KEY_FN to KEY_LEFTALT allows for a number of hackarounds.

2. Using the xserver-xorg-input-tslib and xserver-xorg-video-omapfb*, the touchscreen is really jittery in the Y direction. It appears that data is being reported in terms of Y, but some other part wants it in -Y, and has to reverse it, which causes a number of issues. I haven't found a fix, and don't know if it's an Xorg/tslib issue or a kernel tsc2005 (touchscreen driver) issue.

3. Keyboard LEDs somewhat work. They'll accept the first value you echo to /sys/class/leds/n810::keyboard/brightness, but they don't really use it; they'll just come on. After that, nothing changes them; you can't even turn them off

4. Backlight is uncontrollable; echoing to /sys/class/video/...panel/brightness doesn't change anything. It gives an error something like device not found. The value said file holds is -19, which may be helpful in tracking down the solution.

5. Battery charging and power management generally is non-existent, as far as I know. My impression is that at least some of that is closed-source.


What DOES work:

-Booting from external cards
-WiFi (see p. 2 of the first thread linked above)
-Bluetooth (not entirely tested, but seemed to work)
-hardware keyboard
-touchscreen (kind of; it works, not well)
-FB console and X11


Not tested:

-GPS
-Camera
-USB networking (the usb0 interface exists, so presumed working)


Hopefully this will be useful. My tests are based off of a Debian SID / Mer environment (mostly SID), so YMMV. Fixes / testing / etc. welcome.

*xorg.conf (note that X may freak out over /dev/fb missing; just link it to /dev/fb0):

Code:
Section "Module"                                       
        Load    "extmod"                                
        Load    "dbe"                           
        Load    "glx"                                           
        Load    "freetype"                             
        Load    "type1"                        
        Load    "record"                    
        Load    "dri"                       
EndSection                            

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/truetype/"
        FontPath     "/usr/share/fonts/X11/"
EndSection

Section "InputDevice"
	Identifier	"ts"
	Driver	"tslib"
	Option "Device" "/dev/input/event1"
	Option "CorePointer"
	Option "EmulateRightButton" "1"
	Option "ReportingMode" "Raw"
#	Option "SwapY" "true"
#	Option "SwapX" "true"
	Option "Width" "800"
	Option "Height" "480"
EndSection

Section "Monitor"                                                                    
        Identifier      "Builtin Default Monitor"
EndSection                                       

Section "Device"                                  
        Identifier      "Builtin Default fbdev Device 0"
	Option "Device" "/dev/fb0"
        Driver  "omapfb"
EndSection                                                

Section "Screen"                                        
        Identifier      "Builtin Default fbdev Screen 0"     
        Device  "Builtin Default fbdev Device 0"            
        Monitor "Builtin Default Monitor"               
EndSection                                              

Section "ServerLayout"                                 
        Identifier      "Builtin Default Layout"                                     
        Screen  "Builtin Default fbdev Screen 0"
	InputDevice "ts" "CorePointer"
EndSection
__________________
Nokia N810 (Some mutation of Mer)

Last edited by Capn_Fish; 2010-04-18 at 15:15.
 

The Following 3 Users Say Thank You to Capn_Fish For This Useful Post:
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#2
Can you upload kernel patches for N810?
Do you use mainline or omap kernel sources?
 
Capn_Fish's Avatar
Posts: 140 | Thanked: 13 times | Joined on Mar 2008
#3
Here are the steps I went through (patches are earlier in the thread, termana's for 2.6.33.1, NOT tmr's for linux-omap-2.6.34-rc3, as possibly stated incorrectly earlier):
http://talk.maemo.org/showpost.php?p...5&postcount=10

Termana's patches (that I used, he evidently has newer ones):
http://talk.maemo.org/showpost.php?p=604110&postcount=2

The only "patch" I added (for wireless):
http://talk.maemo.org/showpost.php?p...8&postcount=12

I used the mainline kernel source. I have the "disable watchdog" option DISABLED, ie it looks like:

Code:
[ ]   Disable watchdog shutdown on close
My working config is attached.

I tried booting Diablo (from internal flash) with said kernel, and it boots. Some things are a little messed up (keyboard), but it boots.

Hope that gets you going.
Attached Files
File Type: gz config.gz (9.9 KB, 93 views)
__________________
Nokia N810 (Some mutation of Mer)
 
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#4
There are to many errors while appling patch n810.patch from post Termana's http://talk.maemo.org/showpost.php?p=604110&postcount=2 to mainline kernel 2.6.31.1
~/linux-2.6.31.1$ patch -p1 <../n810.patch
patching file arch/arm/boot/compressed/lib1funcs.S
patching file arch/arm/configs/n810_defconfig
can't find file to patch at input line 1964
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -rupN linux-2.6.33.1/arch/arm/configs/n8x0_defconfig linux-2.6.33.1-n8x0-bds/arch/arm/configs/n8x0_defconfig
|--- linux-2.6.33.1/arch/arm/configs/n8x0_defconfig 2010-03-16 02:39:39.000000000 +1030
|+++ linux-2.6.33.1-n8x0-bds/arch/arm/configs/n8x0_defconfig 2010-04-10 15:14:30.644080712 +0930
....

This patch successfully applied to 2.6.33.2 ( except EXTRAVERSION in Makefile)

I compile kernel 2.6.33.2 with Termana's patch applied
"Disable watchdog shutdown on close" is unset:
[ ] Disable watchdog shutdown on close
It doesn't boot.

Last edited by svs57; 2010-04-18 at 10:46.
 
Capn_Fish's Avatar
Posts: 140 | Thanked: 13 times | Joined on Mar 2008
#5
Try it with n810_defconfig (or my config).

If you've done so already, can you see any boot messages indicating what's going on/where it's getting stuck?

Also, do you have the tablet in r&d mode with lifeguard reset and both watchdogs disabled?
__________________
Nokia N810 (Some mutation of Mer)
 
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#6
I have some progress
2.6.33.2 have been booted
Ubuntu karmic started
Now I try to configure Xorg to use touchscreen
Have some problem with boot:
1. Some msg while booting
mmci-omap mmci-omap.0: command timeout (CMD8)
2. Can't mount /dev/pts and /dev/shm (mount point does not exist)

Last edited by svs57; 2010-04-18 at 14:56.
 
Capn_Fish's Avatar
Posts: 140 | Thanked: 13 times | Joined on Mar 2008
#7
I've added a working xorg.conf to the first post.

I don't know about pts and shm. I got shm mounted by adding it to fstab.

Code:
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
EDIT: Added a screenshot for no good reason other than I think it looks nice.
Attached Files
File Type: gz 2.6.33.2.png.gz (134.3 KB, 104 views)
__________________
Nokia N810 (Some mutation of Mer)

Last edited by Capn_Fish; 2010-04-18 at 15:24.
 
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#8
I have entries for shm and pts in fstab.
There are directories /dev/shm and /dev/pts
But mountall fail to mount
I move mountall to mountall.bin and create script creating /dev/pts and /dev/shm and then execute real mountall.bin
#!/bin/sh
mkdir /dev/pts /dev/shm
/sbin/mountall.bin
I don't know why this is happened...
 
Capn_Fish's Avatar
Posts: 140 | Thanked: 13 times | Joined on Mar 2008
#9
I suppose it could be a conflict between the kernel's /dev and udev's. You could try disabling the kernel /dev (I don't remember where the option is offhand).

I don't think I have pts mounted, but things seem to work fine.
__________________
Nokia N810 (Some mutation of Mer)
 
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#10
Can you upload tslib X11 input drive?
I use ubuntu armel.
Unfortunately I can't find xserver-xorg-input-tslib package for ubuntu

/usr/lib/xorg/modules/input/tslib_drv.so
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:06.