LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-03-2011, 09:23 PM   #16
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90

I recompiled with the modification they placed there and now UML moves a little further... but crashes nevertheless.

Code:
VFS: Cannot open root device "98:0" or unknown-block(98,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(98,0)
1805cee8:  [<081a9071>] dump_stack+0x18/0x1c
1805cefc:  [<081a90c2>] panic+0x4d/0x135
1805cf30:  [<080498cc>] mount_block_root+0x1e5/0x1fb
1805cf84:  [<0804992e>] mount_root+0x4c/0x54
1805cfa8:  [<08049a49>] prepare_namespace+0x113/0x13a
1805cfb0:  [<0804961a>] kernel_init+0xe4/0xf0
1805cfbc:  [<0805e5d2>] run_kernel_thread+0x38/0x42
1805cfe8:  [<080573bb>] new_thread_handler+0x52/0x7a
1805cffc:  [<00000000>] 0x0


EIP: 0073:[<00cb8416>] CPU: 0 Not tainted ESP: 007b:bfcfb914 EFLAGS: 00200246
    Not tainted
EAX: 00000000 EBX: 0000324c ECX: 00000013 EDX: 0000324c
ESI: 00003248 EDI: 0000002f EBP: bfcfb934 DS: 007b ES: 007b
1805ce98:  [<0806342e>] show_regs+0xc5/0xcb
1805cec4:  [<08059054>] panic_exit+0x1e/0x34
1805ced4:  [<0807fb3c>] notifier_call_chain+0x25/0x4a
1805cefc:  [<0807fb8f>] atomic_notifier_call_chain+0x15/0x17
1805cf0c:  [<081a90dd>] panic+0x68/0x135
1805cf30:  [<080498cc>] mount_block_root+0x1e5/0x1fb
1805cf84:  [<0804992e>] mount_root+0x4c/0x54
1805cfa8:  [<08049a49>] prepare_namespace+0x113/0x13a
1805cfb0:  [<0804961a>] kernel_init+0xe4/0xf0
1805cfbc:  [<0805e5d2>] run_kernel_thread+0x38/0x42
1805cfe8:  [<080573bb>] new_thread_handler+0x52/0x7a
1805cffc:  [<00000000>] 0x0

Violación de segmento
Will try a clean recompile to see what happens. So who's to blame here? The compiler?
 
Old 05-03-2011, 09:51 PM   #17
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
The problem was reported on lkml: https://lkml.org/lkml/2011/3/31/323

Just wrote to the person who reported it... let's see if he can give me some sort of advice on this.... I'll keep you posted if I find/hear something
 
Old 05-03-2011, 09:58 PM   #18
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
I'll try to recompile with gcc 4.4 which is installed on my box. Le's see how it goes.
 
Old 05-03-2011, 10:18 PM   #19
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by eantoranz View Post
Don't go mad.
I won't bother you any more now. Good luck with your project.
 
Old 05-03-2011, 10:34 PM   #20
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Anisha, don't leave me alone!

I just checked and the crash I'm seeing now after the patch is the one that's in your linked tutorial. I'm rebuilding with 4.4 (again) at the time.... from vanilla kernel (no patch) to see what happens.
 
Old 05-03-2011, 10:44 PM   #21
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
It's working. By changing the compiler and rebuilding it started working.

Code:
make ARCH=um CC=gcc-4.4
Then in order to run it:
Code:
$ ../Linux/linux-2.6.38.3/linux ubda=rootfs_debian mem=256M
Locating the bottom of the address space ... 0x10000
Locating the top of the address space ... 0xc0000000
Core dump limits :
        soft - 0
        hard - NONE
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: No such file or directory
  - PTRACE_FAULTINFO...not found
  - PTRACE_LDT...not found
UML running in SKAS0 mode
Adding 3792896 bytes to physical memory to account for exec-shield gap
Linux version 2.6.38.3 (antoranz@nano) (gcc version 4.4.5 (Ubuntu/Linaro 4.4.5-15ubuntu1) ) #1 Tue May 3 22:40:27 COT 2011
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65942
Kernel command line: ubda=rootfs_debian mem=256M root=98:0
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 255448k available
NR_IRQS:15
Calibrating delay loop... 1468.00 BogoMIPS (lpj=7340032)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Checking for host processor cmov support...Yes
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
Using 2.6 host AIO
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource itimer
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
mconsole (version 2) initialized on /home/antoranz/.uml/weJwvc/mconsole
Checking host MADV_REMOVE support...OK
Host TLS support detected
Detected host type: i386 (GDT indexes 6 to 9)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 498
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
TCP cubic registered
NET: Registered protocol family 17
Switched to NOHz mode on CPU #0
Initialized stdio console driver
Console initialized on /dev/tty0
console [tty0] enabled
Initializing software serial port version 1
console [mc-1] enabled
 ubda: unknown partition table
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (ubda): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) readonly on device 98:0.
modprobe: FATAL: Could not load /lib/modules/2.6.38.3/modules.dep: No such file or directory

INIT: version 2.86 booting
hostname: the specified hostname is invalid
Setting the system clock.
modprobe: FATAL: Could not load /lib/modules/2.6.38.3/modules.dep: No such file or directory

hwclock is unable to get I/O port access:  the iopl(3) call failed.
Unable to set System Clock to: Wed May 4 03:41:57 UTC 2011 (warning).
Activating swap...done.
Checking root file system...fsck 1.41.3 (12-Oct-2008)
ROOT: clean, 21008/65536 files, 151168/262144 blocks
done.
EXT3-fs (ubda): using internal journal
Setting the system clock.
modprobe: FATAL: Could not load /lib/modules/2.6.38.3/modules.dep: No such file or directory

hwclock is unable to get I/O port access:  the iopl(3) call failed.
Unable to set System Clock to: Wed May 4 03:42:00 UTC 2011 (warning).
Cleaning up ifupdown....
Loading kernel modules...FATAL: Could not load /lib/modules/2.6.38.3/modules.dep: No such file or directory
Loading device-mapper support.
Checking file systems...fsck 1.41.3 (12-Oct-2008)
done.
Setting kernel variables (/etc/sysctl.conf)...done.
Mounting local filesystems...failed.
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...modprobe: FATAL: Could not load /lib/modules/2.6.38.3/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.38.3/modules.dep: No such file or directory

SIOCSIFADDR: No such device
modprobe: FATAL: Could not load /lib/modules/2.6.38.3/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.38.3/modules.dep: No such file or directory

eth0: ERROR while getting interface flags: No such device
modprobe: FATAL: Could not load /lib/modules/2.6.38.3/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.38.3/modules.dep: No such file or directory

SIOCSIFNETMASK: No such device
modprobe: FATAL: Could not load /lib/modules/2.6.38.3/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.38.3/modules.dep: No such file or directory

eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.
done.
INIT: Entering runlevel: 2
Starting system log daemon....
Starting kernel log daemon....
Starting OpenBSD Secure Shell server: sshd.
sshd (532): /proc/532/oom_adj is deprecated, please use /proc/532/oom_score_adj instead.
Not starting internet superserver: no services enabled.
Starting periodic command scheduler: crond.

Debian GNU/Linux 5.0 (none) tty0

(none) login:
Quite a ride.
 
  


Reply

Tags
abort, linux, uml



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
draw UML from java code xeon123 Linux - Newbie 1 04-27-2011 12:49 PM
Exit Code wasamzy Linux - Server 1 11-26-2010 03:11 AM
LXer: Transform UML model into actual Java source code LXer Syndicated Linux News 0 05-30-2007 11:03 PM
LXer: Create and transform a UML 2.0 model into code LXer Syndicated Linux News 0 03-28-2006 03:10 PM
UML and C++ code generation Gªutama Linux - Software 2 11-13-2003 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration