* [Buildroot] White space problem in target/device/Atmel/u-boot/u-boot.mk
@ 2007-08-31 12:29 brm
2007-09-01 10:38 ` Bernhard Fischer
0 siblings, 1 reply; 2+ messages in thread
From: brm @ 2007-08-31 12:29 UTC (permalink / raw)
To: buildroot
Hi,
Today when I try to build buildroot for some old ARM board using
AT914xxx.
I got this error:
| echo setenv linux /opt/buildroot/binaries/ev40/ev40-linux-2.6.22.1>>
/opt/buildroot/binaries/ev40/autoscript
| echo setenv kernel-version 2.6.22.1>> /opt/buildroot/binaries/ev40/autoscript
| echo setenv kernel-date 20070831>> /opt/buildroot/binaries/ev40/autoscript
| /bin/sh: 20070831: Bad file descriptor
| make: *** [/opt/buildroot/binaries/ev40/autoscript] Error 1
After spend sometime track down the problem, I found that "u-boot.mk"
in target/device/Atmel/u-boot/ directory contains that portion of shell script.
I'm using bash on debian etch. Bach will interpret number in
front of ">" or ">>" as file descriptor. So that cause the problem.
Checking using svn diff, I think that the patch revision 19644 that
update this file from 19639 cause this, especially the part
| - echo setenv linux $(LINUX26_KERNEL)
>> $(UBOOT_SCR)
| - echo setenv kernel-version $(LINUX26_VERSION)
>> $(UBOOT_SCR)
| - echo setenv kernel-date $(DATE)
>> $(UBOOT_SCR)
| - echo setenv hostname $(TARGET_HOSTNAME)
>> $(UBOOT_SCR)
| - echo setenv fs-date $(DATE)
>> $(UBOOT_SCR)
| - echo setenv rd-1
rootfs.$(BR2_ARCH)-$(DATE).ext2 >> $(UBOOT_SCR)
| - echo setenv rd-2
rootfs.$(BR2_ARCH)-$(DATE).jffs2 >> $(UBOOT_SCR)
| - echo setenv rd
rootfs.$(BR2_ARCH)-$(DATE).ext2 >> $(UBOOT_SCR)
| - echo setenv ver 1
>> $(UBOOT_SCR)
| -ifneq ($(TARGET_UBOOT_ETHADDR),)
| - echo setenv ethaddr $(TARGET_UBOOT_ETHADDR)
>> $(UBOOT_SCR)
| + echo setenv linux $(LINUX26_KERNEL)>> $(UBOOT_SCR)
| + echo setenv kernel-version $(LINUX26_VERSION)>> $(UBOOT_SCR)
| + echo setenv kernel-date $(DATE)>> $(UBOOT_SCR)
| + echo setenv hostname $(TARGET_HOSTNAME) >> $(UBOOT_SCR)
| + echo setenv fs-date $(DATE)>> $(UBOOT_SCR)
| + echo setenv rd-1 rootfs.$(BR2_ARCH)-$(DATE).ext2>> $(UBOOT_SCR)
| + echo setenv rd-2 rootfs.$(BR2_ARCH)-$(DATE).jffs2>> $(UBOOT_SCR)
| + echo setenv rd rootfs.$(BR2_ARCH)-$(DATE).ext2>> $(UBOOT_SCR)
| + echo setenv ver 1>> $(UBOOT_SCR)
| +ifneq ($(TARGET_UBOOT_ETHADDR),)
| + echo setenv ethaddr $(TARGET_UBOOT_ETHADDR)>> $(UBOOT_SCR)
At least these lines
| echo setenv kernel-date $(DATE)>> $(UBOOT_SCR)
| echo setenv fs-date $(DATE)>> $(UBOOT_SCR)
| echo setenv ver 1>> $(UBOOT_SCR)
need to be fixed to allow script built correctly, if bash is
used on the host computer, that is.
Cheers,
cj
^ permalink raw reply [flat|nested] 2+ messages in thread* [Buildroot] White space problem in target/device/Atmel/u-boot/u-boot.mk
2007-08-31 12:29 [Buildroot] White space problem in target/device/Atmel/u-boot/u-boot.mk brm
@ 2007-09-01 10:38 ` Bernhard Fischer
0 siblings, 0 replies; 2+ messages in thread
From: Bernhard Fischer @ 2007-09-01 10:38 UTC (permalink / raw)
To: buildroot
On Fri, Aug 31, 2007 at 07:29:43PM +0700, brm wrote:
>Hi,
> Today when I try to build buildroot for some old ARM board using
>AT914xxx.
>I got this error:
>
>| echo setenv linux /opt/buildroot/binaries/ev40/ev40-linux-2.6.22.1>>
>/opt/buildroot/binaries/ev40/autoscript
>| echo setenv kernel-version 2.6.22.1>> /opt/buildroot/binaries/ev40/autoscript
>| echo setenv kernel-date 20070831>> /opt/buildroot/binaries/ev40/autoscript
>| /bin/sh: 20070831: Bad file descriptor
>| make: *** [/opt/buildroot/binaries/ev40/autoscript] Error 1
>
> After spend sometime track down the problem, I found that "u-boot.mk"
>in target/device/Atmel/u-boot/ directory contains that portion of shell script.
> I'm using bash on debian etch. Bach will interpret number in
>front of ">" or ">>" as file descriptor. So that cause the problem.
Yea, that was me. Should be fixed in r19743. Please holler if i missed
an occurance.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-01 10:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-31 12:29 [Buildroot] White space problem in target/device/Atmel/u-boot/u-boot.mk brm
2007-09-01 10:38 ` Bernhard Fischer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox