Hi,
You need to escape the $ and ; chars to prevent uboot from expanding the
variable (the $) or attempting to run setboot (the ;). You want the resulting
uboot variable to contain the ${macaddr} unexpanded and the ';' seperating the
'serenv' and 'run' commands.
IIRC you escape them with backslash (\).
Regards
Phil Q
Phil Quiney, Senior Software Engineer
Trinity Convergence
Cambridge Business Park
Cowley Road
Cambridge CB4 0WZ, UK
T: +44(0)1223-435536
F: +44(0)1223-435560
www.trinityconvergence.com
-----Original Message-----
From: Nitin Mahajan [mailto:[EMAIL PROTECTED]
Sent: 07 October 2008 08:58
To: Phil Quiney; Viral Sachde
Cc: [email protected]
Subject: Re: EVM 6467 board doesnot bootup
HI!
----- Original Message ----
From: Phil Quiney <[EMAIL PROTECTED]>
To: Viral Sachde <[EMAIL PROTECTED]>; Ramesh <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Monday, September 29, 2008 13:26:22
Subject: RE: EVM 6467 board doesnot bootup
Hi,
Your u-boot parameters are truly
broken.
You have a 'setenv=bootcmd nboot 80700000 0 a0000'
which is nonsense. I think that should have been bootcmd=nboot 80700000 0 a0000
The reason it does not boot is because you have set 'bootcmd=bootm' As there is
nothing in memory you get the bad magic number.
If you set the bootcmd to nboot 80700000 0 a0000, I think it should at least
try to boot.
You then need to sort out the bootargs, as previously posted 'nfsroot=10.65M'
is not right, it should be an IP address & path to the NFS root filesystem on
your server.
I guess this is either a cut'n'paste issue, or perhaps the terminal emulator is
not wrapping long lines.
Also you cannot put u-boot variables into the bootargs variable, they do not
get expanded and the kernel will not know how to handle
$(nfsroot) and $(rootpath). There is a 'trick' to do this that has been used on
the DM6446.....
bootcmd=setenv setboot setenv
bootargs $(bootargs) video=dm64xxfb:output=$(videostd):format=component
davinci-vpfe.device_type=1;run setboot;bootm 0x2200000
All this did was allow the $(videostd) variable to be picked up at boot time -
the 'run setboot' was the trick that caused bootargs to be reset with the
expanded variables.
I was going through this valuable trick , and was interested in getting the
ethaddr env variable expanded so that I can get the MAC address in the driver.
I tried doing this after looking at the above example, just to check if the
ethaddr gets expanded
1. set bootcmd setenv setboot setenv bootargs console=ttyS0,115200n8 ro
noinitrd rw ip=dhcp eth=$(ethaddr) mem=100M;run setboot ## Error: "setboot" not
defined
Can you please tell me, what went wrong here or what would be the correct way
to achieve this?
regards
-Nitin
Regards
Phil Q
Phil Quiney, Senior Software
Engineer
Trinity Convergence
Cambridge Business Park
Cowley Road
Cambridge CB4 0WZ, UK
T:
+44(0)1223-435536
F: +44(0)1223-435560
www.trinityconvergence.com
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Viral Sachde
Sent: 29 September 2008 07:14
To: Ramesh
Cc: [email protected]
Subject: Re: EVM 6467
board doesnot bootup
2008/9/29 Ramesh <[EMAIL PROTECTED]>
Hi ,
After I tried to run one demo code on DM6467, I am not able to boot up the
DM6467.
###########################################################
DM6467 EVM # printenv
bootdelay=3
baudrate=115200
ipaddr=192.168.1.201
setenv=bootcmd nboot 80700000 0 a0000
serverip=10.65.103.160
bootfile=uImage
nfshost=10.65.102.67
rootpath=/home/Ramesh/workdir6467/filesys
bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs
nfsroot=10.65Mstdin=serial stdout=serial stderr=serial
ethaddr=00:0e:99:02:b3:47
bootcmd=bootm
DM6467 EVM # boot
## Booting image at 80700000 ...
Bad Magic Number
DM6467 EVM # <INTERRUPT>
##########################################################
Board envirmental setup is
setenv nfshost 10.65.103.160
setenv rootpath /home/Ramesh/workdir6467/filesys setenv bootargs
console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs
nfsroot=$(nfshost):$(rootpath), nolock
mem=120M#########################################################################
Please give me some idea to recover the board.
Thanks
Ramesh.
Check you bootargs, nfsroot parameter does not look correct.
"nfsroot=10.65Mstdin=serial"
rgrds
Viral
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Get your new Email address!
Grab the Email name you've always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source