From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by ozlabs.org (Postfix) with ESMTP id 2DA40DDDF5 for ; Mon, 17 Nov 2008 01:21:54 +1100 (EST) Received: by fg-out-1718.google.com with SMTP id d23so1818908fga.39 for ; Sun, 16 Nov 2008 06:21:52 -0800 (PST) Message-ID: <9c789a000811160621o2ffb9051qff57d006a3af60f@mail.gmail.com> Date: Sun, 16 Nov 2008 16:21:52 +0200 From: "Cristian Axenie" To: "Nicholas Mc Guire" , linuxppc-embedded@ozlabs.org, "Joachim Foerster" Subject: Re: USB Flash rootfs prep! In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_29294_18305269.1226845312294" References: <9c789a000811141705k245e4447k8a9be8e4f180c3f8@mail.gmail.com> <1226737139.17218.14.camel@md40100b.ft> <9c789a000811150112q3088a044ub8b38489b2119a60@mail.gmail.com> <9c789a000811150112i484baa39y846bbf38ed6e1bb8@mail.gmail.com> <9c789a000811150217o3c08e94ar3f99eda848822e62@mail.gmail.com> <9c789a000811150315u3e390a49gf8fa16c16adfbf51@mail.gmail.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_29294_18305269.1226845312294 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sat, Nov 15, 2008 at 6:02 PM, Nicholas Mc Guire wrote: > > > > > > > I mount my ext2.img and run ls -l and I get > > > > crw-r----- 1 root root 5, 1 2008-11-15 02:24 console > > > > I think is not ok ?! > > > > > > thats fine - so that should not be your problem. > > what is the console device set to ? can you pass it an explicid > > console=/dev/ttyS0 or the like to map it to a device that exists for sure > and is in /dev/ ? off course you also have to check that the driver > support is in the kernel. > > hofrat I've managed to solve my problem. I took a clean ramdisk (that came with the ELDK) mount it , added my needed libs, devs and test apps , then generated an ramdisk.img (using genext2fs) , compressed it and then created an uBoot image file. The modified rootfs is now on my USB Flash stick and it works. My USB Flash rootfs is loaded properly by the kernel and related to my initial problem, to be more specific, I've created a root filesystem on my USB Flash stick where I added the xenomai dir (including /bin /lib /include...) generated during the Xenomai (from the trunk) install and also the devices rtheap rtp0... in the /dev directory of my FS. I also used the proper libc-2.6 standard shared libraries so the dynamic linker does't send a SIGSEGV anymore and I am able now to run ./latency or ./cyclictest). I don't receive SegFault anymore. Thanks to all, Cristian ------=_Part_29294_18305269.1226845312294 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On Sat, Nov 15, 2008 at 6:02 PM, Nicholas Mc Guire <hofrat@hofr.at> wrote:
> >
>
> I mount my ext2.img and run ls -l and I get
>
> crw-r----- 1 root root   5,   1 2008-11-15 02:24 console
>
> I think is not ok ?!
>
>

thats fine - so that should not be your problem.

what is the console device set to ? can you pass it an explicid

console=/dev/ttyS0 or the like to map it to a device that exists for sure
and is in /dev/ ? off course you also have to check that the driver
support is in the kernel.

hofrat
 
I've managed to solve my problem. I took a clean ramdisk (that came with the ELDK) mount it , added my needed libs, devs and test apps , then generated an ramdisk.img (using genext2fs) , compressed it and then created an uBoot image file. The modified rootfs is now on my USB Flash stick and it works.
My USB Flash rootfs is loaded properly by the kernel and related to my initial problem, to be more specific,  I've created a root filesystem on my USB Flash stick where I added the xenomai dir (including /bin /lib /include...) generated during the Xenomai (from the trunk) install and also the devices rtheap rtp0... in the /dev directory of my FS. I also used the proper libc-2.6 standard shared libraries so the dynamic linker does't send a SIGSEGV anymore and  I am able now to run ./latency or ./cyclictest). I don't receive SegFault anymore.

Thanks to all,
Cristian
------=_Part_29294_18305269.1226845312294--