Hi,

I also use the old type of shared memory with 64Mb RAM and a 2.2.14 linux kernel.

I append lilo.conf with "mem=63m" (but I haven't look at /proc/meminfo).

Because I didn't find the  ioremap() function in this kernel version, I used the 
function 
phys_to_virt() in my module (the function is defined in /asm/page.h I think) :

#define BASE_ADDRESS (63*0x100000)
...
MY_STRUCT *m_s;
...
m_s=(MY_STRUCT*)phys_to_virt(BASE_ADDRESSS);
m_s->first_field = ...;
...

It works.

Cyril.
> -----Message d'origine-----
> De:   Estabridis, Janet P [SMTP:[EMAIL PROTECTED]]
> Date: lundi 27 novembre 2000 19:11
> �:    'RT Linux Group'
> Objet:        [rtl] Linux BootPrompt Question
> 
> Hi,
> 
> I want use the old type of shared memory on my embedded system running the
> miniRTL (kernel 2.2.14 rtlv2.3).  I have 128MBytes of memory and I have
> added the statement:
> 
> append="mem=125M"
> 
> to the linux.cfg file on the disk.  
> 
> 
> 
> Here is my linux.cfg file:
> 
> .\zimage
> append="mem=125M"
> append=load_ramdisk=1 
> initrd=root.rtl 
> initrd_archive=minix 
> ramdisk_size=50000 
> root=/dev/ram0 
> boot=/dev/hda1,msdos 
> RTL=etc,sshd,log,local,modules,thttpd
> RTLPATH=/linux/
> 
> 
> 
> The problem is that I do not see the memory getting set aside when I do a
> more on /proc/meminfo.   Consequently, I get a Segmentation Fault when I
> insert the module and there are any statements that try and access any
> shared memory variables. 
> 
> Can I not use this type of shared memory anymore ?
> 
> I'm I doing something stupid and I need enlightenment?
> 
> Thanks in advance --
> 
> Janet Estabridis
> Electrical Engineer
> NAWC Code 472E40D
> Building 31440 Room 1017
> China Lake, CA 93555
> [EMAIL PROTECTED]
> (760) 939-2896  FAX (760) 939 -3075
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
> 
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to