linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* A few questions in embedded linux
@ 2003-01-17 18:15 Khai Trinh
  2003-01-17 19:04 ` Kedar Madineni
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Khai Trinh @ 2003-01-17 18:15 UTC (permalink / raw)
  To: linuxppc-embedded


Hi folks,

We are developing a PCI adapter card based out of the
PPC440GP using MVL version 2.1 (kernel 2.4.17).

I have several issues as listed below:

1. I'd like to reserve a 4M RAM space for DMA
purposes. What I did was adding
CONFIG_CMD_LINE="root=60M" since our board has 64MB of
RAM. How do I know the system really now configure to
be only 60MB? How then can I get a virtual addr to the
4MB DMA buffer? I did ioremap() given it the start of
the 60MB RAM physical addr, but I get a bus error with
the following message:

Jan 1 00:01:42 199 kernel: __ioremap(): phys addr
3c00000 is RAM lr c000a57c

2. We have a list of files (ie: hhlfiles) required to
build a RAM DISK that is non networked. What other
files involved that we need to build a RAM DISK that
has full network capability( ie: telnet, ftp, ping,
rlogin, mount, etc...)?

3. When the ethernet driver comes up it does a bootp
request to find its IP address.... How do we configure
it such that it picks it up from a file or flash?

Thanks,

--Khai


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A few questions in embedded linux
  2003-01-17 18:15 Khai Trinh
@ 2003-01-17 19:04 ` Kedar Madineni
  2003-01-17 19:11 ` Dr. Craig Hollabaugh
  2003-01-17 19:22 ` Wolfgang Denk
  2 siblings, 0 replies; 5+ messages in thread
From: Kedar Madineni @ 2003-01-17 19:04 UTC (permalink / raw)
  To: Khai Trinh; +Cc: linuxppc-embedded


Khai Trinh wrote:
> Hi folks,
>
> We are developing a PCI adapter card based out of the
> PPC440GP using MVL version 2.1 (kernel 2.4.17).
>
> I have several issues as listed below:
>
> 1. I'd like to reserve a 4M RAM space for DMA
> purposes. What I did was adding
> CONFIG_CMD_LINE="root=60M" since our board has 64MB of

mem=60M should be the option. Read the help.

> RAM. How do I know the system really now configure to
> be only 60MB? How then can I get a virtual addr to the
> 4MB DMA buffer? I did ioremap() given it the start of
> the 60MB RAM physical addr, but I get a bus error with
> the following message:

check and use high_memory ........



>
> Jan 1 00:01:42 199 kernel: __ioremap(): phys addr
> 3c00000 is RAM lr c000a57c
>
> 2. We have a list of files (ie: hhlfiles) required to
> build a RAM DISK that is non networked. What other
> files involved that we need to build a RAM DISK that
> has full network capability( ie: telnet, ftp, ping,
> rlogin, mount, etc...)?
>
> 3. When the ethernet driver comes up it does a bootp
> request to find its IP address.... How do we configure
> it such that it picks it up from a file or flash?
>
> Thanks,
>
> --Khai
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A few questions in embedded linux
  2003-01-17 18:15 Khai Trinh
  2003-01-17 19:04 ` Kedar Madineni
@ 2003-01-17 19:11 ` Dr. Craig Hollabaugh
  2003-01-17 19:22 ` Wolfgang Denk
  2 siblings, 0 replies; 5+ messages in thread
From: Dr. Craig Hollabaugh @ 2003-01-17 19:11 UTC (permalink / raw)
  To: Khai Trinh, linuxppc-embedded


>2. We have a list of files (ie: hhlfiles) required to
>build a RAM DISK that is non networked. What other
>files involved that we need to build a RAM DISK that
>has full network capability( ie: telnet, ftp, ping,
>rlogin, mount, etc...)?

route and ifconfig

>3. When the ethernet driver comes up it does a bootp
>request to find its IP address.... How do we configure
>it such that it picks it up from a file or flash?

init script running ifconfig and route.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A few questions in embedded linux
  2003-01-17 18:15 Khai Trinh
  2003-01-17 19:04 ` Kedar Madineni
  2003-01-17 19:11 ` Dr. Craig Hollabaugh
@ 2003-01-17 19:22 ` Wolfgang Denk
  2 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2003-01-17 19:22 UTC (permalink / raw)
  To: Khai Trinh; +Cc: linuxppc-embedded


Dear Khai,

in message <20030117181544.14483.qmail@web11505.mail.yahoo.com> you wrote:
>
> We are developing a PCI adapter card based out of the
> PPC440GP using MVL version 2.1 (kernel 2.4.17).
>
> I have several issues as listed below:

Why don't you ask MV then?

> 1. I'd like to reserve a 4M RAM space for DMA
> purposes. What I did was adding
> CONFIG_CMD_LINE="root=60M" since our board has 64MB of
> RAM. How do I know the system really now configure to
> be only 60MB? How then can I get a virtual addr to the

It prints the memory when it boots, something like

Memory: 14200k available (1256k kernel code, 564k data, 52k init, 0k highmem)

> 2. We have a list of files (ie: hhlfiles) required to
> build a RAM DISK that is non networked. What other
> files involved that we need to build a RAM DISK that
> has full network capability( ie: telnet, ftp, ping,
> rlogin, mount, etc...)?

See for example ftp://ftp.denx.de/pub/LinuxPPC/usr/src/SELF/

> 3. When the ethernet driver comes up it does a bootp
> request to find its IP address.... How do we configure
> it such that it picks it up from a file or flash?

Use U-Boot - then you can configure these parameters as  "environment
variables",  which  can  be saved to flash/NVRAM/EEPROM and passed to
the Linux kernel.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Cogito cogito ergo cogito sum - "I think that I  think,  therefore  I
think that I am."          - Ambrose Bierce, "The Devil's Dictionary"

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A few questions in embedded linux
       [not found] <20030117223204.83501.qmail@web11507.mail.yahoo.com>
@ 2003-01-17 22:47 ` Roland Dreier
  0 siblings, 0 replies; 5+ messages in thread
From: Roland Dreier @ 2003-01-17 22:47 UTC (permalink / raw)
  To: Khai Trinh; +Cc: linuxppc-embedded


>>>>> "Khai" == Khai Trinh <kqtrinh@yahoo.com> writes:

    Khai> Regarding to my question 1 below. After I check and use high
    Khai> mem, and CMDLINE="mem=60M", recompile my kernel, static link
    Khai> my driver using the 4M reserved RAM space, I got this
    Khai> message

    Khai> kernel: __ioremap(): phys addr 3c00000 is RAM lr c000a57c

Look at arch/ppc/mm/pgtable.c, where that message is being printed.
The kernel thinks that the address 3c00000 (which is 60 MB) is below
high_memory, which is where it thinks the top of memory is.

The most likely explanation is that you are doing something wrong when
you pass "mem=60M" to the kernel.

Have your driver print out virt_to_phys(high_memory) and check that
the kernel really thinks it only has 60 MB of memory.

 - Roland

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-01-17 22:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20030117223204.83501.qmail@web11507.mail.yahoo.com>
2003-01-17 22:47 ` A few questions in embedded linux Roland Dreier
2003-01-17 18:15 Khai Trinh
2003-01-17 19:04 ` Kedar Madineni
2003-01-17 19:11 ` Dr. Craig Hollabaugh
2003-01-17 19:22 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).