[uClinux-dev] romdisk and 2.4

bai wei baiwei99 at yahoo.com.cn
Tue Nov 6 05:13:36 EST 2001


 Thank you.TomW.

> Check your setting for /dev/console, it should read:
> 
> [root at other images]# ls -l /it/dev/console
> crw-------    1 root     root       5,   1 Dec 31 
> 1969 /it/dev/console
> 
> Note that the major number is 5.
> 

 Yes,my major number is 4.Change it,the console is
opened correctly. 

> Also, make sure that you assigned a console in
> /etc/inittab:
> 
> # inittab for uClinux
> # Format:
> # ttyline:termcap-entry:getty-command
> inetd:unknown:/bin/inetd
> # boa:unknown:/bin/boa
> ttyS0:vt100:/bin/agetty 115200 /dev/ttyS0
> 

my inittab:

# inittab for uClinux
# Format:
# ttyline:termcap-entry:getty-command
ttyS0:vt100:/bin/agetty 9600 /dev/ttyS0
 

> ALSO(!) Don't assume that anything is understood by
> the members of the
> list:
> 
> 1.  Give a complete capture of the boot messages.
> 
> 2.  What distro did you begin with? 
> uClinux-Coldfire,
> uClinux-distribution-20010622, uclinux-2.0.38-pre4,
> ...
> 
> 3. etc...
> 

I use uClinux2.4 from CVS.My userland is older
distribed with uCsimm and I changed it for elf.
The compile options is -m68000 -msep-data
-Wl,-elf2flt.

This is my first time to learn 2.4.I try to run it on
Xcopilot.

I trace into kernel find it die at init/main.c 
static int init(void * unused)
{
  execve("/sbin/init",argv_init,envp_init);
}
furthermore,I find the thread break at binfmt_flat.c

if ((flags & (FLAT_FLAG_RAM|FLAT_FLAG_GZIP)) == 0) {
/*
* this should give us a ROM ptr,  but if it doesn't we
don't  * really care              */
 DBG_FLT("BINFMT_FLAT: ROM mapping of file (we
hope)\n");

   down_write(&current->mm->mmap_sem);
         textpos = do_mmap(bprm->file, 0, text_len,
PROT_READ|PROT_EXEC, 0, 0); //break at here.
   up_write(&current->mm->mmap_sem);
   if (textpos >= (unsigned long) -4096)
            return(textpos);
 ......

The message is as following,maybe I should get more
debug.

ABCDEFGHIJ
Linux version 2.4.10-uc0 (root at lzy) (gcc version
2.95.2 19991024 (release)) #1 Tue Nov 6 17:12:42 EST
2001

68328 support D. Jeff Dionne <jeff at uclinux.org>
68328 support Kenneth Albanowski <kjahds at kjshds.com>
68328/Pilot support Bernhard Kuhn
<kuhn at lpr.e-technik.tu-muenchen.de>


uClinux/MC68328
Flat model support (C) 1998,1999 Kenneth Albanowski,
D. Jeff Dionne
TRG SuperPilot FLASH card support <info at trgnet.com>
On node 0 totalpages: 254
zone(0): 0 pages.
zone(1): 254 pages.
zone(2): 0 pages.
Kernel command line:  Å
Calibrating delay loop... 16.53 BogoMIPS
Memory available: 812k/1018k RAM, 676k/1024k ROM (348k
kernel code, 169k data)
kmem_create: Forcing size word alignment -
vm_area_struct
kmem_create: Forcing size word alignment - mm_struct
kmem_create: Forcing size word alignment - filp
Dentry-cache hash table entries: 512 (order: 0, 4096
bytes)
Inode-cache hash table entries: 512 (order: 0, 4096
bytes)
kmem_create: Forcing size word alignment - inode_cache
Mount-cache hash table entries: 512 (order: 0, 4096
bytes)
kmem_create: Forcing size word alignment - bdev_cache
kmem_create: Forcing size word alignment - cdev_cache
Buffer-cache hash table entries: 1024 (order: 0, 4096
bytes)
Page-cache hash table entries: 1024 (order: 0, 4096
bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society
NET3.039
kmem_create: Forcing size word alignment - sock
Starting kswapd
kmem_create: Forcing size word alignment - file lock
cache
MC68328 serial driver version 1.00
ttyS0 at 0xfffff900 (irq = 64) is a builtin MC68328
UART
kmem_create: Forcing size word alignment -
blkdev_requests
block: 64 slots per queue, batch=8
RAMDISK driver initialized: 16 RAM disks of 256K size
1024 blocksize
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 10C7226C-10D86A6B [VIRTUAL 10C7226C-10D86A6B] (RO)
VFS: Mounted root (romfs filesystem) readonly.
BINFMT_FLAT: Loading file: 100e4120
BINFMT_FLAT: ROM mapping of file (we hope)
Bus error: read a word from undefined memory address
0xa340003e
                                                      
        Bus error: attempted translation of odd
address 0x00000001
                                         Bus error:
attempted translation of odd address 0x00000001
                   Bus error: wrote a byte to
undefined memory address 0xa3400000
 Bus error: attempted translation of odd address
0x00000001 ......loop 

_________________________________________________________
Do You Yahoo!? µÇ¼Ãâ·ÑÑÅ»¢µçÓÊ! http://mail.yahoo.com.cn

<font color=#6666FF>ÎÞÁÄ£¿ÓôÃÆ£¿¸ßÐË£¿Ã»ÀíÓÉ£¿¶¼À´ÁÄÌì°É£¡</font>¡ª¡ª 
ÑÅ»¢È«ÐÂÁÄÌìÊÒ! http://cn.chat.yahoo.com/c/roomlist.html
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/



More information about the uClinux-dev mailing list