All of lore.kernel.org
 help / color / mirror / Atom feed
* Status of SH4 support in repository
@ 2009-02-09 16:23 ` Kristoffer Ericson
  0 siblings, 0 replies; 16+ messages in thread
From: Kristoffer Ericson @ 2009-02-09 16:23 UTC (permalink / raw)
  To: linux-sh, qemu-devel

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

Greetings,

Just interested in an update of the current status. I built a fresh qemu from
the repository today and Im currently I get no output. 

Best wishes
Kristoffer

-- 
Kristoffer Ericson <kristoffer.ericson@gmail.com>

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* [Qemu-devel] Status of SH4 support in repository
@ 2009-02-09 16:23 ` Kristoffer Ericson
  0 siblings, 0 replies; 16+ messages in thread
From: Kristoffer Ericson @ 2009-02-09 16:23 UTC (permalink / raw)
  To: linux-sh, qemu-devel

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

Greetings,

Just interested in an update of the current status. I built a fresh qemu from
the repository today and Im currently I get no output. 

Best wishes
Kristoffer

-- 
Kristoffer Ericson <kristoffer.ericson@gmail.com>

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [Qemu-devel] Status of SH4 support in repository
  2009-02-09 16:23 ` [Qemu-devel] " Kristoffer Ericson
@ 2009-02-10 16:53   ` Shin-ichiro KAWASAKI
  -1 siblings, 0 replies; 16+ messages in thread
From: Shin-ichiro KAWASAKI @ 2009-02-10 16:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: linux-sh

Hi, Kristoffer.

Kristoffer Ericson wrote:
> Greetings,
> 
> Just interested in an update of the current status. I built a fresh qemu from
> the repository today and Im currently I get no output. 

I do not catch 'no output' mean.  Could you explain it more?

FYI, here's the log how I built qemu-sh at Feb. 6th.
  http://www.assembla.com/wiki/show/qemu-sh4/BuildingEnvironment

# It would be better to put such kind of information on Linux-SH Wiki's
# QEMU page.

Regards,
Shin-ichiro KAWASAKI

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

* Re: [Qemu-devel] Status of SH4 support in repository
@ 2009-02-10 16:53   ` Shin-ichiro KAWASAKI
  0 siblings, 0 replies; 16+ messages in thread
From: Shin-ichiro KAWASAKI @ 2009-02-10 16:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: linux-sh

Hi, Kristoffer.

Kristoffer Ericson wrote:
> Greetings,
> 
> Just interested in an update of the current status. I built a fresh qemu from
> the repository today and Im currently I get no output. 

I do not catch 'no output' mean.  Could you explain it more?

FYI, here's the log how I built qemu-sh at Feb. 6th.
  http://www.assembla.com/wiki/show/qemu-sh4/BuildingEnvironment

# It would be better to put such kind of information on Linux-SH Wiki's
# QEMU page.

Regards,
Shin-ichiro KAWASAKI

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

* Re: [Qemu-devel] Status of SH4 support in repository
  2009-02-10 16:53   ` Shin-ichiro KAWASAKI
@ 2009-02-10 17:29     ` Kristoffer Ericson
  -1 siblings, 0 replies; 16+ messages in thread
From: Kristoffer Ericson @ 2009-02-10 17:29 UTC (permalink / raw)
  To: Shin-ichiro KAWASAKI; +Cc: qemu-devel, linux-sh

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

On Wed, 11 Feb 2009 01:53:45 +0900
Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp> wrote:

> Hi, Kristoffer.
> 
> Kristoffer Ericson wrote:
> > Greetings,
> > 
> > Just interested in an update of the current status. I built a fresh qemu from
> > the repository today and Im currently I get no output. 
> 
> I do not catch 'no output' mean.  Could you explain it more?
> 
> FYI, here's the log how I built qemu-sh at Feb. 6th.
>   http://www.assembla.com/wiki/show/qemu-sh4/BuildingEnvironment

My mistake I did something wrong when I built it earlier, currently
it works somewhat. What doesnt work is keyboard,mouse and booting
from image file (seems like to bootstring isnt being aknowledged).

> 
> # It would be better to put such kind of information on Linux-SH Wiki's
> # QEMU page.
> 
> Regards,
> Shin-ichiro KAWASAKI
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Kristoffer Ericson <kristoffer.ericson@gmail.com>

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [Qemu-devel] Status of SH4 support in repository
@ 2009-02-10 17:29     ` Kristoffer Ericson
  0 siblings, 0 replies; 16+ messages in thread
From: Kristoffer Ericson @ 2009-02-10 17:29 UTC (permalink / raw)
  To: Shin-ichiro KAWASAKI; +Cc: qemu-devel, linux-sh

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

On Wed, 11 Feb 2009 01:53:45 +0900
Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp> wrote:

> Hi, Kristoffer.
> 
> Kristoffer Ericson wrote:
> > Greetings,
> > 
> > Just interested in an update of the current status. I built a fresh qemu from
> > the repository today and Im currently I get no output. 
> 
> I do not catch 'no output' mean.  Could you explain it more?
> 
> FYI, here's the log how I built qemu-sh at Feb. 6th.
>   http://www.assembla.com/wiki/show/qemu-sh4/BuildingEnvironment

My mistake I did something wrong when I built it earlier, currently
it works somewhat. What doesnt work is keyboard,mouse and booting
from image file (seems like to bootstring isnt being aknowledged).

> 
> # It would be better to put such kind of information on Linux-SH Wiki's
> # QEMU page.
> 
> Regards,
> Shin-ichiro KAWASAKI
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Kristoffer Ericson <kristoffer.ericson@gmail.com>

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [Qemu-devel] Status of SH4 support in repository
  2009-02-09 16:23 ` [Qemu-devel] " Kristoffer Ericson
@ 2009-02-10 17:38   ` takasi-y
  -1 siblings, 0 replies; 16+ messages in thread
From: takasi-y @ 2009-02-10 17:38 UTC (permalink / raw)
  To: Kristoffer Ericson; +Cc: qemu-devel, linux-sh

Hi,
> Just interested in an update of the current status. I built a fresh qemu from
> the repository today and Im currently I get no output. 
Which one have you tried?
svn://svn.sv.gnu.org/qemu/trunk@6587 works fine here.
Try
 ./configure --target-list=sh4-softmmu --disable-kqemu
 make
 sh4-softmmu/qemu-system-sh4 -M r2d --kernel kernel.kawa \
  --serial null --serial stdio 101M.img

Kernel is the one Kawasaki-san pointed in 
 http://lists.gnu.org/archive/html/qemu-devel/2009-01/msg01795.html

Cheers,
/yoshii

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

* Re: [Qemu-devel] Status of SH4 support in repository
@ 2009-02-10 17:38   ` takasi-y
  0 siblings, 0 replies; 16+ messages in thread
From: takasi-y @ 2009-02-10 17:38 UTC (permalink / raw)
  To: Kristoffer Ericson; +Cc: qemu-devel, linux-sh

Hi,
> Just interested in an update of the current status. I built a fresh qemu from
> the repository today and Im currently I get no output. 
Which one have you tried?
svn://svn.sv.gnu.org/qemu/trunk@6587 works fine here.
Try
 ./configure --target-list=sh4-softmmu --disable-kqemu
 make
 sh4-softmmu/qemu-system-sh4 -M r2d --kernel kernel.kawa \
  --serial null --serial stdio 101M.img

Kernel is the one Kawasaki-san pointed in 
 http://lists.gnu.org/archive/html/qemu-devel/2009-01/msg01795.html

Cheers,
/yoshii

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

* Re: [Qemu-devel] Status of SH4 support in repository
  2009-02-10 17:29     ` Kristoffer Ericson
@ 2009-02-11 12:28       ` Shin-ichiro KAWASAKI
  -1 siblings, 0 replies; 16+ messages in thread
From: Shin-ichiro KAWASAKI @ 2009-02-11 12:28 UTC (permalink / raw)
  To: qemu-devel; +Cc: linux-sh

Kristoffer Ericson wrote:
> On Wed, 11 Feb 2009 01:53:45 +0900
> Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp> wrote:
> 
>> Hi, Kristoffer.
>>
>> Kristoffer Ericson wrote:
>>> Greetings,
>>>
>>> Just interested in an update of the current status. I built a fresh qemu from
>>> the repository today and Im currently I get no output. 
>> I do not catch 'no output' mean.  Could you explain it more?
>>
>> FYI, here's the log how I built qemu-sh at Feb. 6th.
>>   http://www.assembla.com/wiki/show/qemu-sh4/BuildingEnvironment
> 
> My mistake I did something wrong when I built it earlier, currently
> it works somewhat. What doesnt work is keyboard,mouse and booting
> from image file (seems like to bootstring isnt being aknowledged).

Current qemu sh4 system emulation does not support either usb host
or kernel boot command line.  You still need to apply some patches
to use those features.

Please check qemu-sh patch staging repository, which holds patches
for qemu-sh. README in it explains how to apply.
  http://git.kernel.org/?p=virt/qemu/lethal/qemu-sh.git;a=summary
To apply all them, you need to role back qemu to rev 6215, for now.


The patch for usb host is already posted to qemu-ml.  But I guess
patch for kernel boot command line for r2d is not yet posted.
Does anyone know who wrote the patch in qemu-sh staging repository?


Regards,
Shin-ichiro KAWASAKI

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

* Re: [Qemu-devel] Status of SH4 support in repository
@ 2009-02-11 12:28       ` Shin-ichiro KAWASAKI
  0 siblings, 0 replies; 16+ messages in thread
From: Shin-ichiro KAWASAKI @ 2009-02-11 12:28 UTC (permalink / raw)
  To: qemu-devel; +Cc: linux-sh

Kristoffer Ericson wrote:
> On Wed, 11 Feb 2009 01:53:45 +0900
> Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp> wrote:
> 
>> Hi, Kristoffer.
>>
>> Kristoffer Ericson wrote:
>>> Greetings,
>>>
>>> Just interested in an update of the current status. I built a fresh qemu from
>>> the repository today and Im currently I get no output. 
>> I do not catch 'no output' mean.  Could you explain it more?
>>
>> FYI, here's the log how I built qemu-sh at Feb. 6th.
>>   http://www.assembla.com/wiki/show/qemu-sh4/BuildingEnvironment
> 
> My mistake I did something wrong when I built it earlier, currently
> it works somewhat. What doesnt work is keyboard,mouse and booting
> from image file (seems like to bootstring isnt being aknowledged).

Current qemu sh4 system emulation does not support either usb host
or kernel boot command line.  You still need to apply some patches
to use those features.

Please check qemu-sh patch staging repository, which holds patches
for qemu-sh. README in it explains how to apply.
  http://git.kernel.org/?p=virt/qemu/lethal/qemu-sh.git;a=summary
To apply all them, you need to role back qemu to rev 6215, for now.


The patch for usb host is already posted to qemu-ml.  But I guess
patch for kernel boot command line for r2d is not yet posted.
Does anyone know who wrote the patch in qemu-sh staging repository?


Regards,
Shin-ichiro KAWASAKI

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

* Re: [Qemu-devel] Status of SH4 support in repository
  2009-02-11 12:28       ` Shin-ichiro KAWASAKI
@ 2009-02-13  8:45         ` Rob Landley
  -1 siblings, 0 replies; 16+ messages in thread
From: Rob Landley @ 2009-02-13  8:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: Shin-ichiro KAWASAKI, linux-sh

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

On Wednesday 11 February 2009 06:28:05 Shin-ichiro KAWASAKI wrote:
> Kristoffer Ericson wrote:
> > On Wed, 11 Feb 2009 01:53:45 +0900
> >
> > Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp> wrote:
> >> Hi, Kristoffer.
> >>
> >> Kristoffer Ericson wrote:
> >>> Greetings,
> >>>
> >>> Just interested in an update of the current status. I built a fresh
> >>> qemu from the repository today and Im currently I get no output.
> >>
> >> I do not catch 'no output' mean.  Could you explain it more?
> >>
> >> FYI, here's the log how I built qemu-sh at Feb. 6th.
> >>   http://www.assembla.com/wiki/show/qemu-sh4/BuildingEnvironment
> >
> > My mistake I did something wrong when I built it earlier, currently
> > it works somewhat. What doesnt work is keyboard,mouse and booting
> > from image file (seems like to bootstring isnt being aknowledged).
>
> Current qemu sh4 system emulation does not support either usb host
> or kernel boot command line.  You still need to apply some patches
> to use those features.
>
> Please check qemu-sh patch staging repository, which holds patches
> for qemu-sh. README in it explains how to apply.
>   http://git.kernel.org/?p=virt/qemu/lethal/qemu-sh.git;a=summary

My blocker is the lack of a working -append.  You have a git tree for a
collection of 5 patches, which then wants to invoke "quilt" to apply them. 
(Seems like overkill.)

At a guess, this seems like the patch that implements it is
staging/sh4-r2d-update-pci-usb-and-kernel-management.patch

> To apply all them, you need to role back qemu to rev 6215, for now.

No you don't, you just need a chainsaw and some duct tape...

> The patch for usb host is already posted to qemu-ml.  But I guess
> patch for kernel boot command line for r2d is not yet posted.

I adjusted the above patch to apply to current qemu svn, and attached the 
result, but it didn't make -append work.  It's still using the hardwired one.

Any suggestions?  (Do I need to look at the other patches?  This one looked 
like it was _trying_ to fix the problem...)

Rob

[-- Attachment #2: r2d.patch --]
[-- Type: text/x-patch, Size: 1965 bytes --]

Index: hw/r2d.c
===================================================================
--- hw/r2d.c	(revision 6618)
+++ hw/r2d.c	(working copy)
@@ -224,29 +224,41 @@
 	       serial_hds[2]);
 
     /* onboard CF (True IDE mode, Master only). */
-    mmio_ide_init(0x14001000, 0x1400080c, irq[CF_IDE], 1,
-        drives_table[drive_get_index(IF_IDE, 0, 0)].bdrv, NULL);
+    if ((i = drive_get_index(IF_IDE, 0, 0)) != -1)
+      mmio_ide_init(0x14001000, 0x1400080c, irq[CF_IDE], 1,
+          drives_table[drive_get_index(IF_IDE, 0, 0)].bdrv, NULL);
 
+    /* PCI host and peripherals */
+    pci = sh_pci_register_bus(r2d_pci_set_irq, r2d_pci_map_irq, irq, 0, 4);
+
     /* NIC: rtl8139 on-board, and 2 slots. */
-    pci_nic_init(pci, &nd_table[0], 2 << 3, "rtl8139");
+    if (nb_nics)
+        pci_nic_init(pci, &nd_table[0], 2 << 3, "rtl8139");
     for (i = 1; i < nb_nics; i++)
         pci_nic_init(pci, &nd_table[i], -1, "ne2k_pci");
 
+    if (usb_enabled)
+        usb_ohci_init_pci(pci, 4, -1);
+
     /* Todo: register on board registers */
-    {
+    if (kernel_filename) {
       int kernel_size;
       /* initialization which should be done by firmware */
       stl_phys(SH7750_BCR1, 1<<3); /* cs3 SDRAM */
       stw_phys(SH7750_BCR2, 3<<(3*2)); /* cs3 32bit */
 
-      kernel_size = load_image(kernel_filename, phys_ram_base);
-
+      if (kernel_cmdline) {
+          kernel_size = load_image(kernel_filename, phys_ram_base + 0x80000);
+          env->pc = (SDRAM_BASE + 0x80000) | 0xa0000000;
+          pstrcpy(phys_ram_base + 0x10100, 256, kernel_cmdline);
+      } else {
+          kernel_size = load_image(kernel_filename, phys_ram_base);
+          env->pc = SDRAM_BASE | 0xa0000000; /* Start from P2 area */
+      }
       if (kernel_size < 0) {
         fprintf(stderr, "qemu: could not load kernel '%s'\n", kernel_filename);
         exit(1);
       }
-
-      env->pc = SDRAM_BASE | 0xa0000000; /* Start from P2 area */
     }
 }
 

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

* Re: [Qemu-devel] Status of SH4 support in repository
@ 2009-02-13  8:45         ` Rob Landley
  0 siblings, 0 replies; 16+ messages in thread
From: Rob Landley @ 2009-02-13  8:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: Shin-ichiro KAWASAKI, linux-sh

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

On Wednesday 11 February 2009 06:28:05 Shin-ichiro KAWASAKI wrote:
> Kristoffer Ericson wrote:
> > On Wed, 11 Feb 2009 01:53:45 +0900
> >
> > Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp> wrote:
> >> Hi, Kristoffer.
> >>
> >> Kristoffer Ericson wrote:
> >>> Greetings,
> >>>
> >>> Just interested in an update of the current status. I built a fresh
> >>> qemu from the repository today and Im currently I get no output.
> >>
> >> I do not catch 'no output' mean.  Could you explain it more?
> >>
> >> FYI, here's the log how I built qemu-sh at Feb. 6th.
> >>   http://www.assembla.com/wiki/show/qemu-sh4/BuildingEnvironment
> >
> > My mistake I did something wrong when I built it earlier, currently
> > it works somewhat. What doesnt work is keyboard,mouse and booting
> > from image file (seems like to bootstring isnt being aknowledged).
>
> Current qemu sh4 system emulation does not support either usb host
> or kernel boot command line.  You still need to apply some patches
> to use those features.
>
> Please check qemu-sh patch staging repository, which holds patches
> for qemu-sh. README in it explains how to apply.
>   http://git.kernel.org/?p=virt/qemu/lethal/qemu-sh.git;a=summary

My blocker is the lack of a working -append.  You have a git tree for a
collection of 5 patches, which then wants to invoke "quilt" to apply them. 
(Seems like overkill.)

At a guess, this seems like the patch that implements it is
staging/sh4-r2d-update-pci-usb-and-kernel-management.patch

> To apply all them, you need to role back qemu to rev 6215, for now.

No you don't, you just need a chainsaw and some duct tape...

> The patch for usb host is already posted to qemu-ml.  But I guess
> patch for kernel boot command line for r2d is not yet posted.

I adjusted the above patch to apply to current qemu svn, and attached the 
result, but it didn't make -append work.  It's still using the hardwired one.

Any suggestions?  (Do I need to look at the other patches?  This one looked 
like it was _trying_ to fix the problem...)

Rob

[-- Attachment #2: r2d.patch --]
[-- Type: text/x-patch, Size: 1965 bytes --]

Index: hw/r2d.c
===================================================================
--- hw/r2d.c	(revision 6618)
+++ hw/r2d.c	(working copy)
@@ -224,29 +224,41 @@
 	       serial_hds[2]);
 
     /* onboard CF (True IDE mode, Master only). */
-    mmio_ide_init(0x14001000, 0x1400080c, irq[CF_IDE], 1,
-        drives_table[drive_get_index(IF_IDE, 0, 0)].bdrv, NULL);
+    if ((i = drive_get_index(IF_IDE, 0, 0)) != -1)
+      mmio_ide_init(0x14001000, 0x1400080c, irq[CF_IDE], 1,
+          drives_table[drive_get_index(IF_IDE, 0, 0)].bdrv, NULL);
 
+    /* PCI host and peripherals */
+    pci = sh_pci_register_bus(r2d_pci_set_irq, r2d_pci_map_irq, irq, 0, 4);
+
     /* NIC: rtl8139 on-board, and 2 slots. */
-    pci_nic_init(pci, &nd_table[0], 2 << 3, "rtl8139");
+    if (nb_nics)
+        pci_nic_init(pci, &nd_table[0], 2 << 3, "rtl8139");
     for (i = 1; i < nb_nics; i++)
         pci_nic_init(pci, &nd_table[i], -1, "ne2k_pci");
 
+    if (usb_enabled)
+        usb_ohci_init_pci(pci, 4, -1);
+
     /* Todo: register on board registers */
-    {
+    if (kernel_filename) {
       int kernel_size;
       /* initialization which should be done by firmware */
       stl_phys(SH7750_BCR1, 1<<3); /* cs3 SDRAM */
       stw_phys(SH7750_BCR2, 3<<(3*2)); /* cs3 32bit */
 
-      kernel_size = load_image(kernel_filename, phys_ram_base);
-
+      if (kernel_cmdline) {
+          kernel_size = load_image(kernel_filename, phys_ram_base + 0x80000);
+          env->pc = (SDRAM_BASE + 0x80000) | 0xa0000000;
+          pstrcpy(phys_ram_base + 0x10100, 256, kernel_cmdline);
+      } else {
+          kernel_size = load_image(kernel_filename, phys_ram_base);
+          env->pc = SDRAM_BASE | 0xa0000000; /* Start from P2 area */
+      }
       if (kernel_size < 0) {
         fprintf(stderr, "qemu: could not load kernel '%s'\n", kernel_filename);
         exit(1);
       }
-
-      env->pc = SDRAM_BASE | 0xa0000000; /* Start from P2 area */
     }
 }
 

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

* Re: [Qemu-devel] Status of SH4 support in repository
  2009-02-13  8:45         ` Rob Landley
@ 2009-02-13 14:27           ` Shin-ichiro KAWASAKI
  -1 siblings, 0 replies; 16+ messages in thread
From: Shin-ichiro KAWASAKI @ 2009-02-13 14:27 UTC (permalink / raw)
  To: Rob Landley; +Cc: qemu-devel, linux-sh

Rob Landley wrote:
> On Wednesday 11 February 2009 06:28:05 Shin-ichiro KAWASAKI wrote:
>> Kristoffer Ericson wrote:
>>> On Wed, 11 Feb 2009 01:53:45 +0900
>>>
>>> Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp> wrote:
>>>> Hi, Kristoffer.
>>>>
>>>> Kristoffer Ericson wrote:
>>>>> Greetings,
>>>>>
>>>>> Just interested in an update of the current status. I built a fresh
>>>>> qemu from the repository today and Im currently I get no output.
>>>> I do not catch 'no output' mean.  Could you explain it more?
>>>>
>>>> FYI, here's the log how I built qemu-sh at Feb. 6th.
>>>>   http://www.assembla.com/wiki/show/qemu-sh4/BuildingEnvironment
>>> My mistake I did something wrong when I built it earlier, currently
>>> it works somewhat. What doesnt work is keyboard,mouse and booting
>>> from image file (seems like to bootstring isnt being aknowledged).
>> Current qemu sh4 system emulation does not support either usb host
>> or kernel boot command line.  You still need to apply some patches
>> to use those features.
>>
>> Please check qemu-sh patch staging repository, which holds patches
>> for qemu-sh. README in it explains how to apply.
>>   http://git.kernel.org/?p=virt/qemu/lethal/qemu-sh.git;a=summary
> 
> My blocker is the lack of a working -append.  You have a git tree for a
> collection of 5 patches, which then wants to invoke "quilt" to apply them. 
> (Seems like overkill.)
> 
> At a guess, this seems like the patch that implements it is
> staging/sh4-r2d-update-pci-usb-and-kernel-management.patch
> 
>> To apply all them, you need to role back qemu to rev 6215, for now.
> 
> No you don't, you just need a chainsaw and some duct tape...
> 
>> The patch for usb host is already posted to qemu-ml.  But I guess
>> patch for kernel boot command line for r2d is not yet posted.
> 
> I adjusted the above patch to apply to current qemu svn, and attached the 
> result, but it didn't make -append work.  It's still using the hardwired one.
> 
> Any suggestions?  (Do I need to look at the other patches?  This one looked 
> like it was _trying_ to fix the problem...)

Yoshii-san already turned on the chainsaw the day before yeterday. :)
  http://lists.gnu.org/archive/html/qemu-devel/2009-02/msg00727.html

And I guess, -append option is valid only if the kernel zImage does
not contain built in kernel arguments : the kernel in sh-test-0.1.tar.bz2
contains it. Here's the one without arguments, I hope it helps.
  http://www.assembla.com/spaces/qemu-sh4/documents/aVMOyC-DGr3y5PeJe5afGb/download?filename=r2d_nokernelarg_zImage


Regards,
Shin-ichiro KAWASAKI

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

* Re: [Qemu-devel] Status of SH4 support in repository
@ 2009-02-13 14:27           ` Shin-ichiro KAWASAKI
  0 siblings, 0 replies; 16+ messages in thread
From: Shin-ichiro KAWASAKI @ 2009-02-13 14:27 UTC (permalink / raw)
  To: Rob Landley; +Cc: qemu-devel, linux-sh

Rob Landley wrote:
> On Wednesday 11 February 2009 06:28:05 Shin-ichiro KAWASAKI wrote:
>> Kristoffer Ericson wrote:
>>> On Wed, 11 Feb 2009 01:53:45 +0900
>>>
>>> Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp> wrote:
>>>> Hi, Kristoffer.
>>>>
>>>> Kristoffer Ericson wrote:
>>>>> Greetings,
>>>>>
>>>>> Just interested in an update of the current status. I built a fresh
>>>>> qemu from the repository today and Im currently I get no output.
>>>> I do not catch 'no output' mean.  Could you explain it more?
>>>>
>>>> FYI, here's the log how I built qemu-sh at Feb. 6th.
>>>>   http://www.assembla.com/wiki/show/qemu-sh4/BuildingEnvironment
>>> My mistake I did something wrong when I built it earlier, currently
>>> it works somewhat. What doesnt work is keyboard,mouse and booting
>>> from image file (seems like to bootstring isnt being aknowledged).
>> Current qemu sh4 system emulation does not support either usb host
>> or kernel boot command line.  You still need to apply some patches
>> to use those features.
>>
>> Please check qemu-sh patch staging repository, which holds patches
>> for qemu-sh. README in it explains how to apply.
>>   http://git.kernel.org/?p=virt/qemu/lethal/qemu-sh.git;a=summary
> 
> My blocker is the lack of a working -append.  You have a git tree for a
> collection of 5 patches, which then wants to invoke "quilt" to apply them. 
> (Seems like overkill.)
> 
> At a guess, this seems like the patch that implements it is
> staging/sh4-r2d-update-pci-usb-and-kernel-management.patch
> 
>> To apply all them, you need to role back qemu to rev 6215, for now.
> 
> No you don't, you just need a chainsaw and some duct tape...
> 
>> The patch for usb host is already posted to qemu-ml.  But I guess
>> patch for kernel boot command line for r2d is not yet posted.
> 
> I adjusted the above patch to apply to current qemu svn, and attached the 
> result, but it didn't make -append work.  It's still using the hardwired one.
> 
> Any suggestions?  (Do I need to look at the other patches?  This one looked 
> like it was _trying_ to fix the problem...)

Yoshii-san already turned on the chainsaw the day before yeterday. :)
  http://lists.gnu.org/archive/html/qemu-devel/2009-02/msg00727.html

And I guess, -append option is valid only if the kernel zImage does
not contain built in kernel arguments : the kernel in sh-test-0.1.tar.bz2
contains it. Here's the one without arguments, I hope it helps.
  http://www.assembla.com/spaces/qemu-sh4/documents/aVMOyC-DGr3y5PeJe5afGb/download?filename=r2d_nokernelarg_zImage


Regards,
Shin-ichiro KAWASAKI

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

* Re: [Qemu-devel] Status of SH4 support in repository
  2009-02-13 14:27           ` Shin-ichiro KAWASAKI
@ 2009-02-14  9:31             ` Rob Landley
  -1 siblings, 0 replies; 16+ messages in thread
From: Rob Landley @ 2009-02-14  9:31 UTC (permalink / raw)
  To: Shin-ichiro KAWASAKI; +Cc: qemu-devel, linux-sh

On Friday 13 February 2009 08:27:14 Shin-ichiro KAWASAKI wrote:
> Rob Landley wrote:
> > On Wednesday 11 February 2009 06:28:05 Shin-ichiro KAWASAKI wrote:
> >> Kristoffer Ericson wrote:
> >>> On Wed, 11 Feb 2009 01:53:45 +0900
> >>>
> >>> Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp> wrote:
> >>>> Hi, Kristoffer.
> >>>>
> >>>> Kristoffer Ericson wrote:
> >>>>> Greetings,
> >>>>>
> >>>>> Just interested in an update of the current status. I built a fresh
> >>>>> qemu from the repository today and Im currently I get no output.
> >>>>
> >>>> I do not catch 'no output' mean.  Could you explain it more?
> >>>>
> >>>> FYI, here's the log how I built qemu-sh at Feb. 6th.
> >>>>   http://www.assembla.com/wiki/show/qemu-sh4/BuildingEnvironment
> >>>
> >>> My mistake I did something wrong when I built it earlier, currently
> >>> it works somewhat. What doesnt work is keyboard,mouse and booting
> >>> from image file (seems like to bootstring isnt being aknowledged).
> >>
> >> Current qemu sh4 system emulation does not support either usb host
> >> or kernel boot command line.  You still need to apply some patches
> >> to use those features.
> >>
> >> Please check qemu-sh patch staging repository, which holds patches
> >> for qemu-sh. README in it explains how to apply.
> >>   http://git.kernel.org/?p=virt/qemu/lethal/qemu-sh.git;a=summary
> >
> > My blocker is the lack of a working -append.  You have a git tree for a
> > collection of 5 patches, which then wants to invoke "quilt" to apply
> > them. (Seems like overkill.)
> >
> > At a guess, this seems like the patch that implements it is
> > staging/sh4-r2d-update-pci-usb-and-kernel-management.patch
> >
> >> To apply all them, you need to role back qemu to rev 6215, for now.
> >
> > No you don't, you just need a chainsaw and some duct tape...
> >
> >> The patch for usb host is already posted to qemu-ml.  But I guess
> >> patch for kernel boot command line for r2d is not yet posted.
> >
> > I adjusted the above patch to apply to current qemu svn, and attached the
> > result, but it didn't make -append work.  It's still using the hardwired
> > one.
> >
> > Any suggestions?  (Do I need to look at the other patches?  This one
> > looked like it was _trying_ to fix the problem...)
>
> Yoshii-san already turned on the chainsaw the day before yeterday. :)
>   http://lists.gnu.org/archive/html/qemu-devel/2009-02/msg00727.html
>
> And I guess, -append option is valid only if the kernel zImage does
> not contain built in kernel arguments

Yup, that fixed it.

Wow sh4 emulation is slow.  But working for me now. ;)

Thanks,

Rob

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

* Re: [Qemu-devel] Status of SH4 support in repository
@ 2009-02-14  9:31             ` Rob Landley
  0 siblings, 0 replies; 16+ messages in thread
From: Rob Landley @ 2009-02-14  9:31 UTC (permalink / raw)
  To: Shin-ichiro KAWASAKI; +Cc: qemu-devel, linux-sh

On Friday 13 February 2009 08:27:14 Shin-ichiro KAWASAKI wrote:
> Rob Landley wrote:
> > On Wednesday 11 February 2009 06:28:05 Shin-ichiro KAWASAKI wrote:
> >> Kristoffer Ericson wrote:
> >>> On Wed, 11 Feb 2009 01:53:45 +0900
> >>>
> >>> Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp> wrote:
> >>>> Hi, Kristoffer.
> >>>>
> >>>> Kristoffer Ericson wrote:
> >>>>> Greetings,
> >>>>>
> >>>>> Just interested in an update of the current status. I built a fresh
> >>>>> qemu from the repository today and Im currently I get no output.
> >>>>
> >>>> I do not catch 'no output' mean.  Could you explain it more?
> >>>>
> >>>> FYI, here's the log how I built qemu-sh at Feb. 6th.
> >>>>   http://www.assembla.com/wiki/show/qemu-sh4/BuildingEnvironment
> >>>
> >>> My mistake I did something wrong when I built it earlier, currently
> >>> it works somewhat. What doesnt work is keyboard,mouse and booting
> >>> from image file (seems like to bootstring isnt being aknowledged).
> >>
> >> Current qemu sh4 system emulation does not support either usb host
> >> or kernel boot command line.  You still need to apply some patches
> >> to use those features.
> >>
> >> Please check qemu-sh patch staging repository, which holds patches
> >> for qemu-sh. README in it explains how to apply.
> >>   http://git.kernel.org/?p=virt/qemu/lethal/qemu-sh.git;a=summary
> >
> > My blocker is the lack of a working -append.  You have a git tree for a
> > collection of 5 patches, which then wants to invoke "quilt" to apply
> > them. (Seems like overkill.)
> >
> > At a guess, this seems like the patch that implements it is
> > staging/sh4-r2d-update-pci-usb-and-kernel-management.patch
> >
> >> To apply all them, you need to role back qemu to rev 6215, for now.
> >
> > No you don't, you just need a chainsaw and some duct tape...
> >
> >> The patch for usb host is already posted to qemu-ml.  But I guess
> >> patch for kernel boot command line for r2d is not yet posted.
> >
> > I adjusted the above patch to apply to current qemu svn, and attached the
> > result, but it didn't make -append work.  It's still using the hardwired
> > one.
> >
> > Any suggestions?  (Do I need to look at the other patches?  This one
> > looked like it was _trying_ to fix the problem...)
>
> Yoshii-san already turned on the chainsaw the day before yeterday. :)
>   http://lists.gnu.org/archive/html/qemu-devel/2009-02/msg00727.html
>
> And I guess, -append option is valid only if the kernel zImage does
> not contain built in kernel arguments

Yup, that fixed it.

Wow sh4 emulation is slow.  But working for me now. ;)

Thanks,

Rob

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

end of thread, other threads:[~2009-02-14  9:31 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-09 16:23 Status of SH4 support in repository Kristoffer Ericson
2009-02-09 16:23 ` [Qemu-devel] " Kristoffer Ericson
2009-02-10 16:53 ` Shin-ichiro KAWASAKI
2009-02-10 16:53   ` Shin-ichiro KAWASAKI
2009-02-10 17:29   ` Kristoffer Ericson
2009-02-10 17:29     ` Kristoffer Ericson
2009-02-11 12:28     ` Shin-ichiro KAWASAKI
2009-02-11 12:28       ` Shin-ichiro KAWASAKI
2009-02-13  8:45       ` Rob Landley
2009-02-13  8:45         ` Rob Landley
2009-02-13 14:27         ` Shin-ichiro KAWASAKI
2009-02-13 14:27           ` Shin-ichiro KAWASAKI
2009-02-14  9:31           ` Rob Landley
2009-02-14  9:31             ` Rob Landley
2009-02-10 17:38 ` takasi-y
2009-02-10 17:38   ` takasi-y

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.