[U-Boot] U-boot : compare read and expect value

10 Dec
2012
10 Dec
'12
11:58 a.m.
Hi, I'm newbie and I want to use scripts to test the board peripherals (I2C, SPI, LAN, PCIe, USB, ...) using u-boot. My problem is how to compare the reading with the expected value? the reading is in an environment variable? If so which one? I searched the forums and docs without success.
Thanks & Best Regards,
Khalid

10 Dec
10 Dec
1:06 p.m.
Dear Khalid Tourabi,
In message 50C5C063.2020600@planar.com you wrote:
I'm newbie and I want to use scripts to test the board peripherals (I2C, SPI, LAN, PCIe, USB, ...) using u-boot. My problem is how to compare the reading with the expected value? the reading is in an environment variable? If so which one? I searched the forums and docs without success.
Have a look at the setexpr command...
Best regards,
Wolfgang Denk
--
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@denx.de
Ein weiser Herrscher kann in einem großen Land mehr Gutes bewirken
als in einem kleinen - ein dummer Herrscher aber auch viel mehr Un-
fug. Da weise Herrscher seltener sind als dumme, war ich schon immer
gegen große Reiche skeptisch. - Herbert Rosendorfer
4531
Age (days ago)
4531
Last active (days ago)
1 comments
2 participants
participants (2)
-
Khalid Tourabi
-
Wolfgang Denk