主题 : 等待高手解决 linux-2.6.32.2+yaffs2+arm-linux-gcc-3.4.1 运行出错问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 22066
精华: 0
发帖: 2
金钱: 10 两
威望: 2 点
综合积分: 4 分
注册时间: 2010-05-26
最后登录: 2010-06-10
楼主  发表于: 2010-05-26 16:43

 等待高手解决 linux-2.6.32.2+yaffs2+arm-linux-gcc-3.4.1 运行出错问题

linux-2.6.32.2+yaffs2+arm-linux-gcc-3.4.1 运行出错
不能挂在文件系统 请教各位


Enter your selection: b
Copy linux kernel from 0x00060000 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 = 1999
NOW, Booting Linux......
Uncompressing Linux................................................................................................................................ done, booting the kernel.
Linux version 2.6.32.2 (root@redhat-hooh) (gcc version 3.4.1) #16 Tue May 25 11:12:53 CST 2010
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
PID hash table entries: 256 (order: -2, 1024 bytes)
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: 60652KB available (3660K code, 387K data, 144K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:85
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
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
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c-i2c s3c2440-i2c: slave address 0x10
s3c-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
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
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
ROMFS MTD (C) 2007 Red Hat, Inc.
yaffs May 25 2010 09:09:07 Installing.
msgmni has been set to 118
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 60x53
fb0: s3c2410fb frame buffer device
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
brd: module loaded
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
s3c24xx-nand s3c2440-nand: NAND ECC disabled
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "supervivi"
0x000000060000-0x000000260000 : "kernel"
0x000000260000-0x000004000000 : "root"
dm9000 Ethernet Driver, V1.31
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: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
i2c /dev entries driver
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
cpuidle: using governor ladder
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
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
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 144K
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c0030c5c>] (dump_backtrace+0x0/0x104) from [<c0030d78>] (dump_stack+0x18/0x1c)
r7:c3823ef0 r6:00000004 r5:c3820000 r4:c3822000
[<c0030d60>] (dump_stack+0x0/0x1c) from [<c003f54c>] (panic+0x3c/0x124)
[<c003f510>] (panic+0x0/0x124) from [<c0041e30>] (do_exit+0x23c/0x59c)
r3:c03c9768 r2:c3820000 r1:c3820000 r0:c036c0e8
[<c0041bf4>] (do_exit+0x0/0x59c) from [<c004227c>] (do_group_exit+0xb4/0xbc)
[<c00421c8>] (do_group_exit+0x0/0xbc) from [<c004bda4>] (get_signal_to_deliver+0x33c/0x374)
r4:00000004
[<c004ba68>] (get_signal_to_deliver+0x0/0x374) from [<c002f894>] (do_notify_resume+0x80/0x5f8)
[<c002f814>] (do_notify_resume+0x0/0x5f8) from [<c002cf48>] (work_pending+0x1c/0x20)


路过的帮忙看看 谢谢 在线等
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
1楼  发表于: 2010-05-26 18:06
请使用最新光盘中提供的交叉编译器
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
级别: 新手上路
UID: 22066
精华: 0
发帖: 2
金钱: 10 两
威望: 2 点
综合积分: 4 分
注册时间: 2010-05-26
最后登录: 2010-06-10
2楼  发表于: 2010-05-27 09:14
请问 这是交叉编译器引起的吗??


我用友善arm-linux-gcc-4.3.2 的编译器,编译 postgresql-8.4.1,出现如下错误,请问还是由于编译器的原因吗?

arm-linux-gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
> -fwrapv -I../../../src/include -D_GNU_SOURCE
> -DVAL_CONFIGURE="\"'--prefix=/home/eps/pgsql-8.4.1/'
> '--host=arm-linux' '--disable-spinlocks' '--enable-depend'
> '--without-readline' '--without-zlib' 'host_alias=arm-linux'\""
> -DVAL_CC="\"arm-linux-gcc\"" -DVAL_CPPFLAGS="\"-D_GNU_SOURCE\""
> -DVAL_CFLAGS="\"-O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
> -fwrapv\"" -DVAL_CFLAGS_SL="\"-fpic\""
> -DVAL_LDFLAGS="\"-Wl,-rpath,'/home/eps/pgsql-8.4.1//lib'\""
> -DVAL_LDFLAGS_SL="\"\"" -DVAL_LIBS="\"-lpgport -lcrypt -ldl -lm \""
> -c -o pg_config.o pg_config.c -MMD -MP -MF .deps/pg_config.Po
> arm-none-linux-gnueabi-gcc: '--host=arm-linux': No such file or
> directory
> arm-none-linux-gnueabi-gcc: '--disable-spinlocks': No such file or
> directory
> arm-none-linux-gnueabi-gcc: '--enable-depend': No such file or
> directory
> arm-none-linux-gnueabi-gcc: '--without-readline': No such file or
> directory
> arm-none-linux-gnueabi-gcc: '--without-zlib': No such file or
> directory
> arm-none-linux-gnueabi-gcc: 'host_alias=arm-linux'": No such file or
> directory
> arm-none-linux-gnueabi-gcc: ": No such file or directory
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-05-27 12:22
请问 这是交叉编译器引起的吗??

这可能是由内核所支持的ABI类型和yaffs文件系统中可执行档的ABI类型不匹配造成的,光盘中的yaffs文件系统镜像是EABI的。比较安全的办法是用4.3.2的交叉编译器编译2.6.32.2的内核,并且确保内核支持EABI(默认的内核配置)。

我用友善arm-linux-gcc-4.3.2 的编译器,编译 postgresql-8.4.1,出现如下错误,请问还是由于编译器的原因吗?

这和arm-linux-gcc的版本无关,编译的命令行格式错误,编译器不知道你要它干什么。
"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."