debug problemsss
Hi, I'm new in this mailing list ... I'm using ELKS kernel in a embedded
system with
an AT architetture,
Elan SC400 processor,
2mb RAM, - 640KB real, 1MB extended
2mb flash eprom as HD
Floppy 1.44 which now I'm using to boot kernel Image A20 gate for Extended Memory
XT keyb on elan controller
two serial port
For use 1.0.1 kernel in this system I added code for implement keyboard in SC400 Microcontroller (change an address for the data-register keyb from original code);
Kernel now, seems run correctly but only when mounts the root <sibo image>.
When I want to use the other image, the init process return an error when reading the config text file. Sometimes, it return also an out of space memory error!
Is the standard init process using the entire amount of memory to run (2MB)?
I think it can be a problem due of my HW!!!!.....
With the <sibo root image>, when I run application more larger than os utilities, system crash as before I explain.
For me the problem is on the A20 gate handling. I try to initialize it in assembly code as there's in the 2.2.20 linux official kernel but nothing change.
In my embedded system are there any difference (memory mapping ecc.) from standard implementation of ELKS??
In boot kernel retrieve > ... 637 Kb base memory and 1024Kb extended memory....
How do I debug this kernel on my system? is there any standard solution or must I to insert puts() for everywhere?
If anyone has a good idea, please send it to list........ thanx at
all!teo_icKs
______________________________________________________________________
Mio Yahoo!: personalizza Yahoo! come piace a te
http://it.yahoo.com/mail_it/foot/?http://it.my.yahoo.com/
Hello,
Quoted 2 lines
Is the standard init process using the entire amount of memory to run (2MB)?
No, it's not ... ELKS doesn't utilize memory above 640 KB anyway :-) If programs have separate CS and DS they use up to 128 KB (i'm not sure about that).
Quoted 3 lines
For me the problem is on the A20 gate handling. I try to initialize it in assembly code as there's in the 2.2.20 linux official kernel but nothing change.
Nope, for reason explained above :) ELKS works in real mode (8086) and doesn't use memory above 640 KB (although it should be able to use up to 1 MB with 8086 CPU with minor modifications in kernel & major alterations in hardware). Alternative would be some kind of bank switching (like EMS) but it seems those few boards people have function in a different way, i guess LIM EMS drivers for DOS were the highest common denominator.
Quoted 2 lines
How do I debug this kernel on my system? is there any standard solution or must I to insert
puts()for everywhere?
Nope again, you have to insert printk()s everywhere :-) To be more specific, if you #define DEBUG (or DEBUG_something where something is relevant #ifdef check for specific piece of code) debug messages might start poppoing up ... at least in the parts of code i've written/worked on. They aren't very helpful though unless you know exactly what code does - if you know that you don't need debug messages since they were used, well, for debugging purposes :)
IS ths Elan chip 486-compatible or 186-compatible ? I know it's AMD MCU but i'm too lazy to move to their webpage (i'm not sure if they have embedded chips section anymore, they reworked some of their pages afaik). Oh, you only have 2 MB of RAM anyway ... i guess it doesn't matter.
Blaz Antonic