• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : cs8900 for 2.6.29 patch 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 4545
精华: 3
发帖: 89
金钱: 810 两
威望: 614 点
贡献值: 22 点
综合积分: 238 分
注册时间: 2009-03-19
最后登录: 2014-05-05
楼主  发表于: 2009-04-19 19:02

 cs8900 for 2.6.29 patch

管理提醒: 本帖被 qq2440 执行置顶操作(2009-12-07)
朋友们应该都很需要,这里给大伙发一个刚diff的补丁。
注意,只可打在友善发布的2.6.29内核上。如需打在kernel.org的内核上,请酌情修改即可。
附件: cs8900_for_2.6.29.tgz (2 K) 下载次数:192
级别: 侠客
UID: 401
精华: 0
发帖: 77
金钱: 470 两
威望: 190 点
贡献值: 0 点
综合积分: 154 分
注册时间: 2008-03-27
最后登录: 2018-09-19
1楼  发表于: 2009-04-20 00:03
正需要!!!   我們是QQ2440V3的CS8900的孤兒!!!  感謝援助!!!
级别: 侠客
UID: 401
精华: 0
发帖: 77
金钱: 470 两
威望: 190 点
贡献值: 0 点
综合积分: 154 分
注册时间: 2008-03-27
最后登录: 2018-09-19
2楼  发表于: 2009-04-21 00:01
[root@localhost linux-2.6.29]# make zImage
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CALL    scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
  CHK     include/linux/compile.h
  CC      arch/arm/mach-s3c2440/mach-mini2440.o
arch/arm/mach-s3c2440/mach-mini2440.c:49: error: implicit declaration of function '__phy_to_pfn'
arch/arm/mach-s3c2440/mach-mini2440.c:49: error: initializer element is not constant
arch/arm/mach-s3c2440/mach-mini2440.c:49: error: (near initialization for 'mini2440_iodesc[0].pfn')
make[1]: *** [arch/arm/mach-s3c2440/mach-mini2440.o] Error 1
make: *** [arch/arm/mach-s3c2440] Error 2

使用所提供的PATCH
之後產生此錯誤
可否幫忙
謝謝
级别: 侠客
UID: 401
精华: 0
发帖: 77
金钱: 470 两
威望: 190 点
贡献值: 0 点
综合积分: 154 分
注册时间: 2008-03-27
最后登录: 2018-09-19
3楼  发表于: 2009-04-21 00:47
不好意思
自己没PATCH好
已可以产生zImage
但已太晚
明晚放至板上测试
若有结果再告知
级别: 侠客
UID: 401
精华: 0
发帖: 77
金钱: 470 两
威望: 190 点
贡献值: 0 点
综合积分: 154 分
注册时间: 2008-03-27
最后登录: 2018-09-19
4楼  发表于: 2009-04-21 21:38
图片:
我把昨天zImage
已經可以了
過程如下


VIVI version 0.1.4 (root@localhost.localdomain) (gcc version 2.95.3 20010315 (release)) #0.1.4 Sat Jul 21 11:51:25 CST 2007
MMU table base address = 0x33DFC000
Succeed memory mapping.
DIVN_UPLL0
MPLLVal [M:7fh,P:2h,S:1h]
CLKDIVN:5h


+---------------------------------------------+
| S3C2440A USB Downloader ver R0.03 2004 Jan  |
+---------------------------------------------+
USB: IN_ENDPOINT:1 OUT_ENDPOINT:3
FORMAT: <ADDR(DATA):4>+<SIZE(n+10):4>+<DATA:n>+<CS:2>
NOTE: Power off/on or press the reset button for 1 sec
      in order to get a valid USB device address.

NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung K9D1208V0M)
Could not found stored vivi parameters. Use default vivi parameters.
Press Return to start the LINUX/Wince now, any other key for vivi
Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0"
MACH_TYPE = 782
NOW, Booting Linux......
Uncompressing Linux....................................................................................................................... done, booting the kernel.
Linux version 2.6.29-FriendlyARM (root@localhost.localdomain) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #8 Tue Apr 21 02:54:42 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: FriendlyARM Mini2440 development board
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 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
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttySAC0] enabled
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: 60968KB available (3376K code, 375K data, 148K init)
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 296 bytes
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,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
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
NET: Registered protocol family 1
yaffs Apr 19 2009 13:23:48 Installing.
msgmni has been set to 119
io scheduler noop registered (default)
Console: switching to colour frame buffer device 100x30
fb0: s3c2410fb frame buffer device
backlight    initialized
leds    initialized
buttons    initialized
pwm    initialized
adc    initialized
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
loop: module loaded
[cs89x0_probe] S3C2410_BWSCON = 2211d110

[cs89x0_probe] S3C2410_BANKCON3 = 1f7c

[cs89x0_probe] S3C2410_GPGCON = fd95fdba

[cs89x0_probe] S3C2410_EXTINT1 = 22222242

[cs89x0_probe] S3C2410_EINTMASK = fffdf0

[cs89x0_probe] MAC ADDR: 0-0-c0-ff-ee-8

cs89x0:cs89x0_probe(0x0)
cs89x0.c: v2.4.3-pre1 Russell Nelson <nelson@crynwr.com>, Andrew Morton
eth0: cs8900 rev K found at 0xf8000300
cs89x0: Extended EEPROM checksum bad and no Cirrus EEPROM, relying on command line
cs89x0 media RJ-45, IRQ 53, programmed I/O, MAC 00:00:c0:ff:ee:08
cs89x0_probe1() successful
eth0 (): not using net_device_ops yet
[cs89x0_probe] S3C2410_BWSCON = 2211d110

[cs89x0_probe] S3C2410_BANKCON3 = 1f7c

[cs89x0_probe] S3C2410_GPGCON = fd95fdba

[cs89x0_probe] S3C2410_EXTINT1 = 22222242

[cs89x0_probe] S3C2410_EINTMASK = fffdf0

[cs89x0_probe] MAC ADDR: 0-0-c0-ff-ee-8

cs89x0:cs89x0_probe(0x0)
cs89x0: request_region(0xf8000300, 0x10) failed
cs89x0: no cs8900 or cs8920 detected.  Be sure to disable PnP with SETUP
Linux video capture interface: v2.00
gspca: main v2.4.0 registered
usbcore: registered new interface driver conex
conex: registered
usbcore: registered new interface driver etoms
etoms: registered
usbcore: registered new interface driver finepix
finepix: registered
usbcore: registered new interface driver mars
mars: registered
usbcore: registered new interface driver ov519
ov519: registered
usbcore: registered new interface driver ov534
ov534: registered
usbcore: registered new interface driver pac207
pac207: registered
usbcore: registered new interface driver pac7311
pac7311: registered
usbcore: registered new interface driver sonixb
sonixb: registered
usbcore: registered new interface driver sonixj
sonixj: registered
usbcore: registered new interface driver spca500
spca500: registered
usbcore: registered new interface driver spca501
spca501: registered
usbcore: registered new interface driver spca505
spca505: registered
usbcore: registered new interface driver spca506
spca506: registered
usbcore: registered new interface driver spca508
spca508: registered
usbcore: registered new interface driver spca561
spca561: registered
usbcore: registered new interface driver sunplus
sunplus: registered
usbcore: registered new interface driver stk014
stk014: registered
usbcore: registered new interface driver t613
t613: registered
usbcore: registered new interface driver tv8532
tv8532: registered
usbcore: registered new interface driver vc032x
vc032x: registered
usbcore: registered new interface driver zc3xx
zc3xx: registered
usbcore: registered new interface driver ALi m5602
ALi m5602: registered
usbcore: registered new interface driver STV06xx
STV06xx: registered
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
Driver 'sd' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000030000 : "supervivi"
0x000000050000-0x000000250000 : "Kernel"
0x000000250000-0x000003ffc000 : "root"
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.29-FriendlyARM ohci_hcd
usb usb1: SerialNumber: s3c24xx
usb usb1: configuration #1 chosen from 1 choice
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.
mice: PS/2 mouse device common for all mice
s3c2410 TouchScreen successfully loaded
input: s3c2410 TouchScreen as /devices/virtual/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
mapped channel 0 to 0
s3c2440-sdi s3c2440-sdi: powered down.
s3c2440-sdi s3c2440-sdi: initialisation done.
s3c2440-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: powered down.
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.18a.
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
S3C24XX_UDA134X SoC Audio driver
UDA134X SoC Audio Codec
asoc: UDA134X <-> s3c24xx-i2s mapping ok
ALSA device list:
  #0: S3C24XX_UDA134X (UDA134X)
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2034-08-03 11:52:02 UTC (2038218722)
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 148K
[03/Aug/2034:03:52:09 +0000] boa: server version Boa/0.94.13
[03/Aug/2034:03:52:09 +0000] boa: server built Mar 26 2009 at 15:28:42.
[03/Aug/2034:03:52:09 +0000] boa: starting server pid=477, port 80
                        
Try to bring eth0 interface up......eth0: Setting MAC address to 08:90:90:90:90:90.
eth0: using half-duplex 10Base-T (RJ-45)
Done

Please press Enter to activate this console.
[root@FriendlyARM /]# ifconfig
eth0      Link encap:Ethernet  HWaddr 08:90:90:90:90:90  
          inet addr:192.168.1.230  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2775 (2.7 KiB)  TX bytes:0 (0.0 B)
          Interrupt:53 Base address:0x300

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

[root@FriendlyARM /]# ping 192.168.1.230
PING 192.168.1.230 (192.168.1.230): 56 data bytes
64 bytes from 192.168.1.230: seq=0 ttl=64 time=1.037 ms
64 bytes from 192.168.1.230: seq=1 ttl=64 time=0.588 ms
64 bytes from 192.168.1.230: seq=2 ttl=64 time=0.502 ms
64 bytes from 192.168.1.230: seq=3 ttl=64 time=0.418 ms
^C
--- 192.168.1.230 ping statistics ---
4 packets transmitted, 4 packets received, 000000000acket loss
round-trip min/avg/max = 0.418/0.636/1.037 ms
[root@FriendlyARM /]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=128 time=5.644 ms
64 bytes from 192.168.1.1: seq=1 ttl=128 time=0.857 ms
64 bytes from 192.168.1.1: seq=2 ttl=128 time=0.855 ms
64 bytes from 192.168.1.1: seq=3 ttl=128 time=0.853 ms
^C
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 packets received, 000000000acket loss
round-trip min/avg/max = 0.853/2.052/5.644 ms
[root@FriendlyARM /]#

整個都ok了 ping也可以啦 只要用長風大哥 所提供的patch 就可以搞定啦
然後也可以從pc登錄板上 如圖示 感謝長風大哥無私的幫助
看不出來 這裏真是有臥虎藏龍的高人

謝謝  長風大哥指導!!!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5407
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11054 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2009-04-21 22:40
那是,只要你们用正确的方法学,也会成为他那样的高手.
再次感谢为论坛无私分享经验的兄弟!
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 1222
精华: 0
发帖: 49
金钱: 490 两
威望: 391 点
贡献值: 0 点
综合积分: 98 分
注册时间: 2008-08-04
最后登录: 2010-11-24
6楼  发表于: 2009-04-30 22:25
很感动的说, 如果在能给我一个ADC的命令行测试源码就梗好了
级别: 新手上路
UID: 334
精华: 0
发帖: 25
金钱: 155 两
威望: 25 点
贡献值: 0 点
综合积分: 50 分
注册时间: 2008-03-19
最后登录: 2011-02-21
7楼  发表于: 2010-09-06 22:52
正需要中,非常感谢无私奉献的哥们,小弟正要将mini2440光盘中的内核kernel2.6.32移植到QQ2440上,不知道这个补丁可以用不,试试看,再次感谢哥们。
级别: 禁止发言
UID: 133549
精华: 0
发帖: 2701
金钱: 13505 两
威望: 2701 点
贡献值: 0 点
综合积分: 5402 分
注册时间: 2017-07-06
最后登录: 2017-07-08
8楼  发表于: 2017-07-06 22:54
用户被禁言,该主题自动屏蔽!
级别: 风云使者
UID: 133554
精华: 0
发帖: 2702
金钱: 13510 两
威望: 2702 点
贡献值: 0 点
综合积分: 5404 分
注册时间: 2017-07-06
最后登录: 2017-09-30
9楼  发表于: 2017-07-07 03:45
早知道前世的五百次回眸,能换来今生的与你相遇。我就该把头甩断,来换这一辈子与你相遇。
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go