[uClinux-dev] Timekeeping problem: time runs too fast

2010-04-28 Thread Stephane Lambert
Hello all, I'm working on the porting of uClinux 2.6.19 for a new architecture. The system is booting without problems, but I have a problem concerning timekeeping. Indeed, the date command shows that time runs too fast (5 sec in reality for around 10 minutes in Linux...). So I have read documenta

[uClinux-dev] Shell prompt is printed twice

2009-11-03 Thread Stephane Lambert
Hello all, I'm porting uClinux for a new architecture and I have a problem with printf messages from sh. Indeed, the prompt is printed twice. For instance, when typing the command 'ls -C' the system output the following: /> /> ls -C bin dev etc home

[uClinux-dev] problem with check_tty_count()

2009-09-10 Thread Stephane Lambert
Hello all, I'm doing the porting of uClinux to a new architecture and I have a problem with the sys_close system call. Indeed, init process open a first time bin/sh to read and execute the commands of etc/rc. When sh terminates, the filp_close() function resets the 'next' field of the console filp.

[uClinux-dev] Endless loop into check_tty_count()

2009-07-27 Thread Stephane Lambert
Hello all, I'm porting uclinux 2.6.19 on a new architecture (Cortus ASP3) and I have a problem with the function 'check_tty_count()' (drivers/char/tty_io.c) On my system, it creates an endless loop in list_for_each(p, &tty->tty_files) { count++; } I think something in not correclty

Re: [uClinux-dev] user/init or Busybox/init for kernel 2.6?

2009-06-16 Thread Stephane Lambert
Thanks for your answer. In fact I can follow the 'init' execution with a tracelog and the system executes correctly the system-calls, interruptions etc.. from the user mode. Previously it was able to read the script 'rc' and even executes commands. (it was with the user/init program). But it

[uClinux-dev] user/init or Busybox/init for kernel 2.6?

2009-06-16 Thread Stephane Lambert
Hello all, I'm porting uClinux 2.6 to the CORTUS aps3 processor and I have reached the point of executing programs from user mode. I have spend a lot of time working on "init" program from 'user/init' but it seems that the programs from user/ are suitable for kernel 2.0. I have read on documenta

[uClinux-dev] elf2flt.ld : cannot find W_RODAT

2009-02-12 Thread Stephane Lambert
Hi all, I'm building the elf2flt converter in order to provide flat binaries (init and sh) to the kernel. The compiling has been done correctly and I have tested it with an .ELF file. I had received the following error message: ERROR: text=0x667c overlaps data=0x60 ? After investigations, it

[uClinux-dev] CONFIG_BINFMT_ELF problem

2009-02-06 Thread Stephane Lambert
Hi all, I have a question concerning the compilation option (.config): the kernel outputs the following warning and error: Warning: unable to open an initial console. Kernel panic - not syncing: No init found. Try passing init= option to kernel. It seems that the kernel doesn't

[uClinux-dev] Wrong genromfs?

2009-02-05 Thread Stephane Lambert
Hi all, During compiling of kernel 2.6, the directory romfs is created into home//uClinux-dist/. In the directory romfs/dev, all device file names begin with @ . Does it mean that I'm using a wrong genromfs? Thanks in advance. Regards. ___ uClinux-d

[uClinux-dev] No init found --> executable format problem

2009-02-04 Thread Stephane Lambert
Hello all, I have a question concerning the end of the init() function, where the kernel should start the shell. In my case, the kernel outputs the well_known errors with initial console and No init found.(see the kernel output below). After investigations, it seems that the format of the 'init'

Re: [uClinux-dev] Problem with mtd_blktrans_thread()

2009-01-23 Thread Stephane Lambert
Hi Ok , I have change the code manually and it has resolved my problem. Thanks very much! Sujit Karataparambil a écrit : Not Really. You may have to change the code manually to Kthread API's. On 1/22/09, Stephane Lambert wrote: Thanks for your answer, Does it means that I should

Re: [uClinux-dev] Problem with mtd_blktrans_thread()

2009-01-22 Thread Stephane Lambert
http://lwn.net/Articles/188666/ On 1/20/09, Stephane Lambert wrote: Hi all, I'm trying to boot uClinux 2.6 on a new architecture. I have a problem during execution of the mtd_blktrans_thread() function. Indeed the condition for the while loop never permits to

Re: [uClinux-dev] Mount romfs without MTD?

2009-01-22 Thread Stephane Lambert
ommand line? Thanks very much in advance! Regards Greg Ungerer a écrit : Hi Stephane, Stephane Lambert wrote: I'm working on mounting romfs for kernel 2.6.19 on a new architecture and I have a question: It is possible to mount romfs without MTD support? Where does the romfs si

[uClinux-dev] Mount romfs without MTD?

2009-01-21 Thread Stephane Lambert
Hi all, I'm working on mounting romfs for kernel 2.6.19 on a new architecture and I have a question: It is possible to mount romfs without MTD support? Thanks in advance! ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org

[uClinux-dev] Problem with mtd_blktrans_thread()

2009-01-20 Thread Stephane Lambert
Hi all, I'm trying to boot uClinux 2.6 on a new architecture. I have a problem during execution of the mtd_blktrans_thread() function. Indeed the condition for the while loop never permits to terminate. while (!tr->blkcore_priv->exiting) { ... }

Re: [uClinux-dev] Problem with romfs

2009-01-16 Thread Stephane Lambert
-Original Message- From: uclinux-dev-boun...@uclinux.org [mailto:uclinux-dev-boun...@uclinux.org] On Behalf Of Stephane Lambert Sent: Friday, January 16, 2009 6:20 AM To: uClinux development list Subject: Re: [uClinux-dev] Problem with romfs Hi, yes CONFIG_ROMFS_FS is enabled. I've tried to enabled C

Re: [uClinux-dev] Problem with romfs

2009-01-16 Thread Stephane Lambert
Hi, yes CONFIG_ROMFS_FS is enabled. I've tried to enabled CONFIG_MTD_BLOCK, and several things have been done: ... uclinux[mtd]: RAM probe address=0x11414 size=0x18141000 Creating 1 MTD partitions on "RAM": 0x-0x18141000 : "ROMfs" mtd: Giving out device

Re: [uClinux-dev] Problem with romfs

2009-01-14 Thread Stephane Lambert
Thanks all for your help. Now, the system is able to create a partition for ROMfs. So it seems that the kernel has found -rom1fs- thanks to uClinux.c. ROOT_DEV has been set at 1f:00 (31, 0). But I have still a kernel panic. Perhaps I have missed something. Any suggestions? Thanks in advance. S.La

Re: [uClinux-dev] Problem with romfs

2009-01-12 Thread Stephane Lambert
Hello, Thanks for your answer. Does the CONFIG_BLKMEM available for kernel 2.6? blkmem.c exists for kernel 2.4 but I haven't found it in kernel 2.6. Thanks. S.Lambert Jate Sujjavanich a écrit : Is CONFIG_BLKMEM enabled? ___ uClinux-dev mailing lis

Re: [uClinux-dev] Problem with romfs

2009-01-08 Thread Stephane Lambert
iver which will give access to the romfs in memory? Blkmem or mtd? - Jate -Original Message- From: uclinux-dev-boun...@uclinux.org [mailto:uclinux-dev-boun...@uclinux.org] On Behalf Of Stephane Lambert Sent: Thursday, January 08, 2009 4:27 AM To: uClinux-dev@uclinux.org; kernelnewb...@nl

[uClinux-dev] Problem with romfs

2009-01-08 Thread Stephane Lambert
Hi all, I'm trying to boot kernel 2.6.19 in a new architecture and I have a problem concerning romfs. During compilation I've created a section .romfs which contains romfs.img. I have checked with GDB and I found correctly the magic number -rom1fs- at the expected location. But I don't understa

[uClinux-dev] Problem concerning VFS

2008-12-19 Thread Stephane Lambert
Hello all, I am having a problem during boot concerning VFS (see the kernel output below). I have read several posts on this subject but I haven't been able to find the information that I need. (Note that I'm porting uClinux to a new architecture (The Cortus APS3 processor)). Could someone p

[uClinux-dev] restoring of pt_regs regs in context switch

2008-12-08 Thread Stephane Lambert
Hello all I have a question concerning context switch : When and how does the content of 'regs' (struct pt_regs) is restored during context switch? (especially fn, arg, and kernel_thread_helper() address, set in kernel_thread() in order to call fn(arg)). Thanks in advance for your responses.

[uClinux-dev] timer interrupts during boot

2008-11-27 Thread Stephane Lambert
Hi all, I'm porting uClinux (linux kernel 2.6.19) on a new architecture and I have a question concerning timer interrupts. During the execution of the init() function, a new thread is created for ksoftirqd. To do this, kernel_thread() is called with the corresponding operands and calls system_c

[uClinux-dev] kernel panic in slab.c

2008-11-18 Thread Stephane Lambert
Hi all, I'm porting uClinux on a new architecture and I have reached the step of init_process creation. When 'init()' function is called (init/main.c), After checking a trace, the process 'kthread' is also created, but after that the system enters in Panic. It seems to be the following BUG_ON

Re: [uClinux-dev] init() function

2008-11-04 Thread Stephane Lambert
value in the instruction pointer. All is clear for me now. Cheers Stephane Lambert ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To

[uClinux-dev] init() function

2008-10-31 Thread Stephane Lambert
hello all, I'm working on the porting of uClinux on a new platform and I have some questions concerning the rest_init() function at the end of start_kernel(). In fact rest_init() calls kernel_thread() with the operand 'init' which is the function responsible for the call of the 'init' and 'sh'

[uClinux-dev] problem with kmem_cache_create

2008-10-08 Thread Stephane Lambert
Hello, I have a strange problem concerning the 'kmem_cache_create' when it is called by 'vfs_cache_init'. During the boot procedure, 'kmem_cache_create' is called several times in order to check if the state of the initialisation is correct, and in my case it works correcly until 'vfs_cache_in

[uClinux-dev] Information about printk procedure

2008-09-26 Thread Stephane Lambert
Hello all, I try to understand how printk works: I know that all printk messages are stored in the LOG_BUF buffer before the call of console_init() (because console_init() seems to set up the serial port). But I don't understand what is really happening.. What involved files should I set or mo

[uClinux-dev] Explanations about mm_struct

2008-07-30 Thread Stephane Lambert
Hello all, I'm porting uClinux on the Cortus APS3 processor and in order to write specifically the setup_arch function I need to understand correctly the structure mm_struct, but I have some doubts. Could someone please explain to me the purpose of the following variables : (uClinux/uClinux-d

[uClinux-dev] FATAL: vmlinux is truncated

2008-05-20 Thread Stephane Lambert
eems this error is a vmlinux script problem. But I would like to understand what is happening to avoid this problem after, and what this error really means, and finally add correctly my Heap section. Could someone help me please? Thanks in advance. S

[uClinux-dev] Dwarf Error: Could not find abbrev number 1

2008-05-20 Thread Stephane Lambert
ld someone help me please? Thanks in advance. Stephane Lambert ___ GNU gdb 6.5.0 (Cortus 20080313 with DSP) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the G