lorixy 发表于 2008-4-19 01:17:23

请支持: skyeye-1.2.4 + linux-2.6.14 simulate S3C2410

跟据论坛及其他地方上的资料, 我在编译kernel 2.6.14时总不能得到可以运行的vmlinux.
编译相关软件:
cross-compile: arm-linux-gcc-3.4.1.tar.bz2
skyeye: skyeye-1.2.4_Rel.tar.gz + skyeye-testsuite-2.3.tar.bz2
kernel: linux-2.6.14.tar.bz2
simulate cpu: S3C2410

步骤:
1. modify "Makefile"
ARCH= arm
CROSS_COMPILE= /usr/local/arm/3.4.1/bin/arm-linux-

2. modify "linux-2.6.14/include/asm-arm/arch-s3c2410/map.h" line 175
#define S3C2410_CS6 (0x30000000)
to
#define S3C2410_CS6 (0xC0000000)

3. modify "linux-2.6.14/include/asm-arm/arch-s3c2410/memory.h" line 33
#define PHYS_OFFSET   (0x30000000UL)
to
#define PHYS_OFFSET   (0xC0000000UL)

4. run "make s3c2410_defconfig"

5. run "make menuconfig"
check off
--> --> --> "8250/16550 and compatible serial support"

6. make
get file vmlinux

7. 使用testsuite的 linux/s3c2410/s3c2410x-2.6.14 文件 initrd.imgskyeye.conf
skyeye -e vmlinux

+++++++++++++++
编译过程没有出错, 但在skyeye里总不能启动起来。
请问, 我使用的过程中那个步骤有错, 或是缺少什么操作, 请大家帮忙, 谢谢!

lorixy 发表于 2008-4-19 01:34:16

补充一下:
编译平台为: (Fedora) 2.6.23.1-42.fc8

crook 发表于 2008-4-21 12:27:20

参考http://www.linuxfans.org/bbs/thread-182384-1-2.html 的内核配置
估计是你内核配置问题。

skyeye启动不起来,是什么意思?现象是什么?
至少把出错信息给出来啊!!

lorixy 发表于 2008-4-21 14:34:35

error message
--------------------
NET: Registered protocol family 1
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
---------------------

I found reason:
#make menuconfig
--> --> "[] Initial RAM disk (initrd) support" check it on

MTK_kyle 发表于 2008-4-28 18:27:24

insmod 失败

前些日子在 skyeye 上 porting 了 arm-linux,于是迫不及待的写了一个 module 试试,可很不幸,没有成功。小弟最近才搞 linux 的 module 技术,很多地方不是很懂,现将问题贴出,希望大家不吝赐教。

skyeye(version 1.2.4) 的配置文件 skyeye.conf:
===============================================
cpu: arm920t
mach: s3c2410x

# physical memory
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x00800000
mem_bank: map=M, type=RW, addr=0xc0800000, size=0x00800000, file=initrd.img
mem_bank: map=M, type=RW, addr=0xc1000000, size=0x01000000

# all peripherals I/O mapping area
mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000

mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020
#net: type=cs8900a, base=0x19000300, size=0x20,int=9, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1

#lcd: type=s3c2410x, mod=gtk
#dbct:state=on



Module 源代码:
=========================================
/*hello.c*/
#include <linux/module.h>
#include <linux/kernel.h>
MODULE_LICENSE("GPL");

int __init my_init_module(void)
{
printk (KERN_INFO "Hello world\n");
return 0;
}

void __exit my_cleanup_module(void)
{
printk (KERN_INFO "Goodbye world\n");
}

module_init(my_init_module);
module_exit(my_cleanup_module);


Makefile
=========================================
#Makefile
ifeq ($(KERNELRELEASE),)

KERNELDIR ?= /root/kernel/2.6/linux-2.6.14
PWD := $(shell pwd)

modules:
      $(MAKE) -C $(KERNELDIR) M=$(PWD) modules

modules_install:
      $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install

clean:
      rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions

.PHONY: modules modules_install clean

else
    obj-m := hello.o
endif


insmod 出错:
=========================================
# insmod hello.ko
Unable to handle kernel paging request at virtual address bf000000
pgd = c02a8000
*pgd=00000000
Internal error: Oops: 807 [#1]
Modules linked in:
CPU: 0
PC is at __memzero+0x24/0x80
LR is at __init_begin+0x3fff8000/0x2c
pc : [<c00cfc84>]    lr : [<00000000>]    Not tainted
sp : c0279e68ip : 00000000fp : c0279fa4
r10: 00000280r9 : c0185604r8 : c29012c8
r7 : 00000004r6 : c29010e0r5 : c2901520r4 : 00000010
r3 : 00000000r2 : 00000000r1 : 000003e0r0 : bf000000
Flags: nzCvIRQs onFIQs onMode SVC_32Segment user
Control: 317FTable: C02A8000DAC: 00000015
Process insmod (pid: 33, stack limit = 0xc0278194)
Stack: (0xc0279e68 to 0xc027a000)
9e60:                   c004818c c0279ebc c0279e7c c002651c 00000000 00000000
9e80: 00000100 00000000 00000000 c1a744b0 000000fa 000000fa c0206180 c028c05f
9ea0: c0e43f80 0000003c 00000038 00000024 bf000000 00000000 00000000 00000000
9ec0: 00000006 00000000 00000009 00000000 00000000 00000000 0000000f 0000000e
9ee0: c2901768 c2901244 c2901000 c0278000 c005a8c8 c005a2f0 c026dc08 c02a8000
9f00: c0279f20 c0279f10 c00ac9b4 c02a8000 00000000 ffffffeb c0e45080 c0019964
9f20: c001b040 c001b070 00000002 c0e45080 c0279f74 c0279f40 c0026950 c00cc964
9f40: 00000000 c0268040 00000000 00000000 bea47ecc 001c5498 00000000 c0279fb0
9f60: 00000006 001c5478 c0279f9c c0279f78 c0026a24 c00267f0 c0268040 00000805
9f80: 0019b650 001c5478 00000080 c001fec4 c0278000 001c5478 00000000 c0279fa8
9fa0: c001fd40 c0047a9c 0019b650 001c5478 00900080 001c5670 00000805 001c5498
9fc0: 00000805 0019b650 001c5478 00000000 001c5488 00000006 001c5478 bea47ec4
9fe0: bea478ac bea478a0 0001b73c 00102230 a0000010 00900080 00000000 00000000
Backtrace:
[<c0047a90>] (sys_init_module+0x0/0x16b4) from [<c001fd40>] (ret_fast_syscall+0x0/0x2c)
Code: e52de004 e1a0c002 e1a0e002 e2511040 (a8a0500c)
Segmentation fault


======================================================================
拜求高手解决问题!!! 在线等,着急呀!!!
页: [1]
查看完整版本: 请支持: skyeye-1.2.4 + linux-2.6.14 simulate S3C2410