Gentoo Archives: gentoo-embedded

From: wireless <wireless@×××××××××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] cirrus ep93xx chips / maverick crunch
Date: Thu, 14 Feb 2008 21:58:53
Message-Id: 47B4B8DC.5000502@tampabay.rr.com
In Reply to: Re: [gentoo-embedded] cirrus ep93xx chips / maverick crunch by Jakub Ladman
1 Jakub Ladman wrote:
2 > * gcc failed :(
3 > * If you file a bug, please attach the following logfiles:
4 > * /var/log/portage/cross-armv4t-maverick-linux-gnueabi-info.log
5 > * /var/log/portage/cross-armv4t-maverick-linux-gnueabi-gcc-stage1.log
6 >
7 >
8 > Do you know how to build it with uclibc library?
9
10 NO
11
12 I was successful building with crossdev using:
13
14 crossdev -t arm-unknown-linux-gnu
15
16 However I wanted the Maverick FPU capability so after
17 several attemps (all posted to this group) I got it to work.
18 Here's what I did:
19
20
21 Look carefully at the Web page Christopher has posted:
22 http://perpetual-notion.blogspot.com/2008/02/maverick-crunch-eabi-support-for.html
23
24 Down the page a ways, you can glean the 'heart' of Christopher's method:
25
26 "
27 and then create the toolchain.
28
29 rm -Rf ${MAVERICK_OVERLAY} &&
30 mkdir -p ${MAVERICK_OVERLAY} &&
31 wget -O - ${OVERLAY_SRC}/maverick.tar.bz2 | \
32 tar xpjf - -C ${MAVERICK_OVERLAY} &&
33
34 PORTDIR_OVERLAY="${CROSSDEV_OVERLAY} \
35 ${MAVERICK_OVERLAY}" \
36 EXTRA_ECONF="--with-cpu=arm920t \
37 --with-fpu=maverick --with-float-abi=softfp" \
38 USE="-gcj -gtk -fortran -mudflap" \
39 FEATURES="buildpkg" \
40 crossdev -S \
41 --l 2.5-r4 --g 4.1.2 --b 2.17-r1 \
42 ${MYHOST}
43 "
44
45 For whatever reason it did not work as a whole ( not sure why)
46 so I broke it down to several steps:
47
48 Make dirs:
49
50 cd /usr/local/portage/
51 mkdir crossdev_overlay
52 mkdir maverick_overlay
53
54
55
56 Download his 'maverick.tar.bz2' file
57
58
59 I used a web browser can gleaned it to be in this dir
60 (which is where I pointed my web browser):
61 http://vaiprime.visibleassets.com/~cfriedt/maverick.tar.bz2
62 (does not seem to be working today)
63
64 and unpack it in the
65 dir he says to (see the above script):
66
67 cd maverick_overlay/
68 tar xpjf ./maverick.tar.bz2
69
70 Then I just issued this command:
71
72 PORTDIR_OVERLAY="/usr/local/portage/crossdev_overlay
73 /usr/local/portage/maverick_ove
74 rlay" ECONF_EXTRA="--disable-nls --enable-shared --with-system-zlib
75 --without-includ
76 ed-gettext --enable-threads=posix --enable-clocale=gnu
77 --with-fpu=maverick --with-fl
78 oat-abi=softfp --with-cpu=ep9312 --enable-languages=c,c++" USE="-gcj
79 -gtk -fortran -
80 mudflap" crossdev -S --l 2.5-r4 --g 4.1.2 --b 2.17-r1
81 armv4t-maverick-linux-gnueabi
82
83
84
85 So this gets you a working cross compiler
86 (which I have not used yet).
87
88
89 The next step, which I have not had time to do, is follow
90 the guidance of the folks at Imac who tell me putting a
91 32meg SD card into their board should allow me to boot
92 off of several different images without removing their kernel:
93
94
95 " The only thing I would add is that you can boot filesystems from the
96 SD card. This will allow you to have your 2 bootable images.
97 The kernel must be stored in the flash but this takes up much less
98 room and you could easily store more than one.
99
100 Example redboot command for booting from an SD card:
101
102 load -v -r -b 0x80000 zImage-IPAC-9302-e1.2
103 exec -c "console=ttyAM0,57600 root=/dev/mmca1 rootfstype=ext3"
104
105 This will load a kernel from flash into memory (SDRAM), and execute it
106 with the boot args in quotes. The boot args here will tell it which
107 tty port to use for console input/output, and specify the location of
108 the root filesystem as being in the mmca device on partition 1 with
109 and ext3 filesystem."
110
111
112
113 So for now, that's all I have (consulting work keeps me running like
114 an interupt processor with no return vector.....).
115
116 If you read chris's page over and over, it becomes clear what he has
117 done and what he is doing. If you cannot find the maverick.tar.bz2
118 file then ask Christopher to post it somewhere for you or provide
119 a direct like. If you fiddle with his script, I'm sure you can get
120 it to work natively......
121
122 Some of my make.conf entries conflicted, and I was too tired to
123 reconcile all of that, at this time.
124
125
126 HTH,
127
128 James
129
130
131
132
133
134
135 > And can you help me with building it natively? I have a fully functional
136 > gentoo on EP9307 with softfloat and uclibc and i would like to have compiler
137 > with maverick supported.
138 > Thank you
139 >
140 >
141 > Dne Tuesday 12 February 2008 23:32:48 Christopher Friedt napsal(a):
142 >> Sorry, I made a mistake there,
143 >>
144 >> instead of ECONF_EXTRA, the variable should be called EXTRA_ECONF,
145 >> according to 'man 5 ebuild'
146 >>
147 >> ~/Chris
148 >>
149 >> Christopher Friedt wrote:
150 >>> mkdir -p /usr/local/portage/maverick_overlay &&
151 >>> SRV="http://vaiprime.visibleassets.com" \
152 >>> LOC="~cfriedt/overlays/maverick.tar.bz2" \
153 >>> wget -O - ${SRV}/${LOC} | \
154 >>> tar xpjf - -C /usr/local/portage/maverick_overlay &&
155 >>> PORTDIR_OVERLAY="/usr/local/portage/crossdev_overlay \
156 >>> /usr/local/portage/maverick_overlay" \
157 >>> ECONF_EXTRA="--disable-nls --enable-shared \
158 >>> --with-system-zlib --without-included-gettext \
159 >>> --enable-threads=posix --enable-clocale=gnu \
160 >>> --with-fpu=maverick --with-float-abi=softfp \
161 >>> --with-cpu=ep9312 --enable-languages=c,c++" \
162 >>> USE="-gcj -gtk -fortran -mudflap" \
163 >>> crossdev -S \
164 >>> --l 2.5-r4 --g 4.1.2 --b 2.17-r1 \
165 >>> armv4t-maverick-linux-gnueabi
166 >
167 >
168
169 --
170 gentoo-embedded@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] cirrus ep93xx chips / maverick crunch Christopher Friedt <cfriedt@××××××××××××××.com>