public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* debian-installer progress and input needed
@ 2017-05-15 21:21 John Paul Adrian Glaubitz
  2017-05-16  7:40 ` Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: John Paul Adrian Glaubitz @ 2017-05-15 21:21 UTC (permalink / raw)
  To: Debian m68k; +Cc: Linux/m68k

Hi!

Recently, I made some progress with debian-installer on m68k and got it
to build on m68k, at least the cdrom installer. It can be downloaded
for testing purpose here [1]. It should work in emulators like Aranym
and qemu-m68k in system mode.

I haven't tested the installer myself yet, but Laurent Vivier had a go
and he confirmed it actually loaded the installer from initrd \o/.

However, there is one task that needs to be addressed and for that I
need help. Since d-i hasn't been touched on m68k for a long time, the
kernel module list is outdated and hence hardware like CD-ROM drives
and similar are not detected.

Thus, I would to ask around which modules are needed for the various
hardware people have, e.g. SCSI driver for 68k Macs, IDE drivers for
Amiga and Atari and so on.

The drivers need to be added to the corresponding module list in [2]
which will add them to module packages. The module packages then
have to be included in the pkg-list for d-i on m68k [3]. Of course,
the drivers need to be enabled in the kernel configuration as well.

Another issue that needs to be addressed is that the loop-modules
udeb package needs to be enabled for src:linux on m68k because it's
required for the hdmedia d-i images. But I can open a bug report
for that as well.

Thanks,
Adrian


> [1] https://people.debian.org/~glaubitz/debian-installer-m68k/cdrom/
> [2] https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/installer/m68k/modules/m68k
> [3] https://anonscm.debian.org/cgit/d-i/debian-installer.git/tree/build/pkg-lists/cdrom/m68k.cfg

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

* Re: debian-installer progress and input needed
  2017-05-15 21:21 debian-installer progress and input needed John Paul Adrian Glaubitz
@ 2017-05-16  7:40 ` Geert Uytterhoeven
  2017-05-16  8:25   ` Laurent Vivier
  2017-05-16  8:13 ` Finn Thain
  2017-05-17 12:24 ` John Paul Adrian Glaubitz
  2 siblings, 1 reply; 9+ messages in thread
From: Geert Uytterhoeven @ 2017-05-16  7:40 UTC (permalink / raw)
  To: John Paul Adrian Glaubitz; +Cc: Debian m68k, Linux/m68k

Hi Adrian,

On Mon, May 15, 2017 at 11:21 PM, John Paul Adrian Glaubitz
<glaubitz@physik.fu-berlin.de> wrote:
> Thus, I would to ask around which modules are needed for the various
> hardware people have, e.g. SCSI driver for 68k Macs, IDE drivers for
> Amiga and Atari and so on.
>
> The drivers need to be added to the corresponding module list in [2]
> which will add them to module packages. The module packages then
> have to be included in the pkg-list for d-i on m68k [3]. Of course,
> the drivers need to be enabled in the kernel configuration as well.

You can extract a list of SCSI/IDE drivers needed from the defconfigs at:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/m68k/configs

All needed drivers should be builtin in the defconfigs above.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: debian-installer progress and input needed
  2017-05-15 21:21 debian-installer progress and input needed John Paul Adrian Glaubitz
  2017-05-16  7:40 ` Geert Uytterhoeven
@ 2017-05-16  8:13 ` Finn Thain
  2017-05-17 12:24 ` John Paul Adrian Glaubitz
  2 siblings, 0 replies; 9+ messages in thread
From: Finn Thain @ 2017-05-16  8:13 UTC (permalink / raw)
  To: John Paul Adrian Glaubitz; +Cc: Debian m68k, Linux/m68k


On Mon, 15 May 2017, John Paul Adrian Glaubitz wrote:

> Hi!
> 
> Recently, I made some progress with debian-installer on m68k and got it 
> to build on m68k, at least the cdrom installer. It can be downloaded for 
> testing purpose here [1]. It should work in emulators like Aranym and 
> qemu-m68k in system mode.
> 

Nice work!

> I haven't tested the installer myself yet, but Laurent Vivier had a go 
> and he confirmed it actually loaded the installer from initrd \o/.
> 
> However, there is one task that needs to be addressed and for that I 
> need help. Since d-i hasn't been touched on m68k for a long time, the 
> kernel module list is outdated and hence hardware like CD-ROM drives and 
> similar are not detected.
> 
> Thus, I would to ask around which modules are needed for the various 
> hardware people have, e.g. SCSI driver for 68k Macs, IDE drivers for 
> Amiga and Atari and so on.
> 

For m68k Macs, the SCSI, IDE, FDC and NIC driver modules are,

	mac_esp
	mac_scsi

	macide

	swim_mod

	mac8390
	macmace
	mac89x0
	macsonic

Their respective Kconfig symbols are:

	CONFIG_SCSI_MAC_ESP
	CONFIG_MAC_SCSI

	CONFIG_BLK_DEV_MAC_IDE

	BLK_DEV_SWIM

	CONFIG_MAC8390
	CONFIG_MACMACE
	CONFIG_MAC89x0
	CONFIG_MACSONIC

Any other Mac-specific modules (ADB, FB, SCC etc) should probably be 
built-in.

> The drivers need to be added to the corresponding module list in [2] 
> which will add them to module packages. The module packages then have to 
> be included in the pkg-list for d-i on m68k [3]. Of course, the drivers 
> need to be enabled in the kernel configuration as well.
> 
> Another issue that needs to be addressed is that the loop-modules udeb 
> package needs to be enabled for src:linux on m68k because it's required 
> for the hdmedia d-i images. But I can open a bug report for that as 
> well.
> 

Installer images would be awesome (I gather that there is no ISO yet...)

-- 

> Thanks,
> Adrian
> 
> 
> > [1] https://people.debian.org/~glaubitz/debian-installer-m68k/cdrom/
> > [2] https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/installer/m68k/modules/m68k
> > [3] https://anonscm.debian.org/cgit/d-i/debian-installer.git/tree/build/pkg-lists/cdrom/m68k.cfg
> 
> 

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

* Re: debian-installer progress and input needed
  2017-05-16  7:40 ` Geert Uytterhoeven
@ 2017-05-16  8:25   ` Laurent Vivier
  0 siblings, 0 replies; 9+ messages in thread
From: Laurent Vivier @ 2017-05-16  8:25 UTC (permalink / raw)
  To: Geert Uytterhoeven, John Paul Adrian Glaubitz; +Cc: Debian m68k, Linux/m68k

Le 16/05/2017 à 09:40, Geert Uytterhoeven a écrit :
> Hi Adrian,
> 
> On Mon, May 15, 2017 at 11:21 PM, John Paul Adrian Glaubitz
> <glaubitz@physik.fu-berlin.de> wrote:
>> Thus, I would to ask around which modules are needed for the various
>> hardware people have, e.g. SCSI driver for 68k Macs, IDE drivers for
>> Amiga and Atari and so on.
>>
>> The drivers need to be added to the corresponding module list in [2]
>> which will add them to module packages. The module packages then
>> have to be included in the pkg-list for d-i on m68k [3]. Of course,
>> the drivers need to be enabled in the kernel configuration as well.
> 
> You can extract a list of SCSI/IDE drivers needed from the defconfigs at:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/m68k/configs
> 
> All needed drivers should be builtin in the defconfigs above.


So for mac, I think we need:

for disk: esp_scsi, mac_esp, macide, ide-cd_mod, sd_mod, cdrom, sr_mod

for network: macmace, mac89x0, macsonic, mac8390

Laurent

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

* Re: debian-installer progress and input needed
  2017-05-15 21:21 debian-installer progress and input needed John Paul Adrian Glaubitz
  2017-05-16  7:40 ` Geert Uytterhoeven
  2017-05-16  8:13 ` Finn Thain
@ 2017-05-17 12:24 ` John Paul Adrian Glaubitz
  2017-05-18  5:37   ` Michael Schmitz
  2017-05-21 11:33   ` John Paul Adrian Glaubitz
  2 siblings, 2 replies; 9+ messages in thread
From: John Paul Adrian Glaubitz @ 2017-05-17 12:24 UTC (permalink / raw)
  To: Debian m68k; +Cc: Linux/m68k

Ok, let's get some order into this.

I have already opened a bug report to include loop-modules [1].

Then, looking at the module packages on m68k [2] and powerpc [3],
I suggest to add the following new packages first:

- affs-modules (to allow d-i to mount Amiga filesystems)
- hfs-modules (to allow d-i to mount MacOS filesystems)
- pata-modules
- scsi-core-modules (for sd_mod and scsi_mod)

nic-shared-modules should be renamed to nic-modules. Note that most
NIC modules are already added, see [4]. Also, many generic drivers
are added by merely including them with "#include <module package>"
which includes them from [5]. So, please, if you suggest additional
modules, please make sure not to put modules on the list which
we already have, either directly or through #include.

To nic-modules, we should add:

- macmace

To pata-modules, we should add:

- gayle
- ide-cd_mod
- macide
- swim_mod (although this is a floppy module)

To scsi-modules, we should add:

- atari_scsi
- esp_scsi
- mac_esp
- mac_scsi

Did I miss anything?

Adrian

> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862813
> [2]
https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/installer/m68k/modules/m68k
> [3]
https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/installer/powerpc/modules/powerpc
> [4]
https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/installer/m68k/modules/m68k/nic-shared-modules
> [5]
https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/installer/modules

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

* Re: debian-installer progress and input needed
  2017-05-17 12:24 ` John Paul Adrian Glaubitz
@ 2017-05-18  5:37   ` Michael Schmitz
  2017-05-21 11:33   ` John Paul Adrian Glaubitz
  1 sibling, 0 replies; 9+ messages in thread
From: Michael Schmitz @ 2017-05-18  5:37 UTC (permalink / raw)
  To: John Paul Adrian Glaubitz, Debian m68k; +Cc: Linux/m68k

Hi Adrian,

Am 18.05.2017 um 00:24 schrieb John Paul Adrian Glaubitz:
> Ok, let's get some order into this.
> 
> I have already opened a bug report to include loop-modules [1].
> 
> Then, looking at the module packages on m68k [2] and powerpc [3],
> I suggest to add the following new packages first:
> 
> - affs-modules (to allow d-i to mount Amiga filesystems)
> - hfs-modules (to allow d-i to mount MacOS filesystems)
> - pata-modules
> - scsi-core-modules (for sd_mod and scsi_mod)
> 
> nic-shared-modules should be renamed to nic-modules. Note that most
> NIC modules are already added, see [4]. Also, many generic drivers
> are added by merely including them with "#include <module package>"
> which includes them from [5]. So, please, if you suggest additional
> modules, please make sure not to put modules on the list which
> we already have, either directly or through #include.
> 
> To nic-modules, we should add:
> 
> - macmace

Atari needs:
ne (CONFIG_NE2000=m, CONFIG_ATARI_ETHERNEC=y, CONFIG_ATARI_ROM_ISA=y)
smc91x (CONFIG_SMC91X=m, CONFIG_ATARI_ETHERNAT=y)

smc91x is already included, but the current modules list still contains
atari_ethernec. This one has been superseded by the 'ne' module which is
already built for Amiga anyway. Please remove atari_ethernec.

Note that the config options CONFIG_ATARI_ETHERNEC and
CONFIG_ATARI_ETHERNAT have to be set in addition to the module options
in order to provide the platform device data for these cards.

There may be other config options that are needed to select the above
network drivers - I can send my .config used on my Falcon in case there
are any doubts.

> 
> To pata-modules, we should add:
> 
> - gayle
> - ide-cd_mod
> - macide
> - swim_mod (although this is a floppy module)

Atari needs:
falconide (CONFIG_BLK_DEV_FALCON_IDE=m) unless it's compiled in.

Cheers,

	Michael

> 
> To scsi-modules, we should add:
> 
> - atari_scsi
> - esp_scsi
> - mac_esp
> - mac_scsi
> 
> Did I miss anything?
> 
> Adrian
> 
>> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862813
>> [2]
> https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/installer/m68k/modules/m68k
>> [3]
> https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/installer/powerpc/modules/powerpc
>> [4]
> https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/installer/m68k/modules/m68k/nic-shared-modules
>> [5]
> https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/installer/modules
> 

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

* Re: debian-installer progress and input needed
  2017-05-17 12:24 ` John Paul Adrian Glaubitz
  2017-05-18  5:37   ` Michael Schmitz
@ 2017-05-21 11:33   ` John Paul Adrian Glaubitz
  2017-05-22  0:09     ` Finn Thain
  1 sibling, 1 reply; 9+ messages in thread
From: John Paul Adrian Glaubitz @ 2017-05-21 11:33 UTC (permalink / raw)
  To: Debian m68k; +Cc: Linux/m68k

On 05/17/2017 02:24 PM, John Paul Adrian Glaubitz wrote:
> Ok, let's get some order into this.
> 
> I have already opened a bug report to include loop-modules [1].
> 
> Then, looking at the module packages on m68k [2] and powerpc [3],
> I suggest to add the following new packages first:
> (...)
> Did I miss anything?

I have made some changes to src:linux now following the previous discussion
and I have pushed them to github [1].

Comments?

Adrian

> [1] https://github.com/glaubitz/linux-debian/commits/m68k

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

* Re: debian-installer progress and input needed
  2017-05-21 11:33   ` John Paul Adrian Glaubitz
@ 2017-05-22  0:09     ` Finn Thain
  2017-05-22  9:39       ` John Paul Adrian Glaubitz
  0 siblings, 1 reply; 9+ messages in thread
From: Finn Thain @ 2017-05-22  0:09 UTC (permalink / raw)
  To: John Paul Adrian Glaubitz; +Cc: Debian m68k, Linux/m68k

On Sun, 21 May 2017, John Paul Adrian Glaubitz wrote:

> On 05/17/2017 02:24 PM, John Paul Adrian Glaubitz wrote:
> > Ok, let's get some order into this.
> > 
> > I have already opened a bug report to include loop-modules [1].
> > 
> > Then, looking at the module packages on m68k [2] and powerpc [3],
> > I suggest to add the following new packages first:
> > (...)
> > Did I miss anything?
> 
> I have made some changes to src:linux now following the previous discussion
> and I have pushed them to github [1].
> 
> Comments?
> 

Looks good but I suspect that macmace needs to be added to the nic-modules 
list.

-- 

> Adrian
> 
> > [1] https://github.com/glaubitz/linux-debian/commits/m68k
> 
> 

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

* Re: debian-installer progress and input needed
  2017-05-22  0:09     ` Finn Thain
@ 2017-05-22  9:39       ` John Paul Adrian Glaubitz
  0 siblings, 0 replies; 9+ messages in thread
From: John Paul Adrian Glaubitz @ 2017-05-22  9:39 UTC (permalink / raw)
  To: Finn Thain; +Cc: Debian m68k, Linux/m68k

On 05/22/2017 02:09 AM, Finn Thain wrote:
> Looks good but I suspect that macmace needs to be added to the nic-modules 
> list.

Right, forgot that one because I got interrupted. I also have to drop
the atari_ethernec driver which no longer exists.

Also, I'm wondering which of the drivers are actually listed there
redundantly and are already included through #include <nic-modules>
which seems to include all Ethernet drivers by default.

Will have to ask the Debian kernel people how that actually works.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

end of thread, other threads:[~2017-05-22  9:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-15 21:21 debian-installer progress and input needed John Paul Adrian Glaubitz
2017-05-16  7:40 ` Geert Uytterhoeven
2017-05-16  8:25   ` Laurent Vivier
2017-05-16  8:13 ` Finn Thain
2017-05-17 12:24 ` John Paul Adrian Glaubitz
2017-05-18  5:37   ` Michael Schmitz
2017-05-21 11:33   ` John Paul Adrian Glaubitz
2017-05-22  0:09     ` Finn Thain
2017-05-22  9:39       ` John Paul Adrian Glaubitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox