Home > Support > Knowledge Base
Knowledge Base
 
Reset Search
Search
 

 

Knowledge

How do I program my customized firmware or configuration settings to embedded modules for mass production?

« Go Back

Information

 
Problem Resolution

Use Expect/Tcl or python scripts to scan serial output and issue appropriate commands (to serial console) to program your firmware.

See: http://www.python.org

E.g. under Windows use:

http://aspn.activestate.com/ASPN/Downloads/ActiveTcl/

And create scripts like:

package require Expect
open /dev/ttyS0
send -s "\r"
set timeout 20
expect {
timeout {test_error "Fxx: Timeout waiting request to stop autoboot"}
# the following case does not work, if bootdelay=0
"Hit any key to stop autoboot:" { send -s "\r"
expect {
timeout {test_error "Fxx: Wrong Target Prompt"}
${TARGET(sPROMPT)}
}
"auto-negotiation timed out" {
test_error "Fxx: No ethernet connection between host and target"
}
"MAC: error during MII initialization" {
test_error "Fxx: No ethernet connection between host and target"
}
${TARGET(sPROMPT)} } send -s "update uboot tftp"
..

anotgher option is to use the bootscript/autoscript feature of the pre-programmed U-Boot (if available with this feature), see: creating partitions and updating U-Boot from U-Boot bootscript / autoscript does not work due to interactive inputs required

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255