linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Cristian Axenie" <cristian.axenie@gmail.com>
To: linuxppc-embedded@ozlabs.org
Subject: USB Flash rootfs prep!
Date: Sat, 15 Nov 2008 03:05:38 +0200	[thread overview]
Message-ID: <9c789a000811141705k245e4447k8a9be8e4f180c3f8@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2386 bytes --]

Hello all !
I'm porting a former Control application from x86 (Linux+RTAI+Comedi) to
PowerPC (Xenomai+Comedi for RTDM). I've choosed for my development the ELDK
tool and a MPC8315ERDB platform. So I 've properly patched and build my
kernel with the Xenomai support and I get some errors when running a latency
test app. I've managed to spot the problem , that consists in an
incompatibility between the shared libraries used on the target (ver 2.5)
and the standard libraries used (and with which were compiled the kernel and
the Xenomai addon) version 2.6, and so ld screams and a SegFault appears.
Now I,ve creted an ext2.img rootfs with the rootfs.tar.gz from
/eldk/ppc_6xx/images and I've added in the rootfs some libs and other useful
stuff for Xenomai for elliminating the need for an NFS mount.
My primary concern is now to write the new FS to a USB Flash Stick so that I
can test if the latency tests works now when the libs are compatible (ver
2.6).
So resuming I want to now what are the corect steps to do this, because I've
tried to write the generated ext2.img to my USB flash stick (formated as
ext2) and added to the uBoot bootargs to the following :

setenv usbstick_args setenv bootargs root=/dev/sdb1 ro rootdelay=10
rootfstype=ext2 console=$consoledev,$baudrate;
setenv usbstick 'run usbstick_args;bootm fe500000 - fe700000'
setenv bootcmd run usbstick

As a result I get the following output :

Waiting 10sec before mounting root device...
scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Micro     0.1  PQ: 0 ANSI: 2
sd 2:0:0:0: [sdb] 2001888 512-byte hardware sectors (1025 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] 2001888 512-byte hardware sectors (1025 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg1 type 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 156k init
Warning: unable to open an initial console.
Failed to execute /bin/busybox.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to
kernel.
Rebooting in 180 seconds..

Shall I explicitly give the init ? What should be ... init=/sbin/init,
init=/bin/busybox ????

Thanks in advance !!!

Best regards ,
Cristian

[-- Attachment #2: Type: text/html, Size: 2597 bytes --]

             reply	other threads:[~2008-11-15  1:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-15  1:05 Cristian Axenie [this message]
2008-11-15  8:18 ` USB Flash rootfs prep! Joachim Foerster
     [not found]   ` <9c789a000811150112q3088a044ub8b38489b2119a60@mail.gmail.com>
2008-11-15  9:12     ` Cristian Axenie
2008-11-15 10:01       ` Nicholas Mc Guire
2008-11-15 10:17         ` Cristian Axenie
2008-11-15 10:40           ` Nicholas Mc Guire
2008-11-15 11:15             ` Cristian Axenie
2008-11-15 12:12               ` Cristian Axenie
     [not found]               ` <Pine.LNX.4.58.0811150700530.5061@vlab.hofr.at>
2008-11-16 14:21                 ` Cristian Axenie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9c789a000811141705k245e4447k8a9be8e4f180c3f8@mail.gmail.com \
    --to=cristian.axenie@gmail.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).