[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] u-boot error 'end address not on sector boundary' on ml403



Hello again,

After successfully starting u-boot on ml403 board, I've encountered a problem with ub.config.img script. Here's what I have so far:

=================================================
FS-BOOT First Stage Bootloader (c) 2006 PetaLogix
Project name: Xilinx-ML403-RevB-edk101          
Build date: Jun  3 2009 15:16:18  FS            
Serial console: Uartlite                        
=================================================
FS-BOOT: System initialisation completed.       
FS-BOOT: No existing image in FLASH.  Starting image download.
FS-BOOT: Waiting for SREC image....                          
FS-BOOT: Image download successful.                          
FS-BOOT: Warning image location differ from default boot location. Image will not boot automatically after POR.
FS-BOOT: Press 'n' to boot old image.                                                                         
FS-BOOT: Use new image.                                                                                       
FS-BOOT: Booting image...
SDRAM :
        Enabling caches :
                Icache:OK
                Dcache:OK
        U-Boot Start:0x8ffc0000
        Malloc Start:0x8ff80000
        Board Info Start:0x8ff7ffd0
        Boot Parameters Start:0x8ff6ffd0
FLASH:  8 MB
ETHERNET: MAC:00:0a:35:00:22:01

*** Warning - bad CRC, using default environment

Hit any key to stop autoboot:  0
U-Boot>
U-Boot>
U-Boot> loadb $(clobstart)
## Ready for binary (kermit) download to 0x8C000000 at 115200 bps...

(Back at aleks-ubuntu)
----------------------------------------------------
C-Kermit 8.0.211, 10 Apr 2004, for Linux
 Copyright (C) 1985, 2004,
  Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/tftpboot/) C-Kermit> send /bin /tftpboot/ub.config.img
(/tftpboot/) C-Kermit> connect
Connecting to /dev/ttyS0, speed 115200
 Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
## Total Size      = 0x00000654 = 1620 Bytes
## Start Addr      = 0x8C000000
U-Boot> autoscr $(clobstart)
## Executing script at 8c000000
PetaLogix MicroBlaze-Auto Board Configuration
---------------------------------------------
Network Configuration:
MTD Configuration:
Clobber DRAM Configuration:
Bootloader Configuration:
Kernel Configuration:
Boot Configuration:
Saving Configurations...
Saving Environment to Flash...
Error: end address not on sector boundary


Actually, this is similar to the problem described in http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2007/04/msg00018.html. I've checked the flash partition table, but it seems to be OK. Moreover, my ub.config.img file is similar to hardware/reference-designs/pre-built/Xilinx-ML401-ll_temac-sgdma-MMU-edk101/images/ub.config-2.6.img, for example (shown bellow).

Could anyone point me to the solution of this problem, especially guys who have already installed PetaLinux on an ML403 board?

Thanks in advance for your help!

Regards,
Aleksandar

echo ---------------------------------------------
echo Network Configuration:
set autoload no
set ethaddr=
set ethaddr 00:0a:35:00:22:01
set ipaddr 192.168.0.10
set serverip 192.168.0.1

echo MTD Configuration:
set mtdparts physmap-flash.0:256K(boot),128K(bootenv),128K(config),5M(image),2M(spare)
set mtdkargs mtdparts=$(mtdparts)

echo Clobber DRAM Configuration:
set clobstart 0x8c000000
set netstart 0x8c002000

echo Bootloader Configuration:
set bootsize 0x40000
set bootstart 0x88800000
set bootenvsize 0x20000
set bootenvstart 0x88840000
set eraseenv 'protect off $(bootenvstart) +$(bootenvsize); erase $(bootenvstart) +$(bootenvsize)'

echo Kernel Configuration:
set kernsize 0x500000
set kernstart 0x88880000

echo Boot Configuration:
set make_cmdline 'setenv netkargs macaddr=$(ethaddr);setenv bootargs $(mtdkargs) $(netkargs)'
set bootcmd 'run make_cmdline; bootm $(kernstart)'
set bootdelay 4

set load_kernel 'tftp $(clobstart) image.ub'
set install_kernel 'protect off $(kernstart) +$(kernsize);erase $(kernstart) +$(kernsize); cp.b $(fileaddr) $(kernstart) $(filesize)'
set update_kernel run load_kernel install_kernel

set load_uboot 'tftp $(clobstart) u-boot-s.bin'
set install_uboot 'protect off $(bootstart) +$(bootsize);erase $(bootstart) +$(bootsize);cp.b $(clobstart) $(bootstart) $(filesize)'
set update_uboot run load_uboot install_uboot
set netboot 'run make_cmdline;tftp ${netstart} image.ub; bootm'

echo Saving Configurations...
saveenv

echo Configuration Completed