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

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



Thanks, Nicolas. You were absolutely right! That was an obvious solution that I was not able to see :(.

After that, U-Boot starts booting my image, but the boot process hangs:

=================================================
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: Booting from FLASH. Press 's' for image download.
FS-BOOT: Booting image...
SDRAM :
        Enabling caches :
                Icache:OK
                Dcache:OK
        U-Boot Start:0x8ffc0000
        Malloc Start:0x8ff60000
        Board Info Start:0x8ff5ffd0
        Boot Parameters Start:0x8ff4ffd0
FLASH:  8 MB
ETHERNET: MAC:00:0a:35:00:22:01

Hit any key to stop autoboot:  0
## Booting image at 888c0000 ...
   Image Name:   PetaLinux Kernel 2.6-MMU
   Image Type:   Microblaze Linux Kernel Image (uncompressed)
   Data Size:    3776656 Bytes =  3.6 MB
   Load Address: 8c000000
   Entry Point:  8c000000
   Verifying Checksum ... OK
OK


I know that this is a typical issue that a lot of newcomers face with PetaLinux. Other people reported it also, but I'm still not able to resolve it. Typically, it may come from badly mapped console (early printk), but it seems that for it is not the case.

Could you or anybody else inspect my .config file? It is likely that the problem is there. What about CONFIG_DEFAULTS_PETALOGIX? Whole .config is at http://pastebin.com/f6576888b.

asutic@aleks-ubuntu$ pwd
<my_path>/petalinux-v0.40-rc3/software/petalinux-dist

asutic@aleks-ubuntu$ cat linux-2.6.x/.config | grep -i uart
CONFIG_UARTLITE=1
CONFIG_XILINX_UARTLITE_0_INSTANCE="RS232_Uart"
CONFIG_XILINX_UARTLITE_0_FAMILY="virtex4"
CONFIG_XILINX_UARTLITE_0_SPLB_CLK_FREQ_HZ=50000000
CONFIG_XILINX_UARTLITE_0_BASEADDR=0x84000000
CONFIG_XILINX_UARTLITE_0_HIGHADDR=0x8400FFFF
CONFIG_XILINX_UARTLITE_0_SPLB_AWIDTH=32
CONFIG_XILINX_UARTLITE_0_SPLB_DWIDTH=64
CONFIG_XILINX_UARTLITE_0_SPLB_P2P=0
CONFIG_XILINX_UARTLITE_0_SPLB_MID_WIDTH=1
CONFIG_XILINX_UARTLITE_0_SPLB_NUM_MASTERS=2
CONFIG_XILINX_UARTLITE_0_SPLB_SUPPORT_BURSTS=0
CONFIG_XILINX_UARTLITE_0_SPLB_NATIVE_DWIDTH=32
CONFIG_XILINX_UARTLITE_0_BAUDRATE=115200
CONFIG_XILINX_UARTLITE_0_DATA_BITS=8
CONFIG_XILINX_UARTLITE_0_USE_PARITY=0
CONFIG_XILINX_UARTLITE_0_ODD_PARITY=0
CONFIG_XILINX_UARTLITE_0_HW_VER="1.00.a"
CONFIG_XILINX_UARTLITE_0_IRQ=8
CONFIG_XILINX_UARTLITE_NUM_INSTANCES=1
CONFIG_SERIAL_UARTLITE=y
CONFIG_SERIAL_UARTLITE_CONSOLE=y
CONFIG_EARLY_PRINTK_UARTLITE_ADDRESS=0x84000000

asutic@aleks-ubuntu$ cd ../../hardware/user-platforms/Xilinx-ML403-RevB-edk101

asutic@aleks-ubuntu$ more system.mhs
...
BEGIN xps_uartlite
 PARAMETER INSTANCE = RS232_Uart
 PARAMETER HW_VER = 1.00.a
 PARAMETER C_BAUDRATE = 115200
 PARAMETER C_DATA_BITS = 8
 PARAMETER C_ODD_PARITY = 0
 PARAMETER C_USE_PARITY = 0
 PARAMETER C_SPLB_CLK_FREQ_HZ = 50000000
 PARAMETER C_BASEADDR = 0x84000000
 PARAMETER C_HIGHADDR = 0x8400ffff
 BUS_INTERFACE SPLB = mb_plb
 PORT RX = fpga_0_RS232_Uart_RX
 PORT TX = fpga_0_RS232_Uart_TX
 PORT Interrupt = RS232_Uart_Interrupt
END
...

asutic@aleks-ubuntu$ cd -
asutic@aleks-ubuntu$ more .config
# CONFIG_DEFAULTS_PETALOGIX is not set
CONFIG_DEFAULTS_XILINX=y
# CONFIG_DEFAULTS_XILINX_ML401_LL_TEMAC_SGDMA_EDK101 is not set
# CONFIG_DEFAULTS_XILINX_ML401_LL_TEMAC_SGDMA_MMU_EDK101 is not set
CONFIG_DEFAULTS_XILINX_ML403_REVB_EDK101=y
# CONFIG_DEFAULTS_XILINX_ML505_LL_TEMAC_SGDMA_EDK101 is not set
# CONFIG_DEFAULTS_XILINX_ML505_LL_TEMAC_SGDMA_MMU_EDK101 is not set
# CONFIG_DEFAULTS_XILINX_S3DSP1800A_REV1_EDK101 is not set
# CONFIG_DEFAULTS_XILINX_S3DSP1800A_REV1_MMU_EDK101 is not set
# CONFIG_DEFAULTS_XILINX_SPARTAN3E1600_MMU is not set
# CONFIG_DEFAULTS_XILINX_SPARTAN3E1600_REVA is not set
# CONFIG_DEFAULTS_XILINX_SPARTAN3E1600_REVA_LITE_EDK101 is not set
# CONFIG_DEFAULTS_XILINX_SPARTAN3E1600_REVA_LITE_MMU_EDK101 is not set
# CONFIG_DEFAULTS_XILINX_SPARTAN3E1600_REVA_SGDMA is not set
# CONFIG_DEFAULTS_XILINX_SPARTAN3E500_MMU is not set
# CONFIG_DEFAULTS_XILINX_SPARTAN3E500_REVC is not set
# CONFIG_DEFAULTS_XILINX_SPARTAN3E500_REVC_LITE_EDK101 is not set
# CONFIG_DEFAULTS_XILINX_SPARTAN3E500_REVD is not set
# CONFIG_DEFAULTS_XILINX_SPARTAN3E500_REVD_LITE_EDK101 is not set

#
# Kernel/Library/Defaults Selection
#
# CONFIG_DEFAULTS_KERNEL_2_4 is not set
CONFIG_DEFAULTS_KERNEL_2_6=y
CONFIG_DEFAULTS_LIBC_NONE=y
# CONFIG_DEFAULTS_LIBC_UCLIBC is not set
# CONFIG_DEFAULTS_OVERRIDE is not set
# CONFIG_DEFAULTS_KERNEL is not set
# CONFIG_DEFAULTS_VENDOR is not set
# CONFIG_DEFAULTS_VENDOR_UPDATE is not set
CONFIG_VENDOR=Xilinx
CONFIG_PRODUCT=ML403-RevB-edk101
CONFIG_LINUXDIR=linux-2.6.x
CONFIG_LIBCDIR=

Thanks and regards,
Aleksandar


On Thu, Jun 4, 2009 at 10:29 PM, Nicolas Herve <nicolas.herve@xxxxxxxxx> wrote:
I add this too for my ML402 board.
I fixed it changing the partition size.
`make config_menuconfig` -> System Setting -> Flash Partition Table
setting "bootenv" and "config" to 40000 instead of 20000.

Nicolas



---
2009/6/4 Aleksandar Sutic <asutic@xxxxxxxxx>:

> 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
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/




--
Aleksandar Sutic
phone: +381 65 311 2317
e-mail: asutic@xxxxxxxxx