Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Some AT91SAM9261-EK Notes
@ 2009-01-22 21:19 Quick X
  2009-01-23 14:53 ` Ulf Samuelsson
  0 siblings, 1 reply; 6+ messages in thread
From: Quick X @ 2009-01-22 21:19 UTC (permalink / raw)
  To: buildroot


I was updating/testing some versions of things and noticed three small issues.
 
First: Using the "uClibc-0.9.30.config" file segfaults some packages, for example dropbear and samba.
 
---at91sam9261ek_defconfig---  Works Fine
uClibc 0.9.30 (uClibc-0.9.29.config)
binutils 2.18
gcc 4.2.4
BusyBox 1.13.x (busybox-1.6.0.config)
at91bootstrap 2.10
u-boot-2009.01
 
---Attempted 1---  Compiles but some Packages Don't work
uClibc 0.9.30 (uClibc-0.9.30.config)
binutils 2.19
gcc 4.3.2
BusyBox 1.13.x (busybox-1.13.x.config)
at91bootstrap 2.10
u-boot-2009.01
 
---Attempted 2---  Works Fine
uClibc 0.9.30 (uClibc-0.9.29.config)
binutils 2.19
gcc 4.3.2
BusyBox 1.13.x (busybox-1.13.x.config)
at91bootstrap 2.10
u-boot-2009.01

 
 
As you can see only the uClibc-0.9.30.config was changed to get it working.  When I say doesn't work I mean error messages during Boot (Seg Fault and Core Dump).  IE
 
---Working Hyperterminal Log (From Attempt 2)---
[[[SNIP]]]
Advanced Linux Sound Architecture Driver Version 1.0.18rc3.
at73c213 spi0.3: at73c213: supported bitrate is 48500 (64 divider)
ASoC version 0.13.2
Error: Driver 'at73c213' is already registered, aborting...
ALSA device list:
  #0: AT91SAM9261-EK external DAC on irq 15
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 136K
Initializing random number generator... done.
Starting network...
ip: RTNETLINK answers: File exists
Starting dropbear sshd: generating rsa key... generating dsa key... OK
Starting SMB services: done
Starting NMB services: done
 
Welcome to the Erik's uClibc development environment running on an AT91SAM9261EK
AT91SAM9261EK login:
---END---
 
 
---Broken Hyperterminal Log (From Attemp 1)---
Advanced Linux Sound Architecture Driver Version 1.0.18rc3.
at73c213 spi0.3: at73c213: supported bitrate is 48500 (64 divider)
ASoC version 0.13.2
Error: Driver 'at73c213' is already registered, aborting...
ALSA device list:
  #0: AT91SAM9261-EK external DAC on irq 15
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 136K
Initializing random number generator... done.
Starting network...
Starting dropbear sshd: generating rsa key... generating dsa key... Aiee, segfau
lt! You should probably report this as a bug to the developer
OK
Starting SMB services: Aborted (core dumped)
done
Starting NMB services: done
 
Welcome to the Erik's uClibc development environment running on an AT91SAM9261EK
AT91SAM9261EK login:
---END---
 
 
 
 
Second: I was able to test the "save config" using a custom linux config.  This works now as long as you use "save config" (because it sets the "BOARD_PATH" as well as the "BR2_LINUX_KCONFIG").  If you manually set the Linux Config file with a "make menuconfig", then you also have to manually set the "make menuconfig> XXX> Atmel board repository".  Maybe intended but took me a little bit to figure out.
 
 
 
 
Third: Since U-Boot moved I thought I'd try testing "make menuconfig> Target Options> Atmel Device Support> Secondary Locations> () also copy image to..." again.  Setting it to nothing still results in a make error.
 
---Also Copy Image To Make Error---
[[[SNIP]]]
rm -f /home/dustin/buildroot/binaries/at91sam9261ek/at91bootstrap.bin
(cd /home/dustin/buildroot/binaries/at91sam9261ek ; \
         ln -sf at91sam9261ek-dataflashboot-2.10.bin at91bootstrap.bin \
        )
make[1]: Leaving directory `/home/dustin/buildroot/project_build_arm/at91sam9261ek/at91bootstrap-2.10'
make DESTDIR="" -C /home/dustin/buildroot/project_build_arm/at91sam9261ek/at91bootstrap-2.10 install
make[1]: Entering directory `/home/dustin/buildroot/project_build_arm/at91sam9261ek/at91bootstrap-2.10'
install -d
install: missing file operand
Try `install --help' for more information.
make[1]: [install] Error 1 (ignored)
install binaries/at91sam9261ek-dataflashboot-2.10.bin.fixboot /at91sam9261ek-dataflashboot-2.10.bin
install: cannot create regular file `/at91sam9261ek-dataflashboot-2.10.bin': Permission denied
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/dustin/buildroot/project_build_arm/at91sam9261ek/at91bootstrap-2.10'
make: *** [/home/dustin/buildroot/project_build_arm/at91sam9261ek/at91bootstrap-2.10/.installed] Error 2
dustin at dds186:~/buildroot$
_________________________________________________________________
Drag n? drop?Get easy photo sharing with Windows Live? Photos.
http://www.microsoft.com/windows/windowslive/photos.aspx

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Some AT91SAM9261-EK Notes
  2009-01-22 21:19 [Buildroot] Some AT91SAM9261-EK Notes Quick X
@ 2009-01-23 14:53 ` Ulf Samuelsson
  2009-01-23 19:38   ` QuickX
  0 siblings, 1 reply; 6+ messages in thread
From: Ulf Samuelsson @ 2009-01-23 14:53 UTC (permalink / raw)
  To: buildroot

tor 2009-01-22 klockan 13:19 -0800 skrev Quick X:
> I was updating/testing some versions of things and noticed three small issues.
>  
> First: Using the "uClibc-0.9.30.config" file segfaults some packages, for example dropbear and samba.
>  
> ---at91sam9261ek_defconfig---  Works Fine
> uClibc 0.9.30 (uClibc-0.9.29.config)
> binutils 2.18
> gcc 4.2.4
> BusyBox 1.13.x (busybox-1.6.0.config)
> at91bootstrap 2.10
> u-boot-2009.01
>  
> ---Attempted 1---  Compiles but some Packages Don't work
> uClibc 0.9.30 (uClibc-0.9.30.config)
> binutils 2.19
> gcc 4.3.2
> BusyBox 1.13.x (busybox-1.13.x.config)
> at91bootstrap 2.10
> u-boot-2009.01
>  
> ---Attempted 2---  Works Fine
> uClibc 0.9.30 (uClibc-0.9.29.config)
> binutils 2.19
> gcc 4.3.2
> BusyBox 1.13.x (busybox-1.13.x.config)
> at91bootstrap 2.10
> u-boot-2009.01


Can you  build uclibc-0.9.30 with ?uclibc-0.9.29.config without
updating configuration item.

Maybe you can provide a diff between the resulting .config
and the ?uclibc-0.9.30.config

BR
Ulf Samuelsson


> 
> As you can see only the uClibc-0.9.30.config was changed to get it working.  When I say doesn't work I mean error messages during Boot (Seg Fault and Core Dump).  IE
>  
> ---Working Hyperterminal Log (From Attempt 2)---
> [[[SNIP]]]
> Advanced Linux Sound Architecture Driver Version 1.0.18rc3.
> at73c213 spi0.3: at73c213: supported bitrate is 48500 (64 divider)
> ASoC version 0.13.2
> Error: Driver 'at73c213' is already registered, aborting...
> ALSA device list:
>   #0: AT91SAM9261-EK external DAC on irq 15
> TCP cubic registered
> NET: Registered protocol family 10
> IPv6 over IPv4 tunneling driver
> NET: Registered protocol family 17
> RPC: Registered udp transport module.
> RPC: Registered tcp transport module.
> drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
> VFS: Mounted root (jffs2 filesystem).
> Freeing init memory: 136K
> Initializing random number generator... done.
> Starting network...
> ip: RTNETLINK answers: File exists
> Starting dropbear sshd: generating rsa key... generating dsa key... OK
> Starting SMB services: done
> Starting NMB services: done
>  
> Welcome to the Erik's uClibc development environment running on an AT91SAM9261EK
> AT91SAM9261EK login:
> ---END---
>  
> 
> ---Broken Hyperterminal Log (From Attemp 1)---
> Advanced Linux Sound Architecture Driver Version 1.0.18rc3.
> at73c213 spi0.3: at73c213: supported bitrate is 48500 (64 divider)
> ASoC version 0.13.2
> Error: Driver 'at73c213' is already registered, aborting...
> ALSA device list:
>   #0: AT91SAM9261-EK external DAC on irq 15
> TCP cubic registered
> NET: Registered protocol family 10
> IPv6 over IPv4 tunneling driver
> NET: Registered protocol family 17
> RPC: Registered udp transport module.
> RPC: Registered tcp transport module.
> drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
> VFS: Mounted root (jffs2 filesystem).
> Freeing init memory: 136K
> Initializing random number generator... done.
> Starting network...
> Starting dropbear sshd: generating rsa key... generating dsa key... Aiee, segfau
> lt! You should probably report this as a bug to the developer
> OK
> Starting SMB services: Aborted (core dumped)
> done
> Starting NMB services: done
>  
> Welcome to the Erik's uClibc development environment running on an AT91SAM9261EK
> AT91SAM9261EK login:
> ---END---
>  
> 
> 
> 
> Second: I was able to test the "save config" using a custom linux config.  This works now as long as you use "save config" (because it sets the "BOARD_PATH" as well as the "BR2_LINUX_KCONFIG").  If you manually set the Linux Config file with a "make menuconfig", then you also have to manually set the "make menuconfig> XXX> Atmel board repository".  Maybe intended but took me a little bit to figure out.
>  
> 
> 
> 
> Third: Since U-Boot moved I thought I'd try testing "make menuconfig> Target Options> Atmel Device Support> Secondary Locations> () also copy image to..." again.  Setting it to nothing still results in a make error.
>  
> ---Also Copy Image To Make Error---
> [[[SNIP]]]
> rm -f /home/dustin/buildroot/binaries/at91sam9261ek/at91bootstrap.bin
> (cd /home/dustin/buildroot/binaries/at91sam9261ek ; \
>          ln -sf at91sam9261ek-dataflashboot-2.10.bin at91bootstrap.bin \
>         )
> make[1]: Leaving directory `/home/dustin/buildroot/project_build_arm/at91sam9261ek/at91bootstrap-2.10'
> make DESTDIR="" -C /home/dustin/buildroot/project_build_arm/at91sam9261ek/at91bootstrap-2.10 install
> make[1]: Entering directory `/home/dustin/buildroot/project_build_arm/at91sam9261ek/at91bootstrap-2.10'
> install -d
> install: missing file operand
> Try `install --help' for more information.
> make[1]: [install] Error 1 (ignored)
> install binaries/at91sam9261ek-dataflashboot-2.10.bin.fixboot /at91sam9261ek-dataflashboot-2.10.bin
> install: cannot create regular file `/at91sam9261ek-dataflashboot-2.10.bin': Permission denied
> make[1]: *** [install] Error 1
> make[1]: Leaving directory `/home/dustin/buildroot/project_build_arm/at91sam9261ek/at91bootstrap-2.10'
> make: *** [/home/dustin/buildroot/project_build_arm/at91sam9261ek/at91bootstrap-2.10/.installed] Error 2
> dustin at dds186:~/buildroot$
> _________________________________________________________________
> Drag n? drop?Get easy photo sharing with Windows Live? Photos.
> http://www.microsoft.com/windows/windowslive/photos.aspx
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Some AT91SAM9261-EK Notes
  2009-01-23 14:53 ` Ulf Samuelsson
@ 2009-01-23 19:38   ` QuickX
  2009-01-23 20:40     ` Peter Korsgaard
  0 siblings, 1 reply; 6+ messages in thread
From: QuickX @ 2009-01-23 19:38 UTC (permalink / raw)
  To: buildroot

> Can you  build uclibc-0.9.30 with ?uclibc-0.9.29.config without
> updating configuration item.
>
> Maybe you can provide a diff between the resulting .config
> and the ?uclibc-0.9.30.config

I built the project with uClibc-0.9.30 (0.9.29.config), and then build 
project with uClibc-0.9.30 (0.9.30.config).  Here are the differences in the 
generated "toolchain_build_arm/uClibc-0.9.30/.config"'s.  I TABed the Items 
that didn't show up in the counterpart config.

---uClibc 0.9.30 (with 0.9.29.config); Working; Took Default for Questions 
Asked During Build---
# FORCE_SHAREABLE_TEXT_SEGMENTS is not set
LDSO_CACHE_SUPPORT=y
	LDSO_BASE_FILENAME="ld.so"
# UNIX98PTY_ONLY is not set
UCLIBC_HAS_GETPT=y
# UCLIBC_USE_NETLINK is not set
UCLIBC_HAS_STRING_GENERIC_OPT=y
UCLIBC_HAS_STRING_ARCH_OPT=y
UCLIBC_HAS_CTYPE_CHECKED=y
# UCLIBC_HAS_CTYPE_ENFORCED is not set
UCLIBC_HAS_STDIO_GETC_MACRO=y
UCLIBC_HAS_STDIO_PUTC_MACRO=y
UCLIBC_HAS_GNU_GETSUBOPT=y
UCLIBC_HAS_REGEX_OLD=y
UCLIBC_HAS_FNMATCH_OLD=y
# UCLIBC_HAS_ARC4RANDOM is not set


---uClibc 0.9.30 (with 0.9.30.config); Not Working; Didn't Ask Any Questions 
During Build---
FORCE_SHAREABLE_TEXT_SEGMENTS=y
# LDSO_CACHE_SUPPORT is not set
UNIX98PTY_ONLY=y
# UCLIBC_HAS_GETPT is not set
UCLIBC_USE_NETLINK=y
	UCLIBC_SUPPORT_AI_ADDRCONFIG=y
# UCLIBC_HAS_STRING_GENERIC_OPT is not set
# UCLIBC_HAS_STRING_ARCH_OPT is not set
# UCLIBC_HAS_CTYPE_CHECKED is not set
UCLIBC_HAS_CTYPE_ENFORCED=y
# UCLIBC_HAS_STDIO_GETC_MACRO is not set
# UCLIBC_HAS_STDIO_PUTC_MACRO is not set
# UCLIBC_HAS_GNU_GETSUBOPT is not set
# UCLIBC_HAS_REGEX_OLD is not set
# UCLIBC_HAS_FNMATCH_OLD is not set
UCLIBC_HAS_ARC4RANDOM=y


My guess is that it's the "UCLIBC_USE_NETLINK" option since it looks like 
only networky applications are affected (dropbear, samba, etc).  I'm 
actually catching a plane in 8 hours and will be gone for a week, however, I 
can try to test the options one by one if you can't tell what it is from 
just the diff.

I also attached both the generated config files if they are helpful.  I 
wasn't too sure what "without updating configuration items" meant, is it an 
option somewhere? 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Working Generated uClibc.config
Type: application/xml
Size: 5982 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/buildroot/attachments/20090123/5de0861b/attachment-0002.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NotWorking Generated uClibc.config
Type: application/xml
Size: 6061 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/buildroot/attachments/20090123/5de0861b/attachment-0003.xml 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Some AT91SAM9261-EK Notes
  2009-01-23 19:38   ` QuickX
@ 2009-01-23 20:40     ` Peter Korsgaard
  2009-01-23 23:06       ` QuickX
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Korsgaard @ 2009-01-23 20:40 UTC (permalink / raw)
  To: buildroot

>>>>> "QuickX" == QuickX  <quickx@hotmail.com> writes:

Hi,

 QuickX> My guess is that it's the "UCLIBC_USE_NETLINK" option since
 QuickX> it looks like only networky applications are affected
 QuickX> (dropbear, samba, etc).  I'm actually catching a plane in 8
 QuickX> hours and will be gone for a week, however, I can try to test
 QuickX> the options one by one if you can't tell what it is from just
 QuickX> the diff.

You're not the only one having problems with uclibc 0.9.30 and
netlink:

http://lists.uclibc.org/pipermail/uclibc/2009-January/041701.html

Maybe we should just disable it in the 0.9.30 defconfig? What is the
impact of doing that?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Some AT91SAM9261-EK Notes
  2009-01-23 20:40     ` Peter Korsgaard
@ 2009-01-23 23:06       ` QuickX
  2009-01-24  6:37         ` Peter Korsgaard
  0 siblings, 1 reply; 6+ messages in thread
From: QuickX @ 2009-01-23 23:06 UTC (permalink / raw)
  To: buildroot

I was able to narrow down the problem a bit more.  It seems that the 
"UCLIBC_SUPPORT_AI_ADDRCONFIG" is what causes the Segfaults/Core Dumps, 
however, this option is only available if UCLIBC_USE_NETLINK is set.

Results: 0.9.30 (with 0.9.30 config, minus UCLIBC_SUPPORT_AI_ADDRCONFIG) 
works fine for dropbear and samba.


> What is the impact of doing that?
I'm not really sure of the impact.  From the uClibc-menuconfig help it 
states following if they are helpful.

UCLIBC_USE_NETLINK:
  ?
  ? In newer versions of Linux (2.4.17+), support was added for querying
  ? network device information via netlink rather than the old style
  ? ioctl's.  Most of the time, the older ioctl style is sufficient (and
  ? it is smaller than netlink), but if you find that not all of your
  ? devices are being returned by the if_nameindex() function, you will
  ? have to use the netlink implementation.
  ?
  ? Most people can safely answer N.

UCLIBC_SUPPORT_AI_ADDRCONFIG:
  ?
  ? The implementation of AI_ADDRCONFIG is aligned with the glibc
  ? implementation using netlink to query interfaces to find both
  ? ipv4 and ipv6 support. This is only needed if an application uses
  ? the AI_ADDRCONFIG flag.
  ?
  ? Most people can safely answer N. 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Some AT91SAM9261-EK Notes
  2009-01-23 23:06       ` QuickX
@ 2009-01-24  6:37         ` Peter Korsgaard
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2009-01-24  6:37 UTC (permalink / raw)
  To: buildroot

>>>>> "QuickX" == QuickX  <quickx@hotmail.com> writes:

 QuickX> I was able to narrow down the problem a bit more.  It seems that the
 QuickX> "UCLIBC_SUPPORT_AI_ADDRCONFIG" is what causes the Segfaults/Core
 QuickX> Dumps, however, this option is only available if UCLIBC_USE_NETLINK is
 QuickX> set.

 QuickX> Results: 0.9.30 (with 0.9.30 config, minus
 QuickX> UCLIBC_SUPPORT_AI_ADDRCONFIG) works fine for dropbear and samba.

Ok, thanks, I'll disable it in the defconfig.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-24  6:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-22 21:19 [Buildroot] Some AT91SAM9261-EK Notes Quick X
2009-01-23 14:53 ` Ulf Samuelsson
2009-01-23 19:38   ` QuickX
2009-01-23 20:40     ` Peter Korsgaard
2009-01-23 23:06       ` QuickX
2009-01-24  6:37         ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox