Gentoo Archives: gentoo-embedded

From: Ow Mun Heng <Ow.Mun.Heng@×××.com>
To: gentoo-embedded@l.g.o
Subject: Re: HELP Re: [gentoo-embedded] Success in getting a Minimal Gentoo
Date: Mon, 20 Jun 2005 08:43:03
Message-Id: 1119256926.17219.57.camel@neuromancer.home.net
In Reply to: Re: HELP Re: [gentoo-embedded] Success in getting a Minimal Gentoo by Ow Mun Heng
1 On Mon, 2005-06-20 at 13:57 +0800, Ow Mun Heng wrote:
2 > On Mon, 2005-06-20 at 13:50 +0800, Ow Mun Heng wrote:
3 > > On Mon, 2005-06-20 at 11:48 +0800, Ow Mun Heng wrote:
4 > > > On Mon, 2005-06-20 at 10:22 +0800, Ow Mun Heng wrote:
5 > > > > On Sun, 2005-06-19 at 12:41 -0400, Ned Ludd wrote:
6 > > > > > On Sun, 2005-06-19 at 22:21 +0800, Ow Mun Heng wrote:
7 > > > > > >
8 > >
9 > > > > > > Next, need to put in iptables/shorewall/dropbear/dhcp(which would be
10 > > > > > > recommended?)/freevo(that's the main purpose)/xorg-x11/firefox
11 > > > > >
12 > > > > > You can drop dhcp3 and just use the udhcpd provided by busybox.
13 > > > >
14 > > > > Okay.. Cool But even before I get that. dropbear doesn't start.
15 > > > > For some reason, it can't find it. (but i can execute it on the cli with
16 > > > > no issues. even dropbearkey works)
17 > > > >
18 > > > > /bin/ash: /etc/init.d/dropbear: not found
19 > > >
20 > > > Okay... I see this _may_ be due to me not having /sbin/runscript when
21 > > > using baselayout-lite. (but even running it on the cli with "dropbear
22 > > > -F" just drops me back to the cli, it's not doing anything)
23 > > >
24 > > > But how do I solve this? And Do I need runscript or?? Right now, not
25 > > > even the pcnet32 network card works (am running/trying it out under
26 > > > vmware)
27 > >
28 > > > /ps : am re-compiling my kernel to support pcnet32 within the kernel and
29 > > > not as modules to re-try.
30 > >
31 > > Okay.. done with the re-compile, ifconfig eth0 up brings up the
32 > > device... then doing the udhcpc -f gets me "Ooh! Got some!" and it gets
33 > > an IP(i can see this from the host system where dhcp is running) but for
34 > > some reason, (or is it like this by design?) it doesn't create the
35 > > default routes etc via DHCP. it also complains
36 > > of /share/udhcpc/default.script is not found. (this is a busybox package
37 > > and I don't have a /share directory in my embedded Filesystem)
38 >
39 > One more thing. Alhtough it does state it has an IP, but ifconfig eth0
40 > yields no IP at all.
41 >
42 > Why?
43
44
45 I found the solution, (of sorts). It seems that I needed to copy over
46 some scripts from the udhcp tarball into the embedded system for it to
47 function.
48
49 the scripts are sample.* in the tarball and they're to be copied into
50 the embedded's filesystem. (I copied it into /etc/udhcpc and edited
51 sample.script to reflect that change)
52
53 Now, udhcpc will get the IP and the routes and DNS.
54
55 Dropbear doesn't really work (it didn't even before this, I finally saw
56 the reason was due to no ttys to allocate (pty_allocate: openpty no such
57 file or directory)
58
59 I can ssh in but it will hang as it can't allocate a tty for the
60 session.
61
62 I'm sure I compiled in unixptys.
63
64 --
65 Ow Mun Heng
66 Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
67 98% Microsoft(tm) Free!!
68 Neuromancer 16:37:49 up 1 day, 18:40, 8 users, load average: 1.53, 1.09,
69 1.16
70
71
72 --
73 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: HELP Re: [gentoo-embedded] Success in getting a Minimal Gentoo Matthew Cline <matthew.cline@×××××.com>
Re: HELP Re: [gentoo-embedded] Success in getting a Minimal Gentoo michael@×××××××××××××.com