Skip to contentSkip to conversation

Openembedded for AVR32

DISCUSSION Alex Raimondi 3 participants 4 messages Oct 22, 2008 – Oct 23, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

Does OE for AVR32 really work?

I had a working version about two month ago from the monotone repository.

For about three weeks we try to get it running from the latest monotone repository and after the transition to git from the latest git.

Just as of this morning I grabbed a fresh new clone from the git repository.

OE does compile (minimal-image). But I can't boot the image.

This is what I found out.

** Kernel **
OE Kernel does boot. We included a newer version (2.6.25.10) into OE with our own patches. This version does boot as well. Tested on ATNGW100 and our own hardware.

** rootfs **
Rootfs is mounted via NFS. From the server logs I can see, that the filesystem actually is mounted. See the last lines from my bootlog:

------
at32ap700x_rtc at32ap700x_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC
(0)
Sending DHCP requests ., OK
eth0: link up (10/Half)
IP-Config: Got DHCP answer from 192.168.1.1, my address is 192.168.1.151
IP-Config: Complete:

     device=eth0, addr=192.168.1.151, mask=255.255.255.0, gw=192.168.1.1,       
     host=dhcppc1, domain=, nis-domain=(none),                                  
     bootserver=192.168.1.1, rootserver=192.168.1.150, rootpath=                

Looking up port of RPC 100003/2 on 192.168.1.150 Looking up port of RPC 100005/1 on 192.168.1.150
VFS: Mounted root (nfs filesystem).
Freeing init memory: 76K (90000000 - 90013000) init[1]: segfault at 00000008 pc 2aaac620 sp 7f931f40 ecr 24 init has generated signal 11 but has no handler for it

Kernel panic - not syncing: Attempted to kill init!                             

-------

There is always a signal 11 in init (seg fault).

** init **
We tried different init.
- OE default sysvinit => segfault
- Busybox init => segfault
- No init => kernel tries to load sh => segfault
- Our own "hello world" app (compiled outside of OE) => segfault

Can anyone confirm that OE for AVR32 does work?
How can we debug and fix this problem?

Thanks

Alex

#1 lore raw
Quoted 3 lines · Alex Raimondi

Hi,

Does OE for AVR32 really work?

It does work if you use DISTRO=angstrom-2008.1

regards,

Koen

Quoted 53 lines

I had a working version about two month ago from the monotone repository.

For about three weeks we try to get it running from the latest monotone repository and after the transition to git from the latest git.

Just as of this morning I grabbed a fresh new clone from the git repository.

OE does compile (minimal-image). But I can't boot the image.

This is what I found out.

** Kernel **
OE Kernel does boot. We included a newer version (2.6.25.10) into OE with our own patches. This version does boot as well. Tested on ATNGW100 and our own hardware.

** rootfs **
Rootfs is mounted via NFS. From the server logs I can see, that the filesystem actually is mounted. See the last lines from my bootlog:

------
at32ap700x_rtc at32ap700x_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC
(0)
Sending DHCP requests ., OK
eth0: link up (10/Half)
IP-Config: Got DHCP answer from 192.168.1.1, my address is 192.168.1.151
IP-Config: Complete:

      device=eth0, addr=192.168.1.151, mask=255.255.255.0, gw=192.168.1.1,
      host=dhcppc1, domain=, nis-domain=(none),
      bootserver=192.168.1.1, rootserver=192.168.1.150, rootpath=

Looking up port of RPC 100003/2 on 192.168.1.150 Looking up port of RPC 100005/1 on 192.168.1.150
VFS: Mounted root (nfs filesystem).
Freeing init memory: 76K (90000000 - 90013000) init[1]: segfault at 00000008 pc 2aaac620 sp 7f931f40 ecr 24 init has generated signal 11 but has no handler for it

Kernel panic - not syncing: Attempted to kill init!

-------

There is always a signal 11 in init (seg fault).

** init **
We tried different init.
- OE default sysvinit => segfault
- Busybox init => segfault
- No init => kernel tries to load sh => segfault
- Our own "hello world" app (compiled outside of OE) => segfault

Can anyone confirm that OE for AVR32 does work?
How can we debug and fix this problem?

Thanks

Alex

#2 lore raw
Quoted 4 lines · Koen Kooi
Quoted 1 line

Does OE for AVR32 really work?

It does work if you use DISTRO=angstrom-2008.1

My local.conf has the following entries:

TARGET_OS = "linux-uclibc"
DISTRO = "angstrom-2008.1"
ANGSTROM_MODE = "uclibc

My minimal-image does not boot. Still segfault at init.... I am suspecting a library problem.

Could you send me a tar of a minimal-image rootfs, please?

The OE kernel does boot if we use a rootfs generated e.g. with atmel buildroot.
OE rootfs has the same problem with all kernels compiled in all different ways..

Any other hints?

Alex

Quoted 67 lines
Quoted 54 lines

I had a working version about two month ago from the monotone repository.

For about three weeks we try to get it running from the latest monotone repository and after the
transition to git from the latest git.

Just as of this morning I grabbed a fresh new clone from the git repository.

OE does compile (minimal-image). But I can't boot the image.

This is what I found out.

** Kernel **
OE Kernel does boot. We included a newer version (2.6.25.10) into OE with our own patches. This version does boot as well. Tested on ATNGW100 and our own hardware.

** rootfs **
Rootfs is mounted via NFS. From the server logs I can see, that the filesystem actually is mounted. See the last lines from my bootlog:

------
at32ap700x_rtc at32ap700x_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC
(0)
Sending DHCP requests ., OK
eth0: link up (10/Half)
IP-Config: Got DHCP answer from 192.168.1.1, my address is 192.168.1.151
IP-Config: Complete:

      device=eth0, addr=192.168.1.151, mask=255.255.255.0,

gw=192.168.1.1,
host=dhcppc1, domain=, nis-domain=(none), bootserver=192.168.1.1, rootserver=192.168.1.150, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.150 Looking up port of RPC 100005/1 on 192.168.1.150
VFS: Mounted root (nfs filesystem).
Freeing init memory: 76K (90000000 - 90013000)
init[1]: segfault at 00000008 pc 2aaac620 sp 7f931f40 ecr 24 init has generated signal 11 but has no handler for it

Kernel panic - not syncing: Attempted to kill init!

-------

There is always a signal 11 in init (seg fault).

** init **
We tried different init.
- OE default sysvinit => segfault
- Busybox init => segfault
- No init => kernel tries to load sh => segfault
- Our own "hello world" app (compiled outside of OE) => segfault

Quoted 6 lines

Can anyone confirm that OE for AVR32 does work?
How can we debug and fix this problem?

Thanks

Alex

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw
In reply to Alex Raimondi

I had similar issues once.
To me it was the problem that my busybox was not compiled with a compatible toolchain then the kernel.
I used to compile the kernel via atmels but my rootfs was done by oe. Atmel by then already used uclibc-0.9.29 where oe was still using 0.9.28 ..
Alex Raimondi schrieb:

Hi,

Does OE for AVR32 really work?

I had a working version about two month ago from the monotone repository.

For about three weeks we try to get it running from the latest monotone reposito ry and after the
transition to git from the latest git.

Just as of this morning I grabbed a fresh new clone from the git repository.

OE does compile (minimal-image). But I can't boot the image.

This is what I found out.

** Kernel **
OE Kernel does boot. We included a newer version (2.6.25.10) into OE with our ow n patches. This version does boot as well.
Tested on ATNGW100 and our own hardware.

** rootfs **
Rootfs is mounted via NFS. From the server logs I can see, that the filesystem a ctually is mounted. See the last lines from my bootlog:

------
at32ap700x_rtc at32ap700x_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC
(0)
Sending DHCP requests ., OK
eth0: link up (10/Half)
IP-Config: Got DHCP answer from 192.168.1.1, my address is 192.168.1.151
IP-Config: Complete:

     device=eth0, addr=192.168.1.151, mask=255.255.255.0, gw=192.168.1.1,
     host=dhcppc1, domain=, nis-domain=(none),
     bootserver=192.168.1.1, rootserver=192.168.1.150, rootpath=

Looking up port of RPC 100003/2 on 192.168.1.150 Looking up port of RPC 100005/1 on 192.168.1.150
VFS: Mounted root (nfs filesystem).
Freeing init memory: 76K (90000000 - 90013000) init[1]: segfault at 00000008 pc 2aaac620 sp 7f931f40 ecr 24 init has generated signal 11 but has no handler for it

Kernel panic - not syncing: Attempted to kill init!

-------

There is always a signal 11 in init (seg fault).

** init **
We tried different init.
- OE default sysvinit => segfault
- Busybox init => segfault
- No init => kernel tries to load sh => segfault
- Our own "hello world" app (compiled outside of OE) => segfault

Can anyone confirm that OE for AVR32 does work?
How can we debug and fix this problem?

Thanks

Alex

_______________________________________________
Openembedded-devel mailing list [1][email protected] [2]http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

--

Robert Woerle
Linux Development
phone: +49 (0)821 4442253
mobile: +49 179 4744527
email: [3][email protected]
web: [4]http://www.linuxdevelopment.de
UStNr.

102/289/51264

This e-mail message and any files transmitted with it are confidential property and are intended only for the person(s) to whom this e-mail is addressed. If you have received this e-mail message in error, please notify the sender immediately by telephone or e-mail and destroy the original message without making a copy. Thank you.

References

1. mailto:[email protected]
2. http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
3. mailto:[email protected]
4. http://www.linuxdevelopment.de/