免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2747 | 回复: 6
打印 上一主题 下一主题

ppc 85xx 内核编译 问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-22 12:27 |只看该作者 |倒序浏览
编译器: eldk
开发包版本:ppc-2008-04-01.iso
内核:2.6.22

在  make ARCH=powerpc CROSS_COMPILE=ppc_85xx- uImage  步时出错。


  CC      drivers/base/power/sysfs.o
  LD      drivers/base/power/built-in.o
  CC      drivers/base/dma-mapping.o
  CC      drivers/base/dmapool.o
  LD      drivers/base/built-in.o
  CC      drivers/block/floppy.o
In file included from drivers/block/floppy.c:241:
include/asm/floppy.h: In function 'hard_dma_setup':
include/asm/floppy.h:142: error: 'ppc64_isabridge_dev' undeclared (first use in this function)
include/asm/floppy.h:142: error: (Each undeclared identifier is reported only once
include/asm/floppy.h:142: error: for each function it appears in.)
make[2]: *** [drivers/block/floppy.o] Error 1
make[1]: *** [drivers/block] Error 2
make: *** [drivers] Error 2
[root@localhost linux-2.6.22]#

论坛徽章:
0
2 [报告]
发表于 2009-05-22 16:17 |只看该作者
怎么没人说一个,自己顶一个。

论坛徽章:
0
3 [报告]
发表于 2009-05-25 17:04 |只看该作者
上边的问题是在 menuconfig 的时候,去掉了floppy 的支持项解决。编译成功(当中有些警告,但还是过去了)。

之后载入目标板。

出现新的问题。

=> tftp 1000000 2
Speed: 100, full duplex
Using TSEC0 device
TFTP from server 192.168.0.171; our IP address is 192.168.0.2
Filename '2'.
Load address: 0x1000000
Loading: #################################################################
         #################################################################
         #################################################################
         ####################################################
done
Bytes transferred = 1263974 (134966 hex)
=> bootm
## Booting image at 01000000 ...
   Image Name:   Linux-2.6.22
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1263910 Bytes =  1.2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK



到这一步就停住了,等待解决。
猜想应该是串口设置问题,但还不知道怎么解决。

论坛徽章:
0
4 [报告]
发表于 2009-05-25 19:39 |只看该作者
:)

[ 本帖最后由 liying_gg 于 2009-5-25 20:11 编辑 ]

论坛徽章:
5
5 [报告]
发表于 2009-05-25 19:42 |只看该作者
你的load address && entry point 确信对吗?

论坛徽章:
5
6 [报告]
发表于 2009-05-25 19:51 |只看该作者

回复 #1 prettyiceii 的帖子

你mkimage的时候,-a  -e 参数?
还有bootcmd的参数设置。

[ 本帖最后由 yidou 于 2009-5-25 19:59 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2009-06-12 11:03 |只看该作者

有个新进展

=> bootm
## Booting image at 01000000 ...
   Image Name:   Linux-2.6.22
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1043514 Bytes = 1019.1 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Transferring control to Linux (at address 00000000) ...
## Transferring control to Linux (at address 00000000) initrd_start =0x0,initrd_end =0x7fff00,cmd_start =0x7fff25,cmd_end =0x0
Memory CAM mapping: CAM0=256Mb, CAM1=256Mb, CAM2=0Mb residual: 0Mb
Linux version 2.6.22 (root@localhost.localdomain) (gcc version 4.2.2) #1 Mon Jun 8 20:32:34 CST 2009
Zone PFN ranges:
  DMA             0 ->   131072
  Normal     131072 ->   131072
early_node_map[1] active PFN ranges
    0:        0 ->   131072
Built 1 zonelists.  Total pages: 130048
Kernel command line: root=/dev/ram rw console=ttyS0,115200
OpenPIC Version 1.2 (1 CPUs and 60 IRQ sources) at fcfbb000
PID hash table entries: 2048 (order: 11, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 517376k available (1748k kernel code, 376k data, 128k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 0 of device 0000:00:0e.0
PCI: Cannot allocate resource region 1 of device 0000:00:0e.0
PCI: Cannot allocate resource region 3 of device 0000:00:0e.0
PCI: Cannot allocate resource region 5 of device 0000:00:0e.0
PCI: Cannot allocate resource region 0 of device 0000:00:0e.1
PCI: Cannot allocate resource region 1 of device 0000:00:0e.1
PCI: Cannot allocate resource region 3 of device 0000:00:0e.1
PCI: Cannot allocate resource region 5 of device 0000:00:0e.1
PCI: Cannot allocate resource region 3 of device 0000:00:10.0
PCI: Error while updating region 0000:00:0e.0/3 (8001000c != 00ff010c)
PCI: Error while updating region 0000:00:0e.1/3 (8001001c != 00ff013c)
PCI: Error while updating region 0000:00:10.0/3 (8001002c != 2828013c)
Generic PHY: Registered new driver
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Generic RTC Driver v1.07
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 26) is a 16550A
serial8250.0: ttyS1 at MMIO 0xe0004600 (irq = 26) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
loop: module loaded
Gianfar MII Bus: probed
eth0: Gianfar Ethernet Controller Version 1.2, 00:e0:0c:00:00:fd
eth0: Running with NAPI enabled
eth0: 256/256 RX/TX BD ring size
eth1: Gianfar Ethernet Controller Version 1.2, 09:ef:21:ab:09:ef
eth1: Running with NAPI enabled
eth1: 256/256 RX/TX BD ring size
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
List of all partitions:
No filesystem could mount root, tried:  ext3 ext2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
Rebooting in 180 seconds..




问题出在编译时,少了有关串口的驱动。具体什么地方没有,还没搞清楚,现在的内核只是默认的。只选了芯片的型号。编译通过。起码内核可以跑了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP