aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorHamish Guthrie <hcg@openwrt.org>2007-04-10 08:58:02 +0000
committerHamish Guthrie <hcg@openwrt.org>2007-04-10 08:58:02 +0000
commit40d4978a2c0295fd6fff1ab3671e5b75304943bb (patch)
treec36b224397251a69fb7fe9f685a6721f327dfa9a /target
parent7a2d3e8ee2e6e185902117d7d1115a7a3616ecce (diff)
downloadupstream-40d4978a2c0295fd6fff1ab3671e5b75304943bb.tar.gz
upstream-40d4978a2c0295fd6fff1ab3671e5b75304943bb.tar.bz2
upstream-40d4978a2c0295fd6fff1ab3671e5b75304943bb.zip
Added erase entire flash utility to romboot.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6916 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/at91-2.6/base-files/default/sbin/ubpar0
-rw-r--r--target/linux/at91-2.6/image/romboot/patches/005-erase-flash.patch37
2 files changed, 37 insertions, 0 deletions
diff --git a/target/linux/at91-2.6/base-files/default/sbin/ubpar b/target/linux/at91-2.6/base-files/default/sbin/ubpar
deleted file mode 100755
index e69de29bb2..0000000000
--- a/target/linux/at91-2.6/base-files/default/sbin/ubpar
+++ /dev/null
diff --git a/target/linux/at91-2.6/image/romboot/patches/005-erase-flash.patch b/target/linux/at91-2.6/image/romboot/patches/005-erase-flash.patch
new file mode 100644
index 0000000000..b0ddfe3adc
--- /dev/null
+++ b/target/linux/at91-2.6/image/romboot/patches/005-erase-flash.patch
@@ -0,0 +1,37 @@
+--- romboot.old/main.cpp 2007-04-05 15:51:51.000000000 +0200
++++ romboot/main.cpp 2007-04-10 10:33:10.000000000 +0200
+@@ -34,7 +34,7 @@
+ #define DELAY_MAIN_FREQ 1000
+ #define DISP_LINE_LEN 16
+
+-#define COMPACT 1
++//#define COMPACT 1
+
+ //* prototypes
+ extern void AT91F_DBGU_Printk(char *);
+@@ -65,6 +65,7 @@
+ "3: Copy SD-Card\n\r"
+ "4: Start U-BOOT\n\r"
+ "5: Clear bootloder\n\r"
++ "6: Erase entire flash\n\r"
+ };
+
+ //* Globales variables
+@@ -555,6 +556,17 @@
+ command = 0;
+ break;
+
++ case '6':
++ {
++ int *i;
++
++ for(i = (int *)0x20000000; i < (int *)0x20840000; i++)
++ *i = 0;
++ }
++ write_dataflash(0xc0000000, 0x20000000, 0x840000);
++ command = 0;
++ break;
++
+ default:
+ command = 0;
+ break;