Gentoo Archives: gentoo-embedded

From: Goran Kavrecic <gorank@×××××.si>
To: Embedded Gentoo Mail List <gentoo-embedded@l.g.o>
Subject: Re: [gentoo-embedded] Advantech PCM-3350, linux box, boot from CF
Date: Tue, 06 Jan 2004 09:57:41
Message-Id: 1073383055.2485.16.camel@localhost
In Reply to: Re: [gentoo-embedded] Advantech PCM-3350, linux box, boot from CF by Daniel
1 OK, I emerged crossdev-0.3, started 'crossdev.sh --arch=i586'. It
2 downloaded 4 modules(linux-headers-2.4.19-r1, binutils-2.14.90.0-r6,
3 gcc-3.2.3-r3, glibc-2.3.2-r3), copyied to
4 /var/tmp/portage/crossdevbuild, then started stage2...stage5, started
5 'Configuring sys-libs/glibc-2.3.2-r3 (full)...' and the following error
6 came out.
7
8 ---
9 checking for egrep... (cached) grep -E
10 checking installed Linux kernel header files... TOO OLD!
11 configure: error: GNU libc requires kernel header files from
12 Linux 2.0.10 or later to be installed before configuring.
13 The kernel header files are found usually in /usr/include/asm and
14 /usr/include/linux; make sure these directories use files from
15 Linux 2.0.10 or later. This check uses <linux/version.h>, so
16 make sure that file was built correctly when installing the kernel
17 header
18 files. To use kernel headers not from /usr/include/linux, use the
19 configure option --with-headers.
20
21 * glibc failed to configure!
22 ---
23
24 I suppose 2.4.19 is newer than 2.0.10. Am I making something wrong?
25
26 Best Regards & Happy New Year,
27 Goran Kavrecic
28
29
30
31 Na 1071188335, 2003-12-12 ob 01:18, je Daniel napisal(a):
32 > > I'm trying to setup a linux box on an Advantech PCM-3350, which is an
33 > > PC/104 board.
34 > >
35 > > Follow link for details:
36 > > http://www.advantech.com/products/Model_Detail.asp?model_id=1-D6LUW&bu
37 >
38 > yep used something similar.
39 >
40 > > I plan to boot everything from the CompactFlash card (128MB). I also
41 > > installed 256MB RAM. I will use an I/O and a multiport RS232 card.
42 >
43 >
44 > > I already tried some installations(basically started with slackware,
45 > > but also tried others) but always failed. It boots ok into DOS but fails
46 > > booting with LiLo(it returned LI 04 - which shall be "sector not
47 > > found"). It runs ok if I boot from a rescue floppy and the chroot to
48 > > CF's /.
49 >
50 > Be very careful with your lilo options. Make sure the specify what the boot
51 > device is at bootup (not /dev/sda1 when its attached to you card read/
52 > writer). I remeber I did something with the bios=0x84(?) options in lilo to
53 > make it work (I had a harddrive and a compact flash to that may of been
54 > related). I'll email my former collegue to attempt to obtain the lilo
55 > configuration. I do remember facing a similar problem. lba related maybe but
56 > I can't remember exactly.
57 >
58 > Have you tried grub as an alternative?
59 >
60 > > Then I found on the net someone with similar problems. He(can't find
61 > > the link right now) claims that this CPU does not run as i686, but you
62 > > have to compile it as i585. And presumely this is the reason of my
63 > > problems.
64 >
65 > I haven't tried processor optimisations.
66 >
67 > > Now, I have a Gentoo 1.4 running working machine (freshly installed
68 > > last week) with a USB card reader which connects the CF card as
69 > > /dev/sda1 and I (presumely) don't have problems with that.
70 > > I need some help how to prepare a system for basic linux functionality
71 > > on the PC/104 platform. When this gets over, I would like to have
72 > > compiling tools and RHIDE on the box for easier debugging. I presume
73 > > i'll have to compile the kernel for i585 and ripped of any non required
74 > > functionality. Would it be better to run it entirely from RAM instead of
75 > > running it from CF?
76 >
77 > Depends on your application. Have you enough spare ram to do this and is the
78 > access speed realy critical. By default a lot of ram gets used as a disk
79 > buffer anyway- and better still it gets freed if application need it. Measure
80 > the performance for your application. There are some fast access compact
81 > flash cards around more designed for the photography market.
82 >
83 > > I would mount the CF for writing settings and some
84 > > info.
85 > > At the end I would like to have the major work done on the PC/desktop
86 > > and only finalize/debug on the PC/104 box.
87 > > Don't need fancy things, just working environment. It won't have a
88 > > standard display/keyboard on runtime, anyway.
89 >
90 > Look at the serial conole options for the kernel and lilo if you havent'
91 > already.
92 >
93 > >
94 > > How would "crossdev-0.2", "base-layout lite", "uclibc buildroot/
95 > > toolchain", ... help in this process? How to get them?
96 >
97 > crossdev = emerge crossdev
98 > uclibc buildroot = still being worked on although there is an exampe in bug
99 > 29312 (http://bugs.gentoo.org/show_bug.cgi?id=29312)
100 > base-layout lite = still in design phases.
101 >
102 > If your arch is the same on both machines. Compile binary packages with the
103 > correct optimisations and to a binary install onto the compact flash. Use the
104 > "env ROOT=(CF mount point)" to install them. Always do a pretend first as I
105 > have seen some occasion pecularities where it doesn;t want ot install to
106 > $ROOT (ref http://bugs.gentoo.org/show_bug.cgi?id=34887)
107 >
108 > To save disk space do a bind mount (or symlink) on the CF /usr/share/doc some
109 > other documentation directories (/usr/share/info /usr/share/man) to local
110 > disk space.
111 >
112 >
113 > > Thanks,
114 > > Goran
115 >
116 > Welcome. Sorry for the delay.
117 >
118 > - --
119 >
120 > Daniel Black
121
122
123
124 --
125 gentoo-embedded@g.o mailing list