2010-11-26 00:10:29 init: exec rc failed
Chen Kuantong (CHINA)
Message: 96222
Hello:
The board I use is ezkit533(rev0.2),a very old one. But now I just can get this board. I have tried many uclinux and uboot versions. It seems that only the very old version, 2005 R3-RC3 can make the board start.
I have successfully booted that board,but when I download uclinux image kernel, there are still some errors.
ezkit> bootm 0x1000000
## Booting image at 01000000 ...
Image Name: uclinux kernel image
Created: 2010-11-26 4:12:38 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 1161238 Bytes = 1.1 MB
Load Address: 00001000
Entry Point: 00001000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 1000
Linux version 2.6.12.1-BFIN-2005R3 (root@ltb.localdomain) (gcc version 3.4.4) #3
Fri Nov 26 12:03:58 CST 2010
Blackfin support (C) 2004 Analog Devices, Inc.
ADSP-BF533 Rev. 0.2
uClinux/BF533
Blackfin uClinux support by blackfin.uclinux.org
Processor Speed: 594 MHz core clock and 118 Mhz System Clock
Board Memory: 32MB
Memory map:
text = 0x001000-0x08ce78
data = 0x09701c-0x0b8314
bss = 0x0b8320-0x0c3378
rootfs = 0x0c3378-0x4c4000
stack = 0x098000-0x09a000
Command line: 'root=/dev/mtdblock0 rw'
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists
Kernel command line: root=/dev/mtdblock0 rw
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 128 (order: 7, 2048 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Physical pages: 1f00
Memory available: 26552k/32163k RAM, (39k init code, 559k kernel code, 176k data
, 1024k dma)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin DATA_A SRAM: 16 KB
Blackfin DATA_B SRAM: 16 KB
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
Linux NoNET1.0 for Linux 2.6
Blackfin DMA Controller for BF533
ezkit_init(): registering device resources
Real Time Clock Driver v1.10e
blackfin_dpmc_init
Dynamic Power Management Controller: major=10, minor = 254
DPMC Driver v0.1
BlackFin BF533 serial driver version 2.00 With DMA Support
io scheduler noop registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
uclinux[mtd]: RAM probe address=0xc3378 size=0x400000
Creating 1 MTD partitions on "RAM":
0x00000000-0x00400000 : "EXT2fs"
uclinux[mtd0]: set EXT2fs to be root filesystem
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 36k freed (0x8d000 - 0x95000)
ttyS0 at irq = 21 is a builtin BlackFin UART
dma_alloc_init: dma_page @ 0x00091000 - 256 pages at 0x01f00000
bfin_change_speed: baud = 57600, cval = 0x13
init: exec rc failed
init: Booting to single user mode
init: exec of single user shell failed
All the things I have done when making menuconfig is cancel the support part of busybox. Because compling kernel fails when including busybox.The error message is:
bfin-uclinux-gcc -Wl,-elf2flt -s -Wl,-warn-common -s -Wl,-warn-common -o busybox -Wl,--start-group /mnt/uClinux-dist5.3/uClinux-dist/user/busybox/applets/applets.a /.......(including many libs) ...../mnt/uClinux-dist5.3/uClinux-dist/user/busybox/libbb/libbb.a -lm -lcrypt -Wl,--end-group -L/mnt/uClinux-dist5.3/uClinux-dist/lib/uClibc/. -L/mnt/uClinux-dist5.3/uClinux-dist/lib/uClibc/lib -L/mnt/uClinux-dist5.3/uClinux-dist/lib/uClibc/libm -L/mnt/uClinux-dist5.3/uClinux-dist/lib/libnet -L/mnt/uClinux-dist5.3/uClinux-dist/lib/libdes -L/mnt/uClinux-dist5.3/uClinux-dist/lib/libaes -L/mnt/uClinux-dist5.3/uClinux-dist/lib/libpcap -L/mnt/uClinux-dist5.3/uClinux-dist/lib/zlib -L/mnt/uClinux-dist5.3/uClinux-dist/lib/libssl -L/mnt/uClinux-dist5.3/uClinux-dist/lib/uClibc/libc -L/mnt/uClinux-dist5.3/uClinux-dist/lib/uClibc/libcrypt
busybox.elf2flt(.rodata+0x8): undefined reference to `_test_main'
busybox.elf2flt(.rodata+0x2c): undefined reference to `_date_main'
busybox.elf2flt(.rodata+0x1dc): undefined reference to `_test_main'
collect2: ld returned 1 exit status
I am quite sure 2005R3 supports my borad. Some one else has successfully compled one image base on this uclinux version. But I don't know the host linux distro. Does it have much influence in compling kernel?
my environment:
gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)
GNU Make 3.81
And I am confused that whether I should do some changes to kernel, in addition to the following step:
1. make mrproper;
2.make menuconfig ,just cancel busybox and leave other options default.
3.make all.
Above all,I found the file uclinux /romfs/etc/rc:
hostname blackfin
#/bin/expand /etc/ramfs.img /dev/ram0
mount -t proc none /proc
mount -t ramfs /dev/ram0 /var
mkdir /var/tmp
mkdir /var/log
mkdir /var/run
mkdir /var/lock
#dhcpcd &
#ifconfig eth0 10.100.4.251 up
ifconfig lo 127.0.0.1
inetd &
#cat /etc/issue
cat /etc/motd
While initalizing, the kernel do the instruction in this file, I just don't why it fails.
QuoteReplyEditDelete
2010-11-26 00:22:48 Re: init: exec rc failed
Mike Frysinger (UNITED STATES)
Message: 96224
sorry, but your hardware and software are way too old and not supported. you're on your own.
buy a newer ezkit and use the latest distro if you want support.
QuoteReplyEditDelete