* outstanding avr32 issues (and their workarounds)
@ 2008-08-12 7:35 Robert Schuster
2008-08-12 7:44 ` Robert Schuster
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Robert Schuster @ 2008-08-12 7:35 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2253 bytes --]
Hi,
for the last 4 days or so I am trying to build Angstrom 2008.1 (uclibc)
for Atmel's NGW100 board featuering an AVR32 CPU.
I have not been able to boot the image I built with OE yet but these are
the issues I encountered so far:
1) binutils-cross 2.17
Something is b0rken with the configure script code that puts the
arguments to configure into a variable. The variable contains
environment variables. This in turn causes the binutils build to fail
afterwards. There is a workaround which does a little bit of sed magic
on the generated Makefile. This fixes the wrong variable and lets the
build succeed.
2) gcc-cross 4.2.2
When the objective c language is enabled the build of gcc-cross will
fail because the compiler crashes when compiling some objective c source
file.
I have not examined this in detail. Maybe this is fixable with a patch
to gcc.
3) util-linux-ng 2.14 (when building console-image)
Needs UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y in uclibc.distro.
4) console-image
When the rootfs is generated it will fail with:
Collected errors:
* ERROR: Cannot satisfy the following dependencies for task-base-extended:
* libgcc *
There is no libgcc package because it is empty and OE normally does not
create empty packages. Unfortunately I am not experienced enough with
uclibc to say why there are no files for libgcc nor do I understand why
some package requests it. I did a very dirty workaround by declaring
ALLOW_EMPTY = "1" in gcc-cross.inc
and optional:
5) linux
This is only important if you want to boot from SD/MCC like me. The
defconfig should say that ext2 or 3 (or both) is built-in. Otherwise you
cannot boot from such a filesystem.
--
Update! Although I needed evil dirty workaround the image is fine and boots:
The Angstrom Distribution atngw100 ttyS0
Angstrom 2008.1-test-20080810 atngw100 ttyS0
atngw100 login: root
root@atngw100:~# uname -a
Linux atngw100 2.6.24.3.atmel.3 #1 Tue Aug 12 09:11:56 CEST 2008 avr32
unknown
--
I hope that we can fix all the issues so people can build images for the
AVR32 systems without trouble. In the meantime people can use the
information herein to get their builds succeed.
Regards
Robert
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 268 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: outstanding avr32 issues (and their workarounds)
2008-08-12 7:35 outstanding avr32 issues (and their workarounds) Robert Schuster
@ 2008-08-12 7:44 ` Robert Schuster
2008-08-12 7:58 ` Robert Schuster
2008-08-13 11:14 ` Koen Kooi
2 siblings, 0 replies; 4+ messages in thread
From: Robert Schuster @ 2008-08-12 7:44 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 899 bytes --]
Hi,
Robert Schuster schrieb:
> 5) linux
> This is only important if you want to boot from SD/MCC like me. The
> defconfig should say that ext2 or 3 (or both) is built-in. Otherwise you
> cannot boot from such a filesystem.
Just in case someone wants to know how to do this. I use these commands:
mmcinit
ext2load mmc 0:1 0x10300000 /boot/uImage
set bootargs console=ttyS0 root=/dev/mmcblk0p1 rootdelay=1
bootm 0x10300000
"rootdelay=1" is important because otherwise the mmc card is not yet
available.
One can save a lot of typing by putting the above commands into a
variable and run them later.
Enter "askenv mmcboot"
Paste the commands:
mmcinit;ext2load mmc 0:1 0x10300000 /boot/uImage;set bootargs
console=ttyS0 root=/dev/mmcblk0p1 rootdelay=1;bootm 0x10300000
(<Enter>)
Run "saveenv".
Later on run the commands by entering "run mmcboot".
Regards
Robert
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 268 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: outstanding avr32 issues (and their workarounds)
2008-08-12 7:35 outstanding avr32 issues (and their workarounds) Robert Schuster
2008-08-12 7:44 ` Robert Schuster
@ 2008-08-12 7:58 ` Robert Schuster
2008-08-13 11:14 ` Koen Kooi
2 siblings, 0 replies; 4+ messages in thread
From: Robert Schuster @ 2008-08-12 7:58 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 328 bytes --]
Robert Schuster schrieb:
> 3) util-linux-ng 2.14 (when building console-image)
> Needs UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y in uclibc.distro.
This one is fixed by now by an updated uclibc 0.2.29 recipe. If your
build has already run do_configure for util-linux-ng you need to 'clean'
or 'rebuild' it.
Regards
Robert
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 268 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: outstanding avr32 issues (and their workarounds)
2008-08-12 7:35 outstanding avr32 issues (and their workarounds) Robert Schuster
2008-08-12 7:44 ` Robert Schuster
2008-08-12 7:58 ` Robert Schuster
@ 2008-08-13 11:14 ` Koen Kooi
2 siblings, 0 replies; 4+ messages in thread
From: Koen Kooi @ 2008-08-13 11:14 UTC (permalink / raw)
To: openembedded-devel
Robert Schuster wrote:
> Hi,
> for the last 4 days or so I am trying to build Angstrom 2008.1 (uclibc)
> for Atmel's NGW100 board featuering an AVR32 CPU.
>
> I have not been able to boot the image I built with OE yet but these are
> the issues I encountered so far:
>
> 1) binutils-cross 2.17
> Something is b0rken with the configure script code that puts the
> arguments to configure into a variable. The variable contains
> environment variables. This in turn causes the binutils build to fail
> afterwards. There is a workaround which does a little bit of sed magic
> on the generated Makefile. This fixes the wrong variable and lets the
> build succeed.
This should be 'solved' now
> 2) gcc-cross 4.2.2
> When the objective c language is enabled the build of gcc-cross will
> fail because the compiler crashes when compiling some objective c source
> file.
> I have not examined this in detail. Maybe this is fixable with a patch
> to gcc.
This should be 'solved' now as well (ugh, it overrides a variable and
unweaking it in the process :()
> 3) util-linux-ng 2.14 (when building console-image)
> Needs UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y in uclibc.distro.
Fixed
> 4) console-image
> When the rootfs is generated it will fail with:
>
> Collected errors:
> * ERROR: Cannot satisfy the following dependencies for task-base-extended:
> * libgcc *
>
> There is no libgcc package because it is empty and OE normally does not
> create empty packages. Unfortunately I am not experienced enough with
> uclibc to say why there are no files for libgcc nor do I understand why
> some package requests it. I did a very dirty workaround by declaring
> ALLOW_EMPTY = "1" in gcc-cross.inc
Try a clean rebuild, Khems toolchain changes should have fixed this.
> and optional:
>
> 5) linux
> This is only important if you want to boot from SD/MCC like me. The
> defconfig should say that ext2 or 3 (or both) is built-in. Otherwise you
> cannot boot from such a filesystem.
I tried to update the stk1000 kernel a few weeks ago and ran into
'funny' issues. If you build in the ps/2 module (the board has 3.3V ps/2
connectors) the kernel fails to boot. If you enable keyboard drivers
(HID) the kernel fails to boot. If you enable scsi (for usb storage) the
kernel fails to boot. If you build in usb support (if have a cf-usb
adaptor) the kernel fails to boot. I now have a defconfig that builds
with the current kernel *and* manages to boot, but updating the avr32
patch makes it unbootable again.
So changing the ngw defconfig is ok, but please test on a stk1000 before
updating kernel sources.
regards,
Koen
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-13 11:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 7:35 outstanding avr32 issues (and their workarounds) Robert Schuster
2008-08-12 7:44 ` Robert Schuster
2008-08-12 7:58 ` Robert Schuster
2008-08-13 11:14 ` Koen Kooi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.