Linux 2.6.22.6 port to S3C2440 boot QT through NFS and add USB mouse support

Source: Internet
Author: User

Qt was successfully mounted through NFS yesterday, but the interface does not know why it is always flashing (temporarily ignore). QT displays a welcome page prompting you to set it for the first time, so it stops because there is no touch screen, so today I added the USB mouse support.

Qt-related:

My QT and file system are compiled according to the <embedded Linux application development manual> of Wei Dongshan. For more information about how to run QT, see <QT porting document of tianembedded technology>.

When NFS is started, the following problems are encountered:

1,
# Cocould not open for writing '/root/settings/locale_new.conf'
Qcopchannel: Send: must construct a qapplication before using qcopchannel
[Solution]: The $ home environment variable is not set or cannot be written.
Change home =/in the/bin/qpe. Sh file. The original home =/root location cannot be written, I don't know why...

2,
Cannot create QT/Embedded Data Directory:/tmp/qtembedded-0

[Solution]: I have been stuck here for a long time and don't know how to solve it. Later I modified the file system with QT provided by tianyinao technology. The modification was successful, it mainly modifies the/etc directory, the font-related stuff and time zone information (in fact, it directly copies the/etc directory, the/opt/qtopia/lib/fonts directory, and the/usr that provides time zone information. /share directory)

Then QT starts up and the welcome page is displayed.

 

 

 


The USB mouse is transplanted as follows:

My kernel is linux2.6.22.6. the USB mouse of the new kernel is located in the kernel Drivers/HID/usbhid directory. The file name is usbmouse. c. If you need to modify the mouse driver, check this file. For now, my Development Board does not need to customize special operations on the mouse driver. Therefore, when the 2410 configuration file is used by default, make menuconfig and select device drivers --> select hid devices ---> enter USB hid Boot Protocol drivers ---> see USB hidbp mouse (simple boot) support, select it, if this option is not displayed, you have selected additional items in the preceding step. You can see it in the kconfig file that you opened.

Then compile the kernel and use it to start QT.

Then the USB mouse can be used...

(In fact, after the work is done, the mouse still cannot be used. After that, I restarted my computer and then tested it again. Why? I don't know why. I can use the mouse any more. After some initial settings, I entered the QT interface.
)

 

Later, I made some modifications as follows (copy it directly ...):

 

3. Mouse Problems
I have a USB mouse.
3.1 To support the mouse, first add driver support to the kernel: (run the Kernel configuration above and view it. the USB section in the config file is basically consistent with this section. Some macro definitions are different because the kernel version is different)

#
# USB input devices
#
Config_usb_hid = y
Config_usb_hidinput_powerbook = y
Config_hid_ff = y
Config_hid_pid = y
Config_logitech_ff = y
Config_pantherlord_ff = y
Config_thrustmaster_ff = y
Config_zeroplus_ff = y
Config_usb_hiddev = y
Config_usb_support = y
Config_usb_arch_has_hcd = y
Config_usb_arch_has_ohci = y
# Config_usb_arch_has_ehci is not set
Config_usb = y
# Config_usb_debug is not set
# Config_usb_announce_new_devices is not set
Probably like this

3.2 Create a node
View the/proc/bus/input/devices File
# Cat/proc/bus/input/devices (after QT is started, run this command on the terminal to check whether the mouse is connected)

I: Bus = "0003" vendor = "15d9" Product = "0a33" version = "0110"
N: Name = "USB mouse"
P: phys = "usb-s3c24xx-1/input0"
S: sysfs = "/class/input/input0"
U: uniq =
H: handlers = "mouse0"
B: EV = "17"
B: Key = "70000" 0 0 0 0 0 0 0
B: rel = "103"
B: MSC = "10"
Make sure the mouse has been connected
View/proc/bus/input/Handler
# Cat/proc/bus/input/Handler
N: Number = "0" name = "KBD"
N: Number = "1" name = "mousedev" minor = "32"
Number = 1 name = "mousedev" minor = "32"

# Cat/proc/devices
Character devices:
10 Misc
13 Input
29 FB

Create under/dev (I didn't do this step. I used mdev dynamic mechanism to manage devices.
)
# Mknod/dev/input/mouse c 13 32

CrW-r -- 1 Root 13, 32 Jan 1 input/mouse
Among them, 13 is set by the minor = 32 and 13 input values above the device number's high position 32 low position. Isn't that a lot of a problem? The mouse can work anyway.
Run the following command to test the function:
# Cat/dev/input/mouse
?? (? (? (? (8 ?? 8 ?? 8 ?? 8 ?? 8 ?? 8 ?? 8 ?? 8?
? (
This pile of Garbled text is what is output when you move the mouse, indicating that the mouse can work.
Create a symbolic connection:
Ln-S/dev/input/mouse/dev/mouse

Modify permissions
Chmod go + R/dev/mouse
Chmod go + R/dev/input/mouse.

 

Reference page:

1. http://blog.ednchina.com/woshishui1413801/188175/message.aspx

2, http://www.hzlitai.com.cn/bbs/viewthread.php? Tid = 11504
)

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.