主题 : 求助,mini2440编译busybox1.13.3问题 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
20楼  发表于: 2009-09-12 10:09
好消息,你的busybox本身是没有问题的,可以运行,至少是在我的mini2440上:). 这是运行的结果:

root@mini2440:~# ./busybox_my                                  
BusyBox v1.13.3 (2009-09-11 13:27:33 CST) multi-call binary
Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as!

Currently defined functions:
        [, [[, addgroup, adduser, adjtimex, ar, arp, arping, ash,
        awk, basename, bbconfig, blkid, bunzip2, bzcat, bzip2, cal,
        cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt,
        cksum, clear, cmp, comm, cp, cpio, crond, crontab, cut,
        date, dc, dd, deallocvt, delgroup, deluser, depmod, df,
        dhcprelay, diff, dirname, dmesg, dnsd, dos2unix, du, dumpkmap,
        echo, ed, egrep, env, ether-wake, expand, expr, fakeidentd,
        false, fbset, fdflush, fgrep, find, findfs, fold, free,
        freeramdisk, fsck, ftpget, ftpput, fuser, getopt, getty,
        grep, gunzip, gzip, halt, hd, head, hexdump, hostid, hostname,
        httpd, hwclock, id, ifconfig, ifdown, ifup, inetd, init,
        insmod, install, ip, ipcalc, ipcrm, ipcs, kbd_mode, kill,
        killall, killall5, klogd, last, length, less, linuxrc, ln,
        loadfont, loadkmap, logger, login, logname, logread, losetup,
        ls, lsattr, lsmod, lzmacat, md5sum, mdev, mesg, microcom,
        mkdir, mkfifo, mknod, mktemp, modprobe, more, mount, mountpoint,
        mv, nameif, nc, netstat, nice, nmeter, nohup, nslookup,
        od, openvt, passwd, patch, pgrep, pidof, ping, pipe_progress,
        pivot_root, pkill, poweroff, printenv, printf, ps, pscan,
        pwd, rdate, rdev, readahead, readlink, readprofile, realpath,
        reboot, renice, reset, resize, rm, rmdir, rmmod, route,
        rtcwake, run-parts, runlevel, rx, script, sed, seq, setconsole,
        setfont, setkeycodes, setlogcons, setsid, sh, sha1sum, showkey,
        sleep, sort, split, start-stop-daemon, stat, strings, stty,
        su, sulogin, sum, switch_root, sync, sysctl, syslogd, tac,
        tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd,
        time, top, touch, tr, traceroute, true, tty, ttysize, udhcpc,
        udhcpd, udpsvd, umount, uname, uncompress, unexpand, uniq,
        unix2dos, unlzma, unzip, uptime, usleep, uudecode, uuencode,
        vconfig, vi, vlock, watch, wc, wget, which, who, whoami,
        xargs, yes, zcat, zcip

root@mini2440:~# ./busybox_my ls -l /
drwxr-xr-x    2 root     root         3072 Sep 12 01:51 bin
drwxr-xr-x    2 root     root         1024 Apr  5 12:35 boot
drwxr-xr-x    9 root     root         7940 Sep 12 01:45 dev
drwxr-xr-x   33 root     root         3072 Sep 12 01:44 etc
drwxr-xr-x    3 root     root         1024 Apr  5 12:35 home
drwxr-xr-x    4 root     root         3072 Sep 12 01:44 lib
lrwxrwxrwx    1 root     root           12 Sep 12 01:39 linuxrc -> /bin/busybox
drwxr-xr-x   12 root     root         1024 Sep 12 01:43 media
drwxr-xr-x    3 root     root         1024 Apr  5 12:35 mnt
dr-xr-xr-x   54 root     root            0 Jan  1  1970 proc
drwxr-xr-x    2 root     root         3072 Sep 12 01:51 sbin
drwxr-xr-x   12 root     root            0 Jan  1  1970 sys
lrwxrwxrwx    1 root     root            8 Sep 12 01:44 tmp -> /var/tmp
drwxr-xr-x   10 root     root         1024 Apr  2 19:03 usr
drwxr-xr-x    7 root     root         1024 Apr  2 21:30 var
root@mini2440:~#

如果你相信你的人品没有问题的话,你也可以和我一样试试在一个已经运行起来的文件系统上手动运行你编译出来的busybox。另外,最好把包含"Kernel panic - not syncing: Attempted to kill init!"的完整启动log贴出来看看。
"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."
级别: 新手上路
UID: 4824
精华: 0
发帖: 45
金钱: 395 两
威望: 181 点
综合积分: 90 分
注册时间: 2009-03-30
最后登录: 2012-08-24
21楼  发表于: 2009-09-14 09:47
[root@FriendlyARM /]# ./busybox_my
BusyBox v1.13.3 (2009-09-11 13:27:33 CST) multi-call binary
Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: function [arguments]...

    BusyBox is a multi-call binary that combines many common Unix
    utilities into a single executable.  Most people will create a
    link to busybox for each function they wish to use and BusyBox
    will act like whatever it was invoked as!

Currently defined functions:
    [, [[, addgroup, adduser, adjtimex, ar, arp, arping, ash,
    awk, basename, bbconfig, blkid, bunzip2, bzcat, bzip2, cal,
    cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt,
    cksum, clear, cmp, comm, cp, cpio, crond, crontab, cut,
    date, dc, dd, deallocvt, delgroup, deluser, depmod, df,
    dhcprelay, diff, dirname, dmesg, dnsd, dos2unix, du, dumpkmap,
    echo, ed, egrep, env, ether-wake, expand, expr, fakeidentd,
    false, fbset, fdflush, fgrep, find, findfs, fold, free,
    freeramdisk, fsck, ftpget, ftpput, fuser, getopt, getty,
    grep, gunzip, gzip, halt, hd, head, hexdump, hostid, hostname,
    httpd, hwclock, id, ifconfig, ifdown, ifup, inetd, init,
    insmod, install, ip, ipcalc, ipcrm, ipcs, kbd_mode, kill,
    killall, killall5, klogd, last, length, less, linuxrc, ln,
    loadfont, loadkmap, logger, login, logname, logread, losetup,
    ls, lsattr, lsmod, lzmacat, md5sum, mdev, mesg, microcom,
    mkdir, mkfifo, mknod, mktemp, modprobe, more, mount, mountpoint,
    mv, nameif, nc, netstat, nice, nmeter, nohup, nslookup,
    od, openvt, passwd, patch, pgrep, pidof, ping, pipe_progress,
    pivot_root, pkill, poweroff, printenv, printf, ps, pscan,
    pwd, rdate, rdev, readahead, readlink, readprofile, realpath,
    reboot, renice, reset, resize, rm, rmdir, rmmod, route,
    rtcwake, run-parts, runlevel, rx, script, sed, seq, setconsole,
    setfont, setkeycodes, setlogcons, setsid, sh, sha1sum, showkey,
    sleep, sort, split, start-stop-daemon, stat, strings, stty,
    su, sulogin, sum, switch_root, sync, sysctl, syslogd, tac,
    tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd,
    time, top, touch, tr, traceroute, true, tty, ttysize, udhcpc,
    udhcpd, udpsvd, umount, uname, uncompress, unexpand, uniq,
    unix2dos, unlzma, unzip, uptime, usleep, uudecode, uuencode,
    vconfig, vi, vlock, watch, wc, wget, which, who, whoami,
    xargs, yes, zcat, zcip

[root@FriendlyARM /]# ./busybox_my ls -l
Illegal instruction

确实有问题
你们的busybox
[root@FriendlyARM /]# ./bin/busybox ls -l
drwxr-xr-x    2 500      500          4096 Mar 30  2009 bin
-rwxr-xr-x    1 500      500        634172 Sep 14  2009 busybox
-rwxr--r--    1 500      500        634172 Sep 11  2009 busybox_my
drwxr-xr-x    7 root     root            0 Feb 17 03:02 dev
drwxr-xr-x    5 500      500          4096 Sep 10  2009 etc
drwxr-xr-x    3 500      500          4096 Jul  5  2007 home
drwxr-xr-x    4 500      500          4096 Apr 27  2009 lib
lrwxrwxrwx    1 500      500            11 Sep 10  2009 linuxrc -> bin/busybox
drwxr-xr-x    4 500      500          4096 Apr 29  2009 opt
dr-xr-xr-x   39 root     root            0 Jan  1  1970 proc
drwxr-xr-x    7 500      500          4096 Sep 10  2009 root
drwxr-xr-x    2 500      500          4096 Apr 27  2009 sbin
drwxr-xr-x   11 root     root            0 Jan  1  1970 sys
drwxr-xr-x    4 root     root            0 Feb 17 03:02 tmp
drwxr-xr-x    6 500      500          4096 Apr 29  2009 usr
drwxr-xr-x    7 root     root            0 Feb 17  2009 var
drwx------    3 500      500          4096 Apr  1  2009 www
是可以用的~~~~
看来我的busybox还是有很大问题的  不知道为什么可以再你们那边用
我现在用的是给你上传的那个
级别: 新手上路
UID: 4824
精华: 0
发帖: 45
金钱: 395 两
威望: 181 点
综合积分: 90 分
注册时间: 2009-03-30
最后登录: 2012-08-24
22楼  发表于: 2009-09-14 09:49
启动日志log
Supervivi> boot
Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "console=ttySAC0 root=/dev/nfs nfsroot=172.20.223.151:/home/xueqing/root_test init=/linuxrc ip=172.20.223.156:172.20.223.151:172.20.223.254:255.255.255.0:unsp:eth0:off"
MACH_TYPE = 782
NOW, Booting Linux......
Uncompressing Linux.................................................................................................................................. done, booting the kernel.
Linux version 2.6.29-FriendlyARM (root@tom) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #1 Tue Apr 28 21:57:00 CST 2009
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: console=ttySAC0 root=/dev/nfs nfsroot=172.20.223.151:/home/xueqing/root_test init=/linuxrc ip=172.20.223.156:172.20.223.151:172.20.223.254:255.255.255.0:unsp:eth0:off
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
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: 60608KB available (3724K code, 407K data, 128K init)
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 296 bytes
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
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
    (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
    (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
    (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
    (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
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
yaffs Apr 28 2009 21:49:48 Installing.
msgmni has been set to 118
alg: No test for stdrng (krng)
io scheduler noop registered (default)
Console: switching to colour frame buffer device 30x20
fb0: s3c2410fb frame buffer device
backlight    initialized
leds    initialized
buttons    initialized
pwm    initialized
adc    initialized
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
loop: module loaded
dm9000 Ethernet Driver, V1.31
Now use the default MAC address: 08:90:90:90:90:90
eth0 (dm9000): not using net_device_ops yet
eth0: dm9000e at c4810000,c4814004 IRQ 51 MAC: 08:90:90:90:90:90 (friendly-arm)
usbcore: registered new interface driver rt73usb
Linux video capture interface: v2.00
gspca: main v2.4.0 registered
usbcore: registered new interface driver conex
conex: registered
usbcore: registered new interface driver etoms
etoms: registered
usbcore: registered new interface driver finepix
finepix: registered
usbcore: registered new interface driver mars
mars: registered
usbcore: registered new interface driver ov519
ov519: registered
usbcore: registered new interface driver ov534
ov534: registered
usbcore: registered new interface driver pac207
pac207: registered
usbcore: registered new interface driver pac7311
pac7311: registered
usbcore: registered new interface driver sonixb
sonixb: registered
usbcore: registered new interface driver sonixj
sonixj: registered
usbcore: registered new interface driver spca500
spca500: registered
usbcore: registered new interface driver spca501
spca501: registered
usbcore: registered new interface driver spca505
spca505: registered
usbcore: registered new interface driver spca506
spca506: registered
usbcore: registered new interface driver spca508
spca508: registered
usbcore: registered new interface driver spca561
spca561: registered
usbcore: registered new interface driver sunplus
sunplus: registered
usbcore: registered new interface driver stk014
stk014: registered
usbcore: registered new interface driver t613
t613: registered
usbcore: registered new interface driver tv8532
tv8532: registered
usbcore: registered new interface driver vc032x
vc032x: registered
usbcore: registered new interface driver zc3xx
zc3xx: registered
usbcore: registered new interface driver ALi m5602
ALi m5602: registered
usbcore: registered new interface driver STV06xx
STV06xx: registered
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
initializing s3c2440 camera interface......
s3c2440 camif init done
Loading OV9650 driver.........
SCCB address 0x60, manufacture ID 0xFFFF, expect 0x7FA2
SCCB address 0x60, manufacture ID 0xFFFF, expect 0x7FA2
No OV9650 found!!!
Driver 'sd' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 3389 at 0x0000034f4000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000030000 : "supervivi"
0x000000050000-0x000000250000 : "Kernel"
0x000000250000-0x000003ffc000 : "root"
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: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: S3C24XX OHCI
usb usb1: Manufacturer: Linux 2.6.29-FriendlyARM ohci_hcd
usb usb1: SerialNumber: s3c24xx
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
s3c2410 TouchScreen successfully loaded
input: s3c2410 TouchScreen as /devices/virtual/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 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
mapped channel 0 to 0
s3c2440-sdi s3c2440-sdi: powered down.
s3c2440-sdi s3c2440-sdi: initialisation done.
s3c2440-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: powered down.
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.18a.
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
S3C24XX_UDA134X SoC Audio driver
UDA134X SoC Audio Codec
asoc: UDA134X <-> s3c24xx-i2s mapping ok
ALSA device list:
  #0: S3C24XX_UDA134X (UDA134X)
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
s3c2410-rtc s3c2410-rtc: setting system clock to 2009-02-17 03:35:17 UTC (1234841717)
eth0: link down
IP-Config: Complete:
     device=eth0, addr=172.20.223.156, mask=255.255.255.0, gw=172.20.223.254,
     host=unsp, domain=, nis-domain=(none),
     bootserver=172.20.223.151, rootserver=172.20.223.151, rootpath=
Looking up port of RPC 100003/2 on 172.20.223.151
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
Looking up port of RPC 100005/1 on 172.20.223.151
VFS: Mounted root (nfs filesystem) on device 0:11.
Freeing init memory: 128K
Kernel panic - not syncing: Attempted to kill init!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
23楼  发表于: 2009-09-14 11:21
你编译的busybox是EABI的,这没有问题,但从反汇编的比较看,我觉得似乎不是友善之臂提供的4.3.2的编译器编译出来的,和光盘上的busybox二进制档有一些细小的差别,但我不能肯定这些差别会引起"Illegal instruction".
为了确保你用正确的编译器,可以在make的时候在命令行上加上"CROSS_COMPILE=/usr/local/arm/4.3.2/bin/arm-linux-" (假设4.3.2的编译器路径在/usr/local/arm/4.3.2/bin/)
"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."
级别: 新手上路
UID: 4824
精华: 0
发帖: 45
金钱: 395 两
威望: 181 点
综合积分: 90 分
注册时间: 2009-03-30
最后登录: 2012-08-24
24楼  发表于: 2009-09-14 11:51
谢谢版主 我终于找到原因了
是我自己擅自修改编译器下面的那个/bin/arm-linux-gcc这个脚本文件的原因 因为安装完成编译器以后 我直接执行 arm-linux-gccc -v 出现错误,我就以为这个文件有问题,直接自己做了个指向 arm-none-linux-gnueabi-gcc的软连接,其实打开这个脚本看看
exec arm-none-linux-gnueabi-gcc -march=armv4t $*  后面这个march=armv4t $的参数很重要,否则编译出来的busybox不能使用的。但是内核没有影响
如果大家没有把4.3.2编译器的环境变量设置的话,直接使用绝对路径的方法,肯定就会出现问题了,因为脚本执行exec arm-none-linux-gnueabi-gcc -march=armv4t $* 的时候找不到arm-none-linux-gnueabi-gcc 的呵呵,但是由于我设置了软连接 不存在上面的问题,最根本的原因是我原来没有意识到arm-linux-gcc是个脚本  呵呵~~~谢谢谢谢了

问题解决了,也学到了好多东西
谢谢斑竹的无私帮助~~~
级别: 新手上路
UID: 4824
精华: 0
发帖: 45
金钱: 395 两
威望: 181 点
综合积分: 90 分
注册时间: 2009-03-30
最后登录: 2012-08-24
25楼  发表于: 2009-09-14 11:53
因为编译器使用的版本比较多 所以我编译的时候基本上使用绝对路径 没有设置环境变量  这也导致了问题的隐蔽~~
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
26楼  发表于: 2009-09-14 12:46
恭喜,幸好不是所有的人都像楼主那么强会想到去做一个"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."
级别: 新手上路
UID: 4824
精华: 0
发帖: 45
金钱: 395 两
威望: 181 点
综合积分: 90 分
注册时间: 2009-03-30
最后登录: 2012-08-24
27楼  发表于: 2009-09-14 13:16
引用第26楼kasim于2009-09-14 12:46发表的  :
恭喜,幸好不是所有的人都像楼主那么强会想到去做一个"arm-linux-gcc"



呵呵~~~
谢谢斑竹一直帮忙分析原因~~
级别: 新手上路
UID: 4824
精华: 0
发帖: 45
金钱: 395 两
威望: 181 点
综合积分: 90 分
注册时间: 2009-03-30
最后登录: 2012-08-24
28楼  发表于: 2009-09-14 14:14
根据这个启发,出现问题
还有一种解决方法,在busybox的Makefile里面
将ARCH ?= $(SUBARCH)
修改为ARCH ?= armv4t
我看好多资料是将其修改为
ARCH ?= arm
这样是不行的
2440内核使用的是arm920t的内核
就是armv4t体系
修改了效果是一样的
级别: 新手上路
UID: 8720
精华: 0
发帖: 11
金钱: 85 两
威望: 35 点
综合积分: 22 分
注册时间: 2009-09-03
最后登录: 2011-05-24
29楼  发表于: 2009-09-18 10:13
请教下,是用的友善自己带的mkyaffs2image还是mkyaffs2image-128M?我只有用mkyaffs2image-128M去生成的IMG文件才能用,用自己编译的就是不行