[prev in list] [next in list] [prev in thread] [next in thread]
List: uclinux-dev
Subject: Re: [uClinux-dev] ROMFS troubles
From: rwarner <rwarner () kuttatech ! com>
Date: 2008-06-26 17:48:34
Message-ID: 4863D672.1000503 () kuttatech ! com
[Download RAW message or body]
Greg Ungerer wrote:
> Hi Steven,
>
> steven taffs wrote:
>> still cant get to ROMFS loaded, I downloaded a uClinux-dist-2005 and
>> copyed my linux-2.6.x directory into it and now I can compile jffs2
>> but that still doesnt help me load the ROMFS
>>
>> I am currently loading the romfs image from flash @ 0x180000 into ram
>> at 0x1001c26c (_ebss) using the cp.b uboot command and then executing
>> the kernel with go 0x80000.
>> uclinux.c seems to be working however I get
> >
>> Kernel panic - not syncing: No init found. Try passing init= option
>> to kernel
>
> Booting to this point suggests that your are past mounting
> the ROMfs.
>
> Do you have a valid "/sbin/init", "/etc/init", "/bin/init" or
> "/bin/sh" in your ROMfs for the kernel to run?
>
>
>> if I dont copy ROMFS from flash to ram before executing the kernel
>>
>> VFS fails to mount a file system, so the kernel must be seeing
>> something has anyone get any ideas ? the full kernel output follows
>>
>> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
>> loop: loaded (max 8 devices)
>> uclinux[mtd]: RAM probe address=0x1001c26c size=0x100000
>> Creating 1 MTD partitions on "RAM":
>> 0x00000000-0x00100000 : "ROMfs"
>> mtd: Giving out device 0 to ROMfs
>> uclinux[mtd]: set ROMfs to be root filesystem
>> *****
>> VFS: test name = </dev/root>
>> VFS: fs_name = <romfs>
>> mtdblock_open
>> ok
>> mtdblock: read on "ROMfs" at 0x0, size 0x200
>> mtdblock: read on "ROMfs" at 0x200, size 0x200
>> VFS: Mounted root (romfs filesystem) readonly.
>> VFS: tried fs_name = <romfs> err 0
>> Freeing init memory: 4K
>> mtdblock: read on "ROMfs" at 0x3000, size 0x200
>> mtdblock: read on "ROMfs" at 0x3200, size 0x200
>> Warning: unable to open an initial console.
>
> Have you created device nodes in your ROMfs?
>
>
>> mtdblock: read on "ROMfs" at 0xc00, size 0x200
>> mtdblock: read on "ROMfs" at 0xe00, size 0x200
>> Kernel panic - not syncing: No init found. Try passing init= option
>> to kernel.
>
Having just gone through this. You be missing the the poriotn of the
Vendor Make file. Example on the AT91 is:
DEVICES = \
tty,c,5,0 console,c,5,1 cua0,c,5,64 cua1,c,5,65 \
\
mem,c,1,1 kmem,c,1,2 null,c,1,3 ram0,b,1,0 \
ram1,b,1,1 \
\
<snip>
ttypc,c,3,12 ttypd,c,3,13 ttype,c,3,14 ttypf,c,3,15 \
\
mtd0,c,90,0 mtd1,c,90,2 mtd2,c,90,4 \
\
mtdblock0,b,31,0 mtdblock1,b,31,2 mtdblock2,b,31,4 \
\
zero,c,1,5 random,c,1,8 urandom,c,1,9
hths - bob
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic