[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



Nicolas,

I found out what was the problem. Actually, I enabled the MMU support in kernel, but I omitted to do it in XPS (MicroBlaze IP configuration).

After this modification (no MMU support for now), kernel starts booting but I encountered similar issue with what you described at http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2009/05/msg00044.html (kernel log is shown bellow):

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

At first I also didn't have CONFIG_ROOT_NFS=y, but even after I followed the instruction in the thread, still similar NFS problem exists. Or is it really NFS?

Do you or anybody else have any idea what am I doing wrong? Could you share your config with me again? I didn't get it in the attachment.

> petalinux-send-configs | grep NFS

CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_ROOT_NFS=y
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
CONFIG_USER_BUSYBOX_NFSMOUNT=y

Linux version 2.6.20-uc0 (asutic@aleks-ubuntu) (gcc version 3.4.1 ( PetaLinux 0.20 Build -rc1 050607 )) #23 Mon Jun 8 11:42:04 CEST 2009
setup_cpuinfo: initialising                                                                                                            
setup_cpuinfo: No PVR support in CPU.  Using static compile-time info                                                                  
set_cpuinfo_static: Using static CPU info.
setup_memory: max_mapnr: 0x8ffff
setup_memory: min_low_pfn: 0x8c000
setup_memory: max_low_pfn: 0x4000
On node 0 totalpages: 16384
  DMA zone: 128 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 16256 pages, LIFO batch:3
  Normal zone: 0 pages used for memmap
Built 1 zonelists.  Total pages: 16256
Kernel command line:
OPB INTC #0 at 0x81800000
PID hash table entries: 256 (order: 8, 1024 bytes)
TIMER at 0x83C00000
disabling early console
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 62968k/65536k available
Calibrating delay loop... 49.66 BogoMIPS (lpj=248320)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
xgpio0 #0 at 0x81400000 mapped to 0x81400000 device: 10,185 using IRQ#7
xgpio1 #1 at 0x81420000 mapped to 0x81420000 device: 10,186 using IRQ#6
xgpio2 #2 at 0x81440000 mapped to 0x81440000 device: 10,187 using IRQ#5
uartlite.0: ttyUL0 at MMIO 0x84000000 (irq = 8) is a uartlite
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
eth0: using fifo mode.
eth0: No PHY detected.  Assuming a PHY at address 0.
eth0: Xilinx EMACLite #0 at 0x81000000 mapped to 0x81000000, irq=2
Generic platform RAM MTD, (c) 2004 Simtec Electronics
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "<NULL>" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)



On Fri, Jun 5, 2009 at 10:59 PM, Aleksandar SUTIC <asutic@xxxxxxxxx> wrote:
       Thanks a lot, Nicolas. I'll check everything again and post my findings here. I really hope that everything will start to work. It would be a truly nice start of the week :-).

       I'm using EDK 10.1 and, if I recall correctly, the frequency is 100MHz.



Nicolas Herve wrote:
You may try to adapt my linux-2.6/.config.
Our boards are similar and peripheral adresses seams to match ...
See attach files if it helps you find what is missing.


maybe this is wrong :
CONFIG_XILINX_UARTLITE_0_SPLB_CLK_FREQ_HZ=50000000

if I compare with what you send my output of command
`cat linux-2.6.x/.config|grep -i uart` gives

CONFIG_UARTLITE=1
# Definitions for UARTLITE_0
CONFIG_XILINX_UARTLITE_0_INSTANCE="RS232_Uart"
CONFIG_XILINX_UARTLITE_0_FAMILY="virtex4"
CONFIG_XILINX_UARTLITE_0_SPLB_CLK_FREQ_HZ=100000000
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=0
CONFIG_XILINX_UARTLITE_NUM_INSTANCES=1
CONFIG_SERIAL_UARTLITE=y
CONFIG_SERIAL_UARTLITE_CONSOLE=y
CONFIG_EARLY_PRINTK_UARTLITE_ADDRESS=0x84000000


and I have just this in my system.mhs

BEGIN xps_uartlite
 PARAMETER INSTANCE = RS232_Uart
 PARAMETER HW_VER = 1.00.a
 PARAMETER C_BAUDRATE = 115200
 PARAMETER C_ODD_PARITY = 0
 PARAMETER C_USE_PARITY = 0
 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

What version of EDK are you using ?
Did you set all your system to run at 50MHz ?
Try 100.

Nicolas