Re: [U-Boot] Can't read kernel if bad blocks are present in partition

2012-05-02 Thread Alexandre Gambier
Assuming you load the kernel to ram with tftp (and that AppKernel is an mtdparts partition in NAND), then you could do: nand erase.part AppKernel tftp $load_addr uImage crc32 $load_addr $filesize nand write.i $load_addr AppKernel $filesize nand read.i $load_addr AppKernel $filesize crc32

Re: [U-Boot] Can't read kernel if bad blocks are present in partition

2012-04-27 Thread Alexandre Gambier
Hi, Did you use nand write.i to write the kernel and nand read.i to read the kernel? the .i tells u-boot to skip bad blocks... No I use nand read $load_addr AppKernel cause I didn't know we can use nand read.i - help nand doesn't display this information. I tried nand read.i and now it works

Re: [U-Boot] Can't read kernel if bad blocks are present in partition

2012-04-27 Thread Peter Barada
On 04/27/2012 03:16 AM, Alexandre Gambier wrote: Hi, Did you use nand write.i to write the kernel and nand read.i to read the kernel? the .i tells u-boot to skip bad blocks... No I use nand read $load_addr AppKernel cause I didn't know we can use nand read.i - help nand doesn't display

Re: [U-Boot] Can't read kernel if bad blocks are present in partition

2012-04-27 Thread Scott Wood
On 04/27/2012 09:29 AM, Peter Barada wrote: On 04/27/2012 03:16 AM, Alexandre Gambier wrote: Hi, Did you use nand write.i to write the kernel and nand read.i to read the kernel? the .i tells u-boot to skip bad blocks... No I use nand read $load_addr AppKernel cause I didn't know we can use

Re: [U-Boot] Can't read kernel if bad blocks are present in partition

2012-04-27 Thread Scott Wood
On 04/27/2012 02:16 AM, Alexandre Gambier wrote: Hi, Did you use nand write.i to write the kernel and nand read.i to read the kernel? the .i tells u-boot to skip bad blocks... No I use nand read $load_addr AppKernel cause I didn't know we can use nand read.i - help nand doesn't display

[U-Boot] Can't read kernel if bad blocks are present in partition

2012-04-26 Thread Alexandre Gambier
Hi, I'm working on a STM chip under linux and U-Boot 1.3.1. Here's my problem. To boot linux up I load the kernel stored in a NAND device. If a bad block is present in the nand I can't load the kernel. To store the kernel I first erase the partition and write the kernel image. During the

Re: [U-Boot] Can't read kernel if bad blocks are present in partition

2012-04-26 Thread Peter Barada
On 04/26/2012 07:27 AM, Alexandre Gambier wrote: Hi, I'm working on a STM chip under linux and U-Boot 1.3.1. Here's my problem. To boot linux up I load the kernel stored in a NAND device. If a bad block is present in the nand I can't load the kernel. To store the kernel I first erase the

Re: [U-Boot] Can't read kernel if bad blocks are present in partition

2012-04-26 Thread Scott Wood
On 04/26/2012 12:11 PM, Peter Barada wrote: On 04/26/2012 07:27 AM, Alexandre Gambier wrote: Hi, I'm working on a STM chip under linux and U-Boot 1.3.1. Here's my problem. To boot linux up I load the kernel stored in a NAND device. If a bad block is present in the nand I can't load the