Re: m68k netinst cd's
On Fri, Sep 26, 2008 at 12:41:41AM +0200, Michael Schmitz wrote: > Hi Stephen, > >>> - paths on TOS are using the backslash as separator, so the bootstrap >>> failed to locate the ramdisk and bailed out. Copying the bootargs and >>> bootstrap to HD and editing it fixed this. >> >> Can you tell me what the bootargs file should look like? > > Just replace / by \ everywhere, that should do it. I've done pretty much > the same, just changed the kernel image path to refer to the CD drive > using an absolute path (copying the kernel images to HD would have messed > up the names). Okay that should be in the next dailies. >>> - EtherNEC hangs with interrupts from stopped card - ethernec needs to be >>> built as a module, not compiled in for the time being. I've tried to fix >>> this in the driver, but no success so far. >> >> So CONFIG_ATARI_ETHERNEC=m ? Okay that's queued for 2.6.26-7. I'm going to try to build that soon for the dailies and because it will require a d-i change. So this might take a bit yet. > Yep. With the modules in the initrd, it'll work even better. :-) Fer sure. Thanks, Stephen -- Stephen R. Marenka If life's not fun, you're not doing it right! <[EMAIL PROTECTED]> signature.asc Description: Digital signature
Re: Installing with D-I from d-ports.org
On Thu, Sep 25, 2008 at 09:52:40PM +0200, Frans Pop wrote: > During installation you basically want to avoid displaying the mirror > list. But you also want to allow users to use a local mirror. I've always wondered why there wasn't an option to set a local mirror interactively. I've had the occasion on one-off installs to need to use a local mirror, but had to restart the installer with preseeding. Is it just that nobody ever wrote the code? > Easiest solution for that is probably to use "initrd preseeding" [1]. > This should do the above and avoid the need to modify any components. > > The preseed file should contain the following three lines (ignoring > security mirrors for now as you only have unstable): > d-i mirror/country string manual > d-i mirror/http/hostname string debian-ports.org > d-i mirror/http/hostname seen false > > The first line ensures that the country list is not displayed. The last > two lines ensure that the hostname _is_ asked, but has the correct > default. > > The preseed file can be included in the images by using a mechanism that > was in place for the Etch installer, but which has been dropped in trunk. > Check out installer/build from the etch branch, and see the unstable.cfg > file and grep for "PRESEED_SUITE". > IMO it should be no problem to again add something like that for d-ports. > The variable (DEBIAN_PORTS maybe?) could simply be set in config/m68k.cfg. Sounds like a reasonable solution. Interesting that I hadn't really thought about *that* bit of the switch to debian-ports. I use approx, so I changed it once and forgot about it. Thanks, Stephen -- Stephen R. Marenka If life's not fun, you're not doing it right! <[EMAIL PROTECTED]> signature.asc Description: Digital signature
Re: m68k netinst cd's
On Fri, 26 Sep 2008, Stephen R Marenka wrote: > >>> - EtherNEC hangs with interrupts from stopped card - ethernec needs > >>> to be built as a module, not compiled in for the time being. I've > >>> tried to fix this in the driver, but no success so far. > >> > >> So CONFIG_ATARI_ETHERNEC=m ? > > Okay that's queued for 2.6.26-7. I'm going to try to build that soon for > the dailies and because it will require a d-i change. So this might take > a bit yet. That reminds me... would you please enable powerbook ADB (CONFIG_ADB_PMU68K)? Not sure if it has the module option or not. If it does, just set it the same as CONFIG_ADB_CUDA. Thanks, Finn > > Yep. With the modules in the initrd, it'll work even better. :-) > > Fer sure. > > Thanks, > > Stephen > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: m68k netinst cd's
On Sat, Sep 27, 2008 at 12:54:57AM +1000, Finn Thain wrote: > That reminds me... would you please enable powerbook ADB > (CONFIG_ADB_PMU68K)? Not sure if it has the module option or not. If it > does, just set it the same as CONFIG_ADB_CUDA. CONFIG_ADB_PMU68K=y Set for 2.6.26-7. Test building now. Peace, Stephen -- Stephen R. Marenka If life's not fun, you're not doing it right! <[EMAIL PROTECTED]> signature.asc Description: Digital signature
Re: Installing with D-I from d-ports.org
On Friday 26 September 2008, Stephen R Marenka wrote: > On Thu, Sep 25, 2008 at 09:52:40PM +0200, Frans Pop wrote: > > During installation you basically want to avoid displaying the mirror > > list. But you also want to allow users to use a local mirror. > > I've always wondered why there wasn't an option to set a local mirror > interactively. I've had the occasion on one-off installs to need to use > a local mirror, but had to restart the installer with preseeding. Is it > just that nobody ever wrote the code? Huh? I always install using my local mirror. We have that nice option "Enter information manually" option at the top of the country list exactly for that purpose :-) signature.asc Description: This is a digitally signed message part.
Re: Installing with D-I from d-ports.org
On Fri, Sep 26, 2008 at 11:30:31PM +0200, Frans Pop wrote: > On Friday 26 September 2008, Stephen R Marenka wrote: > > On Thu, Sep 25, 2008 at 09:52:40PM +0200, Frans Pop wrote: > > > During installation you basically want to avoid displaying the mirror > > > list. But you also want to allow users to use a local mirror. > > > > I've always wondered why there wasn't an option to set a local mirror > > interactively. I've had the occasion on one-off installs to need to use > > a local mirror, but had to restart the installer with preseeding. Is it > > just that nobody ever wrote the code? > > Huh? I always install using my local mirror. > We have that nice option "Enter information manually" option at the top of > the country list exactly for that purpose :-) Sigh, learn something new every day. :) Thanks, Stephen -- Stephen R. Marenka If life's not fun, you're not doing it right! <[EMAIL PROTECTED]> signature.asc Description: Digital signature
Re: m68k netinst cd's
Hi Stephen, Can you tell me what the bootargs file should look like? Just replace / by \ everywhere, that should do it. I've done pretty much the same, just changed the kernel image path to refer to the CD drive using an absolute path (copying the kernel images to HD would have messed up the names). Okay that should be in the next dailies. Fine. - EtherNEC hangs with interrupts from stopped card - ethernec needs to be built as a module, not compiled in for the time being. I've tried to fix this in the driver, but no success so far. So CONFIG_ATARI_ETHERNEC=m ? Okay that's queued for 2.6.26-7. I'm going to try to build that soon for the dailies and because it will require a d-i change. So this might take a bit yet. NP, I will try a few more things to make ethernec behave better (right now you have to use module arguments to set the base address, unnecessarily. Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
[PATCH] m68k: Atari EtherNEC fixes
Hi, - EtherNEC hangs with interrupts from stopped card - ethernec needs to be built as a module, not compiled in for the time being. I've tried to fix this in the driver, but no success so far. So CONFIG_ATARI_ETHERNEC=m ? Okay that's queued for 2.6.26-7. I'm going to try to build that soon for the dailies and because it will require a d-i change. So this might take a bit yet. NP, I will try a few more things to make ethernec behave better (right now you have to use module arguments to set the base address, unnecessarily. I finally found out why the driver was even getting interrupt delivered. Turns out I did not use a wrapper for ei_interrupt in the usual case ... now where did my brown paper bag go? Patch attached; this goes on top of 2.6.26-m68k (i.e. with the current EtherNEC patch applied). Should apply to Geert's tree with minimum fuss. The driver loads as module without need of parameters now. It should also load normally when compiled in (we'll see that in the next d-i iteration, won't we?). Michael (who hasn't forgotten about the various driver cleanups promised; it's been a tad busy lately) Use wrapper around ei_interrupt to prevent delivery of (timer!) interrupts before card is opened. Limit IO addresses to 0x300 (this is hardwired on the bus adapter anyway, and the card needs to be programmed to use that IO in some way before the adapter can work). Preset io=0x300 for module use. Signed-off-by: Michael Schmitz <[EMAIL PROTECTED]> atari_ethernec.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) --- --- linux-2.6.26-geert/drivers/net/atari_ethernec.c 2008-07-18 01:21:51.0 +0200 +++ linux-2.6.26-ms/drivers/net/atari_ethernec.c 2008-09-27 05:42:37.0 +0200 @@ -124,7 +124,7 @@ /* A zero-terminated list of I/O addresses to be probed at boot. */ #ifndef MODULE static unsigned int netcard_portlist[] __initdata = { - 0x300, 0x280, 0x320, 0x340, 0x360, 0x380, 0 + 0x300, 0 }; #endif @@ -227,6 +227,14 @@ static struct net_device *poll_dev = NULL; +irqreturn_t atari_ei_interrupt(int irq, void *dev_id) +{ + struct net_device *dev = dev_id; + if (netif_running(dev)) + return ei_interrupt(dev->irq, dev); + return IRQ_NONE; +} + static void atari_ethernec_int(struct work_struct *work) { struct net_device *dev = poll_dev; @@ -619,7 +627,7 @@ mfp.tim_ct_cd = (mfp.tim_ct_cd & 0xf0) | 0x6; } /* Must make this shared in case other timer ints are needed */ - ret = request_irq(dev->irq, ei_interrupt, IRQF_SHARED, name, dev); + ret = request_irq(dev->irq, atari_ei_interrupt, IRQF_SHARED, name, dev); if (ret) { printk(" unable to get IRQ %d (errno=%d), polling instead.\n", dev->irq, ret); @@ -941,9 +949,9 @@ #ifdef MODULE -#define MAX_NE_CARDS 4 /* Max number of NE cards per module */ +#define MAX_NE_CARDS 1 /* Max number of NE cards per module */ static struct net_device *dev_ne[MAX_NE_CARDS]; -static int io[MAX_NE_CARDS]; +static int io[MAX_NE_CARDS] = { 0x300 }; static int irq[MAX_NE_CARDS]; static int bad[MAX_NE_CARDS]; /* 0xbad = bad sig or no reset ack */