linux-um.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [uml-devel] I met a question in building the root_fs of UML
       [not found] <200701171159003590471@software.ict.ac.cn>
@ 2007-01-17  5:19 ` Qin An
  2007-01-17 15:57   ` Blaisorblade
  0 siblings, 1 reply; 2+ messages in thread
From: Qin An @ 2007-01-17  5:19 UTC (permalink / raw)
  To: user-mode-linux-devel

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


Hi wstearns,

I now use the UML to do my jobs. However, it is my first time to use the system, and met a problem in building my own root_fs.

I downloaded the scripts in http://www.stearns.org/mkrootfs/ and run the commands

# ./mkrootfs

It run not very well but  finially finished and got a file 'root_fs'. I booted the UML using the file.

# linux ubd0=root_fs

It was so pity that it didn't work and said:

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

How to do next? Could you give me some advices?

Thanks a lot~

-------------
Qin An
2007-01-17

Research Center for Grid and Service Computing
Institute of Computing Technology, Chinese Academy of Sciences
P.O.Box 2704, 100080, Beijing, China
Tel: 86-10-62600974
Email: qinan@software.ict.ac.cn

[-- Attachment #2: uml-boot.log --]
[-- Type: application/octet-stream, Size: 3176 bytes --]

Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking for tmpfs mount on /dev/shm...OK
Checking PROT_EXEC mmap in /dev/shm/...OK
Checking for the skas3 patch in the host:
  - /proc/mm...not found
  - PTRACE_FAULTINFO...not found
  - PTRACE_LDT...not found
UML running in SKAS0 mode
Linux version 2.6.17 (root@RH9) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Jan 11 21:48:37 CST 2007
Built 1 zonelists
Kernel command line: ubd0=root_fs root=98:0
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29876k available
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
/usr/include/linux/aio_abi.h not present during build
2.6 host AIO support not used - falling back to I/O thread
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 256 (order: -2, 1024 bytes)
TCP established hash table entries: 1024 (order: 2, 16384 bytes)
TCP bind hash table entries: 512 (order: 1, 10240 bytes)
TCP: Hash tables configured (established 1024 bind 512)
TCP reno registered
Checking host MADV_REMOVE support...OK
mconsole (version 2) initialized on /root/.uml/0eodH3/mconsole
Host TLS support detected
Detected host type: i386
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
 ubda: unknown partition table
VFS: Mounted root (ext2 filesystem) readonly.
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
 
EIP: 0073:[<ffffe410>] CPU: 0 Not tainted ESP: 007b:b7f6ffc0 EFLAGS: 00200246
    Not tainted
EAX: 00000000 EBX: 000018b5 ECX: 00000013 EDX: 000018b5
ESI: 000018b1 EDI: 00000000 EBP: b7f6ffdc DS: 007b ES: 007b
0824bb70:  [<0806d9f7>] show_regs+0x9f/0xbb
0824bb9c:  [<0805b022>] panic_exit+0x25/0x3f
0824bbac:  [<0808095b>] notifier_call_chain+0x1c/0x3c
0824bbcc:  [<080809fb>] atomic_notifier_call_chain+0x15/0x1a
0824bbe0:  [<08072ffa>] panic+0x4b/0xd6
0824bbf8:  [<080564ac>] init+0x124/0x134
0824bc20:  [<08067540>] run_kernel_thread+0x4b/0x4f
0824bcdc:  [<0805b45f>] new_thread_handler+0xaa/0xf7
0824bd1c:  [<420275c8>] 0x420275c8

 <3>Trying to free free IRQ2
Trying to free free IRQ3
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK


[-- Attachment #3: mkrfs.log --]
[-- Type: application/octet-stream, Size: 8385 bytes --]

[-- Attachment #4: Type: text/plain, Size: 347 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #5: Type: text/plain, Size: 194 bytes --]

_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] I met a question in building the root_fs of UML
  2007-01-17  5:19 ` [uml-devel] I met a question in building the root_fs of UML Qin An
@ 2007-01-17 15:57   ` Blaisorblade
  0 siblings, 0 replies; 2+ messages in thread
From: Blaisorblade @ 2007-01-17 15:57 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Qin An

On Wednesday 17 January 2007 06:19, Qin An wrote:
> Hi wstearns,
>
> I now use the UML to do my jobs. However, it is my first time to use the
> system, and met a problem in building my own root_fs.

> I downloaded the scripts in http://www.stearns.org/mkrootfs/ and run the
> commands
>
> # ./mkrootfs
>
> It run not very well but  finially finished and got a file 'root_fs'. I
> booted the UML using the file.
>
> # linux ubd0=root_fs
>
> It was so pity that it didn't work and said:
>
> Kernel panic - not syncing: No init found.  Try passing init= option to
> kernel.

Then the root_fs built wasn't correct. Loop mount it and look to see what 
happened.

We cannot diagnose why without the error messages, but I'm not sure whether 
mkrootfs still works well, and I cannot say whether UML boots at all there 
(there are buggy releases out there).

> How to do next? Could you give me some advices?

Download a pre-built root_fs from here:
http://uml.nagafix.co.uk/
Or follow the installation log of your chosen root_fs and follow it.

> Thanks a lot~
>
> -------------
> Qin An
> 2007-01-17
>
> Research Center for Grid and Service Computing
> Institute of Computing Technology, Chinese Academy of Sciences
> P.O.Box 2704, 100080, Beijing, China
> Tel: 86-10-62600974
> Email: qinan@software.ict.ac.cn

-- 
Inform me of my mistakes, so I can add them to my list!
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

end of thread, other threads:[~2007-01-17 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200701171159003590471@software.ict.ac.cn>
2007-01-17  5:19 ` [uml-devel] I met a question in building the root_fs of UML Qin An
2007-01-17 15:57   ` Blaisorblade

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