Hi all,
First of all, congratulations for having such powerful brains that let this
project to be possible.
I've got the following items:
- Freescale MCF5282 EVB (no MMU)
- uClinux-dist-20070130 for ColdFire
- m68k-tools v4.1.1
I am working with the 2.6 kernel (2.6.19-uc1) and I have set ALL configuration
to vendor's defaults.
After booting linux, the /bin/init program halts. Well, actually it is never
executed. I have followed the function call chain and, after my last hair
fell down from my head, I have determined that do_mmap() function is the one
that halts. Below, it is shown the execution flow to run /bin/init
run_init_process (called from /init/main.c)
|
|
\ /
kernel_execve()
|
|
\ /
system call: sys_execve()
|
|
\ /
do_execve()
|
|
\ /
search_binary_handler()
|
|
\ /
load_binary() (function referenced in "linux_binfmt" structure)
|
|
\ /
load_flat_binary() (defined in /fs/binfmt_flat.c)
|
|
\ /
load_flat_file (defined in /fs/binfmt_flat.c)
|
|
\ /
do_mmap() <<<< halts
-------------------------------------------------------------------
I have searched thru the uclinux mail archive and I have found some attractive
set of patches (ref. [uClinux-dev] [PATCH 1/4] nommu - do_mmap patch for
fs/binfmt_flat.c, from Hyok S. Choi hyok.choi at samsung.com )
My question is:
Does my distro has these patches already applied? Should I apply these patches
or there is another solution by configuring the main Makefile (e.g. thru make
menuconfig).
On the other hand I think I cannot apply exactly these patches since they are
for 2.6.12-rc3-mm3 version.
Any ideas?
For your convenience , I attach the boot process below with some comments:
************************************************************************************************
Linux version 2.6.19-uc1 ([EMAIL PROTECTED]) (gcc version 4.1.1) #83
Tu7
uClinux/COLDFIRE(m5280/5282)
COLDFIRE port done by Greg Ungerer, [EMAIL PROTECTED]
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
Built 1 zonelists. Total pages: 2032
Kernel command line:
PID hash table entries: 32 (order: 5, 128 bytes)
Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory available: 5908k/8192k RAM, (980k kernel code, 157k data)
Mount-cache hash table entries: 512
........Calling init()......................
........Calling do_initcalls() ...........
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
io scheduler noop registered
io scheduler cfq registered (default)
ColdFire internal UART serial driver version 1.00
ttyS0 at 0x40000200 (irq = 77) is a builtin ColdFire UART
ttyS1 at 0x40000240 (irq = 78) is a builtin ColdFire UART
ttyS2 at 0x40000280 (irq = 79) is a builtin ColdFire UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
PPP generic driver version 2.4.2
uclinux[mtd]: RAM probe address=0x12c8dc size=0xf9000
Creating 1 MTD partitions on "RAM":
0x00000000-0x000f9000 : "ROMfs"
uclinux[mtd]: set ROMfs to be root filesystem
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
........End of do_basic_setup...........
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 52k freed (0x111000 - 0x11d000)
........Executing init process ...........
........ The party starts now............
Running /bin/init...
........ About to call do_mmap() !! .............
************************************************************************************************
Thank you very much.
Best regards
Claude
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev