LinuxEmbedded: minimal network system packages.
I've just managed to get LinuxPPC (embedded-2.2.5 kernel) to boot on my custom MPC860 board using the initrd boot method. I haven't got the nfs-root working yet but I imagine this shouldn't present too many problems.
I want to be able to run FTP (client only), HTTP server, SNMP agent and TELNET server.
What packages do I need to compile (cross-compile) to get these working ?
Things I think I need are :
* init
* mount (do I NEED this ?)
* ifconfig (do I NEED this ?)
* inet
* ftp, http, snmp and telnet software.
Any pointers to documentation about getting a minimal embedded networked system up and running.
Thanks,
Brendan Simon.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 3 lines · Brendan Simon
Things I think I need are :
* init
I don't run init, I just have the kernel start up with a shell and runs /linuxrc to start whatever daemons I need.
Quoted 1 line
* mount (do I NEED this ?)
It's nice, because I at least mount /proc.
Quoted 1 line
* ifconfig (do I NEED this ?)
Depends how you start the embedded system. If it is always part of a network where a server can provide the necessary information via BOOTP/DHCP, you don't need ifconfig.
Quoted 1 line
* inet
inetd....and associated network information files.
Quoted 2 lines
Any pointers to documentation about getting a minimal embedded networked system up and running.
It's pretty straight forward. Just think about what you need. If you have the "disk" space, you can go through the layers of rc.x and sysconfig files, or just make a simple shell script to configure what you need. Do you want resolver library baggage or just use /etc/hosts? Things like that. It's a learning experience :-).
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 9 lines · Sebastien HUET
Quoted 6 lines · Brendan Simon
Things I think I need are :
* init
* mount (do I NEED this ?)
* ifconfig (do I NEED this ?)
* inet
* ftp, http, snmp and telnet software.
Quoted 4 lines
Hi,
the bootdisk howto is a good way to learn how a linux config starts.
http://linuxdoc.org/HOWTO/Bootdisk-HOWTO.html
I've got a basic understanding of how things startup. Use of init or /linuxrc and shell scripts, etc. I don't have the binaries and want to be able to compile the binaries from the sources.
I need to know what packages I NEED and where to find the sources for them. RedHat and Debian supply all the sources for the releases. I have been to the LinuxPPC mirror and also found RPM sources. I am currently looking at these these packages are put together by the vendors and they must get the sources from somewhere else. eg. where is the orignal site for "mount" ? I prefer to use a tarball than some proprietry distribution package.
Thanks,
Brendan Simon.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 6 lines · Brendan Simon
Things I think I need are :
* init
* mount (do I NEED this ?)
* ifconfig (do I NEED this ?)
* inet
* ftp, http, snmp and telnet software.
Hi,
the bootdisk howto is a good way to learn how a linux config starts.
http://linuxdoc.org/HOWTO/Bootdisk-HOWTO.html
Bye
Seb
---
PS: I am looking for someone who may help me to populate
http://linux-embedded.com
about ppc & embedded.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 8 lines · Brendan Simon
I want to be able to run FTP (client only), HTTP server, SNMP agent and TELNET server.
What packages do I need to compile (cross-compile) to get these working Things I think I need are :
* init* mount (do I NEED this ?)
* ifconfig (do I NEED this ?)
read through the source for the two packages above. ifconfig on my machine is 33k but if your config will be locked down, you can sum it up as
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4ioctl(4, SIOCSIFADDR, 0xbffffb78) = 0ioctl(4, SIOCSIFNETMASK, 0xbffffb68) = 0
to set the address and netmask of the loopback interface.
read the source of the utils or strace them. if you have a few utils like mount and ifconfig you can combine them into one program to cut down on overhead and check the argv[0] to see what name they were called with and change behavior based on that.
dave
Signature · 10 lines
David Weis | 10520 New York Ave, Des Moines, IA 50322 [email protected] | Voice 515-278-0133 Ext 231 When they took the Fourth Amendment, I was quiet because I didn't deal drugs. When they took the Fifth Amendment, I was quiet because I was innocent. When they took the Second Amendment, I was quiet because I didn't own a gun. Now they've taken the First Amendment and I can't say anything. ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 9 lines
I need to know what packages I NEED and where to find the sources for them. RedHat and Debian supply all the sources for the releases. I have been to the LinuxPPC mirror and also found RPM sources. I am currently looking at these these packages are put together by the vendors and they must get the sources from somewhere else. eg. where is the orignal site for "mount" ? I prefer to use a tarball than some proprietry distribution package.
There is a utility in the Linux Router Project
(http://www.linuxrouter.org/)
called 'busybox' which contains many useful utilities and it's about 80k (430k statically linked). busybox can 'mount' but it just silently failed on my MPC850 board, so I'm using 'mount' from util-linux-2.9. If you're using
a RedHat-based distribution, you can use 'rpm -qf </path/to/filename>' to find the name of the package that <filename> belongs to.
Quoted 2 lines
Thanks,
Brendan Simon.
Signature · 7 lines
+---------------------+----------------------+ | Scott Wood | Systems Engineer | |=====================+======================| | BroadLink Communications | +--------------------------------------------+ ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/