天嵌 ARM开发社区

 找回密码
 注册
查看: 3301|回复: 5

Linux2.6.35在TQ2440上的移植(二)

[复制链接]
machoe 发表于 2010-10-2 20:09:17 | 显示全部楼层 |阅读模式
第二篇内容:
完善了串口驱动
根文件系统的移植
具体内容:
    http://blog.chinaunix.net/u3/119138/showart.php?id=2343655
下载地址:
    http://machoe.download.csdn.net/
erteron 发表于 2010-10-10 20:57:04 | 显示全部楼层
斑竹~你的串口驱动是咋弄的???~文档里不是有增加一段if(){........};的代码么~~~那个添加后~make报错~提示 GPHH GPH7没有定义什么的~~但是我include <mach/regs.h> 添加了呀~我在regs.h里没有GPH6,GPH7的定义~~咋弄~卡在这里了~?~
erteron 发表于 2010-10-10 21:17:00 | 显示全部楼层
谢谢~~不好意思~没看到~~~
 楼主| machoe 发表于 2010-10-11 09:08:51 | 显示全部楼层
里面我写了,可能是没重点标出来,你注意找一下吧
erteron 发表于 2010-10-27 21:27:00 | 显示全部楼层
按照你的步骤 移植串口驱动出现下面的情况~求解 谢谢
root@EmbedSky /]# serial_test
readserailcfg
serialread.dev is /dev/tq2440_serial2
------------[ cut here ]------------
WARNING: at arch/arm/plat-s3c24xx/gpio.c:45 s3c2410_gpio_pullup+0x1c/0x4c()
Modules linked in:
[<c002d390>] (unwind_backtrace+0x0/0xec) from [<c0046790>] (warn_slowpath_common+0x48/0x60)
[<c0046790>] (warn_slowpath_common+0x48/0x60) from [<c00467c0>] (warn_slowpath_null+0x18/0x1c)
[<c00467c0>] (warn_slowpath_null+0x18/0x1c) from [<c00318b4>] (s3c2410_gpio_pullup+0x1c/0x4c)
[<c00318b4>] (s3c2410_gpio_pullup+0x1c/0x4c) from [<c0170bd0>] (s3c24xx_serial_startup+0xc4/0xf0)
[<c0170bd0>] (s3c24xx_serial_startup+0xc4/0xf0) from [<c016ea88>] (uart_startup+0x84/0x198)
[<c016ea88>] (uart_startup+0x84/0x198) from [<c016f7c8>] (uart_open+0x11c/0x3e4)
[<c016f7c8>] (uart_open+0x11c/0x3e4) from [<c0158b7c>] (tty_open+0x2e8/0x404)
[<c0158b7c>] (tty_open+0x2e8/0x404) from [<c0099770>] (chrdev_open+0x128/0x144)
[<c0099770>] (chrdev_open+0x128/0x144) from [<c009581c>] (__dentry_open+0x13c/0x24c)
[<c009581c>] (__dentry_open+0x13c/0x24c) from [<c00959ec>] (nameidata_to_filp+0x40/0x54)
[<c00959ec>] (nameidata_to_filp+0x40/0x54) from [<c00a01d0>] (do_last+0x42c/0x57c)
[<c00a01d0>] (do_last+0x42c/0x57c) from [<c00a1b9c>] (do_filp_open+0x16c/0x4b4)
[<c00a1b9c>] (do_filp_open+0x16c/0x4b4) from [<c0095600>] (do_sys_open+0x58/0x10c)
[<c0095600>] (do_sys_open+0x58/0x10c) from [<c0027e40>] (ret_fast_syscall+0x0/0x2c)
---[ end trace 307a5e70c2814367 ]---
------------[ cut here ]------------
WARNING: at arch/arm/plat-s3c24xx/gpio.c:45 s3c2410_gpio_pullup+0x1c/0x4c()
Modules linked in:
[<c002d390>] (unwind_backtrace+0x0/0xec) from [<c0046790>] (warn_slowpath_common+0x48/0x60)
[<c0046790>] (warn_slowpath_common+0x48/0x60) from [<c00467c0>] (warn_slowpath_null+0x18/0x1c)
[<c00467c0>] (warn_slowpath_null+0x18/0x1c) from [<c00318b4>] (s3c2410_gpio_pullup+0x1c/0x4c)
[<c00318b4>] (s3c2410_gpio_pullup+0x1c/0x4c) from [<c0170be8>] (s3c24xx_serial_startup+0xdc/0xf0)
[<c0170be8>] (s3c24xx_serial_startup+0xdc/0xf0) from [<c016ea88>] (uart_startup+0x84/0x198)
[<c016ea88>] (uart_startup+0x84/0x198) from [<c016f7c8>] (uart_open+0x11c/0x3e4)
[<c016f7c8>] (uart_open+0x11c/0x3e4) from [<c0158b7c>] (tty_open+0x2e8/0x404)
[<c0158b7c>] (tty_open+0x2e8/0x404) from [<c0099770>] (chrdev_open+0x128/0x144)
[<c0099770>] (chrdev_open+0x128/0x144) from [<c009581c>] (__dentry_open+0x13c/0x24c)
[<c009581c>] (__dentry_open+0x13c/0x24c) from [<c00959ec>] (nameidata_to_filp+0x40/0x54)
[<c00959ec>] (nameidata_to_filp+0x40/0x54) from [<c00a01d0>] (do_last+0x42c/0x57c)
[<c00a01d0>] (do_last+0x42c/0x57c) from [<c00a1b9c>] (do_filp_open+0x16c/0x4b4)
[<c00a1b9c>] (do_filp_open+0x16c/0x4b4) from [<c0095600>] (do_sys_open+0x58/0x10c)
[<c0095600>] (do_sys_open+0x58/0x10c) from [<c0027e40>] (ret_fast_syscall+0x0/0x2c)
---[ end trace 307a5e70c2814368 ]---
serialread.speed is 115200
serialread.databits is 8
serialread.stopbits is 1
serialread.parity is N
isatty success!
nwrite=15
串口测试是 出来一堆乱七八糟的东西 。。。。这是咋回事???
吴昀乎 发表于 2011-10-24 17:07:21 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-19 14:52 , Processed in 1.031250 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表