goldenarms 发表于 2005-1-25 13:40:16

楼主能不能告诉我在那里可以下SkyEye的LCD和触摸屏补丁(for lubbock)?多谢。

bucketxp 发表于 2005-1-26 15:11:18

楼主能不能告诉我在那里可以下SkyEye的LCD和触摸屏补丁(for lubbock)?多谢。
新版本的SkyEye应该支持LCD和触摸屏了,问问chyyu版主吧。

cuinantrue 发表于 2005-1-26 18:44:34

呵呵,是编译工具的库不行,俺换了个3.2.3的(原来是3.3.2),就可以了.

谢谢你!

cuinantrue 发表于 2005-1-27 15:18:07

bucketxp,你在SKYEYE上insmod过PXA255的驱动模块吗?是自己后加的设备,不是lubbock自己的设备,我在insmod的时候总是提示no valid format,无法加载,郁闷!

cuinantrue 发表于 2005-1-27 15:20:57

自己编译个文件
// hello.c
#define MODULE
#include <module.h>

int init_module( void )
{ printk("1\n"); return 0; }

void cleanup_module( void )
{ printk("2\n"); }

/usr/local/arm/3.2.3/bin/arm-linux-gcc -c hello.c -DMODULE -D__KERNEL__ -I/usr/local/arm/arm-linux/sys-include/asm-arm/

编译是通过了,但是加载就不行.bucketxp帮帮忙吧.

bucketxp 发表于 2005-1-28 21:48:00

是啊,我也遇到这个问题了。我觉得可能与内核版本有关吧。
SkyEye模拟的Lubbock运行的是2.6.7的内核,而你在编译的模块的的时候所用的工具链相应的内核版本应该不是2.6.7的吧。
我觉得编译应用程序用那个工具都没有问题,只要有相应的动态库就行了。不过要编译动态加载的内核模块,工具链是不是应该和内核配套呢?这部分我也不是很清楚。 :?:

cuinantrue 发表于 2005-2-24 09:53:56

模块的问题你解决了吗?

zengnan 发表于 2005-2-24 16:31:02

自己编译个文件
// hello.c
#define MODULE
#include <module.h>

int init_module( void )
{ printk("1\n"); return 0; }

void cleanup_module( void )
{ printk("2\n"); }

/usr/local/arm/3.2.3/bin/arm-linux-gcc -c hello.c -DMODULE -D__KERNEL__ -I/usr/local/arm/arm-linux/sys-include/asm-arm/

编译是通过了,但是加载就不行.bucketxp帮帮忙吧.

在x86下写过一个这种简单的模块,2.6.x内核的驱动程序好像没这么简单,按照以前老的写法(2.4内核的写法)加载的时候就是这个错误。我记得编译的时候还要有个特殊的步骤,现在想不起来了,哪位清楚地说说看

zengnan 发表于 2005-2-24 16:52:24

2.6.x的内核编译模块是先用gcc编出.o
然后
(1)scripts/modpost -o /usr/src/linux-2.6.5-1.358/Module.symvers vmlinux sound/oss/btaudio.o sound/soundcore.o
(2)ld -m elf_i386 -r -o sound/soundcore.ko sound/soundcore.o sound/soundcore.mod.o
最后生成的这个ko文件是用来insmod的模块
如果把modpost用arm-linux-gcc编译, 再把ld换成arm-linux-ld行不行

zengnan 发表于 2005-2-24 19:04:38

johmson80说的是!我按照楼主说的写了,但是无法执行那些脚本,不知是何缘故?

是你的脚本没有加可执行权限吧

cuinantrue 发表于 2005-3-8 13:30:05

是啊,我也遇到这个问题了。我觉得可能与内核版本有关吧。
SkyEye模拟的Lubbock运行的是2.6.7的内核,而你在编译的模块的的时候所用的工具链相应的内核版本应该不是2.6.7的吧。
我觉得编译应用程序用那个工具都没有问题,只要有相应的动态库就行了。不过要编译动态加载的内核模块,工具链是不是应该和内核配套呢?这部分我也不是很清楚。 :?:

bucketxp兄弟,知道怎么能把KERNEL2.4.5移植到LUBBOCK上吗?

szpttboy 发表于 2005-7-19 13:53:33

按文章的做法,卡住了,请教高手可能是什么问题

....

(SkyEye) r
Starting program:
warning: No executable file specified.
warning: No program loaded.
Uncompressing Linux......................................................... done, booting the kernel.

停住,不动了


skyeye.conf
cpu:    xscale
mach:   pxa_lubbock
mem_bank: map=I, type=RW, addr=0x40000000, size=0x0c000000
mem_bank: map=M, type=RW, addr=0xa0000000, size=0x00200000
mem_bank: map=M, type=RW, addr=0xa0200000, size=0x00100000, file=zImage, boot=yes
mem_bank: map=M, type=RW, addr=0xa0300000, size=0x00d00000
mem_bank: map=M, type=RW, addr=0xa1000000, size=0x01000000, file=./ramdisk.img
mem_bank: map=M, type=RW, addr=0xa2000000, size=0x02000000
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x00096000

net:    state=on, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
lcd:    state=on

内核配置:
CONFIG_ARM=y
CONFIG_MMU=y
CONFIG_UID16=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_GENERIC_IOMAP=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32

#
# General setup
#
CONFIG_LOCALVERSION=""
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
# CONFIG_AUDIT is not set
CONFIG_HOTPLUG=y
CONFIG_KOBJECT_UEVENT=y
# CONFIG_IKCONFIG is not set
# CONFIG_EMBEDDED is not set
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_SHMEM=y
CONFIG_CC_ALIGN_FUNCTIONS=0
CONFIG_CC_ALIGN_LABELS=0
CONFIG_CC_ALIGN_LOOPS=0
CONFIG_CC_ALIGN_JUMPS=0
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_MODVERSIONS=y
CONFIG_MODULE_SRCVERSION_ALL=y
CONFIG_KMOD=y

#
# System Type
#
# CONFIG_ARCH_CLPS7500 is not set
# CONFIG_ARCH_CLPS711X is not set
# CONFIG_ARCH_CO285 is not set
# CONFIG_ARCH_EBSA110 is not set
# CONFIG_ARCH_CAMELOT is not set
# CONFIG_ARCH_FOOTBRIDGE is not set
# CONFIG_ARCH_INTEGRATOR is not set
# CONFIG_ARCH_IOP3XX is not set
# CONFIG_ARCH_IXP4XX is not set
# CONFIG_ARCH_IXP2000 is not set
# CONFIG_ARCH_L7200 is not set
CONFIG_ARCH_PXA=y
# CONFIG_ARCH_RPC is not set
# CONFIG_ARCH_SA1100 is not set
# CONFIG_ARCH_S3C2410 is not set
# CONFIG_ARCH_SHARK is not set
# CONFIG_ARCH_LH7A40X is not set
# CONFIG_ARCH_OMAP is not set
# CONFIG_ARCH_VERSATILE is not set
# CONFIG_ARCH_IMX is not set
# CONFIG_ARCH_H720X is not set

#
# Intel PXA2xx Implementations
#
CONFIG_ARCH_LUBBOCK=y
# CONFIG_MACH_MAINSTONE is not set
# CONFIG_ARCH_PXA_IDP is not set
# CONFIG_PXA_SHARPSL is not set
CONFIG_PXA25x=y

#
# Processor Type
#
CONFIG_CPU_32=y
CONFIG_CPU_XSCALE=y
CONFIG_CPU_32v5=y
CONFIG_CPU_ABRT_EV5T=y
CONFIG_CPU_CACHE_VIVT=y
CONFIG_CPU_TLB_V4WBI=y

#
# Processor Features
#
CONFIG_ARM_THUMB=y
CONFIG_XSCALE_PMU=y
CONFIG_SA1111=y
CONFIG_DMABOUNCE=y
CONFIG_FORCE_MAX_ZONEORDER=9

#
# Bus support
#
CONFIG_ISA_DMA_API=y

#
# PCCARD (PCMCIA/CardBus) support
#
# CONFIG_PCCARD is not set

#
# Kernel Features
#
# CONFIG_SMP is not set
CONFIG_PREEMPT=y
# CONFIG_DISCONTIGMEM is not set
# CONFIG_LEDS is not set
CONFIG_ALIGNMENT_TRAP=y

#
# Boot options
#
CONFIG_ZBOOT_ROM_TEXT=0x0
CONFIG_ZBOOT_ROM_BSS=0
# CONFIG_ZBOOT_ROM is not set
CONFIG_CMDLINE="root=/dev/ram rw initrd=0xa1000000,0x01000000 console=ttySAC0,115200 mem=64M"


kernel 2.6.12.2
SkyEye Ver 0.9.5
内核直接用arm-linux-gcc 3.4.1编译
页: 1 [2]
查看完整版本: 在SkyEye模拟Lubbock开发板的过程