A few questions in embedded linux
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/
Quoted 10 lines · Khai Trinh
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.
Quoted 5 lines
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 ........
Quoted 10 lines
Jan 1 00:01:42 199 kernel:
__ioremap(): phys addr 3c00000 is RAM lrc000a57c2. 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...)?
Quoted 9 lines
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/
Quoted 6 lines
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
Quoted 3 lines
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/
Dear Khai,
Quoted 5 lines · in message <[email protected]> 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?
Quoted 5 lines
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)
Quoted 5 lines
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/
Quoted 3 lines
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: [email protected] 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/