Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.