linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* USB Flash rootfs prep!
@ 2008-11-15  1:05 Cristian Axenie
  2008-11-15  8:18 ` Joachim Foerster
  0 siblings, 1 reply; 9+ messages in thread
From: Cristian Axenie @ 2008-11-15  1:05 UTC (permalink / raw)
  To: linuxppc-embedded

[-- 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 --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-11-16 14:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-15  1:05 USB Flash rootfs prep! Cristian Axenie
2008-11-15  8:18 ` 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

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).