[U-Boot] [PATCH] Don't tftp to unknown flash

2008-09-01 Thread Jochen Friedrich
If a board has a variable number of flash banks, there are empty entries
in flash_info[] and CFG_DIRECT_FLASH_TFTP is set, tftp boot fails with
Outside available Flash. This patch skips flash banks with unknown
flash ids.

Signed-off-by: Jochen Friedrich [EMAIL PROTECTED]
---
 net/tftp.c |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/tftp.c b/net/tftp.c
index 84d83ca..5fbcbc3 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -111,7 +111,8 @@ store_block (unsigned block, uchar * src, unsigned len)

for (i=0; iCFG_MAX_FLASH_BANKS; i++) {
/* start address in flash? */
-   if (load_addr + offset = flash_info[i].start[0]) {
+   if ((flash_info[i].flash_id != FLASH_UNKNOWN) 
+   (load_addr + offset = flash_info[i].start[0])) {
rc = 1;
break;
}
-- 
1.5.6.5

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCHv2] Don't tftp to unknown flash

2008-09-02 Thread Jochen Friedrich
If a board has a variable number of flash banks, there are empty entries
in flash_info[] and CFG_DIRECT_FLASH_TFTP is set, tftp boot fails with
Outside available Flash. This patch skips flash banks with unknown
flash ids.

Signed-off-by: Jochen Friedrich [EMAIL PROTECTED]
---
 net/tftp.c |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/tftp.c b/net/tftp.c
index 84d83ca..9aeecb8 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -111,6 +111,8 @@ store_block (unsigned block, uchar * src, unsigned len)

for (i=0; iCFG_MAX_FLASH_BANKS; i++) {
/* start address in flash? */
+   if (flash_info[i].flash_id == FLASH_UNKNOWN)
+   continue;
if (load_addr + offset = flash_info[i].start[0]) {
rc = 1;
break;
-- 
1.5.6.5

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] TR: u-boot SquashFS

2010-12-01 Thread Jochen Friedrich
Hi Gaƫtan,

 I am looking for a u-boot that handles SquashFS filesystem ?
 Did it exist ? if not can I have some indication or recommendation
 Because I want to try to upgrade u-boot such that it handles SquashFS

Tuxbox has such an u-boot version, see:
http://cvs.tuxbox.org/cgi-bin/viewcvs.cgi/tuxbox/boot/

However, IIRC the patches are against an acient version of u-boot and 
only cover squashfs v3.

Thanks,
Jochen
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] sa1100 change get_timer(base) to return time since base

2010-04-02 Thread Jochen Friedrich
similar to 274737e5eb25b2bcd3af3a96da923effd543284f

This patch changes get_timer() for sa1100 to return the time since
'base' instead of the time since the counter was at zero.

Symptom seen is flash timeout errors when erasing or programming a
sector using the common cfi flash code.

Signed-off-by: Jochen Friedrich joc...@scram.de
---
 cpu/sa1100/timer.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpu/sa1100/timer.c b/cpu/sa1100/timer.c
index 0207501..aea90ab 100644
--- a/cpu/sa1100/timer.c
+++ b/cpu/sa1100/timer.c
@@ -41,7 +41,7 @@ void reset_timer (void)
 
 ulong get_timer (ulong base)
 {
-   return get_timer_masked ();
+   return get_timer_masked () - base;
 }
 
 void set_timer (ulong t)
-- 
1.7.0.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] sa1100 change get_timer(base) to return time since base

2010-05-16 Thread Jochen Friedrich
similar to 274737e5eb25b2bcd3af3a96da923effd543284f

This patch changes get_timer() for sa1100 to return the time since
'base' instead of the time since the counter was at zero.

Symptom seen is flash timeout errors when erasing or programming a
sector using the common cfi flash code.

Signed-off-by: Jochen Friedrich joc...@scram.de
---
 arch/arm/cpu/sa1100/timer.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/cpu/sa1100/timer.c b/arch/arm/cpu/sa1100/timer.c
index 0207501..aea90ab 100644
--- a/arch/arm/cpu/sa1100/timer.c
+++ b/arch/arm/cpu/sa1100/timer.c
@@ -41,7 +41,7 @@ void reset_timer (void)
 
 ulong get_timer (ulong base)
 {
-   return get_timer_masked ();
+   return get_timer_masked () - base;
 }
 
 void set_timer (ulong t)
-- 
1.7.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] sa1100 change get_timer(base) to return time since base

2010-06-02 Thread Jochen Friedrich
Hi Kristoffer,

 Did this get applied anywhere? Fail to see it inside the git log.

Nope, I didn't get any response yet.

Thanks,
Jochen
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] sa1100 change get_timer(base) to return time since base

2010-06-28 Thread Jochen Friedrich
Hi Andrew,

 I see the cfi_flash code now has reset_timer calls sprinkled through
 it that should make the base offset functionality in the timer mostly
 a nop (assuming it's implemented).  Maybe the OP has old cfi_flash
 code?

You're right. reset_timer() was added in commit 
22d6c8faac4e9fa43232b0cf4da427ec14d72ad3, which was committed after 
i submitted this patch.

Thanks,
Jochen
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot