Skip to contentSkip to conversation

fw_printenv is not working

U-Boot mateer 4 participants 4 messages Jul 29, 2010 – Oct 22, 2012

lore
Share & tools
lore

mateer

author
#0 lore raw

Hi,
when i run fw_printenv , its not working..It shows:- fw_printenv: line 1:
syntax error: "(" unexpected error... Let me tell you what i did...
1) i copy the u-boot source code from my colleague and copy in my hard disk.
2) After then i set the environment through commnads. the commands which i run are

	# make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm distclean
	# make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm omap3_evm_config
	# make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm
3) After then i go to /tools/env, where i configure the fw_env.config and
then run make command.
4) After ruuning the command i got crc32.c and fw_printenv.
5)i copied the fw_printenv into the SD-Card and insert the card into the
OMAP3EVM board.
6) after then when i use the command ./fw_printenv it throws the error
fw_printenv: line 1: syntax error: "(" unexpected  error..
         Can u please help me what i have to do... I think i am doing
something wrong...
Signature · 2 lines
View this message in context: http://old.nabble.com/fw_printenv-is-not-working-tp29297562p29297562.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw
Quoted 2 lines · On Thursday, July 29, 2010 11:21:22 mateer wrote:

when i run fw_printenv , its not working..It shows:- fw_printenv: line 1:
syntax error: "(" unexpected error...

looks like your config file has a syntax error in it
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100729/a662acb6/attachment.pgp

#2 lore raw
In reply to mateer

Hi Mateer,

I am also facing the same issue. I am also getting the error:
fw_printenv: line 1: syntax error: "(" unexpected whenever I give command fw_printenv. I am using OMAPL138 EVM board.

Can u please help me... How did you resolve this error for your board?? Thanks in advance...
Nih_a

Quoted 22 lines · mateer

Hi,
when i run fw_printenv , its not working..It shows:- fw_printenv: line
1: syntax error: "(" unexpected error... Let me tell you what i did...
1) i copy the u-boot source code from my colleague and copy in my hard disk.
2) After then i set the environment through commnads. the commands which i run are

	# make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm distclean
	# make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm omap3_evm_config
	# make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm
3) After then i go to /tools/env, where i configure the fw_env.config and
then run make command.
4) After ruuning the command i got crc32.c and fw_printenv.
5)i copied the fw_printenv into the SD-Card and insert the card into the
OMAP3EVM board.
6) after then when i use the command ./fw_printenv it throws the error
fw_printenv: line 1: syntax error: "(" unexpected  error..
         Can u please help me what i have to do... I think i am doing
something wrong...
Signature · 2 lines
View this message in context: http://old.nabble.com/fw_printenv-is-not-working-tp29297562p34585226.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#3 lore raw

Dear Nih_a,

when replying to a mail, please make sure to maintain thread information, i. e. make sure to set appropriate In-reply-to: and
References: headers.

Quoted 4 lines · In message <[email protected]> you wrote:

I am also facing the same issue. I am also getting the error:
fw_printenv: line 1: syntax error: "(" unexpected whenever I give command fw_printenv. I am using OMAPL138 EVM board.

I guess you did not read tools/env/README , or did you? Did you follow the instructions of setting HOSTCC= in the call to make ?

Best regards,

Wolfgang Denk

Signature · 7 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
When the tide of life turns against you
And the current upsets your boat
Don't waste tears on what might have been
Just lie on your back and float.