Running a script in uboot without tftp/dhcp use

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Running a script in uboot without tftp/dhcp use

跳至解决方案
2,229 次查看
gbiradar
Contributor IV

Hi Guys, i want to copy a script in SD/MMC card, this script will test RAM, when we enter uboot this script should run and check RAM working, I have already seen the tftp/dhcp use but i want to copy the script manually and run the script. can anyone help me on this.

标签 (3)
0 项奖励
回复
1 解答
2,088 次查看
gbiradar
Contributor IV

i have got the answer for this,instead of creating a seperate FAT partition, using dd utility, say sudo dd if=xyz.scr of=/dev/sdb bs=512 seek=8192 count=2 conv=fysnc

in uboot > mmv read 0x12000000 0x2000 0x100

uboot > source 0x12000000

using this, script content run properly but i need to know how we can decide the address(0x2000). if you could elaborate how we can decide the address in lehman's way. thanks in advance for helping.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,088 次查看
Yuri
NXP Employee
NXP Employee

   You may create additional FAT partition on SD card,

copy Your script to FAT and load the script under U-boot ,

using command "fatload".

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
2,089 次查看
gbiradar
Contributor IV

i have got the answer for this,instead of creating a seperate FAT partition, using dd utility, say sudo dd if=xyz.scr of=/dev/sdb bs=512 seek=8192 count=2 conv=fysnc

in uboot > mmv read 0x12000000 0x2000 0x100

uboot > source 0x12000000

using this, script content run properly but i need to know how we can decide the address(0x2000). if you could elaborate how we can decide the address in lehman's way. thanks in advance for helping.

0 项奖励
回复
2,088 次查看
gbiradar
Contributor IV

i have explore the answer is 0x2000 <=> 8192

8192* 512(bs) = 4MB, by default bs is 512 bytes.

0 项奖励
回复
2,088 次查看
gbiradar
Contributor IV

its mmc not mmv. sorry for the error.

0 项奖励
回复