Reply by Suresh September 8, 20102010-09-08
Hi
for compiling U-boot for nand the only 1 flag I set,

I guess the problem with u-boot, could u please let me know the steps to
compile the u-boot-1.1.5 for 16 bit Nand flash?

Regards
Suresh

On Tue, Sep 7, 2010 at 1:04 PM, cvs sandeep wrote:

>
> Hi
>
> You had set all the arguments using setenv cmd?
> if then u need to save it by the cmd savenv.
> Thanks and Regards,
>
> C.V.SANDEEP On Tue, Sep 7, 2010 at 9:36 AM, Suresh wrote:
>
>> Hi
>> I was using at91sam9263ek board,
>>
>> so far I flashed kernel and u-boot on dataflash and file system on nand
>> flash 16 bit its working fine ( atmel board)
>>
>> now I want to shift the kernel -2.6.24 and u-boot( 1.1.5 ) to nand flash (
>> 16bit) I have a problem after I cross compiled( for Arm ) and flashed to
>> nand.
>>
>> the following is the debug info I found, while flashing I do set the
>> environment variables, but after flashing at u-boot, bootcmd, and bootargs
>> and ethaddr etc were missing ....
>>
>> please any one help me out!
>> I tried to set the env variables with setenv as follows but still cannot
>> work out
>>
>> bootargs="memdM console=ttyS0,115200 root=/dev/mtdblock1 rw
>> rootfstype=jffs2"
>> bootcmd="nand read $kernelLoadAddr $kernelUbootAddr $kernelSize
>>
>> the variables are the memory address in the batch file I created to flash
>> to nand
>>
>> Regards
>> SN
>> ==========================================>> U-Boot 1.1.5 (Sep 2 2010 - 15:59:35)
>> DRAM: 64 MB
>> NAND: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron NAND
>> 256MiB 3,3V 16-bit)
>> NAND: Pagesize: 2048, Blocksize: 128K, OOBsize: 64
>> 256 MiB
>> *** Warning - bad CRC or NAND, using default environment
>> End of Autonegociation
>> In: serial
>> Out: serial
>> Err: serial
>> DM9161A PHY Detected
>> End of Autonegociation
>> U-Boot>
>> U-Boot>
>> U-Boot> printenv
>> bootdelay=3
>> baudrate5200
>> stdin=serial
>> stdout=serial
>> stderr=serial
>> Environment size: 69/131067 bytes
>> U-Boot> help
>> ? - alias for 'help'
>> autoscr - run script from memory
>> base - print or set address offset
>> boot - boot default, i.e., run 'bootcmd'
>> bootd - boot default, i.e., run 'bootcmd'
>> bootm - boot application image from memory
>> bootp - boot image via network using BootP/TFTP protocol
>> cls - clear screen
>> cmp - memory compare
>> coninfo - print console devices and information
>> cp - memory copy
>> crc32 - checksum calculation
>> echo - echo args to console
>> erase - erase FLASH memory
>> fatinfo - print information about filesystem
>> fatload - load binary file from a dos filesystem
>> fatls - list files in a directory (default /)
>> flinfo - print FLASH memory information
>> go - start application at address 'addr'
>> help - print online help
>> itest - return true/false on integer compare
>> loadb - load binary file over serial line (kermit mode)
>> loady - load binary file over serial line (ymodem mode)
>> loop - infinite loop on address range
>> md - memory display
>> mm - memory modify (auto-incrementing)
>> mtest - simple RAM test
>> mw - memory write (fill)
>> nand - NAND sub-system
>> nboot - boot from NAND device
>> nfs - boot image via network using NFS protocol
>> nm - memory modify (constant address)
>> printenv- print environment variables
>> protect - enable or disable FLASH write protection
>> rarpboot- boot image via network using RARP/TFTP protocol
>> reset - Perform RESET of the CPU
>> run - run commands in an environment variable
>> saveenv - save environment variables to persistent storage
>> setenv - set environment variables
>> tftpboot- boot image via network using TFTP protocol
>> usb - USB sub-system
>> usbboot - boot from USB device
>> version - print monitor version
>> U-Boot>
>>
>
Reply by Suresh September 7, 20102010-09-07
Hi Sandeep,

Thanks for ur response!
Ya I do the command Saveenv, the following is the error it comes out!, any
Idea ?
*U-Boot> saveenv
Saving Environment to NAND...
Erasing Nand...nand_erase: attempt to erase a bad block at page 0x000000c0
Erasing redundant Nand...nand_erase: attempt to erase a bad block at page
0x0000
0100
U-Boot>End of Autonegociation

*
On Tue, Sep 7, 2010 at 1:04 PM, cvs sandeep wrote:

>
> Hi
>
> You had set all the arguments using setenv cmd?
> if then u need to save it by the cmd savenv.
> Thanks and Regards,
>
> C.V.SANDEEP On Tue, Sep 7, 2010 at 9:36 AM, Suresh wrote:
>
>> Hi
>> I was using at91sam9263ek board,
>>
>> so far I flashed kernel and u-boot on dataflash and file system on nand
>> flash 16 bit its working fine ( atmel board)
>>
>> now I want to shift the kernel -2.6.24 and u-boot( 1.1.5 ) to nand flash (
>> 16bit) I have a problem after I cross compiled( for Arm ) and flashed to
>> nand.
>>
>> the following is the debug info I found, while flashing I do set the
>> environment variables, but after flashing at u-boot, bootcmd, and bootargs
>> and ethaddr etc were missing ....
>>
>> please any one help me out!
>> I tried to set the env variables with setenv as follows but still cannot
>> work out
>>
>> bootargs="memdM console=ttyS0,115200 root=/dev/mtdblock1 rw
>> rootfstype=jffs2"
>> bootcmd="nand read $kernelLoadAddr $kernelUbootAddr $kernelSize
>>
>> the variables are the memory address in the batch file I created to flash
>> to nand
>>
>> Regards
>> SN
>> ==========================================>> U-Boot 1.1.5 (Sep 2 2010 - 15:59:35)
>> DRAM: 64 MB
>> NAND: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron NAND
>> 256MiB 3,3V 16-bit)
>> NAND: Pagesize: 2048, Blocksize: 128K, OOBsize: 64
>> 256 MiB
>> *** Warning - bad CRC or NAND, using default environment
>> End of Autonegociation
>> In: serial
>> Out: serial
>> Err: serial
>> DM9161A PHY Detected
>> End of Autonegociation
>> U-Boot>
>> U-Boot>
>> U-Boot> printenv
>> bootdelay=3
>> baudrate5200
>> stdin=serial
>> stdout=serial
>> stderr=serial
>> Environment size: 69/131067 bytes
>> U-Boot> help
>> ? - alias for 'help'
>> autoscr - run script from memory
>> base - print or set address offset
>> boot - boot default, i.e., run 'bootcmd'
>> bootd - boot default, i.e., run 'bootcmd'
>> bootm - boot application image from memory
>> bootp - boot image via network using BootP/TFTP protocol
>> cls - clear screen
>> cmp - memory compare
>> coninfo - print console devices and information
>> cp - memory copy
>> crc32 - checksum calculation
>> echo - echo args to console
>> erase - erase FLASH memory
>> fatinfo - print information about filesystem
>> fatload - load binary file from a dos filesystem
>> fatls - list files in a directory (default /)
>> flinfo - print FLASH memory information
>> go - start application at address 'addr'
>> help - print online help
>> itest - return true/false on integer compare
>> loadb - load binary file over serial line (kermit mode)
>> loady - load binary file over serial line (ymodem mode)
>> loop - infinite loop on address range
>> md - memory display
>> mm - memory modify (auto-incrementing)
>> mtest - simple RAM test
>> mw - memory write (fill)
>> nand - NAND sub-system
>> nboot - boot from NAND device
>> nfs - boot image via network using NFS protocol
>> nm - memory modify (constant address)
>> printenv- print environment variables
>> protect - enable or disable FLASH write protection
>> rarpboot- boot image via network using RARP/TFTP protocol
>> reset - Perform RESET of the CPU
>> run - run commands in an environment variable
>> saveenv - save environment variables to persistent storage
>> setenv - set environment variables
>> tftpboot- boot image via network using TFTP protocol
>> usb - USB sub-system
>> usbboot - boot from USB device
>> version - print monitor version
>> U-Boot>
>>
>
Reply by cvs sandeep September 7, 20102010-09-07
Hi

You had set all the arguments using setenv cmd?
if then u need to save it by the cmd savenv.
Thanks and Regards,

C.V.SANDEEP

On Tue, Sep 7, 2010 at 9:36 AM, Suresh wrote:

> Hi
> I was using at91sam9263ek board,
>
> so far I flashed kernel and u-boot on dataflash and file system on nand
> flash 16 bit its working fine ( atmel board)
>
> now I want to shift the kernel -2.6.24 and u-boot( 1.1.5 ) to nand flash (
> 16bit) I have a problem after I cross compiled( for Arm ) and flashed to
> nand.
>
> the following is the debug info I found, while flashing I do set the
> environment variables, but after flashing at u-boot, bootcmd, and bootargs
> and ethaddr etc were missing ....
>
> please any one help me out!
> I tried to set the env variables with setenv as follows but still cannot
> work out
>
> bootargs="memdM console=ttyS0,115200 root=/dev/mtdblock1 rw
> rootfstype=jffs2"
> bootcmd="nand read $kernelLoadAddr $kernelUbootAddr $kernelSize
>
> the variables are the memory address in the batch file I created to flash
> to nand
>
> Regards
> SN
> ==========================================> U-Boot 1.1.5 (Sep 2 2010 - 15:59:35)
> DRAM: 64 MB
> NAND: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron NAND
> 256MiB 3,3V 16-bit)
> NAND: Pagesize: 2048, Blocksize: 128K, OOBsize: 64
> 256 MiB
> *** Warning - bad CRC or NAND, using default environment
> End of Autonegociation
> In: serial
> Out: serial
> Err: serial
> DM9161A PHY Detected
> End of Autonegociation
> U-Boot>
> U-Boot>
> U-Boot> printenv
> bootdelay=3
> baudrate5200
> stdin=serial
> stdout=serial
> stderr=serial
> Environment size: 69/131067 bytes
> U-Boot> help
> ? - alias for 'help'
> autoscr - run script from memory
> base - print or set address offset
> boot - boot default, i.e., run 'bootcmd'
> bootd - boot default, i.e., run 'bootcmd'
> bootm - boot application image from memory
> bootp - boot image via network using BootP/TFTP protocol
> cls - clear screen
> cmp - memory compare
> coninfo - print console devices and information
> cp - memory copy
> crc32 - checksum calculation
> echo - echo args to console
> erase - erase FLASH memory
> fatinfo - print information about filesystem
> fatload - load binary file from a dos filesystem
> fatls - list files in a directory (default /)
> flinfo - print FLASH memory information
> go - start application at address 'addr'
> help - print online help
> itest - return true/false on integer compare
> loadb - load binary file over serial line (kermit mode)
> loady - load binary file over serial line (ymodem mode)
> loop - infinite loop on address range
> md - memory display
> mm - memory modify (auto-incrementing)
> mtest - simple RAM test
> mw - memory write (fill)
> nand - NAND sub-system
> nboot - boot from NAND device
> nfs - boot image via network using NFS protocol
> nm - memory modify (constant address)
> printenv- print environment variables
> protect - enable or disable FLASH write protection
> rarpboot- boot image via network using RARP/TFTP protocol
> reset - Perform RESET of the CPU
> run - run commands in an environment variable
> saveenv - save environment variables to persistent storage
> setenv - set environment variables
> tftpboot- boot image via network using TFTP protocol
> usb - USB sub-system
> usbboot - boot from USB device
> version - print monitor version
> U-Boot>
>
>
Reply by Suresh September 7, 20102010-09-07
Hi
I was using at91sam9263ek board,

so far I flashed kernel and u-boot on dataflash and file system on nand
flash 16 bit its working fine ( atmel board)

now I want to shift the kernel -2.6.24 and u-boot( 1.1.5 ) to nand flash (
16bit) I have a problem after I cross compiled( for Arm ) and flashed to
nand.

the following is the debug info I found, while flashing I do set the
environment variables, but after flashing at u-boot, bootcmd, and bootargs
and ethaddr etc were missing ....

please any one help me out!
I tried to set the env variables with setenv as follows but still cannot
work out

bootargs="memdM console=ttyS0,115200 root=/dev/mtdblock1 rw
rootfstype=jffs2"
bootcmd="nand read $kernelLoadAddr $kernelUbootAddr $kernelSize

the variables are the memory address in the batch file I created to flash to
nand

Regards
SN
==========================================U-Boot 1.1.5 (Sep 2 2010 - 15:59:35)
DRAM: 64 MB
NAND: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron NAND 256MiB
3,3V 16-bit)
NAND: Pagesize: 2048, Blocksize: 128K, OOBsize: 64
256 MiB
*** Warning - bad CRC or NAND, using default environment
End of Autonegociation
In: serial
Out: serial
Err: serial
DM9161A PHY Detected
End of Autonegociation
U-Boot>
U-Boot>
U-Boot> printenv
bootdelay=3
baudrate5200
stdin=serial
stdout=serial
stderr=serial
Environment size: 69/131067 bytes
U-Boot> help
? - alias for 'help'
autoscr - run script from memory
base - print or set address offset
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
cls - clear screen
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
echo - echo args to console
erase - erase FLASH memory
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
flinfo - print FLASH memory information
go - start application at address 'addr'
help - print online help
itest - return true/false on integer compare
loadb - load binary file over serial line (kermit mode)
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing)
mtest - simple RAM test
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
tftpboot- boot image via network using TFTP protocol
usb - USB sub-system
usbboot - boot from USB device
version - print monitor version
U-Boot>