{"id":222,"date":"2010-02-22T16:56:52","date_gmt":"2010-02-22T22:56:52","guid":{"rendered":"http:\/\/dmartenson.dc.multitech.prv\/developer\/?page_id=222"},"modified":"2018-04-17T15:28:39","modified_gmt":"2018-04-17T20:28:39","slug":"how-to-recover-in-case-bootstrap-or-uboot-is-corrupted","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/corecdp\/appendix\/how-to-recover-in-case-bootstrap-or-uboot-is-corrupted\/","title":{"rendered":"Bootstrap\/U-Boot Recovery"},"content":{"rendered":"<p><strong>NOTICE: The following information is for the MTCDP (CoreCDP) line of products and NOT the MTCDT Conduit.<\/strong><\/p>\n<p>To be able to perform a bootstrap or U-Boot recovery, you must install a jumper. This jumper will enable the updating of the U-Boot area. This should only be necessary, if the Bootstrap or U-Boot memory area is corrupted from a failed flash.<\/p>\n<div class=\"figure\">\n<table>\n<colgroup>\n<col width = \"100\">\n<col width = \"100\">\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2010\/05\/CALLOUT-MTCDP_PCB_bottom.jpg\" alt=\"\" title=\"CALLOUT-MTCDP_PCB_bottom\" width=\"250\" class=\"alignnone size-full wp-image-778\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2011\/01\/MTCDP_R1-0_PCB_top-callout.jpg\" alt=\"\" title=\"MTCDP_R1-0_PCB_top-callout\" width=\"250\" class=\"alignnone size-full wp-image-1806\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\" ><strong>R0.0<\/strong><\/td>\n<td style=\"text-align: center;\" ><strong>R1.0<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The area outlined is <span style=\"color: #ff0000;\"><strong>&#8216;red&#8217;<\/strong><\/span> will be referenced throughout this article.<\/p>\n<\/div>\n<h3>Hardware Modification<\/h3>\n<div class=\"figure\">\n<table>\n<colgroup>\n<col width = \"100\">\n<col width = \"100\">\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2010\/05\/CALLOUT-MTCDP_no_mod.jpg\" alt=\"\" title=\"CALLOUT-MTCDP_no_mod\" width=\"250\" class=\"alignnone size-full wp-image-844\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2011\/01\/MTCDP_R1-0_calloutphoto.jpg\" alt=\"\" title=\"MTCDP_R1-0_calloutphoto\" width=\"250\" class=\"alignnone size-full wp-image-1803\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\" ><strong>R0.0<\/strong><\/td>\n<td style=\"text-align: center;\" ><strong>R1.0<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Original hardware with no modification.<\/p>\n<\/div>\n<div class=\"figure\">\n<table>\n<colgroup>\n<col width = \"100\">\n<col width = \"100\">\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2010\/05\/CROPPED-MTCDP_Jumper2b.jpg\" alt=\"\" title=\"CROPPED-MTCDP_Jumper2b\" width=\"250\" class=\"alignnone size-full wp-image-784\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2011\/01\/MTCDP_R1-0_calloutphoto-off.jpg\" alt=\"\" title=\"MTCDP_R1-0_calloutphoto-off\" width=\"250\" class=\"alignnone size-full wp-image-1804\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\" ><strong>R0.0<\/strong><\/td>\n<td style=\"text-align: center;\" ><strong>R1.0<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Modified hardware with jumper installed.<\/p>\n<\/div>\n<div class=\"figure\">\n<table>\n<colgroup>\n<col width = \"100\">\n<col width = \"100\">\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2010\/05\/CROPPED-MTCDP_Jumper3-copy.jpg\" alt=\"\" title=\"CROPPED-MTCDP_Jumper3 copy\" width=\"250\" class=\"alignnone size-full wp-image-785\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2011\/01\/MTCDP_R1-0_calloutphoto-on.jpg\" alt=\"\" title=\"MTCDP_R1-0_calloutphoto-on\" width=\"250\" class=\"alignnone size-full wp-image-1805\" \/><\/td>\n<\/tr>\n<tr>\n<td><strong>R0.0<\/strong> &#8211; Power off the device, remove the jumper and power on the device.<\/td>\n<td><strong>R1.0<\/strong> &#8211; Power off the device, install the jumper and power on the device.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p width=\"359\">Action needed to disable NAND Flash<\/p>\n<\/div>\n<div class=\"figure\">\n<table>\n<colgroup>\n<col width = \"100\">\n<col width = \"100\">\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2010\/05\/CROPPED-MTCDP_Jumper2b.jpg\" alt=\"\" title=\"CROPPED-MTCDP_Jumper2b\" width=\"250\" class=\"alignnone size-full wp-image-784\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2011\/01\/MTCDP_R1-0_calloutphoto-off.jpg\" alt=\"\" title=\"MTCDP_R1-0_calloutphoto-off\" width=\"250\" class=\"alignnone size-full wp-image-1804\" \/><\/td>\n<\/tr>\n<tr>\n<td><strong>R0.0<\/strong> &#8211; Install the jumper.<\/td>\n<td><strong>R1.0<\/strong> &#8211; Remove the jumper.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Action taken after unit is powered up<\/p>\n<\/div>\n<div style=\"clear:both\"><\/div>\n<h3>Installing Atmel SAM-BA Utility<\/h3>\n<p>Download Atmel SAM-BA utility and unzip onto your Linux development system:<\/p>\n<p><a href=\"http:\/\/www.atmel.com\/tools\/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx\">http:\/\/www.atmel.com\/tools\/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx<\/a><\/p>\n<p>Connect USB cable between Linux system and the MTCDP hardware and perform USB CDC Serial driver mount procedure:<\/p>\n<h5>Ubuntu 9.10 and older releases<\/h5>\n<ul>\n<li>Login with administrator rights<\/li>\n<li>Unload usbserial and cdc_acm module if it is already running<\/li>\n<pre class=\"brush:text\">\r\n# rmmod cdc_acm\r\n# rmmod usbserial\r\n<\/pre>\n<li>Load usbserial kernel module<\/li>\n<pre class=\"brush:text\">#modprobe usbserial vendor=0x03eb product=0x6124<\/pre>\n<li>Verify that the USB connection is established<\/li>\n<pre class=\"brush:text\">#lsusb -d 03eb:6124<\/pre>\n<li>Know which USB connection is established<\/li>\n<pre class=\"brush:text\">#dmesg\r\n...\r\nkernel: usb 4-2: new full speed USB device using uhci_hcd and address 5\r\nkernel: usb 4-2: configuration #1 chosen from 1 choice\r\nkernel: usbserial_generic 4-2:1.0: generic converter detected\r\nkernel: usbserial_generic: probe of 4-2:1.0 failed with error -5\r\nkernel: usbserial_generic 4-2:1.1: generic converter detected\r\nkernel: usb 4-2: generic converter now attached to ttyUSBx<\/pre>\n<li>You will have to use <code>\/dev\/ttyUSBx<\/code> to connect to your board<\/li>\n<\/ul>\n<h5>Ubuntu 10.04 and newer with updated kernel<\/h5>\n<ul>\n<li>If you are using a 64-bit system, ensure 32-bit libraries are installed<\/li>\n<pre class=\"brush:text\">sudo apt-get install ia32-libs<\/pre>\n<li>Check that the ACM device was detected and check the port name<\/li>\n<pre class=\"brush:text\">\r\n#dmesg\r\n...\r\nkernel: usb 4-1: new full speed USB device using ohci_hcd and address 2\r\nkernel: usb 4-1: configuration #1 chosen from 1 choice\r\nkernel: cdc_acm 4-1:1.0: This device cannot do calls on its own. It is not a modem.\r\nkernel: cdc_acm 4-1:1.0: ttyACM0: USB ACM device\r\nkernel: usbcore: registered new interface driver cdc_acm\r\nkernel: cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters\r\n  <\/pre>\n<li>Use <code>\/dev\/ttyACMX<\/code> to connect to your board<\/li>\n<\/ul>\n<h3>Running Atmel SAM-BA Utility<\/h3>\n<pre class=\"brush:text\"># .\/sam-ba<\/pre>\n<ul>\n<li>Select your board as at91sam9g20-ek and click Connect<\/li>\n<li>Select the &#8220;NandFlash&#8221; tab\n<ul>\n<li>Select the &#8220;Enable NandFlash&#8221; script and Execute<\/li>\n<li>Make sure the script executed successfully, otherwise the following steps will fail<\/li>\n<\/ul>\n<\/li>\n<li>To program bootstrap, do the following:\n<ul>\n<li>Select the &#8220;Send Boot File&#8221; script and execute\n<ul>\n<li>Select the bootstrap file to program<\/li>\n<li>Make sure bootstrap is programmed successfully.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>To program u-boot, do the following:\n<ul>\n<li>Set the address to 0x20000\n<ul>\n<li>Open and Select &#8220;Send File Name&#8221; and open the uboot bin file<\/li>\n<li>Click on Send File<\/li>\n<li>Make sure uboot bin file is programmed successfully. Click on Compare Sent File with Memory to make sure they match.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>NOTICE: The following information is for the MTCDP (CoreCDP) line of products and NOT the MTCDT Conduit. To be able to perform a bootstrap or U-Boot recovery, you must install a jumper. This jumper will enable the updating of the U-Boot area. This should only be necessary, if the Bootstrap or U-Boot memory area is [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":318,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-222","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=222"}],"version-history":[{"count":70,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/222\/revisions"}],"predecessor-version":[{"id":238,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/222\/revisions\/238"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/318"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}