Re: [uClinux-dev] do_initcalls() where is vmlinuz set up to populate between __initcall_start to end

2007-10-16 Thread Phil Wilshire
HI John, A simple way to do this is to use the module_init macro static int __init my_init_stuff(void) { return 0; } module_init(my_init_stuff); You can see all the init calls as they happen using the initcall_debug command line option root=/dev/mtdblock0 rw initcall_debug=1 ... Or

Re: [uClinux-dev] do_initcalls() where is vmlinuz set up to populate between __initcall_start to end

2007-10-16 Thread John . Jeffers
Thanks I am getting closer. The debug does not work for 2.4.32-uc0 I did stick a printk in do_initcalls() to show the called addresses of the modules which works. Is there a best place in the file structure (on the host) 2.4.32-uc0 to put the static int __init my_init_stuff() so link picks up

[uClinux-dev] do_initcalls() where is vmlinuz set up to populate between __initcall_start to end

2007-10-15 Thread John . Jeffers
Hi Yes I have puzzled through this and read a lot of material and code but have not quite found this answer. With 20070130-dist 2.4.32 and uClib on a Coldfire m5235 board with some special kernel/driver modules for LEDs etc. For the ram between __initcall_start and end to populate with the

Re: [uClinux-dev] do_initcalls() where is vmlinuz set up to populate between __initcall_start to end

2007-10-15 Thread Mike Frysinger
On Monday 15 October 2007, [EMAIL PROTECTED] wrote: Yes I have puzzled through this and read a lot of material and code but have not quite found this answer. you're wondering how the initcall mechanism works and how to use it yourself ? -mike signature.asc Description: This is a digitally