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

RE: [microblaze-uclinux] Cannot use root FS via NFS.



Well, I don't need initrd actually, I want mount ramdisk (with ext2 FS
on it), that's all, I'm not going to switch to another FS after boot.
However as I cannot see from do_mounts how to use RAMDISK unless floppy
is used... and compilation fails if I enable CONFIG_BLK_DEV_FD:

make[4]: Entering directory
`/home/leonid/LM125/uClinux/petalinux-v0.10-rc1/software/uClinux-2.4.x/d
rivers/block'
microblaze-uclinux-gcc -D__KERNEL__
-I/home/leonid/LM125/uClinux/petalinux-v0.10-rc1/software/uClinux-2.4.x/
include  -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -g
-fno-strict-aliasing -fno-common -O2 -fno-builtin -DNO_MM -DNO_FPU
-D__ELF__ -DMAGIC_ROM_PTR  -D__linux__
-I/home/leonid/LM125/uClinux/petalinux-v0.10-rc1/tools/linux-i386/microb
laze-uclinux-tools/bin/../lib/gcc/microblaze-uclinux/3.4.1/./include
-mxl-barrel-shift -mno-xl-soft-div -mxl-soft-mul   -nostdinc
-iwithprefix include -DKBUILD_BASENAME=floppy  -c -o floppy.o floppy.c
In file included from floppy.c:171:
/home/leonid/LM125/uClinux/petalinux-v0.10-rc1/software/uClinux-2.4.x/in
clude/linux/mc146818rtc.h:17:59: asm/mc146818rtc.h: No such file or
directory
floppy.c:233:24: asm/floppy.h: No such file or directory
floppy.c:403: error: `N_DRIVE' undeclared here (not in a function)
............................................................ 

-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx
[mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of John
Williams
Sent: Thursday, February 01, 2007 5:06 PM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: Re: [microblaze-uclinux] Cannot use root FS via NFS.

Leonid wrote:
> On Thursday, February 01, 2007 4:20 PM John Williams
> 
>>Remember that the petalinux / uClinux-dist tools create dev nodes with
> 
> 
>>names like romfs/dev/@console,c,5,0, and then genromfs or gencramfs
> 
> turn 
> 
>>those into real device nodes in the filesystem image.  If you mount
> 
> your 
> 
>>root over NFS you have to make them proper devnodes on the host.
> 
> Yes, now it works, thanks a lot.
> 
> But to get it working I have disabled uclinux generic MTD map. Now if
I
> want to have root filesystem on RAMDISK, can it be done with the same
> kernel image? I am going to specify "root=/dev/ram rw" in kernel
command
> line. What config options shall I use?

I'm not sure what you're trying to achieve - initrd like desktop 
systems, or something else?

I haven't had a need to use initrd on the MicroBlaze, so can't give you 
the step-by-step.  It will be just like any other Linux system.  Lots of

docs out there on initrd - this one's probably a reasonable starting
point:

http://www.charmed.com/txt/initrd.txt

Cheers,

John
___________________________
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/


___________________________
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/