天嵌 ARM开发社区

 找回密码
 注册
查看: 3808|回复: 8

linux 2.6.38移植分析

[复制链接]
weibiyan 发表于 2011-4-17 23:28:29 | 显示全部楼层 |阅读模式
##### EmbedSky BIOS for SKY2440/TQ2440 #####
Press Space key to Download Mode !
Booting Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00200000 ... Copy Kern
el to SDRAM done,NOW, Booting Linux......
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.38-EmbedSky (root@EmbedSky) (gcc version 4.3.3 (Sourcery G++ L
ite 2009q1-176) ) #13 Sun Apr 17 22:47:36 CST 2011
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60808k/60808k available, 4728k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc4800000 - 0xf6000000   ( 792 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0038000   ( 192 kB)
      .text : 0xc0038000 - 0xc03af000   (3548 kB)
      .data : 0xc03b0000 - 0xc03d0c00   ( 131 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:85
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
gpiochip_add: gpios 288..303 (GPIOK) failed to register
gpiochip_add: gpios 320..334 (GPIOL) failed to register
gpiochip_add: gpios 352..353 (GPIOM) failed to register
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, Copyright 2003-2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c-i2c s3c2440-i2c: slave address 0x10
s3c-i2c s3c2440-i2c: bus frequency set to 97 KHz
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
Advanced Linux Sound Architecture Driver Version 1.0.23.
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
msgmni has been set to 118
io scheduler noop registered (default)
backlight initialized
Console: switching to colour frame buffer device 40x15
fb0: s3c2410fb frame buffer device
s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440
adc initialized
loop: module loaded
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=1, 10ns Twrph0=3 30ns, Twrph1=1 10ns
s3c24xx-nand s3c2440-nand: NAND ECC disabled
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bi
t)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 34 at 0x000000440000
Bad eraseblock 35 at 0x000000460000
Bad eraseblock 36 at 0x000000480000
cmdlinepart partition parsing not available
Creating 3 MTD partitions on "NAND":
0x000000000000-0x000000040000 : "Yanz_Wei Uboot"
0x000000200000-0x000000400000 : "Yanz_Wei Kernel"
0x000000400000-0x00000ff80000 : "Yanz_Wei Yaffs2"
dm9000 Ethernet Driver, V1.31
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: S3C24XX OHCI
usb usb1: Manufacturer: Linux 2.6.38-EmbedSky ohci_hcd
usb usb1: SerialNumber: s3c24xx
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
s3c2410_udc: debugfs dir creation failed -19
mousedev: PS/2 mouse device common for all mice
TQ2440 TouchScreen successfully loaded
input: TQ2440 TouchScreen as /devices/virtual/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
i2c /dev entries driver
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
ALSA device list:
  No soundcards found.
TCP cubic registered
lib80211: common routines for IEEE802.11 drivers
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505858 name is "mtdblock2" rw
yaffs: passed flags ""
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 192K
/etc/init.d/rcS: line 24: hwclock: not found

Please press Enter to activate this console. /bin/qtopia: line 22: ts_calibrate:
not found

[root@By_Sky_Machine /]# usb 1-1: new full speed USB device using s3c2410-ohci a
nd address 2
usb 1-1: New USB device found, idVendor=1221, idProduct=3234
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: Udisk 2.0
usb 1-1: Manufacturer: Udisk
usb 1-1: SerialNumber: 000000002E95
scsi0 : usb-storage 1-1:1.0
scsi 0:0:0:0: Direct-Access     Udisk    Udisk 2.0        3.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 8192000 512-byte logical blocks: (4.19 GB/3.90 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk

[root@By_Sky_Machine /]# ls /mnt/udisk/
Embedded VisualC++                     墓志铭.mp3
JLinkARM_V408i                         青春正传.mp3
Jlink资源                              轻舞飞扬(古典版).mp3
TQ2440开发板使用手册V2.3_20100125.pdf  轻舞飞扬(流行版).lrc
USB下载驱动                            轻舞飞扬(流行版).mp3
ni.rar                                 秋日恋歌.lrc
电子教程                               桌面.rar
二磷A酸B腺苷C.mp3
[root@By_Sky_Machine /]#
 楼主| weibiyan 发表于 2011-4-17 23:32:02 | 显示全部楼层
. /bin/qtopia: line 22: ts_calibrate:not found
我在linux 2.6.38内核上移植触摸屏的驱动,因为对这部分不熟悉,直接拷贝开发板光盘上自带的文件系统中qtopia和ts_calibrate等文件到我自己的需要做的文件系统中,但是系统提示找不到。
还有rx.sz.rz等命令也提示找不到,但是我的文件系统中确认存在,请大侠帮忙解决。
非常感谢~
 楼主| weibiyan 发表于 2011-4-17 23:34:44 | 显示全部楼层
[root@By_Sky_Machine /]# cd sbin/
[root@By_Sky_Machine /sbin]# ls
Link to backlight  halt               mkdosfs            slattach
acpid              hdparm             mke2fs             start-stop-daemon
adjtimex           ifconfig           mkfs.ext2          sulogin
arp                ifdown             mkfs.minix         swapoff
backlight          ifenslave          mkfs.vfat          swapon
blkid              ifup               mkswap             switch_root
blockdev           init               modinfo            sysctl
bootchartd         insmod             modprobe           syslogd
depmod             klogd              nameif             ts_calibrate
devmem             loadkmap           pivot_root         tunctl
fbsplash           logread            poweroff           udhcpc
fdisk              losetup            raidautorun        vconfig
findfs             lsmod              reboot             watchdog
freeramdisk        madplay            rmmod              zcip
fsck               makedevs           route
fsck.minix         man                runlevel
getty              mdev               setconsole
[root@By_Sky_Machine /sbin]#
其中backlight、ts_calibrate、madplay几个都不行,是可执行的,但是没有link to busybox
该怎么解决。
guoxixiao 发表于 2011-4-18 09:26:09 | 显示全部楼层
可能是版本不对
天嵌_support1 发表于 2011-4-18 18:11:54 | 显示全部楼层
2# weibiyan


/bin/qtopia: line 22: ts_calibrate:not found
回答:文件系统中没有 ts_calibrate校准程序
还有rx.sz.rz等命令也提示找不到,但是我的文件系统中确认存在,请大侠帮忙解决。
回答:找不到你看看有没有这些工具命令在文件系统中
 楼主| weibiyan 发表于 2011-4-18 19:05:29 | 显示全部楼层
谢谢你们的回复,但是我非常肯定我说的那些命令都是存在的,我是从光盘中自带的文件系统中拷贝过来的。
上面只列出了sbin目录下文件,其中是有ts_calibrate,你可能没有看清楚,
另外rx,rz等都在usr/bin下面,我没有列出来。

以上还请帮忙分析原因,非常感谢~
天嵌_support1 发表于 2011-4-19 13:38:18 | 显示全部楼层
有可能:
1,你拷贝过来时候已经失去了可执行属性
2. 你自己的文件系统所利用的交叉编译器和我们的不一样
 楼主| weibiyan 发表于 2011-4-19 23:06:13 | 显示全部楼层
谢谢~
那些源代码从哪儿可以找到,我自己编译做文件系统。
另外问一下,是不是静态编译的那些执行文件不会存在这样的问题?
天嵌_support1 发表于 2011-4-20 09:47:24 | 显示全部楼层
ts_calibrate在光盘提供的 TQ2440_CD\Linux资源\Qt源码包\Qte_20100601.tar.bz2
文件中的 tslib源码中
rz sz 是另外下载源码的,你查找一下是可以知道的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-3 00:30 , Processed in 1.036173 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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