{"id":66,"date":"2010-10-13T19:44:42","date_gmt":"2010-10-13T19:44:42","guid":{"rendered":"https:\/\/olkn.homelinux.net\/?p=66"},"modified":"2010-10-13T19:44:42","modified_gmt":"2010-10-13T19:44:42","slug":"uboot-install-on-dockstar","status":"publish","type":"post","link":"https:\/\/olkn.myvnc.com\/?p=66","title":{"rendered":"uboot install on dockstar"},"content":{"rendered":"<p>-bash-3.2# cd \/tmp\/<br \/>\n-bash-3.2# wget http:\/\/jeff.doozan.com\/debian\/uboot\/install_uboot_mtd0.sh<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nwget: cannot connect to remote host (69.163.187.226): Network is unreachable<br \/>\n-bash-3.2# route add default gw 192.168.4.250<br \/>\n-bash: route: command not found<br \/>\n-bash-3.2# \/sbin\/route add default gw 192.168.4.250<br \/>\n-bash-3.2# wget http:\/\/jeff.doozan.com\/debian\/uboot\/install_uboot_mtd0.sh<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\ninstall_uboot_mtd0.s 100% |******************************************************************************************************************************************| 15859  00:00:00 ETA<br \/>\n-bash-3.2# ls<br \/>\ninstall_uboot_mtd0.sh  resolv.conf            var<br \/>\n-bash-3.2# chmod +x install_uboot_mtd0.sh<br \/>\n-bash-3.2# .\/install_uboot_mtd0.sh<\/p>\n<p>!!!!!!  DANGER DANGER DANGER DANGER DANGER DANGER  !!!!!!<\/p>\n<p>If you lose power to your device while running this script,<br \/>\nit could be left in an unusable state.<\/p>\n<p>This script will replace the bootloader on \/dev\/mtd0.<\/p>\n<p>This installer will only work on a Seagate Dockstar or Pogoplug Pink.<br \/>\nDo not run this installer on any other device.<\/p>\n<p>By typing ok, you agree to assume all liabilities and risks<br \/>\nassociated with running this installer.<\/p>\n<p>If you agree, type &#8216;ok&#8217; and press ENTER to continue: ok<\/p>\n<p>DISABLE POGOPLUG SERVICES<\/p>\n<p>The pogoplug service includes an auto-update feature which could<br \/>\nbe used to cripple or disable your device.  It is recommended<br \/>\nthat you disable this service.<\/p>\n<p>NOTE: The pogoplug service is proprietary software<br \/>\ncreated by Cloud Engines.  It is not available for use<br \/>\nin other distributions and will not be available in<br \/>\nyour new linux installation even if you choose not to disable it.<\/p>\n<p>Would you like to disable the pogoplug services? [Y\/n] Y<br \/>\nApplying fixes to the pogoplug environment&#8230;<br \/>\nDisabling the pogoplug service&#8230;<br \/>\nDone fixing pogoplug environment.<\/p>\n<p># checking for \/uboot-original-mtd0.kwb&#8230;<\/p>\n<p># Installing \/uboot-original-mtd0.kwb&#8230;<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nuboot-original-mtd0. 100% |******************************************************************************************************************************************|    49  &#8211;:&#8211;:&#8211; ETA<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nuboot-original-mtd0. 100% |******************************************************************************************************************************************|   512k 00:00:00 ETA<br \/>\n# Successfully installed \/uboot-original-mtd0.kwb.<br \/>\n# checking for \/usr\/sbin\/blparam&#8230;<\/p>\n<p># Installing \/usr\/sbin\/blparam&#8230;<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nblparam.md5          100% |******************************************************************************************************************************************|    42  &#8211;:&#8211;:&#8211; ETA<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nblparam              100% |******************************************************************************************************************************************| 14168  00:00:00 ETA<br \/>\n# Successfully installed \/usr\/sbin\/blparam.<br \/>\n# checking for \/usr\/sbin\/nandwrite&#8230;<\/p>\n<p># Installing \/usr\/sbin\/nandwrite&#8230;<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nnandwrite.md5        100% |******************************************************************************************************************************************|    44  &#8211;:&#8211;:&#8211; ETA<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nnandwrite            100% |******************************************************************************************************************************************| 11500  &#8211;:&#8211;:&#8211; ETA<br \/>\n# Successfully installed \/usr\/sbin\/nandwrite.<br \/>\n# checking for \/usr\/sbin\/nanddump&#8230;<\/p>\n<p># Installing \/usr\/sbin\/nanddump&#8230;<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nnanddump.md5         100% |******************************************************************************************************************************************|    43  &#8211;:&#8211;:&#8211; ETA<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nnanddump             100% |******************************************************************************************************************************************| 21286  &#8211;:&#8211;:&#8211; ETA<br \/>\n# Successfully installed \/usr\/sbin\/nanddump.<br \/>\n# checking for \/usr\/sbin\/flash_erase&#8230;<\/p>\n<p># Installing \/usr\/sbin\/flash_erase&#8230;<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nflash_erase.md5      100% |******************************************************************************************************************************************|    46  &#8211;:&#8211;:&#8211; ETA<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nflash_erase          100% |******************************************************************************************************************************************| 12819  &#8211;:&#8211;:&#8211; ETA<br \/>\n# Successfully installed \/usr\/sbin\/flash_erase.<br \/>\n# checking for \/usr\/sbin\/fw_printenv&#8230;<\/p>\n<p># Installing \/usr\/sbin\/fw_printenv&#8230;<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nfw_printenv.md5      100% |******************************************************************************************************************************************|    46  &#8211;:&#8211;:&#8211; ETA<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nfw_printenv          100% |******************************************************************************************************************************************|   652k 00:00:00 ETA<br \/>\n# Successfully installed \/usr\/sbin\/fw_printenv.<br \/>\n# checking for \/etc\/fw_env.config&#8230;<\/p>\n<p># Installing \/etc\/fw_env.config&#8230;<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nfw_env.config.md5    100% |******************************************************************************************************************************************|    48  &#8211;:&#8211;:&#8211; ETA<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nfw_env.config        100% |******************************************************************************************************************************************|   329  &#8211;:&#8211;:&#8211; ETA<br \/>\n# Successfully installed \/etc\/fw_env.config.<\/p>\n<p># Attempting to auto-detect your device&#8230;Dockstar detected<\/p>\n<p># Installing uBoot<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nuboot.mtd0.kwb.md5   100% |******************************************************************************************************************************************|    49  &#8211;:&#8211;:&#8211; ETA<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nuboot.mtd0.kwb       100% |******************************************************************************************************************************************|   512k 00:00:00 ETA<br \/>\nErase Total 4 Units<br \/>\nPerforming Flash Erase of length 131072 at offset 0x60000 done<br \/>\nWriting data to block 0 at offset 0x0<br \/>\nWriting data to block 1 at offset 0x20000<br \/>\nWriting data to block 2 at offset 0x40000<br \/>\nWriting data to block 3 at offset 0x60000<br \/>\nBlock size 131072, page size 2048, OOB size 64<br \/>\nDumping data starting at 0x00000000 and ending at 0x00080000&#8230;<br \/>\n## Verifying new uBoot&#8230;<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nuboot.mtd0.kwb.md5   100% |******************************************************************************************************************************************|    49  &#8211;:&#8211;:&#8211; ETA<br \/>\n# Verified successfully!<\/p>\n<p># Installing uBoot environment<br \/>\nWarning: Bad CRC, using default environment<br \/>\n## Error: &#8220;ethaddr&#8221; not defined<br \/>\nWarning: Bad CRC, using default environment<br \/>\n## Error: &#8220;rescue_installed&#8221; not defined<br \/>\nWarning: Bad CRC, using default environment<br \/>\n## Error: &#8220;bootcmd_rescue&#8221; not defined<br \/>\nWarning: Bad CRC, using default environment<br \/>\n## Error: &#8220;rescue_custom_params&#8221; not defined<br \/>\nWarning: Bad CRC, using default environment<br \/>\n## Error: &#8220;usb_custom_params&#8221; not defined<br \/>\nWarning: Bad CRC, using default environment<br \/>\n## Error: &#8220;ubifs_custom_params&#8221; not defined<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nuboot.environment.md 100% |******************************************************************************************************************************************|    52  &#8211;:&#8211;:&#8211; ETA<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nuboot.environment    100% |******************************************************************************************************************************************|   128k 00:00:00 ETA<br \/>\nErase Total 1 Units<br \/>\nPerforming Flash Erase of length 131072 at offset 0xc0000 done<br \/>\nWriting data to block 6 at offset 0xc0000<\/p>\n<p># Verifying uBoot environment<br \/>\nECC failed: 6<br \/>\nECC corrected: 0<br \/>\nNumber of bad blocks: 0<br \/>\nNumber of bbt blocks: 0<br \/>\nBlock size 131072, page size 2048, OOB size 64<br \/>\nDumping data starting at 0x000c0000 and ending at 0x000e0000&#8230;<br \/>\nConnecting to jeff.doozan.com (69.163.187.226:80)<br \/>\nuboot.environment.md 100% |******************************************************************************************************************************************|    52  &#8211;:&#8211;:&#8211; ETA<\/p>\n<p># uBoot installation has completed successfully.<br \/>\n-bash-3.2# \/usr\/bin\/f<br \/>\nfdformat        find            flash_eraseall  fold            free            ftpget          ftpput          fuser<br \/>\n-bash-3.2# \/usr\/sbin\/fw_<br \/>\nfw_printenv  fw_setenv<br \/>\n-bash-3.2# \/usr\/sbin\/fw_printenv<br \/>\nethact=egiga0<br \/>\nbootdelay=3<br \/>\nbaudrate=115200<br \/>\narcNumber=2097<br \/>\nmainlineLinux=yes<br \/>\nconsole=ttyS0,115200<br \/>\nled_init=green blinking<br \/>\nled_exit=green off<br \/>\nled_error=orange blinking<br \/>\nmtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)<br \/>\nmtdids=nand0=orion_nand<br \/>\npartition=nand0,2<br \/>\nstdin=serial<br \/>\nstdout=serial<br \/>\nstderr=serial<br \/>\nrescue_installed=0<br \/>\nrescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params<br \/>\nrescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi<br \/>\npogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi<br \/>\nforce_rescue=0<br \/>\nforce_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 \/rescueme 1 || fatload usb 0:1 0x1700000 \/rescueme.txt 1; then run rescue_bootcmd; fi<br \/>\nubifs_mtd=3<br \/>\nubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params<br \/>\nubifs_bootcmd=run ubifs_set_bootargs; if ubi part data &#038;&#038; ubifsmount rootfs &#038;&#038; ubifsload 0x800000 \/boot\/uImage &#038;&#038; ubifsload 0x1100000 \/boot\/uInitrd; then bootm 0x800000 0x1100000; fi<br \/>\nusb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 &#038;&#038; ext2load usb $usb 0x800000 \/boot\/uImage 1; then usb_scan_done=1; echo &#8220;Found bootable drive on usb $usb&#8221;; setenv usb_device $usb; setenv usb_root \/dev\/$dev; fi; done<br \/>\nusb_scan_list=1 2 3 4<br \/>\nusb_scan_1=usb=0:1 dev=sda1<br \/>\nusb_scan_2=usb=1:1 dev=sdb1<br \/>\nusb_scan_3=usb=2:1 dev=sdc1<br \/>\nusb_scan_4=usb=3:1 dev=sdd1<br \/>\nusb_init=run usb_scan<br \/>\nusb_device=0:1<br \/>\nusb_root=\/dev\/sda1<br \/>\nusb_rootfstype=ext2<br \/>\nusb_rootdelay=10<br \/>\nusb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params<br \/>\nusb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot<br \/>\nusb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 \/boot\/uImage; if ext2load usb $usb_device 0x1100000 \/boot\/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi<br \/>\nbootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset<br \/>\nethaddr=00:10:75:1A:D3:B0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>-bash-3.2# cd \/tmp\/ -bash-3.2# wget http:\/\/jeff.doozan.com\/debian\/uboot\/install_uboot_mtd0.sh Connecting to jeff.doozan.com (69.163.187.226:80) wget: cannot connect to remote host (69.163.187.226): Network is unreachable -bash-3.2# route add default gw 192.168.4.250 -bash: route: command not found -bash-3.2# \/sbin\/route add default gw 192.168.4.250 -bash-3.2# wget http:\/\/jeff.doozan.com\/debian\/uboot\/install_uboot_mtd0.sh Connecting to jeff.doozan.com (69.163.187.226:80) install_uboot_mtd0.s 100% |******************************************************************************************************************************************| 15859 00:00:00 ETA -bash-3.2# ls install_uboot_mtd0.sh resolv.conf var &hellip; <a href=\"https:\/\/olkn.myvnc.com\/?p=66\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">uboot install on dockstar<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[51,54,73,117,127],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-dockstar","tag-debian","tag-dockstar","tag-install","tag-sheeva","tag-uboot"],"_links":{"self":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66"}],"version-history":[{"count":0,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts\/66\/revisions"}],"wp:attachment":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}