天嵌 ARM开发社区

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

网卡驱动移植问题,跪请大家帮忙!

[复制链接]
tiantian1990 发表于 2014-2-12 17:55:17 | 显示全部楼层 |阅读模式
#####    Boot for Nor Flash Main Menu   #####
#####     EmbedSky USB download mode     #####

[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
[2] Download Eboot (eboot.nb0) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[5] Download CRAMFS image to Nand Flash
[6] Download YAFFS image (root.bin) to Nand Flash
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[a] Download User Program (eg: uCOS-II or TQ2440_Test)
Download LOGO Picture (.bin) to Nand  Flash
[l] Set LCD Parameters
[n] Enter TFTP download mode menu
[o] Download u-boot to Nor Flash
[r] Reboot u-boot
[t] Test Linux Image (zImage)
[q] quit from menu
Enter your selection: 8
Start Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00300000 ... Copy Kernel to SDRAM done,NOW, Booting Linux......
Uncompressing Linux....................................................................................................... done, booting the kernel.
Linux version 2.6.25.8 (root@localhost.localdomain) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-176) ) #6 Tue Feb 11 14:12:01 CST 2014
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
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 pending ext status 00080000
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
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: 61488KB available (2972K code, 268K data, 112K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
S3C244X: Clock Support, DVS off
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
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
yaffs Feb 11 2014 13:57:48 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2440-uart.0: tq2440_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: tq2440_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: tq2440_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver
NowusethedefaultMACaddress:10:23:45:67:89:ab
eth%d: Invalid ethernet MAC address.  Please set using ifconfig
eth0: dm9000 at c485e000,c4860004 IRQ 51 MAC: ff:ff:ff:ff:ff:ff
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 20ns Twrph0=3 30ns, Twrph1=2 20ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 512 at 0x04000000
Bad eraseblock 513 at 0x04020000
Bad eraseblock 573 at 0x047a0000
Bad eraseblock 1037 at 0x081a0000
Bad eraseblock 1155 at 0x09060000
Bad eraseblock 1201 at 0x09620000
Bad eraseblock 1247 at 0x09be0000
Bad eraseblock 1547 at 0x0c160000
Bad eraseblock 1548 at 0x0c180000
Creating 8 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00040000 : "EmbedSky_Board_uboot"
0x00200000-0x00500000 : "EmbedSky_Board_kernel"
0x00500000-0x10000000 : "EmbedSky_Board_yaffs2"
0x00800000-0x00a00000 : "S3C2410 flash partition 3"
0x00a00000-0x00e00000 : "S3C2410 flash partition 4"
0x00e00000-0x01800000 : "S3C2410 flash partition 5"
0x01800000-0x03000000 : "S3C2410 flash partition 6"
0x03000000-0x04000000 : "S3C2410 flash partition 7"
usbmon: debugfs is not available
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: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 390 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
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
block 473 is bad
block 474 is bad
block 534 is bad
block 998 is bad
block 1116 is bad
block 1162 is bad
block 1208 is bad
block 1508 is bad
block 1509 is bad
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 112K
/etc/init.d/rcS: line 24: net_set: not found
/etc/rc.d/init.d/httpd: line 16: /sbin/boa: not found

Please press Enter to activate this console.


not found ?什么意思?  我完全按照手册上说的做的?求解~~~~~

 楼主| tiantian1990 发表于 2014-2-12 17:57:46 | 显示全部楼层
我用的是 tq2440  redhat9.0 4.4.3的编译器 ,一步一步做过来的,求大神帮忙!谢谢
wbz073 发表于 2014-2-12 18:01:27 | 显示全部楼层
tiantian1990 发表于 2014-2-12 17:57
我用的是 tq2440  redhat9.0 4.4.3的编译器 ,一步一步做过来的,求大神帮忙!谢谢

"net_set: not found"就是你的net_set这个执行文件找不到,你在你文件系统找找,有的话在/etc/init.d/rcS修改对应路径即可,其他类同。
 楼主| tiantian1990 发表于 2014-2-12 18:07:18 | 显示全部楼层
wbz073 发表于 2014-2-12 18:01
"net_set: not found"就是你的net_set这个执行文件找不到,你在你文件系统找找,有的话在/etc/init.d/rcS ...

是的,我自己创建的这个文件,在文件系统中也找得到,也在他们指定的路径下,是不是我建立可执行文件的步骤不对,我是直接打开gedit,加入内容后存到目标地址了,求解答,谢谢您的解答!
 楼主| tiantian1990 发表于 2014-2-12 18:10:20 | 显示全部楼层
修改对应路径,能将的具体一点吗?我有点茫然,和手册上的步骤一幕一样的啊
TQ-lkp 发表于 2014-2-12 18:24:31 | 显示全部楼层
在光盘文件系统/sbin目录下
你也可以在rcS文件中将这行屏掉
 楼主| tiantian1990 发表于 2014-2-12 18:28:53 | 显示全部楼层
TQ-lkp 发表于 2014-2-12 18:24
在光盘文件系统/sbin目录下
你也可以在rcS文件中将这行屏掉

我是用手自己建立的文件,在光盘里面也有这个文件吗?请告诉我路径好吗?我没有找到,麻烦你了!谢谢
 楼主| tiantian1990 发表于 2014-2-12 18:40:31 | 显示全部楼层
第一个问题已经通过注释掉他解决了,但第二个问题/sbin/boa:not found  ,仍未解决,球大神支招!


谢谢大家!
TQ-lkp 发表于 2014-2-13 08:50:51 | 显示全部楼层
tiantian1990 发表于 2014-2-12 18:40
第一个问题已经通过注释掉他解决了,但第二个问题/sbin/boa:not found  ,仍未解决,球大神支招!

同样,屏掉即可!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-28 07:24 , Processed in 1.025430 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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