Status of SH4 support in repository
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
Signature · 1 line
Kristoffer Ericson <[email protected]>
Hi, Kristoffer.
Quoted 4 lines · Kristoffer Ericson
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
Quoted 5 lines · On Wed, 11 Feb 2009 01:53:45 +0900 Shin-ichiro KAWASAKI…
Hi, Kristoffer.
Quoted 2 lines · Kristoffer Ericson
Greetings,
Quoted 7 lines
Quoted 2 lines
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).
Quoted 10 lines
# 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Kristoffer Ericson <[email protected]>
Hi,
Quoted 2 lines
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
Quoted 10 lines · Kristoffer Ericson
Quoted 7 lines · On Wed, 11 Feb 2009 01:53:45 +0900 Shin-ichiro KAWASAKI…
Hi, Kristoffer.
Quoted 4 lines · Kristoffer Ericson
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.
Quoted 8 lines
Quoted 4 lines
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/BuildingEnvironmentMy 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
Quoted 21 lines · On Wednesday 11 February 2009 06:28:05 Shin-ichiro KAWASAKI wrote:
Quoted 11 lines · Kristoffer Ericson
On Wed, 11 Feb 2009 01:53:45 +0900
Quoted 8 lines · Shin-ichiro KAWASAKI
Hi, Kristoffer.
Quoted 4 lines · Kristoffer Ericson
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.
Quoted 8 lines
Quoted 4 lines
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/BuildingEnvironmentMy 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).
Quoted 7 lines
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
Quoted 1 line
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...
Quoted 2 lines
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
r2d.c +20 -8
@@ -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 */ } }
Quoted 38 lines · Rob Landley
Quoted 18 lines · On Wednesday 11 February 2009 06:28:05 Shin-ichiro KAWASAKI wrote:
Quoted 10 lines · Kristoffer Ericson
On Wed, 11 Feb 2009 01:53:45 +0900
Quoted 7 lines · Shin-ichiro KAWASAKI
Hi, Kristoffer.
Quoted 4 lines · Kristoffer Ericson
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.
Quoted 7 lines
Quoted 4 lines
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/BuildingEnvironmentMy 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).
Quoted 7 lines
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=summaryMy 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.patchQuoted 1 line
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...
Quoted 8 lines
Quoted 2 lines
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
Quoted 49 lines · On Friday 13 February 2009 08:27:14 Shin-ichiro KAWASAKI wrote:
Quoted 48 lines · Rob Landley
Quoted 21 lines · On Wednesday 11 February 2009 06:28:05 Shin-ichiro KAWASAKI wrote:
Quoted 11 lines · Kristoffer Ericson
On Wed, 11 Feb 2009 01:53:45 +0900
Quoted 8 lines · Shin-ichiro KAWASAKI
Hi, Kristoffer.
Quoted 4 lines · Kristoffer Ericson
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.
Quoted 8 lines
Quoted 4 lines
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/BuildingEnvironmentMy 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).
Quoted 7 lines
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=summaryMy 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.patchQuoted 1 line
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...
Quoted 2 lines
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.
Quoted 8 lines
Quoted 2 lines
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.htmlAnd 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