[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] RomFS problems if trying to bypass u-boot
Hi,
I am trying to run Petalinux on a custom Xilinx Microblaze board and at the same time on a Spartan-3E board. I have been able to follow the basic Petalogix tutorial that sets up the board such that fs-boot is loaded with the FPGA bitstream -> this loads u-boot -> this in turn loads the kernel image. All this works ok.
I have been conducting tests on both boards to see whether I can bypass u-boot and simply run the kernel from RAM (after it has been loaded by some other process). Using "make menuconfig", I unchecked the "Build U-boot" option and rebuilt the kernel using "make all". Using Xilinx SDK, I then attempted to download the kernel directly to RAM by downloading the image.elf, which I believe contains the Linux kernel and RomFS in elf format (http://developer.petalogix.com/wiki/UserGuide/Basics/BuildingPetaLinux). However, I found that romfs is not found. See below for text. I get the
impression that regardless of whether we build u-boot or not, the kernel still requires u-boot (or something) to set up some memory locations for it i.e. romfs and other init areas.
If I try to download romfs alone (it is one of the results of the compiling process) in the address shown in the first line, it is found BUT has problems with the init resulting in another Kernel Panic. I assume I am overwriting some vital information.
Does anyone know how we can overcome this? Is there some linker file or configuration option that needs to be modified to solve this? Does anyone know where the address come from? Would be grateful for any help.
Best Regards,
Mario
***
Found romfs @ 0x8c17208c (0x00000000)
#### klimit 8c186000 ####
Moving 0x00000000 bytes from 0x8c17208c to 0x8c185e0c
New klimit: 0x8c186000
Linux version 2.6.20-uc0-g1c9d91c7-dirty (mjt@ubuntu) (gcc version 3.4.1 ( PetaLinux 0.20 Build -rc1 050607 )) #32 Wed Jun 17 00:58:56 BST 2009
setup_cpuinfo: initialising
setup_cpuinfo: Using full CPU PVR support
setup_memory: max_mapnr: 0x8dfff
setup_memory: min_low_pfn: 0x8c000
setup_memory: max_low_pfn: 0x2000
On node 0 totalpages: 8192
DMA zone: 64 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 8128 pages, LIFO batch:0
Normal zone: 0 pages used for memmap
Built 1 zonelists. Total pages: 8128
Kernel command line:
OPB INTC #0 at 0x81800000
PID hash table entries: 128 (order: 7, 512 bytes)
TIMER at 0x83C00000
disabling early console
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 30920k/32768k available
Calibrating delay loop... 49.56 BogoMIPS (lpj=247808)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Bluetooth: Core ver 2.11
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 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 0x81420000 mapped to 0x81420000 device: 10,185 using IRQ#4
xgpio1 #1 at 0x81440000 mapped to 0x81440000 device: 10,186 using IRQ#3
xgpio2 #2 at 0x81400000 mapped to 0x81400000 device: 10,187 using IRQ#2
uartlite.0: ttyUL0 at MMIO 0x84000000 (irq = 6) 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=1
uclinux[mtd]: RAM probe address=0x8c185e0c size=0x0
Creating 1 MTD partitions on "RAM":
0x00000000-0x00000000 : "ROMfs"
mtd: partition "ROMfs" is out of reach -- disabled
uclinux[mtd]: set ROMfs to be root filesystem index=0
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCI H4 protocol initialized
Bluetooth: HCI BCSP protocol initialized
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.8
end_request: I/O error, dev mtdblock0, sector 2
EXT2-fs: unable to read superblock
end_request: I/O error, dev mtdblock0, sector 0
FAT: unable to read boot sector
VFS: Cannot open root device "<NULL>" or unknown-block(31,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,0)
<0>Rebooting in 120 seconds..Machine restart...
**********
TRW Limited
Registered in England, No. 872948
Registered Office Address: Stratford Road, Solihull B90 4AX
___________________________
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/