On Wed, May 19, 2010 at 17:29, Nikola Simidzievski
<nikola.simidziev...@gmail.com> wrote:
> Hello,
>
> I have several problems with UML with kernel 2-4.24. I need this particular
> kernel to run on my Ubuntu (2-6.33) but a can't figure it out what might be
> the problem. I try to build it "by the book" (patching it with uml-2-4.24-1)
> and configuring it but I can't build it. I keeps putting up errors with
> incompatibility headers or variables.I tried to change some of them but as
> I'm getting deeper in the code the errors get worser. Can I get this running
> on my machine at all ,or am I hopelessly trying?

> I need this particular
> kernel because of the netbus and hostap patches for it.

OK, if you really want that kernel, and if you do not want to just run
it under KVM (which requires support from the host processor), or QEMU
(hopelessly slow), it's a matter of how many patches you need. Uml has
never been _that_ easily portable. But at the time, I packaged myself
some bugfixes to UML, to run on slightly newer kernels, and while the
website is down, I will send them to you in a private mail. If you
don't know who I am, just look up 'Blaisorblade' on the Internet: I
was UML co-maintainer.

Since 2.4 kernels are relatively similar, you might want to try
patchsets 2.4.28-bs2 or 2.4.32-bs3. They apply _more or less_ to any
2.4 kernel (more or less). I suggest you that first you try to get,
say, a 2.4.28 kernel running (which might work with my patchset or
might require a bit more work), and then backport to 2.4.24 the needed
fixes (which should be easy enough).
Or you might really want to boot it with an older host kernel. Say
inside another non-UML virtual machine (if it works at all, I'm not
that sure). Newer the host distro, more trouble you get. Those patches
worked fine at the release date on the host 2.6 kernel I used, kind of
the latest released, but we are talking about May 2006.

Anyway, I'm going to send you the next mail (to avoid sending big
attachments on-list), with both the packaged and splitout patches.
Note: they already _include_ the 2.4.24-1 patch.

> Also I downloaded nucleus called linux-wl-2.6 (it's compiled 2-4.24 for 2.6
> hosts) but my UML keeps crushing with
> ============================================
> Checking for the skas3 patch in the host...not found
> Checking for /proc/mm...not found
> Kernel virtual memory size shrunk to 239075328 bytes
> tracing thread pid = 20844
> Checking for /dev/anon on the host...Not available (open failed with errno
> 2)
> Checking for /dev/anon on the host...Not available (open failed with errno
> 2)
> Checking for /dev/anon on the host...Not available (open failed with errno
> 2)
> Checking for /dev/anon on the host...Not available (open failed with errno
> 2)
> Linux version 2.4.24-1um (vi...@pc-muskar.auto.ucl.ac.be) (gcc version 2.96
> 20000731 (Red Hat Linux 7.3 2.96-113)) #7 Fri Feb 4 17:01:08 GMT 2005
> On node 0 totalpages: 65536
> zone(0): 65536 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> Kernel command line: mem=256M umid=ordi0
> ubd0=cow0,../SysFich/root_fs_debian2.2_small root=/dev/ubd0
> Calibrating delay loop... 2516.58 BogoMIPS
> Memory: 236344k available
> Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
> Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
> Mount cache hash table entries: 512 (order: 0, 4096 bytes)
> Buffer cache hash table entries: 16384 (order: 4, 65536 bytes)
> Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
> Checking for host processor cmov support...Yes
> Checking for host processor xmm support...No
> Checking that ptrace can change system call numbers...OK
> Checking that host ptys support output SIGIO...Yes
> Checking that host ptys support SIGIO on close...No, enabling workaround
> POSIX conformance testing by UNIFIX
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039
> Initializing RT netlink socket
> Starting kswapd
> VFS: Disk quotas vdquot_6.5.1
> devfs: v1.12c (20020818) Richard Gooch (rgo...@atnf.csiro.au)
> devfs: boot_options: 0x1
> JFFS version 1.0, (C) 1999, 2000  Axis Communications AB
> JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications
> AB.
> pty: 256 Unix98 ptys configured
> SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
> loop: loaded (max 8 devices)
> PPP generic driver version 2.4.2
> Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
> blkmtd: error: missing `device' name
>
> Initializing software serial port version 1
> mconsole (version 2) initialized on /home/lifc/.uml/ordi0/mconsole
> Creating "cow0" as COW file for "../SysFich/root_fs_debian2.2_small"
> Partition check:
>  ubda: unknown partition table
> Registering netbus
> Initializing stdio console driver
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP, IGMP
> IP: routing cache hash table of 2048 buckets, 16Kbytes
> TCP: Hash tables configured (established 16384 bind 32768)
> ip_conntrack version 2.1 (1846 buckets, 14768 max) - 292 bytes per conntrack
> ip_tables: (C) 2000-2002 Netfilter core team
> ipt_recent v0.3.1: Stephen Frost <sfr...@snowman.net>.
> http://snowman.net/projects/ipt_recent/
> arp_tables: (C) 2002 David S. Miller
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> VFS: Mounted root (ext2 filesystem) readonly.
> Mounted devfs on /dev
> INIT: version 2.78 booting
> Kernel panic: map_memory(0x467000, -1, 0x0, 4096, 0, 0, 0) failed, err = -9

That's EBADF, I'm not sure if this error is new to me, but I can't
remember them by heart (and we have no bug tracker except list
reports). Anyway, start from 2.4.28-bs2, really. I do recommend you
that. (And never try with anything like 2.4.24-2um onwards from Jeff
website. They were much more unstable because of the introduction of
humfs, and I took any good patch from those kernels).

Bye!
-- 
Paolo Giarrusso - Ph.D. Student
http://www.informatik.uni-marburg.de/~pgiarrusso/

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to