From alessioigorbogani at gmail.com Tue Aug 2 11:37:54 2011 From: alessioigorbogani at gmail.com (Alessio Igor Bogani) Date: Tue, 02 Aug 2011 13:37:54 +0200 Subject: [Aboriginal] [PATCH] Rename i686-kvm to i686-virtio Message-ID: # HG changeset patch # User Alessio Igor Bogani # Date 1312276254 -7200 # Node ID edbf885c16b264330094f3078da0106eed79a4eb # Parent bcecd839ff218d16b3e3312988cbd0fab943e8c2 Rename i686-kvm to i686-virtio diff -r bcecd839ff21 -r edbf885c16b2 sources/targets/i686-kvm/settings --- a/sources/targets/i686-kvm/settings Tue Jul 26 13:03:15 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -DESCRIPTION=" -Variant of i686 target using kvm with virtio (different kernel/emulator config). -" - -# Use the i686 base architecture - -base_architecture i686 - -ROOT=vda -CONSOLE=ttyS0 - -LINUX_CONFIG=" -CONFIG_MPENTIUMII=y -CONFIG_ACPI=y - -# VIRTIO_CONSOLE not used yet -CONFIG_SERIAL_8250=y -CONFIG_SERIAL_8250_CONSOLE=y -CONFIG_VIRTIO_CONSOLE=y - -CONFIG_HW_RANDOM_VIRTIO=y -CONFIG_PARAVIRT_GUEST=y -CONFIG_VIRTIO_BLK=y -CONFIG_KVM_CLOCK=y -CONFIG_KVM_GUEST=y -" - -emulator_command() -{ - echo "if [ \"\$WITH_HDC\"X\"\" != \"X\" ]; then WITH_HDC=\"-drive file=\$HDC,if=virtio\"; fi" - echo "if [ \"\$WITH_HDB\"X\"\" != \"X\" ]; then WITH_HDB=\"-drive file=\$HDB,if=virtio\"; fi" - echo -n "kvm -nographic -no-reboot -kernel $KERNEL \$WITH_HDC \$WITH_HDB" - [ "$SYSIMAGE_TYPE" != "initramfs" ] && echo -n " -drive file=$IMAGE,if=virtio" - echo -n " -append \"$(kernel_cmdline)\" \$QEMU_EXTRA -net nic,model=virtio -net user" -} diff -r bcecd839ff21 -r edbf885c16b2 sources/targets/i686-virtio/settings --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/i686-virtio/settings Tue Aug 02 11:10:54 2011 +0200 @@ -0,0 +1,35 @@ +DESCRIPTION=" +Variant of i686 target using kvm with virtio (different kernel/emulator config). +" + +# Use the i686 base architecture + +base_architecture i686 + +ROOT=vda +CONSOLE=ttyS0 + +LINUX_CONFIG=" +CONFIG_MPENTIUMII=y +CONFIG_ACPI=y + +# VIRTIO_CONSOLE not used yet +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_VIRTIO_CONSOLE=y + +CONFIG_HW_RANDOM_VIRTIO=y +CONFIG_PARAVIRT_GUEST=y +CONFIG_VIRTIO_BLK=y +CONFIG_KVM_CLOCK=y +CONFIG_KVM_GUEST=y +" + +emulator_command() +{ + echo "if [ \"\$WITH_HDC\"X\"\" != \"X\" ]; then WITH_HDC=\"-drive file=\$HDC,if=virtio\"; fi" + echo "if [ \"\$WITH_HDB\"X\"\" != \"X\" ]; then WITH_HDB=\"-drive file=\$HDB,if=virtio\"; fi" + echo -n "kvm -nographic -no-reboot -kernel $KERNEL \$WITH_HDC \$WITH_HDB" + [ "$SYSIMAGE_TYPE" != "initramfs" ] && echo -n " -drive file=$IMAGE,if=virtio" + echo -n " -append \"$(kernel_cmdline)\" \$QEMU_EXTRA -net nic,model=virtio -net user" +} 1312285074.0 From alessioigorbogani at gmail.com Tue Aug 2 11:41:05 2011 From: alessioigorbogani at gmail.com (Alessio Igor Bogani) Date: Tue, 02 Aug 2011 13:41:05 +0200 Subject: [Aboriginal] [PATCH] Invoke qemu instead of kvm Message-ID: # HG changeset patch # User Alessio Igor Bogani # Date 1312279275 -7200 # Node ID e4d6b337322cd83e8b151ead91ec589a359f7fc4 # Parent edbf885c16b264330094f3078da0106eed79a4eb Invoke qemu instead of kvm diff -r edbf885c16b2 -r e4d6b337322c sources/targets/i686-virtio/settings --- a/sources/targets/i686-virtio/settings Tue Aug 02 11:10:54 2011 +0200 +++ b/sources/targets/i686-virtio/settings Tue Aug 02 12:01:15 2011 +0200 @@ -1,5 +1,5 @@ DESCRIPTION=" -Variant of i686 target using kvm with virtio (different kernel/emulator config). +Variant of i686 target using virtio and (if possible) kvm (different kernel/emulator config). " # Use the i686 base architecture @@ -29,7 +29,7 @@ { echo "if [ \"\$WITH_HDC\"X\"\" != \"X\" ]; then WITH_HDC=\"-drive file=\$HDC,if=virtio\"; fi" echo "if [ \"\$WITH_HDB\"X\"\" != \"X\" ]; then WITH_HDB=\"-drive file=\$HDB,if=virtio\"; fi" - echo -n "kvm -nographic -no-reboot -kernel $KERNEL \$WITH_HDC \$WITH_HDB" + echo -n "qemu -nographic -no-reboot -kernel $KERNEL \$WITH_HDC \$WITH_HDB" [ "$SYSIMAGE_TYPE" != "initramfs" ] && echo -n " -drive file=$IMAGE,if=virtio" echo -n " -append \"$(kernel_cmdline)\" \$QEMU_EXTRA -net nic,model=virtio -net user" } 1312285265.0 From alessioigorbogani at gmail.com Tue Aug 2 11:41:16 2011 From: alessioigorbogani at gmail.com (Alessio Igor Bogani) Date: Tue, 02 Aug 2011 13:41:16 +0200 Subject: [Aboriginal] [PATCH] Add powerpc-virtio target Message-ID: <8f5f7bf6a350bb22bbff.1312285276@granny> # HG changeset patch # User Alessio Igor Bogani # Date 1312279560 -7200 # Node ID 8f5f7bf6a350bb22bbff11e9c7660ddd465c92ca # Parent e4d6b337322cd83e8b151ead91ec589a359f7fc4 Add powerpc-virtio target diff -r e4d6b337322c -r 8f5f7bf6a350 sources/targets/powerpc-virtio/settings --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/targets/powerpc-virtio/settings Tue Aug 02 12:06:00 2011 +0200 @@ -0,0 +1,39 @@ +DESCRIPTION=" +Variant of powerpc target using virtio and (if possible) kvm (different kernel/emulator config). +" + +base_architecture powerpc + +ROOT=vda +CONSOLE=ttyS0 + +LINUX_CONFIG=" +CONFIG_ALTIVEC=y +CONFIG_PPC_PMAC=y +CONFIG_PPC_OF_BOOT_TRAMPOLINE=y +CONFIG_PPC601_SYNC_FIX=y +CONFIG_PROC_DEVICETREE=y +CONFIG_MACINTOSH_DRIVERS=y +CONFIG_ADB=y +CONFIG_ADB_CUDA=y +CONFIG_SERIO=y +CONFIG_SERIAL_PMACZILOG=y +CONFIG_SERIAL_PMACZILOG_TTYS=y +CONFIG_SERIAL_PMACZILOG_CONSOLE=y +CONFIG_BOOTX_TEXT=y +CONFIG_VIRTIO_CONSOLE=y +CONFIG_HW_RANDOM_VIRTIO=y +CONFIG_PARAVIRT_GUEST=y +CONFIG_VIRTIO_BLK=y +CONFIG_KVM_CLOCK=y +CONFIG_KVM_GUEST=y +" + +emulator_command() +{ + echo "if [ \"\$WITH_HDC\"X\"\" != \"X\" ]; then WITH_HDC=\"-drive file=\$HDC,if=virtio\"; fi" + echo "if [ \"\$WITH_HDB\"X\"\" != \"X\" ]; then WITH_HDB=\"-drive file=\$HDB,if=virtio\"; fi" + echo -n "qemu-system-ppc -M g3beige -nographic -no-reboot -kernel $KERNEL \$WITH_HDC \$WITH_HDB" + [ "$SYSIMAGE_TYPE" != "initramfs" ] && echo -n " -drive file=$IMAGE,if=virtio" + echo -n " -append \"$(kernel_cmdline)\" \$QEMU_EXTRA -net nic,model=virtio -net user" +} 1312285276.0 From rob at landley.net Wed Aug 3 02:49:47 2011 From: rob at landley.net (Rob Landley) Date: Tue, 02 Aug 2011 21:49:47 -0500 Subject: [Aboriginal] [PATCH] Rename i686-kvm to i686-virtio In-Reply-To: References: Message-ID: <4E38B74B.1040403@landley.net> On 08/02/2011 06:37 AM, Alessio Igor Bogani wrote: > # HG changeset patch > # User Alessio Igor Bogani > # Date 1312276254 -7200 > # Node ID edbf885c16b264330094f3078da0106eed79a4eb > # Parent bcecd839ff218d16b3e3312988cbd0fab943e8c2 > Rename i686-kvm to i686-virtio Why? Is there any performance benefit to using virtio in qemu without kvm? (On my system, kvm has virtio but qemu doesn't. I also don't get the accelerator unless I run the name "kvm".) Rob 1312339787.0 From rob at landley.net Wed Aug 3 04:14:52 2011 From: rob at landley.net (Rob Landley) Date: Tue, 02 Aug 2011 23:14:52 -0500 Subject: [Aboriginal] [PATCH] Add powerpc-virtio target In-Reply-To: <8f5f7bf6a350bb22bbff.1312285276@granny> References: <8f5f7bf6a350bb22bbff.1312285276@granny> Message-ID: <4E38CB3C.1090707@landley.net> On 08/02/2011 06:41 AM, Alessio Igor Bogani wrote: > # HG changeset patch > # User Alessio Igor Bogani > # Date 1312279560 -7200 > # Node ID 8f5f7bf6a350bb22bbff11e9c7660ddd465c92ca > # Parent e4d6b337322cd83e8b151ead91ec589a359f7fc4 > Add powerpc-virtio target I just built this and ran it, and dev-environment.sh gives me a tmpfs on /home, same as run-emulator.sh. Is there something special I need to do? Rob 1312344892.0 From alessioigorbogani at gmail.com Wed Aug 3 08:12:33 2011 From: alessioigorbogani at gmail.com (Alessio Igor Bogani) Date: Wed, 3 Aug 2011 10:12:33 +0200 Subject: [Aboriginal] [PATCH] Rename i686-kvm to i686-virtio In-Reply-To: <4E38B74B.1040403@landley.net> References: <4E38B74B.1040403@landley.net> Message-ID: Hi Rob, 2011/8/3 Rob Landley : [...] >> Rename i686-kvm to i686-virtio > > Why? > > Is there any performance benefit to using virtio in qemu without kvm? Yes it goes faster. > (On my system, kvm has virtio but qemu doesn't. ?I also don't get the > accelerator unless I run the name "kvm".) The reason is fairly simple: run-emulator.sh couldn't know if the host is KVM capable. Instead qemu knows it indeed on my Ubuntu Natty system it checks that condition automatically: alessio at granny:~$ qemu open /dev/kvm: No such file or directory Could not initialize KVM, will disable KVM support qemu: pci_add_option_rom: failed to find romfile "pxe-rtl8139.bin" Ciao, Alessio 1312359153.0 From alessioigorbogani at gmail.com Thu Aug 4 07:31:46 2011 From: alessioigorbogani at gmail.com (Alessio Igor Bogani) Date: Thu, 4 Aug 2011 09:31:46 +0200 Subject: [Aboriginal] [PATCH] Add powerpc-virtio target In-Reply-To: <4E38CB3C.1090707@landley.net> References: <8f5f7bf6a350bb22bbff.1312285276@granny> <4E38CB3C.1090707@landley.net> Message-ID: Rob, 2011/8/3 Rob Landley : [...] >> Add powerpc-virtio target > > I just built this and ran it, and dev-environment.sh gives me a tmpfs on > /home, same as run-emulator.sh. > > Is there something special I need to do? alessio at granny:~/Sources/hg-trees/myaboriginal$ ls -l build/system-image-powerpc-virtio/ total 4512 -rw-r--r-- 2 alessio alessio 1089536 2011-08-03 16:48 hda.sqf -rwxr-xr-x 1 alessio alessio 556 2011-08-03 16:54 run-emulator.sh -rwxr-xr-x 2 alessio alessio 3558861 2011-08-03 16:54 vmlinux Where can I find dev-environment.sh? Thanks! Ciao, Alessio 1312443106.0 From rob at landley.net Fri Aug 5 13:20:52 2011 From: rob at landley.net (Rob Landley) Date: Fri, 05 Aug 2011 08:20:52 -0500 Subject: [Aboriginal] [PATCH] Add powerpc-virtio target In-Reply-To: References: <8f5f7bf6a350bb22bbff.1312285276@granny> <4E38CB3C.1090707@landley.net> Message-ID: <4E3BEE34.1080305@landley.net> On 08/04/2011 02:31 AM, Alessio Igor Bogani wrote: > Rob, > > 2011/8/3 Rob Landley : > [...] >>> Add powerpc-virtio target >> >> I just built this and ran it, and dev-environment.sh gives me a tmpfs on >> /home, same as run-emulator.sh. >> >> Is there something special I need to do? > > alessio at granny:~/Sources/hg-trees/myaboriginal$ ls -l > build/system-image-powerpc-virtio/ > total 4512 > -rw-r--r-- 2 alessio alessio 1089536 2011-08-03 16:48 hda.sqf > -rwxr-xr-x 1 alessio alessio 556 2011-08-03 16:54 run-emulator.sh > -rwxr-xr-x 2 alessio alessio 3558861 2011-08-03 16:54 vmlinux > > Where can I find dev-environment.sh? It's in sources/toys, although it's really three files assembled by system-image.sh with a sed script. (The INCLUDE lines get copied in at the appropriate point. I don't want to clutter system-image with lots of files you're not supposed to run, but I don't want to duplciate code in the repository and have it fall out of sync...) Note: I applied your three patches, send me updates on top of those. Thanks, Rob 1312550452.0 From rob at landley.net Sun Aug 14 22:21:57 2011 From: rob at landley.net (Rob Landley) Date: Sun, 14 Aug 2011 17:21:57 -0500 Subject: [Aboriginal] And a new version of busybox joins the pile... Message-ID: <4E484A85.7050904@landley.net> I've been swamped at work (contract ends on the 31st and my todo list is longer than that, wound up called into work on Saturday for crisis du jour). But I've also been trying to get a release out with uClibc 0.9.32 and Linux 3.0. And I got pretty close: in the -hg version sh4 is fixed, and the mips thing I spent last weekend tracking down was PEBKAC on my end. My todo list is down to two targets, only one of which I care that deeply about (Powerpc threading is still broken, segfaults on launch). I think I'm ok letting m68k have a regression for one release, I can fix that later. (I need to try to get QEMU to run m68k stuff again. Once that happens it becomes much higher priority.) Well, BusyBox 1.19.0 just got added to that new package list, and it breaks stuff. The first thing it broke was adding ubi_tools.c, which breaks with the Linux 3.0 headers as I complained about here: http://lkml.indiana.edu/hypermail/linux/kernel/1108.1/02863.html Easy thing to do is revert that patch. Except the SECOND thing the new busybox breaks is that patch can't create files. Which is my fault, commit 8027a202a89b where I was asked to fix something unrelated and broke this along the way. Don't ask me why between November 2010 and today, NOBODY NOTICED BUSYBOX PATCH CAN'T CREATE FILES. I mean... dude? Does anybody actually test this stuff? (My excuse is I hadn't updated from 0.18.3 to 0.18.4 since it's presumably a bugfix only release for bugs I hadn't hit. The whole "quarterly releases of new development versions with bugs in between" thing seems to have fallen by the wayside... Oh well.) Anyway, still trying to get a release out ASAP. But I'm hip deep in patch.c diagnostics again, and the last time I looked at this code was apparently November 2010... Rob 1313360517.0 From rob at landley.net Fri Aug 19 05:20:53 2011 From: rob at landley.net (Rob Landley) Date: Fri, 19 Aug 2011 00:20:53 -0500 Subject: [Aboriginal] Built an -rc, anybody feel like testing it? Message-ID: <4E4DF2B5.20608@landley.net> I haven't done a release yet because writing up the release announcement and change log is really time consuming, but binaries are at http://landley.net/aboriginal/temp and I'll probably move those into downloads/binaries over the weekend unless anybody finds a showstopper between now and then. FYI. Powerpc threading is horked, ppc-440 and m68k aren't building, but the rest are happy. This is linux-3.0, uClibc-0.9.32, and busybox-1.19.0. Rob 1313731253.0 From rob at landley.net Tue Aug 23 13:52:00 2011 From: rob at landley.net (Rob Landley) Date: Tue, 23 Aug 2011 08:52:00 -0500 Subject: [Aboriginal] And lo, 1.0.3 is unleashed upon the world. Message-ID: <4E53B080.5030409@landley.net> Probably should have called it 1.1, but it doesn't have NPTL yet. (Next release.) See the website for release notes, Rob 1314107520.0