View Single Post
Old 07-04-2015, 09:14 PM   #6
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
It works for me on the H2O.

Your script:

Code:
+ PLATFORM=freescale
+ dd if=/dev/mmcblk0 bs=512 skip=1024 count=1
+ grep -c HW CONFIG
1+0 records in
1+0 records out
512 bytes (512B) copied, 0.000754 seconds, 663.1KB/s
+ [ 1 == 1 ]
+ ntx_hwconfig -s -p /dev/mmcblk0 CPU
+ CPU=mx50
+ PLATFORM=mx50-ntx
+ [ -f /etc/u-boot/mx50-ntx/u-boot.recovery ]
+ dd if=/etc/u-boot/mx50-ntx/u-boot.recovery of=/dev/mmcblk0 bs=128k count=1 seek=6
1+0 records in
1+0 records out
131072 bytes (128.0KB) copied, 0.001900 seconds, 65.8MB/s
+ sync
+ reboot
My script:

Code:
+ recovery
+ dd if=/dev/mmcblk0 bs=128k count=1 skip=6 of=/tmp/u-boot.cur
1+0 records in
1+0 records out
131072 bytes (128.0KB) copied, 0.029423 seconds, 4.2MB/s
+ cmp /tmp/u-boot.cur /etc/u-boot/freescale/u-boot.mmc
/tmp/u-boot.cur /etc/u-boot/freescale/u-boot.mmc differ: char 1, line 1
+ cmp /tmp/u-boot.cur /etc/u-boot/mx50-ntx/u-boot.mmc
+ dirname /etc/u-boot/mx50-ntx/u-boot.mmc
+ dd if=/etc/u-boot/mx50-ntx/u-boot.recovery of=/dev/mmcblk0 bs=128k count=1 seek=6
1+0 records in
1+0 records out
131072 bytes (128.0KB) copied, 0.020337 seconds, 6.1MB/s
+ success
frostschutz is offline   Reply With Quote