* [gentoo-embedded] Success in getting a Minimal Gentoo @ 2005-06-19 14:21 Ow Mun Heng 2005-06-19 16:41 ` Ned Ludd 2005-06-20 18:54 ` Ned Ludd 0 siblings, 2 replies; 13+ messages in thread From: Ow Mun Heng @ 2005-06-19 14:21 UTC (permalink / raw To: gentoo-embedded Yay.. My 1st post here and by following the links below, I managed to a minimal gentoo system running right now. NOthing much is in there, only boots me up to the kernel and that's about it. Next, need to put in iptables/shorewall/dropbear/dhcp(which would be recommended?)/freevo(that's the main purpose)/xorg-x11/firefox any recommendations? yeah.. I believe that all devel should be done on my devel box (laptop) and then transferred to the SBC right? (in this case, my SBC is vmware) Thoughts? Comments? http://www.bulah.com/embeddedgentoo.html http://dev.gentoo.org/~iggy/uclibc/cross-build.sh http://dev.gentoo.org/~iggy/uclibc/gentoo-uclibc-HOWTO http://www.livejournal.com/users/lotso/50177.html -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 22:18:09 up 1 day, 20 min, 4 users, load average: 0.92, 0.73, 0.78 -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-embedded] Success in getting a Minimal Gentoo 2005-06-19 14:21 [gentoo-embedded] Success in getting a Minimal Gentoo Ow Mun Heng @ 2005-06-19 16:41 ` Ned Ludd 2005-06-20 2:22 ` HELP " Ow Mun Heng 2005-06-20 18:54 ` Ned Ludd 1 sibling, 1 reply; 13+ messages in thread From: Ned Ludd @ 2005-06-19 16:41 UTC (permalink / raw To: gentoo-embedded On Sun, 2005-06-19 at 22:21 +0800, Ow Mun Heng wrote: > Yay.. My 1st post here and by following the links below, I managed to a > minimal gentoo system running right now. > > NOthing much is in there, only boots me up to the kernel and that's > about it. > > Next, need to put in iptables/shorewall/dropbear/dhcp(which would be > recommended?)/freevo(that's the main purpose)/xorg-x11/firefox You can drop dhcp3 and just use the udhcpd provided by busybox. -- Ned Ludd <solar@gentoo.org> -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* HELP Re: [gentoo-embedded] Success in getting a Minimal Gentoo 2005-06-19 16:41 ` Ned Ludd @ 2005-06-20 2:22 ` Ow Mun Heng 2005-06-20 3:48 ` Ow Mun Heng 0 siblings, 1 reply; 13+ messages in thread From: Ow Mun Heng @ 2005-06-20 2:22 UTC (permalink / raw To: gentoo-embedded On Sun, 2005-06-19 at 12:41 -0400, Ned Ludd wrote: > On Sun, 2005-06-19 at 22:21 +0800, Ow Mun Heng wrote: > > > > NOthing much is in there, only boots me up to the kernel and that's > > about it. > > > > Next, need to put in iptables/shorewall/dropbear/dhcp(which would be > > recommended?)/freevo(that's the main purpose)/xorg-x11/firefox > > You can drop dhcp3 and just use the udhcpd provided by busybox. Okay.. Cool But even before I get that. dropbear doesn't start. For some reason, it can't find it. (but i can execute it on the cli with no issues. even dropbearkey works) /bin/ash: /etc/init.d/dropbear: not found I initially had the same problem when trying to run busybox as well. Had to re-emerge it. One more question, how do I load the things to run? using inittab? Do I need to put anything here or will the rcS script actually do it for me. (looking at the script, it looks like it will do it automatically ?) # now run any rc scripts ::sysinit:/etc/init.d/rcS -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 10:05:16 up 1 day, 12:07, 7 users, load average: 1.70, 1.21, 1.40 -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: HELP Re: [gentoo-embedded] Success in getting a Minimal Gentoo 2005-06-20 2:22 ` HELP " Ow Mun Heng @ 2005-06-20 3:48 ` Ow Mun Heng 2005-06-20 5:50 ` Ow Mun Heng 0 siblings, 1 reply; 13+ messages in thread From: Ow Mun Heng @ 2005-06-20 3:48 UTC (permalink / raw To: gentoo-embedded On Mon, 2005-06-20 at 10:22 +0800, Ow Mun Heng wrote: > On Sun, 2005-06-19 at 12:41 -0400, Ned Ludd wrote: > > On Sun, 2005-06-19 at 22:21 +0800, Ow Mun Heng wrote: > > > > > > NOthing much is in there, only boots me up to the kernel and that's > > > about it. > > > > > > Next, need to put in iptables/shorewall/dropbear/dhcp(which would be > > > recommended?)/freevo(that's the main purpose)/xorg-x11/firefox > > > > You can drop dhcp3 and just use the udhcpd provided by busybox. > > Okay.. Cool But even before I get that. dropbear doesn't start. > For some reason, it can't find it. (but i can execute it on the cli with > no issues. even dropbearkey works) > > /bin/ash: /etc/init.d/dropbear: not found Okay... I see this _may_ be due to me not having /sbin/runscript when using baselayout-lite. (but even running it on the cli with "dropbear -F" just drops me back to the cli, it's not doing anything) But how do I solve this? And Do I need runscript or?? Right now, not even the pcnet32 network card works (am running/trying it out under vmware) /ps : am re-compiling my kernel to support pcnet32 within the kernel and not as modules to re-try. Thanks for all the help. > I initially had the same problem when trying to run busybox as well. Had > to re-emerge it. > > One more question, how do I load the things to run? using inittab? Do I > need to put anything here or will the rcS script actually do it for me. > (looking at the script, it looks like it will do it automatically ?) > > # now run any rc scripts > ::sysinit:/etc/init.d/rcS > > > -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 10:50:42 up 1 day, 12:53, 8 users, load average: 0.65, 0.64, 0.92 -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: HELP Re: [gentoo-embedded] Success in getting a Minimal Gentoo 2005-06-20 3:48 ` Ow Mun Heng @ 2005-06-20 5:50 ` Ow Mun Heng 2005-06-20 5:57 ` Ow Mun Heng 0 siblings, 1 reply; 13+ messages in thread From: Ow Mun Heng @ 2005-06-20 5:50 UTC (permalink / raw To: gentoo-embedded On Mon, 2005-06-20 at 11:48 +0800, Ow Mun Heng wrote: > On Mon, 2005-06-20 at 10:22 +0800, Ow Mun Heng wrote: > > On Sun, 2005-06-19 at 12:41 -0400, Ned Ludd wrote: > > > On Sun, 2005-06-19 at 22:21 +0800, Ow Mun Heng wrote: > > > > > > > > Next, need to put in iptables/shorewall/dropbear/dhcp(which would be > > > > recommended?)/freevo(that's the main purpose)/xorg-x11/firefox > > > > > > You can drop dhcp3 and just use the udhcpd provided by busybox. > > > > Okay.. Cool But even before I get that. dropbear doesn't start. > > For some reason, it can't find it. (but i can execute it on the cli with > > no issues. even dropbearkey works) > > > > /bin/ash: /etc/init.d/dropbear: not found > > Okay... I see this _may_ be due to me not having /sbin/runscript when > using baselayout-lite. (but even running it on the cli with "dropbear > -F" just drops me back to the cli, it's not doing anything) > > But how do I solve this? And Do I need runscript or?? Right now, not > even the pcnet32 network card works (am running/trying it out under > vmware) > /ps : am re-compiling my kernel to support pcnet32 within the kernel and > not as modules to re-try. Okay.. done with the re-compile, ifconfig eth0 up brings up the device... then doing the udhcpc -f gets me "Ooh! Got some!" and it gets an IP(i can see this from the host system where dhcp is running) but for some reason, (or is it like this by design?) it doesn't create the default routes etc via DHCP. it also complains of /share/udhcpc/default.script is not found. (this is a busybox package and I don't have a /share directory in my embedded Filesystem) Dropbear now runs though. :-) but netstat gives me funny results tcp 0 0 *:22 *:* netstat: no support for 'AF INET6 (tcp)' on this system (same for udp and raw) I believe this is cause if no IPV6 support compiled in?? (but dropbear runs and has a port open. but I can't get in) Is there a need for initscripts in embedded platforms or everything runs from /etc/inittab? If yes, how do I specify it? Or it isn't needed? > -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 13:41:40 up 1 day, 15:44, 7 users, load average: 0.48, 0.31, 0.22 -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: HELP Re: [gentoo-embedded] Success in getting a Minimal Gentoo 2005-06-20 5:50 ` Ow Mun Heng @ 2005-06-20 5:57 ` Ow Mun Heng 2005-06-20 8:42 ` Ow Mun Heng 0 siblings, 1 reply; 13+ messages in thread From: Ow Mun Heng @ 2005-06-20 5:57 UTC (permalink / raw To: gentoo-embedded On Mon, 2005-06-20 at 13:50 +0800, Ow Mun Heng wrote: > On Mon, 2005-06-20 at 11:48 +0800, Ow Mun Heng wrote: > > On Mon, 2005-06-20 at 10:22 +0800, Ow Mun Heng wrote: > > > On Sun, 2005-06-19 at 12:41 -0400, Ned Ludd wrote: > > > > On Sun, 2005-06-19 at 22:21 +0800, Ow Mun Heng wrote: > > > > > > > > > > > Next, need to put in iptables/shorewall/dropbear/dhcp(which would be > > > > > recommended?)/freevo(that's the main purpose)/xorg-x11/firefox > > > > > > > > You can drop dhcp3 and just use the udhcpd provided by busybox. > > > > > > Okay.. Cool But even before I get that. dropbear doesn't start. > > > For some reason, it can't find it. (but i can execute it on the cli with > > > no issues. even dropbearkey works) > > > > > > /bin/ash: /etc/init.d/dropbear: not found > > > > Okay... I see this _may_ be due to me not having /sbin/runscript when > > using baselayout-lite. (but even running it on the cli with "dropbear > > -F" just drops me back to the cli, it's not doing anything) > > > > But how do I solve this? And Do I need runscript or?? Right now, not > > even the pcnet32 network card works (am running/trying it out under > > vmware) > > > /ps : am re-compiling my kernel to support pcnet32 within the kernel and > > not as modules to re-try. > > Okay.. done with the re-compile, ifconfig eth0 up brings up the > device... then doing the udhcpc -f gets me "Ooh! Got some!" and it gets > an IP(i can see this from the host system where dhcp is running) but for > some reason, (or is it like this by design?) it doesn't create the > default routes etc via DHCP. it also complains > of /share/udhcpc/default.script is not found. (this is a busybox package > and I don't have a /share directory in my embedded Filesystem) One more thing. Alhtough it does state it has an IP, but ifconfig eth0 yields no IP at all. Why? > > > Dropbear now runs though. :-) > > but netstat gives me funny results > > tcp 0 0 *:22 *:* > netstat: no support for 'AF INET6 (tcp)' on this system (same for udp > and raw) > > I believe this is cause if no IPV6 support compiled in?? (but dropbear > runs and has a port open. but I can't get in) > > Is there a need for initscripts in embedded platforms or everything runs > from /etc/inittab? If yes, how do I specify it? Or it isn't needed? > > > > > > -- > Ow Mun Heng > Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM > 98% Microsoft(tm) Free!! > Neuromancer 13:41:40 up 1 day, 15:44, 7 users, load average: 0.48, 0.31, > 0.22 > > -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 13:57:09 up 1 day, 15:59, 7 users, load average: 1.07, 0.52, 0.33 -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: HELP Re: [gentoo-embedded] Success in getting a Minimal Gentoo 2005-06-20 5:57 ` Ow Mun Heng @ 2005-06-20 8:42 ` Ow Mun Heng 2005-06-20 3:32 ` michael 2005-06-20 13:57 ` Matthew Cline 0 siblings, 2 replies; 13+ messages in thread From: Ow Mun Heng @ 2005-06-20 8:42 UTC (permalink / raw To: gentoo-embedded On Mon, 2005-06-20 at 13:57 +0800, Ow Mun Heng wrote: > On Mon, 2005-06-20 at 13:50 +0800, Ow Mun Heng wrote: > > On Mon, 2005-06-20 at 11:48 +0800, Ow Mun Heng wrote: > > > On Mon, 2005-06-20 at 10:22 +0800, Ow Mun Heng wrote: > > > > On Sun, 2005-06-19 at 12:41 -0400, Ned Ludd wrote: > > > > > On Sun, 2005-06-19 at 22:21 +0800, Ow Mun Heng wrote: > > > > > > > > > > > > > > Next, need to put in iptables/shorewall/dropbear/dhcp(which would be > > > > > > recommended?)/freevo(that's the main purpose)/xorg-x11/firefox > > > > > > > > > > You can drop dhcp3 and just use the udhcpd provided by busybox. > > > > > > > > Okay.. Cool But even before I get that. dropbear doesn't start. > > > > For some reason, it can't find it. (but i can execute it on the cli with > > > > no issues. even dropbearkey works) > > > > > > > > /bin/ash: /etc/init.d/dropbear: not found > > > > > > Okay... I see this _may_ be due to me not having /sbin/runscript when > > > using baselayout-lite. (but even running it on the cli with "dropbear > > > -F" just drops me back to the cli, it's not doing anything) > > > > > > But how do I solve this? And Do I need runscript or?? Right now, not > > > even the pcnet32 network card works (am running/trying it out under > > > vmware) > > > > > /ps : am re-compiling my kernel to support pcnet32 within the kernel and > > > not as modules to re-try. > > > > Okay.. done with the re-compile, ifconfig eth0 up brings up the > > device... then doing the udhcpc -f gets me "Ooh! Got some!" and it gets > > an IP(i can see this from the host system where dhcp is running) but for > > some reason, (or is it like this by design?) it doesn't create the > > default routes etc via DHCP. it also complains > > of /share/udhcpc/default.script is not found. (this is a busybox package > > and I don't have a /share directory in my embedded Filesystem) > > One more thing. Alhtough it does state it has an IP, but ifconfig eth0 > yields no IP at all. > > Why? I found the solution, (of sorts). It seems that I needed to copy over some scripts from the udhcp tarball into the embedded system for it to function. the scripts are sample.* in the tarball and they're to be copied into the embedded's filesystem. (I copied it into /etc/udhcpc and edited sample.script to reflect that change) Now, udhcpc will get the IP and the routes and DNS. Dropbear doesn't really work (it didn't even before this, I finally saw the reason was due to no ttys to allocate (pty_allocate: openpty no such file or directory) I can ssh in but it will hang as it can't allocate a tty for the session. I'm sure I compiled in unixptys. -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 16:37:49 up 1 day, 18:40, 8 users, load average: 1.53, 1.09, 1.16 -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: HELP Re: [gentoo-embedded] Success in getting a Minimal Gentoo 2005-06-20 8:42 ` Ow Mun Heng @ 2005-06-20 3:32 ` michael 2005-06-20 13:57 ` Matthew Cline 1 sibling, 0 replies; 13+ messages in thread From: michael @ 2005-06-20 3:32 UTC (permalink / raw To: gentoo-embedded On Mon, 20 Jun 2005, Ow Mun Heng wrote: ... >> >> One more thing. Alhtough it does state it has an IP, but ifconfig eth0 >> yields no IP at all. >> >> Why? > > > I found the solution, (of sorts). It seems that I needed to copy over > some scripts from the udhcp tarball into the embedded system for it to > function. > > the scripts are sample.* in the tarball and they're to be copied into > the embedded's filesystem. (I copied it into /etc/udhcpc and edited > sample.script to reflect that change) > > Now, udhcpc will get the IP and the routes and DNS. It would be wonderful if you could provide the exact steps you took so that Heath can update his document with this. Heath, any particular format you prefer? Michael -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: HELP Re: [gentoo-embedded] Success in getting a Minimal Gentoo 2005-06-20 8:42 ` Ow Mun Heng 2005-06-20 3:32 ` michael @ 2005-06-20 13:57 ` Matthew Cline 2005-06-20 3:28 ` michael 1 sibling, 1 reply; 13+ messages in thread From: Matthew Cline @ 2005-06-20 13:57 UTC (permalink / raw To: gentoo-embedded > Dropbear doesn't really work (it didn't even before this, I finally saw > the reason was due to no ttys to allocate (pty_allocate: openpty no such > file or directory) > > I can ssh in but it will hang as it can't allocate a tty for the > session. > > I'm sure I compiled in unixptys. > I think you need to mount an addtional filesystem on /dev/pts in order to get this to work, something like this: mount -t devpts /dev/pts I'm not in front of my linux box right now, this syntax might not be 100% correct. Of course, you can also add a relevant entry to /etc/fstab. HTH, Matt -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: HELP Re: [gentoo-embedded] Success in getting a Minimal Gentoo 2005-06-20 13:57 ` Matthew Cline @ 2005-06-20 3:28 ` michael 0 siblings, 0 replies; 13+ messages in thread From: michael @ 2005-06-20 3:28 UTC (permalink / raw To: gentoo-embedded On Mon, 20 Jun 2005, Matthew Cline wrote: >> Dropbear doesn't really work (it didn't even before this, I finally saw >> the reason was due to no ttys to allocate (pty_allocate: openpty no such >> file or directory) >> >> I can ssh in but it will hang as it can't allocate a tty for the >> session. >> >> I'm sure I compiled in unixptys. >> > > I think you need to mount an addtional filesystem on /dev/pts in order > to get this to work, something like this: > > mount -t devpts /dev/pts > I think you also need to create a few things (directories and/or files). Search the archives for "pty" and my name - I had the same problem and someone replied with a script to do the needed work. Michael -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-embedded] Success in getting a Minimal Gentoo 2005-06-19 14:21 [gentoo-embedded] Success in getting a Minimal Gentoo Ow Mun Heng 2005-06-19 16:41 ` Ned Ludd @ 2005-06-20 18:54 ` Ned Ludd 2005-06-30 14:52 ` Ow Mun Heng 1 sibling, 1 reply; 13+ messages in thread From: Ned Ludd @ 2005-06-20 18:54 UTC (permalink / raw To: gentoo-embedded On Sun, 2005-06-19 at 22:21 +0800, Ow Mun Heng wrote: [stuff] > Ow Mun Heng > Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM ^^ BTW not sure if it's a hoax or not but... http://www.chromance.de/wtf/lol.htm > 98% Microsoft(tm) Free!! > Neuromancer 22:18:09 up 1 day, 20 min, 4 users, load average: 0.92, > 0.73, 0.78 > > -- Ned Ludd <solar@gentoo.org> -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-embedded] Success in getting a Minimal Gentoo 2005-06-20 18:54 ` Ned Ludd @ 2005-06-30 14:52 ` Ow Mun Heng 2005-06-30 21:37 ` Ned Ludd 0 siblings, 1 reply; 13+ messages in thread From: Ow Mun Heng @ 2005-06-30 14:52 UTC (permalink / raw To: gentoo-embedded On Mon, 2005-06-20 at 14:54 -0400, Ned Ludd wrote: > On Sun, 2005-06-19 at 22:21 +0800, Ow Mun Heng wrote: > > [stuff] > > > Ow Mun Heng > > Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM > ^^ > BTW not sure if it's a hoax or not but... > http://www.chromance.de/wtf/lol.htm Link doesn't work -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 22:52:41 up 2 days, 9:39, 4 users, load average: 1.08, 0.92, 0.91 -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-embedded] Success in getting a Minimal Gentoo 2005-06-30 14:52 ` Ow Mun Heng @ 2005-06-30 21:37 ` Ned Ludd 0 siblings, 0 replies; 13+ messages in thread From: Ned Ludd @ 2005-06-30 21:37 UTC (permalink / raw To: gentoo-embedded On Thu, 2005-06-30 at 22:52 +0800, Ow Mun Heng wrote: > On Mon, 2005-06-20 at 14:54 -0400, Ned Ludd wrote: > > On Sun, 2005-06-19 at 22:21 +0800, Ow Mun Heng wrote: > > > > [stuff] > > > > > Ow Mun Heng > > > Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM > > ^^ > > BTW not sure if it's a hoax or not but... > > http://www.chromance.de/wtf/lol.htm > > Link doesn't work oh well it did ten days ago when I sent this reply. > > -- > Ow Mun Heng > Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM > 98% Microsoft(tm) Free!! > Neuromancer 22:52:41 up 2 days, 9:39, 4 users, load average: 1.08, 0.92, > 0.91 > > -- Ned Ludd <solar@gentoo.org> -- gentoo-embedded@gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2005-06-30 22:00 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-06-19 14:21 [gentoo-embedded] Success in getting a Minimal Gentoo Ow Mun Heng 2005-06-19 16:41 ` Ned Ludd 2005-06-20 2:22 ` HELP " Ow Mun Heng 2005-06-20 3:48 ` Ow Mun Heng 2005-06-20 5:50 ` Ow Mun Heng 2005-06-20 5:57 ` Ow Mun Heng 2005-06-20 8:42 ` Ow Mun Heng 2005-06-20 3:32 ` michael 2005-06-20 13:57 ` Matthew Cline 2005-06-20 3:28 ` michael 2005-06-20 18:54 ` Ned Ludd 2005-06-30 14:52 ` Ow Mun Heng 2005-06-30 21:37 ` Ned Ludd
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox