* [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements @ 2019-02-18 12:01 BALATON Zoltan 2019-02-18 12:01 ` [Qemu-devel] [PATCH v2 1/3] hw/pci-host/bonito.c: Add PCI mem region mapped at the correct address BALATON Zoltan ` (4 more replies) 0 siblings, 5 replies; 12+ messages in thread From: BALATON Zoltan @ 2019-02-18 12:01 UTC (permalink / raw) To: qemu-devel; +Cc: Aurelien Jarno, Aleksandar Markovic, Huacai Chen, philmd v2 of http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg02477.html Addressed review comments and removed last patch (sending it separately) to make this series not depend on my ati-vga patch so it can be applied independently. BALATON Zoltan (3): hw/pci-host/bonito.c: Add PCI mem region mapped at the correct address mips_fulong2e: Fix bios flash size mips_fulong2e: Dynamically generate SPD EEPROM data hw/mips/mips_fulong2e.c | 40 +++++++++++++++++----------------------- hw/pci-host/bonito.c | 7 ++++++- 2 files changed, 23 insertions(+), 24 deletions(-) -- 2.13.7 ^ permalink raw reply [flat|nested] 12+ messages in thread
* [Qemu-devel] [PATCH v2 1/3] hw/pci-host/bonito.c: Add PCI mem region mapped at the correct address 2019-02-18 12:01 [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements BALATON Zoltan @ 2019-02-18 12:01 ` BALATON Zoltan 2019-02-18 12:01 ` [Qemu-devel] [PATCH v2 3/3] mips_fulong2e: Dynamically generate SPD EEPROM data BALATON Zoltan ` (3 subsequent siblings) 4 siblings, 0 replies; 12+ messages in thread From: BALATON Zoltan @ 2019-02-18 12:01 UTC (permalink / raw) To: qemu-devel; +Cc: Aurelien Jarno, Aleksandar Markovic, Huacai Chen, philmd [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1848 bytes --] Stop using system memory as PCI memory otherwise devices such as VGA that have regions mapped to PCI memory clash with RAM. Use a separate memory region for PCI memory and map it to the correct address in system memory which allows PCI mem regions to show at the correct address where clients expect them. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> --- v2: add mem region to BonitoState instead of allocating it hw/pci-host/bonito.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/pci-host/bonito.c b/hw/pci-host/bonito.c index 9f33582706..dde4437595 100644 --- a/hw/pci-host/bonito.c +++ b/hw/pci-host/bonito.c @@ -217,6 +217,7 @@ struct BonitoState { PCIHostState parent_obj; qemu_irq *pic; PCIBonitoState *pci_dev; + MemoryRegion pci_mem; }; #define TYPE_BONITO_PCI_HOST_BRIDGE "Bonito-pcihost" @@ -598,11 +599,15 @@ static const VMStateDescription vmstate_bonito = { static void bonito_pcihost_realize(DeviceState *dev, Error **errp) { PCIHostState *phb = PCI_HOST_BRIDGE(dev); + BonitoState *bs = BONITO_PCI_HOST_BRIDGE(dev); + memory_region_init(&bs->pci_mem, OBJECT(dev), "pci.mem", BONITO_PCILO_SIZE); phb->bus = pci_register_root_bus(DEVICE(dev), "pci", pci_bonito_set_irq, pci_bonito_map_irq, - dev, get_system_memory(), get_system_io(), + dev, &bs->pci_mem, get_system_io(), 0x28, 32, TYPE_PCI_BUS); + memory_region_add_subregion(get_system_memory(), BONITO_PCILO_BASE, + &bs->pci_mem); } static void bonito_realize(PCIDevice *dev, Error **errp) -- 2.13.7 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* [Qemu-devel] [PATCH v2 3/3] mips_fulong2e: Dynamically generate SPD EEPROM data 2019-02-18 12:01 [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements BALATON Zoltan 2019-02-18 12:01 ` [Qemu-devel] [PATCH v2 1/3] hw/pci-host/bonito.c: Add PCI mem region mapped at the correct address BALATON Zoltan @ 2019-02-18 12:01 ` BALATON Zoltan 2019-02-18 12:01 ` [Qemu-devel] [PATCH v2 2/3] mips_fulong2e: Fix bios flash size BALATON Zoltan ` (2 subsequent siblings) 4 siblings, 0 replies; 12+ messages in thread From: BALATON Zoltan @ 2019-02-18 12:01 UTC (permalink / raw) To: qemu-devel; +Cc: Aurelien Jarno, Aleksandar Markovic, Huacai Chen, philmd [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 3825 bytes --] The machine comes with 256M memory module by default but it's upgradable so it could have different memory size. There was a TODO comment to replace static SPD EEPROM data with dynamically generated one to support this. Now that we have a function for that, it's easy to do. Although this would allow larger RAM sizes, the peculiar memory map of the machine may need some special handling to map it as low and high memory. Because I don't know what the correct place would be for highmem, I've left memory size fixed at 256M for now and TODO is moved there instead. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> --- hw/mips/mips_fulong2e.c | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/hw/mips/mips_fulong2e.c b/hw/mips/mips_fulong2e.c index 10e6ed585a..eec6fd02c8 100644 --- a/hw/mips/mips_fulong2e.c +++ b/hw/mips/mips_fulong2e.c @@ -214,20 +214,6 @@ static void main_cpu_reset(void *opaque) } } -static const uint8_t eeprom_spd[0x80] = { - 0x80,0x08,0x07,0x0d,0x09,0x02,0x40,0x00,0x04,0x70, - 0x70,0x00,0x82,0x10,0x00,0x01,0x0e,0x04,0x0c,0x01, - 0x02,0x20,0x80,0x75,0x70,0x00,0x00,0x50,0x3c,0x50, - 0x2d,0x20,0xb0,0xb0,0x50,0x50,0x00,0x00,0x00,0x00, - 0x00,0x41,0x48,0x3c,0x32,0x75,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x9c,0x7b,0x07,0x00,0x00,0x00,0x00, - 0x00,0x00,0x00,0x00,0x48,0x42,0x35,0x34,0x41,0x32, - 0x35,0x36,0x38,0x4b,0x4e,0x2d,0x41,0x37,0x35,0x42, - 0x20,0x30,0x20 -}; - static void vt82c686b_southbridge_init(PCIBus *pci_bus, int slot, qemu_irq intc, I2CBus **i2c_bus, ISABus **p_isa_bus) { @@ -284,7 +270,6 @@ static void network_init (PCIBus *pci_bus) static void mips_fulong2e_init(MachineState *machine) { - ram_addr_t ram_size = machine->ram_size; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_filename; @@ -292,7 +277,10 @@ static void mips_fulong2e_init(MachineState *machine) MemoryRegion *address_space_mem = get_system_memory(); MemoryRegion *ram = g_new(MemoryRegion, 1); MemoryRegion *bios = g_new(MemoryRegion, 1); + ram_addr_t ram_size = machine->ram_size; long bios_size; + uint8_t *spd_data; + Error *err = NULL; int64_t kernel_entry; PCIBus *pci_bus; ISABus *isa_bus; @@ -306,7 +294,7 @@ static void mips_fulong2e_init(MachineState *machine) qemu_register_reset(main_cpu_reset, cpu); - /* fulong 2e has 256M ram. */ + /* TODO: support more than 256M RAM as highmem */ ram_size = 256 * MiB; /* allocate RAM */ @@ -359,8 +347,14 @@ static void mips_fulong2e_init(MachineState *machine) vt82c686b_southbridge_init(pci_bus, FULONG2E_VIA_SLOT, env->irq[5], &smbus, &isa_bus); - /* TODO: Populate SPD eeprom data. */ - smbus_eeprom_init(smbus, 1, eeprom_spd, sizeof(eeprom_spd)); + /* Populate SPD eeprom data */ + spd_data = spd_data_generate(DDR, ram_size, &err); + if (err) { + warn_report_err(err); + } + if (spd_data) { + smbus_eeprom_init_one(smbus, 0x50, spd_data); + } mc146818_rtc_init(isa_bus, 2000, NULL); @@ -374,6 +368,7 @@ static void mips_fulong2e_machine_init(MachineClass *mc) mc->init = mips_fulong2e_init; mc->block_default_type = IF_IDE; mc->default_cpu_type = MIPS_CPU_TYPE_NAME("Loongson-2E"); + mc->default_ram_size = 256 * MiB; } DEFINE_MACHINE("fulong2e", mips_fulong2e_machine_init) -- 2.13.7 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* [Qemu-devel] [PATCH v2 2/3] mips_fulong2e: Fix bios flash size 2019-02-18 12:01 [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements BALATON Zoltan 2019-02-18 12:01 ` [Qemu-devel] [PATCH v2 1/3] hw/pci-host/bonito.c: Add PCI mem region mapped at the correct address BALATON Zoltan 2019-02-18 12:01 ` [Qemu-devel] [PATCH v2 3/3] mips_fulong2e: Dynamically generate SPD EEPROM data BALATON Zoltan @ 2019-02-18 12:01 ` BALATON Zoltan 2019-02-18 21:52 ` [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements Philippe Mathieu-Daudé 2019-03-04 13:27 ` Aleksandar Markovic 4 siblings, 0 replies; 12+ messages in thread From: BALATON Zoltan @ 2019-02-18 12:01 UTC (permalink / raw) To: qemu-devel; +Cc: Aurelien Jarno, Aleksandar Markovic, Huacai Chen, philmd [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1724 bytes --] According to both the specifications on linux-mips.org referenced in a comment at the beginning of the file and the flash chip part number the bios size should be 512k not 1M. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> --- hw/mips/mips_fulong2e.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hw/mips/mips_fulong2e.c b/hw/mips/mips_fulong2e.c index 02549d5c7e..10e6ed585a 100644 --- a/hw/mips/mips_fulong2e.c +++ b/hw/mips/mips_fulong2e.c @@ -21,6 +21,7 @@ #include "qemu/osdep.h" #include "qemu/units.h" #include "qapi/error.h" +#include "cpu.h" #include "hw/hw.h" #include "hw/i386/pc.h" #include "hw/dma/i8257.h" @@ -35,7 +36,6 @@ #include "audio/audio.h" #include "qemu/log.h" #include "hw/loader.h" -#include "hw/mips/bios.h" #include "hw/ide.h" #include "elf.h" #include "hw/isa/vt82c686.h" @@ -51,6 +51,8 @@ #define ENVP_NB_ENTRIES 16 #define ENVP_ENTRY_SIZE 256 +/* fulong 2e has a 512k flash: Winbond W39L040AP70Z */ +#define BIOS_SIZE (512 * KiB) #define MAX_IDE_BUS 2 /* @@ -307,12 +309,9 @@ static void mips_fulong2e_init(MachineState *machine) /* fulong 2e has 256M ram. */ ram_size = 256 * MiB; - /* fulong 2e has a 1M flash.Winbond W39L040AP70Z */ - bios_size = 1 * MiB; - /* allocate RAM */ memory_region_allocate_system_memory(ram, NULL, "fulong2e.ram", ram_size); - memory_region_init_ram(bios, NULL, "fulong2e.bios", bios_size, + memory_region_init_ram(bios, NULL, "fulong2e.bios", BIOS_SIZE, &error_fatal); memory_region_set_readonly(bios, true); -- 2.13.7 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements 2019-02-18 12:01 [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements BALATON Zoltan ` (2 preceding siblings ...) 2019-02-18 12:01 ` [Qemu-devel] [PATCH v2 2/3] mips_fulong2e: Fix bios flash size BALATON Zoltan @ 2019-02-18 21:52 ` Philippe Mathieu-Daudé 2019-03-04 13:27 ` Aleksandar Markovic 4 siblings, 0 replies; 12+ messages in thread From: Philippe Mathieu-Daudé @ 2019-02-18 21:52 UTC (permalink / raw) To: BALATON Zoltan, qemu-devel Cc: Aurelien Jarno, Aleksandar Markovic, Huacai Chen On 2/18/19 1:01 PM, BALATON Zoltan wrote: > v2 of > http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg02477.html > Addressed review comments and removed last patch (sending it > separately) to make this series not depend on my ati-vga patch so it > can be applied independently. > > BALATON Zoltan (3): > hw/pci-host/bonito.c: Add PCI mem region mapped at the correct address > mips_fulong2e: Fix bios flash size > mips_fulong2e: Dynamically generate SPD EEPROM data > > hw/mips/mips_fulong2e.c | 40 +++++++++++++++++----------------------- > hw/pci-host/bonito.c | 7 ++++++- > 2 files changed, 23 insertions(+), 24 deletions(-) For whoever who takes this series, please replace my mojibaked lastname with: Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Thanks, Phil. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements 2019-02-18 12:01 [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements BALATON Zoltan ` (3 preceding siblings ...) 2019-02-18 21:52 ` [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements Philippe Mathieu-Daudé @ 2019-03-04 13:27 ` Aleksandar Markovic 2019-03-04 14:27 ` BALATON Zoltan 4 siblings, 1 reply; 12+ messages in thread From: Aleksandar Markovic @ 2019-03-04 13:27 UTC (permalink / raw) To: BALATON Zoltan, qemu-devel@nongnu.org Cc: Aurelien Jarno, Huacai Chen, philmd@redhat.com > From: BALATON Zoltan <balaton@eik.bme.hu> > v2 of http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg02477.html > Addressed review comments and removed last patch (sending it > separately) to make this series not depend on my ati-vga patch so it > can be applied independently. I plan to add bin file (that you mentioned) used for Fulong 2E tests into our tree (in pc-bios directory, with an appropriate comment in pc-bios/README). Please let me know if you this I should not do that, of if I should perhaps include more files, or different files, etc. Regards, Aleksandar ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements 2019-03-04 13:27 ` Aleksandar Markovic @ 2019-03-04 14:27 ` BALATON Zoltan 2019-03-04 15:38 ` Aleksandar Markovic 0 siblings, 1 reply; 12+ messages in thread From: BALATON Zoltan @ 2019-03-04 14:27 UTC (permalink / raw) To: Aleksandar Markovic Cc: qemu-devel@nongnu.org, Aurelien Jarno, Huacai Chen, philmd@redhat.com On Mon, 4 Mar 2019, Aleksandar Markovic wrote: >> From: BALATON Zoltan <balaton@eik.bme.hu> >> v2 of http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg02477.html >> Addressed review comments and removed last patch (sending it >> separately) to make this series not depend on my ati-vga patch so it >> can be applied independently. > > I plan to add bin file (that you mentioned) used for Fulong 2E tests into our > tree (in pc-bios directory, with an appropriate comment in pc-bios/README). > Please let me know if you this I should not do that, of if I should perhaps include > more files, or different files, etc. I think you cannot do that because distributing binary also requires to provide sources to comply with GPL. Therefore you should include source in roms and build binary from that like done for sam460ex for example (see: git log roms/u-boot-sam460ex). Problem is you have to figure out which sources and config was used to build that binary with the original lemote.com site mentioned in a comment in mips_fulong2e.c that used to host the source seemingly gone. So you probably will need to find a mirror and figure out how to build the pmon binary from that. The comment in source mentions that pmon is under BSD licence in which case it may be distributed without source but including random binaries may not be the best way even if it would be allowed by licence so building a firmware from source is the best way if possible. Regards, BALATON Zoltan ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements 2019-03-04 14:27 ` BALATON Zoltan @ 2019-03-04 15:38 ` Aleksandar Markovic 0 siblings, 0 replies; 12+ messages in thread From: Aleksandar Markovic @ 2019-03-04 15:38 UTC (permalink / raw) To: BALATON Zoltan Cc: qemu-devel@nongnu.org, Aurelien Jarno, Huacai Chen, philmd@redhat.com > From: BALATON Zoltan <balaton@eik.bme.hu> > Subject: Re: [PATCH v2 0/3] Misc MIPS fulong2e improvements > > On Mon, 4 Mar 2019, Aleksandar Markovic wrote: > >> From: BALATON Zoltan <balaton@eik.bme.hu> > >> v2 of http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg02477.html > >> Addressed review comments and removed last patch (sending it > >> separately) to make this series not depend on my ati-vga patch so it > >> can be applied independently. > > > > I plan to add bin file (that you mentioned) used for Fulong 2E tests into our > > tree (in pc-bios directory, with an appropriate comment in pc-bios/README). > > Please let me know if you this I should not do that, of if I should perhaps > include > > more files, or different files, etc. > > I think you cannot do that because distributing binary also requires to > provide sources to comply with GPL. Therefore you should include source in > roms and build binary from that like done for sam460ex for example (see: > git log roms/u-boot-sam460ex). Problem is you have to figure out which > sources and config was used to build that binary with the original > lemote.com site mentioned in a comment in mips_fulong2e.c that used to > host the source seemingly gone. So you probably will need to find a mirror > and figure out how to build the pmon binary from that. The comment in > source mentions that pmon is under BSD licence in which case it may be > distributed without source but including random binaries may not be the > best way even if it would be allowed by licence so building a firmware > from source is the best way if possible. OK, I will for now give up integrating the binary until all is clarified. Thanks! Aleksandar ________________________________________ From: BALATON Zoltan <balaton@eik.bme.hu> Sent: Monday, March 4, 2019 3:27:27 PM To: Aleksandar Markovic Cc: qemu-devel@nongnu.org; Aurelien Jarno; Huacai Chen; philmd@redhat.com Subject: Re: [PATCH v2 0/3] Misc MIPS fulong2e improvements On Mon, 4 Mar 2019, Aleksandar Markovic wrote: >> From: BALATON Zoltan <balaton@eik.bme.hu> >> v2 of http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg02477.html >> Addressed review comments and removed last patch (sending it >> separately) to make this series not depend on my ati-vga patch so it >> can be applied independently. > > I plan to add bin file (that you mentioned) used for Fulong 2E tests into our > tree (in pc-bios directory, with an appropriate comment in pc-bios/README). > Please let me know if you this I should not do that, of if I should perhaps include > more files, or different files, etc. I think you cannot do that because distributing binary also requires to provide sources to comply with GPL. Therefore you should include source in roms and build binary from that like done for sam460ex for example (see: git log roms/u-boot-sam460ex). Problem is you have to figure out which sources and config was used to build that binary with the original lemote.com site mentioned in a comment in mips_fulong2e.c that used to host the source seemingly gone. So you probably will need to find a mirror and figure out how to build the pmon binary from that. The comment in source mentions that pmon is under BSD licence in which case it may be distributed without source but including random binaries may not be the best way even if it would be allowed by licence so building a firmware from source is the best way if possible. Regards, BALATON Zoltan ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements @ 2019-03-04 16:44 Andrew Randrianasulu 2019-03-04 17:15 ` BALATON Zoltan 0 siblings, 1 reply; 12+ messages in thread From: Andrew Randrianasulu @ 2019-03-04 16:44 UTC (permalink / raw) To: balaton, qemu-devel Hi, Zoltan! I think I found some sources for pmon: http://www.anheng.com.cn/loongson/pmon/updates.lemote.com/files/upload/lm/firmware/pmon/source/pmon-priv.tar.gz slooowly downloading (20507323 (20M)) and then in upper dir http://www.anheng.com.cn/loongson/pmon/ toolchain-pmon.tar.bz2 2010-08-31 09:27 36M ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements 2019-03-04 16:44 Andrew Randrianasulu @ 2019-03-04 17:15 ` BALATON Zoltan 0 siblings, 0 replies; 12+ messages in thread From: BALATON Zoltan @ 2019-03-04 17:15 UTC (permalink / raw) To: Andrew Randrianasulu; +Cc: qemu-devel Hello, On Mon, 4 Mar 2019, Andrew Randrianasulu wrote: > I think I found some sources for pmon: > > http://www.anheng.com.cn/loongson/pmon/updates.lemote.com/files/upload/lm/firmware/pmon/source/pmon-priv.tar.gz > > slooowly downloading (20507323 (20M)) > > and then in upper dir > > http://www.anheng.com.cn/loongson/pmon/ > > toolchain-pmon.tar.bz2 2010-08-31 09:27 36M Thanks, I know about these, I've pointed to them in my previous patches: http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg02477.html but I don't have time nor interest to try to compile it for MIPS and recreate the binary now. If you're interested and give it a try feel free to do so, then reply to Alexandar's thread about this pmon binary if you managed to build it or find something that could help. (Currently to test the binary beyond serial output, to get display you need to apply my ati-vga patch from the list that's not yet on master.) Regards, BALATON Zoltan ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements @ 2019-03-04 20:01 Andrew Randrianasulu 0 siblings, 0 replies; 12+ messages in thread From: Andrew Randrianasulu @ 2019-03-04 20:01 UTC (permalink / raw) To: balaton, qemu-devel Unfortunately, even after unpacking pmon_1c.tar.gz , compiling and installing tools into /opt/pmon200o/tools resetting resulted git inside 'pmon' directory to earlist commit possible (because modern pmon fails to comple 2e targets), unpacking and copying to /usr/local toolchain based on gcc 2.95.3, and adding build.sh script to specific directory pmon/zloader - I was only able to build gzrom elf: /dev/shm/pmon/zloader.2emini# qemu-system-mips64el -M fulong2e -cpu Loongson-2E -m 256 -kernel gzrom -nographic PMON2000 MIPS Initializing. Standby... ERRORPC=00000000 CONFIG=00030932 PRID=00006302 DIMM read read memory type read number of rows read blocks per ddrram read number of sides read width 00000020 No DIMM in slot 1 DIMM SIZE=08000000 dma: command ae not supported sdcfg=2d9043ae msize=08000000 Init SDRAM Done! Sizing caches... Init caches... godson2 caches found Init caches done, cfg = 00030932 Copy PMON to execute location... start = 0x81000000 s0 = 0x20000000 0000000d copy text section done. Copy PMON to execute location done. sp=80ffc000Uncompressing Bios......................OK,Booting Bios QEMU 3.0.50 monitor - type 'help' for more information (qemu) quit this is without you patch series .... and with quite oldish qemu (3.1 rc) ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements @ 2019-03-04 22:29 Andrew Randrianasulu 0 siblings, 0 replies; 12+ messages in thread From: Andrew Randrianasulu @ 2019-03-04 22:29 UTC (permalink / raw) To: amarkovic, balaton, qemu-devel Actually compiled something! root@slax:/dev/shm/pmon/zloader.2edev# qemu-system-mips64el -M fulong2e -cpu Loongson-2E -m 1G -bios pmon.bin -nographic PMON2000 MIPS Initializing. Standby... ERRORPC=00000000 CONFIG=00030932 PRID=00006302 DIMM read read memory type read number of rows read blocks per ddrram read number of sides read width 00000002 No DIMM in slot 1 DIMM SIZE=10000000 dma: command ae not supported sdcfg=2d9043ae msize=10000000 Init SDRAM Done! Sizing caches... Init caches... godson2 caches found Init caches done, cfg = 00030932 Copy PMON to execute location... start = 0x81000000 s0 = 0x3ec00000 a1050000 copy text section done. Copy PMON to execute location done. sp=80ffc000Uncompressing Bios........................OK,Booting Bios FREQ FREI DONE DEVI ENVI MAPV in envinit nvram=bfc00000 unknow flash type unknow flash type Mfg 0, Id 60 NVRAM is invalid! NVRAM@bfc00000 STDV 80100000: memory between 82fff400-83000000 is already been allocated,heap is already above this point SBDD 686I 0x3f8=ff P12PCIH PCIS PCIR PCIW NETI RTCL PCID VGAI No VGA PCI device available in configure mainbus0 (root) localbus0 at mainbus0 pcibr0 at mainbus0 pci0 at pcibr0 bus 0 vendor/product: 0x1106/0x0686 (bridge, ISA) at pci0 dev 5 function 0 not configured pciide0 at pci0 dev 5 function 1 vendor/product: 0x1106/0x0571 (mass storage, IDE): DMA (unsupported), ch 0 cfg to compat, ch 1 cfg to compat cd0 at pciide0 channel 1cd attach drive=0 dv_xname cd0 vendor/product: 0x1106/0x3038 (serialbus, USB) at pci0 dev 5 function 2 not configured vendor/product: 0x1106/0x3038 (serialbus, USB) at pci0 dev 5 function 3 not configured vendor/product: 0x1106/0x3057 (bridge, miscellaneous) at pci0 dev 5 function 4 not configured vendor/product: 0x1106/0x3058 (multimedia, audio) at pci0 dev 5 function 5 not configured vendor/product: 0x1106/0x3068 (communications, miscellaneous) at pci0 dev 5 function 6 not configured rtl0 at pci0 dev 7 function 0 vendor/product: 0x10ec/0x8139 (network, ethernet)8139 iobase =bfd04000 : generic poll, address 00:00:00:00:00:00 Config1 100Mbps HALF-DUPLEX. in if attach out configure Keyboard succesfully initialized. devconfig done. ifinit done. domaininit done. init_proc.... HSTI SYMI SBDE Configuration [Bonito,EL,NET,IDE] Version: PMON2000 2.1 (Bonito) #1: Вт мар 5 00:02:06 MSK 2019 commit b6ef3b0253f1ba9be62d01b07f9900d16c66e38e Author: QiaoChong <qiaochong@loongson.cn> Date: Tue Dec 28 09:59:01 2010 +0800 . Supported loaders [srec, elf, bin] Supported filesystems [net, fat, fs, disk, iso9660, socket, tty, ram] This software may be redistributed under the BSD copyright. Copyright 2000-2002, Opsycon AB, Sweden. Copyright 2005, ICT CAS. CPU GODSON2 @ 199.94 MHz / Bus @ 66.00 MHz Memory size 256 MB (256 MB Low memory, 0 MB High memory) . Primary Instruction cache size 64kb (32 line, 4 way) Primary Data cache size 64kb (32 line, 4 way) Secondary cache size 512kb BEV1 BEV0 BEV in SR set to zero. PMON> ls Pmon _ftext etext start PMON> help help: Command not found. Try 'h' for help! PMON> h Boot and Load boot boot oload load memory from hostport load load file MyCmds testnet testnet rtl0 [recv|send|loop] cp0s access cp0 pcs select pci dev function disks select disk d1 dump address byte d2 dump address half world d4 dump address world d8 dump address double word m1 modify address byte m2 mofify address half world m4 modify address world m8 modify address double word setvga set vga_available setkbd set kbd_available setinput set input_from_both setoutput set output_to_both initkbd kbd_initialize cache cache [0 1] loop loopcmd count cmd... Loop loopcmd count cmd... testide test ide dma checksum calculate checksum for a memory section fdisk dump disk partation ifconfig ifconig fx0 [up|down|remove|stat|setmac|readrom|setrom|addr [netmask] ifup ifup fxp0 ifdown ifdown fxp0 rtlist rtlist rtdel rtdel sleep sleep ms sleep1 sleep1 s memcpy mymemcpy src dst count led led n mycmp mecmp s1 s2 len mymore mymore flashs select flash for read/write devcp copy form src to dst xmodem xmodem serial sysinfo hardware test info hardware test newmt new memory test setup setup boot loader | run cmd and return 0 test hardware test serial hardware test pnps select pnp ops for d1,m1 dumpsis dump sis registers i2cs select i2c ops for d1,m1 Debugger c continue execution t trace (single step) to trace (step over) db delete break point(s) b set break point(s) g start execution (go) sym define symbol ls list symbols r display/set register l list (disassemble) memory bt stack backtrace Misc devls list devices flush flush caches reboot reboot system poweroff reboot system halt reboot system flash program flash memory tr transparent mode rz zmodem download Shell more paginator h on-line help sh command shell vers print version info eval evaluate and print result hi display command history date get/set date and time about about PMON2000 Network ifaddr Configure Network Interface ping ping remote host grub like command initrd load initrd/initramfs image Memory m modify memory d display memory compare compare memory to memory copy copy memory to memory fill fill memory search search memory mt simple memory test Pci pcicfg pci config space pciscan scan pci bus Environment env display variable set display/set variable unset unset variable(s) eset edit variable rays bl Load Boot menu from config file RAYS Commands for PMON 2000 fxp setmac_fxp Set mac address into E100 eeprom readrom_fxp dump E100 eprom content writerom_fxp write E100 eprom content 8139 netdmp 8139 helper ifm Set 8139 interface mode setmac Set mac address into 8139 eeprom readrom dump rtl8139 eprom content writerom write the whole rtl8139 eprom content ATPsata atpsata atp sata read write PMON> PMON> PMON> PMON> PMON> PMON> PMON> PMON> PMON> PMON> PMON> PMON> PMON> PMON> ------------ using commit commit b6ef3b0253f1ba9be62d01b07f9900d16c66e38e (HEAD -> 2010) Author: QiaoChong <qiaochong@loongson.cn> Date: Tue Dec 28 09:59:01 2010 +0800 enable ls232 demo boardd led. Signed-off-by: QiaoChong <qiaochong@loongson.cn> from pmon git directory and config "2edev" Ok, with modified 2edev I got output much like original prom: qemu-system-mips64el -M fulong2e -cpu Loongson-2E -m 1G -bios pmon.bin -nographic PMON2000 MIPS Initializing. Standby... ERRORPC=00000000 CONFIG=00030932 PRID=00006302 DIMM read read memory type read number of rows read blocks per ddrram read number of sides read width 00000002 No DIMM in slot 1 DIMM SIZE=10000000 dma: command ae not supported sdcfg=2d9043ae msize=10000000 Init SDRAM Done! Sizing caches... Init caches... godson2 caches found Init caches done, cfg = 00030932 Copy PMON to execute location... start = 0x81000000 s0 = 0x3ec00000 a1050000 copy text section done. Copy PMON to execute location done. sp=80ffc000Uncompressing Bios..........................OK,Booting Bios FREQ FREI DONE DEVI ENVI MAPV in envinit nvram=bfc00000 unknow flash type unknow flash type Mfg 0, Id 60 NVRAM is invalid! NVRAM@bfc00000 STDV 80100000: memory between 82fff400-83000000 is already been allocated,heap is already above this point SBDD 686I 0x3f8=ff P12PCIH PCIS PCIR PCIW NETI RTCL PCID VGAI No VGA PCI device available VGAI starting radeon init... ------------ configs are in pmon/Targets/Bonito2edev/conf Modified conf: at Bonito # $Id: Bonito,v 1.1.1.1 2006/09/14 01:59:09 root Exp $ # # GENERIC configuration for Galileo EV64240 # # This file is supposed to be included by target file after # endian has been defined. # machine Bonito2edev mips # CPU Architecture, Platform config pmon # # Define target endian # makeoptions ENDIAN=EL # Little endian version. #include "conf/GENERIC_ALL" # # System Name and Target Name # option SYSTYPE="\"Bonito\"" option TARGETNAME="\"Bonito\"" # # Platform options # option BONITOEL option DEVBD2E option MIPS option INET select mod_flash_amd # AMD flash device programming select mod_flash_intel # intel flash device programming select mod_flash_sst # intel flash device programming select mod_debugger # Debugging module select mod_symbols # Symbol table handling select mod_s3load # Srecord loading #select mod_fastload # LSI Fastload select mod_elfload # ELF loading # # Command selection. Selects pmon commands # select cmd_newmt select cmd_setup select mod_display select cmd_about # Display info about PMON select cmd_boot # Boot wrapper select cmd_mycmd select cmd_xmodem select ramfiles select cmd_newmt select cmd_cache # Cache enabling #select cmd_call # Call a function command select cmd_date # Time of day command select cmd_env # Full blown environment command set select cmd_flash # Flash programming cmds select cmd_hist # Command history select cmd_ifaddr # Interface address command select cmd_l # Disassemble select cmd_mem # Memory manipulation commands select cmd_more # More paginator select cmd_mt # Simple memory test command select cmd_misc # Reboot & Flush etc. #select cmd_stty # TTY setings command select cmd_tr # Host port-through command select cmd_devls # Device list select cmd_set # As cmd_env but not req. cmd_hist select cmd_testdisk select cmd_test select pmon_zmodem_rz # select cmd_shell # Shell commands, vers, help, eval # # # Platform options # select mod_uart_ns16550 # Standard UART driver #option CONS_BAUD=B9600 option CONS_BAUD=B115200 select ext2 select fatfs select mod_x86emu # X86 emulation for VGA option MY40IO #select mod_x86emu_int10 select mod_vgacon option NOPCINAMES # Save some space for x86emu #option FASTBOOT select vt82c686 #via686a/b code # # Functional options. # option NOSNOOP # Caches are no-snooping # # HAVE options. What tgt level provide # option HAVE_TOD # Time-Of-Day clock option HAVE_NVENV # Platform has non-volatile env mem option HAVE_LOGO # Output splash logo option USE_SUPERIO_UART #option USE_LEGACY_RTC #option GODSONEV2A #option LINUX_PC #option LONGMENG option RADEON7000 #option DEBUG_EMU_VGA option AUTOLOAD #option CONFIG_PCI0_LARGE_MEM #option CONFIG_PCI0_HUGE_MEM #option CONFIG_PCI0_GAINT_MEM option CONFIG_CACHE_64K_4WAY option NVRAM_IN_FLASH # # Now the Machine specification # mainbus0 at root localbus0 at mainbus0 #fd0 at mainbus0 pcibr* at mainbus0 #pcibr1 at mainbus0 pci* at pcibr? #ppb* at pci? dev ? function ? # PCI-PCI bridges #pci* at ppb? bus ? #### USB #uhci* at pci? dev ? function ? #### SCSI support #siop* at pci? dev ? function ? # Symbios/NCR 53c... #scsibus* at siop? #sd* at scsibus? target ? lun ? #cd* at scsibus? target ? lun ? #### Networking Devices #gt0 at localbus? base 4 #gt1 at localbus? base 5 #gt2 at localbus? base 6 # fxp normally only used for debugging (enable/disable both) fxp* at pci? dev ? function ? # Intel 82559 Device inphy* at mii? phy ? # Intel 82555 PHYs rtl* at pci? dev ? function ? #uhci* at pci? dev ? function ? ohci0 at pci? dev ? function ? usb* at usbbus ? ohci1 at pci? dev ? function ? select mod_usb select mod_usb_storage #select mod_usb_uhci select mod_usb_ohci select mod_usb_kbd #### IDE controllers pciide* at pci ? dev ? function ? flags 0x0000 atp* at pci? dev ? function ? #sata atp8620 sata* at atp? #### IDE hard drives wd* at pciide? channel ? drive ? flags 0x0000 #### Pseudo devices pseudo-device loop 1 # network loopback ide_cd* at pciide? channel ? drive ? flags 0x0001 select iso9660 option IDECD #option HAVE_NB_SERIAL option USE_ENVMAC #option LOOKLIKE_PC #select cmd_lwdhcp #select cmd_bootp option WDC_NORESET option FOR_GXEMUL select fatfs option FLOATINGPT select gzip option VIA686B_POWERFIXUP option INPUT_FROM_BOTH option OUTPUT_TO_BOTH option PCI_IDSEL_VIA686B=17 ================ Original conf: cat Bonito.orig # $Id: Bonito,v 1.1.1.1 2006/09/14 01:59:09 root Exp $ # # GENERIC configuration for Galileo EV64240 # # This file is supposed to be included by target file after # endian has been defined. # machine Bonito2edev mips # CPU Architecture, Platform config pmon # # Define target endian # makeoptions ENDIAN=EL # Little endian version. #include "conf/GENERIC_ALL" # # System Name and Target Name # option SYSTYPE="\"Bonito\"" option TARGETNAME="\"Bonito\"" # # Platform options # option BONITOEL option DEVBD2E option MIPS option INET select mod_flash_amd # AMD flash device programming select mod_flash_intel # intel flash device programming select mod_flash_sst # intel flash device programming select mod_debugger # Debugging module select mod_symbols # Symbol table handling select mod_s3load # Srecord loading #select mod_fastload # LSI Fastload select mod_elfload # ELF loading # # Command selection. Selects pmon commands # select cmd_newmt select cmd_setup select mod_display select cmd_about # Display info about PMON select cmd_boot # Boot wrapper select cmd_mycmd select cmd_xmodem select ramfiles select cmd_newmt select cmd_cache # Cache enabling #select cmd_call # Call a function command select cmd_date # Time of day command select cmd_env # Full blown environment command set select cmd_flash # Flash programming cmds select cmd_hist # Command history select cmd_ifaddr # Interface address command select cmd_l # Disassemble select cmd_mem # Memory manipulation commands select cmd_more # More paginator select cmd_mt # Simple memory test command select cmd_misc # Reboot & Flush etc. #select cmd_stty # TTY setings command select cmd_tr # Host port-through command select cmd_devls # Device list select cmd_set # As cmd_env but not req. cmd_hist select cmd_testdisk select cmd_test select pmon_zmodem_rz # select cmd_shell # Shell commands, vers, help, eval # # # Platform options # select mod_uart_ns16550 # Standard UART driver #option CONS_BAUD=B9600 option CONS_BAUD=B115200 select ext2 select fatfs select mod_x86emu # X86 emulation for VGA option MY40IO #select mod_x86emu_int10 select mod_vgacon option NOPCINAMES # Save some space for x86emu #option FASTBOOT select vt82c686 #via686a/b code # # Functional options. # option NOSNOOP # Caches are no-snooping # # HAVE options. What tgt level provide # option HAVE_TOD # Time-Of-Day clock option HAVE_NVENV # Platform has non-volatile env mem option HAVE_LOGO # Output splash logo option USE_SUPERIO_UART #option USE_LEGACY_RTC #option GODSONEV2A #option LINUX_PC #option LONGMENG #option RADEON7000 #option DEBUG_EMU_VGA option AUTOLOAD #option CONFIG_PCI0_LARGE_MEM #option CONFIG_PCI0_HUGE_MEM #option CONFIG_PCI0_GAINT_MEM option CONFIG_CACHE_64K_4WAY option NVRAM_IN_FLASH # # Now the Machine specification # mainbus0 at root localbus0 at mainbus0 #fd0 at mainbus0 pcibr* at mainbus0 #pcibr1 at mainbus0 pci* at pcibr? #ppb* at pci? dev ? function ? # PCI-PCI bridges #pci* at ppb? bus ? #### USB #uhci* at pci? dev ? function ? #### SCSI support #siop* at pci? dev ? function ? # Symbios/NCR 53c... #scsibus* at siop? #sd* at scsibus? target ? lun ? #cd* at scsibus? target ? lun ? #### Networking Devices #gt0 at localbus? base 4 #gt1 at localbus? base 5 #gt2 at localbus? base 6 # fxp normally only used for debugging (enable/disable both) fxp* at pci? dev ? function ? # Intel 82559 Device inphy* at mii? phy ? # Intel 82555 PHYs rtl* at pci? dev ? function ? #uhci* at pci? dev ? function ? #ohci0 at pci? dev ? function ? #usb* at usbbus ? #ohci1 at pci? dev ? function ? #select mod_usb #select mod_usb_storage #select mod_usb_uhci #select mod_usb_ohci #select mod_usb_kbd #### IDE controllers pciide* at pci ? dev ? function ? flags 0x0000 atp* at pci? dev ? function ? #sata atp8620 sata* at atp? #### IDE hard drives wd* at pciide? channel ? drive ? flags 0x0000 #### Pseudo devices pseudo-device loop 1 # network loopback ide_cd* at pciide? channel ? drive ? flags 0x0001 select iso9660 option IDECD #option HAVE_NB_SERIAL option USE_ENVMAC #option LOOKLIKE_PC #select cmd_lwdhcp #select cmd_bootp option WDC_NORESET option FOR_GXEMUL select fatfs option FLOATINGPT select gzip option VIA686B_POWERFIXUP option INPUT_FROM_BOTH option OUTPUT_TO_BOTH option PCI_IDSEL_VIA686B=17 ========== qemu output with original binary (pmon_2e.bin): emu-system-mips64el -M fulong2e -cpu Loongson-2E -m 1G -bios /dev/shm/pmon_2e.bin -nographic PMON2000 MIPS Initializing. Standby... ERRORPC=00000000 CONFIG=00030932 PRID=00006302 DIMM read 00000080 read memory type read number of rows read memory size per side read blocks per ddrram read number of sides read width DIMM SIZE=10000000 dma: command df not supported sdcfg=3d9043df msize=10000000 Init SDRAM Done! Sizing caches... Init caches... godson2 caches found Init caches done, cfg = 00030932 Copy PMON to execute location... start = 0x85000000 s0 = 0x3ac00000 a5040000 copy text section done. Copy PMON to execute location done. sp=84ffc000Uncompressing Bios........................OK,Booting Bios FREQ FREI DONE TTYI TTYD ENVI MAPV Mfg 0, Id 60 STDV 80100000: heap is already above this point SBDD 686I 0x3f8=ff PPCIH PCI bus 0 slot 5/0: reg 0x10 = 0x0 PCI bus 0 slot 5/0: reg 0x14 = 0x0 PCI bus 0 slot 5/0: reg 0x18 = 0x0 PCI bus 0 slot 5/0: reg 0x1c = 0x0 PCI bus 0 slot 5/0: reg 0x20 = 0x0 PCI bus 0 slot 5/0: reg 0x24 = 0x0 PCI bus 0 slot 5/1: reg 0x10 = 0x1f0 PCI bus 0 slot 5/1: reg 0x14 = 0x3f4 PCI bus 0 slot 5/1: reg 0x1c = 0x374 PCI bus 0 slot 5/1: reg 0x24 = 0x0 PCI bus 0 slot 5/2: reg 0x10 = 0x0 PCI bus 0 slot 5/2: reg 0x14 = 0x0 PCI bus 0 slot 5/2: reg 0x18 = 0x0 PCI bus 0 slot 5/2: reg 0x1c = 0x0 PCI bus 0 slot 5/2: reg 0x20 = 0xffffffe1 PCI bus 0 slot 5/2: reg 0x24 = 0x0 PCI bus 0 slot 5/3: reg 0x10 = 0x0 PCI bus 0 slot 5/3: reg 0x14 = 0x0 PCI bus 0 slot 5/3: reg 0x18 = 0x0 PCI bus 0 slot 5/3: reg 0x1c = 0x0 PCI bus 0 slot 5/3: reg 0x20 = 0xffffffe1 PCI bus 0 slot 5/3: reg 0x24 = 0x0 PCI bus 0 slot 5/4: reg 0x10 = 0x0 PCI bus 0 slot 5/4: reg 0x14 = 0x0 PCI bus 0 slot 5/4: reg 0x18 = 0x0 PCI bus 0 slot 5/4: reg 0x1c = 0x0 PCI bus 0 slot 5/4: reg 0x20 = 0x0 PCI bus 0 slot 5/4: reg 0x24 = 0x0 PCI bus 0 slot 5/5: reg 0x10 = 0x0 PCI bus 0 slot 5/5: reg 0x14 = 0x0 PCI bus 0 slot 5/5: reg 0x18 = 0x0 PCI bus 0 slot 5/5: reg 0x1c = 0x0 PCI bus 0 slot 5/5: reg 0x20 = 0x0 PCI bus 0 slot 5/5: reg 0x24 = 0x0 PCI bus 0 slot 5/6: reg 0x10 = 0x0 PCI bus 0 slot 5/6: reg 0x14 = 0x0 PCI bus 0 slot 5/6: reg 0x18 = 0x0 PCI bus 0 slot 5/6: reg 0x1c = 0x0 PCI bus 0 slot 5/6: reg 0x20 = 0x0 PCI bus 0 slot 5/6: reg 0x24 = 0x0 PCIS PCIR PCIW PCI bus 0 slot 5/1: not enough PCI mem space (-496 requested) PCI bus 0 slot 5/1: not enough PCI mem space (-880 requested) PCI bus 0 slot 5/1: not enough PCI mem space (-1008 requested) NETI RTCL PCID VGAI Default MODE_ID 2 starting radeon init... QEMU 3.0.50 monitor - type 'help' for more information so, they obviously output different things, but I think you can configure them, will try to disable just radeon init and see now far it will boot sorry for superlong mail! ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2019-03-04 22:33 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-02-18 12:01 [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements BALATON Zoltan 2019-02-18 12:01 ` [Qemu-devel] [PATCH v2 1/3] hw/pci-host/bonito.c: Add PCI mem region mapped at the correct address BALATON Zoltan 2019-02-18 12:01 ` [Qemu-devel] [PATCH v2 3/3] mips_fulong2e: Dynamically generate SPD EEPROM data BALATON Zoltan 2019-02-18 12:01 ` [Qemu-devel] [PATCH v2 2/3] mips_fulong2e: Fix bios flash size BALATON Zoltan 2019-02-18 21:52 ` [Qemu-devel] [PATCH v2 0/3] Misc MIPS fulong2e improvements Philippe Mathieu-Daudé 2019-03-04 13:27 ` Aleksandar Markovic 2019-03-04 14:27 ` BALATON Zoltan 2019-03-04 15:38 ` Aleksandar Markovic -- strict thread matches above, loose matches on Subject: below -- 2019-03-04 16:44 Andrew Randrianasulu 2019-03-04 17:15 ` BALATON Zoltan 2019-03-04 20:01 Andrew Randrianasulu 2019-03-04 22:29 Andrew Randrianasulu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).