Re: OpenBSD on Soekris net4801

2019-05-22 Thread Alberto Mijares
>
> I tried doing the virtual image thing with mine and couldn't get it to work. 
> I ended up doing the same. You can get cf to USB adapters fairly cheap. And 
> did the initial install with my laptop then logged in and fixed the 
> networking stuff. I later did a fresh install over pxe using the laptop as 
> the ftpd server. This also worked well. I don't remember what it is but I had 
> to disable something in the kernel for it to boot up after install. Don't 
> judge me but mine is still running 6.2 because I'm too lazy to find it so I 
> can upgrade.


That "something" could be what I'm missing ;-)



Re: OpenBSD on Soekris net4801

2019-05-22 Thread Edgar Pettijohn


On May 22, 2019 6:05 PM, Chris Zakelj  wrote:
>
> When I set my 4801 up years and years ago, I did it by using an IDE>CF
> adapter on an old Athlon system I had hanging around rather than messing
> around with virtual images, PXE booting, or the like.  The Geode processor
> is roughly equivalent to a Pentium II, so use i386 images.  Past that, from
> my notes I have the console being set for 9600bps and vt220, and
> \etc\boot.conf
> set tty com0
>
> On Wed, May 22, 2019 at 2:08 PM Alberto Mijares  wrote:
>
> > Hi guys,
> >
> > I'm new on this list. Greetings everyone.
> >
> > Here is my case:
> >
> > I installed OpenBSD on a 4GB Flash Card by attaching the card to a
> > Bhyve VM as a "ahci-hd" custom drive. Then, booted the VM and disabled
> > a few of services. Also disabled kernel and libs randomization, since
> > it's not needed and the Soekris couldn't handle it. At the end, only
> > sshd, syslogd and ntpd are starting and and 73MB or RAM remain free.
> > Finally, I created a /etc/hostname.sis1 file with proper network
> > configuration, since the device name in the VM is not the same of the
> > interface of the Soekris.
> >
> > Now I should say: the serial console is not working for me, for some
> > reason I cannot get it working. I see garbage in the screen with all
> > possible combinations of speeds and other terminal configs.
> >
> > When I plug the CF in the Soekris, it won't boot properly. I think the
> > kernel is loaded and hangs at some point. Can't tell where, as
> > explained before. I know the boot is not finishing because I created a
> > /etc/rc.local in it doesn't do anything.
> >
> > I tried to edit /etc/fstab and change sd disk interface for wd. Not
> > working either.
> >
> > I also tried the bsd.rd but I'm not sure if I get a prompt or it also
> > hangs.
> >
> > Ideally, I would boot the Soekris and wait for network initialization
> > for connecting via SSH. Any suggestion?
> >
> > The only thing I haven't tried is the bsd.mp kernel, now that I think.
> > I'll give it a try and will be waiting for your feedback in the
> > meantime.
> >
> > Thanks in advance.
> >
> >
> > Alberto Mijares
> >
>

I tried doing the virtual image thing with mine and couldn't get it to work. I 
ended up doing the same. You can get cf to USB adapters fairly cheap. And did 
the initial install with my laptop then logged in and fixed the networking 
stuff. I later did a fresh install over pxe using the laptop as the ftpd 
server. This also worked well. I don't remember what it is but I had to disable 
something in the kernel for it to boot up after install. Don't judge me but 
mine is still running 6.2 because I'm too lazy to find it so I can upgrade.

Edgar



Re: OpenBSD on Soekris net4801

2019-05-22 Thread Chris Zakelj
When I set my 4801 up years and years ago, I did it by using an IDE>CF
adapter on an old Athlon system I had hanging around rather than messing
around with virtual images, PXE booting, or the like.  The Geode processor
is roughly equivalent to a Pentium II, so use i386 images.  Past that, from
my notes I have the console being set for 9600bps and vt220, and
\etc\boot.conf
set tty com0

On Wed, May 22, 2019 at 2:08 PM Alberto Mijares  wrote:

> Hi guys,
>
> I'm new on this list. Greetings everyone.
>
> Here is my case:
>
> I installed OpenBSD on a 4GB Flash Card by attaching the card to a
> Bhyve VM as a "ahci-hd" custom drive. Then, booted the VM and disabled
> a few of services. Also disabled kernel and libs randomization, since
> it's not needed and the Soekris couldn't handle it. At the end, only
> sshd, syslogd and ntpd are starting and and 73MB or RAM remain free.
> Finally, I created a /etc/hostname.sis1 file with proper network
> configuration, since the device name in the VM is not the same of the
> interface of the Soekris.
>
> Now I should say: the serial console is not working for me, for some
> reason I cannot get it working. I see garbage in the screen with all
> possible combinations of speeds and other terminal configs.
>
> When I plug the CF in the Soekris, it won't boot properly. I think the
> kernel is loaded and hangs at some point. Can't tell where, as
> explained before. I know the boot is not finishing because I created a
> /etc/rc.local in it doesn't do anything.
>
> I tried to edit /etc/fstab and change sd disk interface for wd. Not
> working either.
>
> I also tried the bsd.rd but I'm not sure if I get a prompt or it also
> hangs.
>
> Ideally, I would boot the Soekris and wait for network initialization
> for connecting via SSH. Any suggestion?
>
> The only thing I haven't tried is the bsd.mp kernel, now that I think.
> I'll give it a try and will be waiting for your feedback in the
> meantime.
>
> Thanks in advance.
>
>
> Alberto Mijares
>
>


Re: OpenBSD on Soekris net4801

2019-05-22 Thread Alberto Mijares
> What kernel did you install?  I know I'm running i386 on mine, and I'm
> also sure I'd be running amd64 if I could, so I'd say the 4801 can't
> handle amd64 kernels.

I installed i386,  of course.  Are you running 6.5 on yours?

>
> I never had any trouble booting from a serial console.  The default
> speed is 19200, BTW.
>
> If setting up PXE installation isn't too much trouble for you (see man
> pxeboot), you can make the soekris boot from the sis0 interface by
> hitting Ctrl+P after POST and typing "boot f0" (on a serial console,
> obviously).

A few years ago, when I got my Soekris, I changed the BIOS console
settings in the Soekris board. Not sure why, and I lost the document
where I wrote down the correct settings. I've tried all possible
combinations in cu(1) and minicom(1); nothing works, I only see
garbage in the terminal. At this point, not sure if my cable is good
and don't have another handy. I guess I'll order a new one soon.
Perhaps the BIOS tty console is damaged, I don't know. That's why I
need to make it run properly and get SSH access.

Any ideas on how to debug the kernel load and init process without the
serial console? Or better, any kernel parameter I'm missing?

Thanks in advance.


Alberto Mijares



Re: OpenBSD on Soekris net4801

2019-05-22 Thread Monah Baki
Have you tried

boot> stty com0 38400
boot> set tty com0



On Wed, May 22, 2019 at 2:14 PM Alberto Mijares  wrote:

> Hi guys,
>
> I'm new on this list. Greetings everyone.
>
> Here is my case:
>
> I installed OpenBSD on a 4GB Flash Card by attaching the card to a
> Bhyve VM as a "ahci-hd" custom drive. Then, booted the VM and disabled
> a few of services. Also disabled kernel and libs randomization, since
> it's not needed and the Soekris couldn't handle it. At the end, only
> sshd, syslogd and ntpd are starting and and 73MB or RAM remain free.
> Finally, I created a /etc/hostname.sis1 file with proper network
> configuration, since the device name in the VM is not the same of the
> interface of the Soekris.
>
> Now I should say: the serial console is not working for me, for some
> reason I cannot get it working. I see garbage in the screen with all
> possible combinations of speeds and other terminal configs.
>
> When I plug the CF in the Soekris, it won't boot properly. I think the
> kernel is loaded and hangs at some point. Can't tell where, as
> explained before. I know the boot is not finishing because I created a
> /etc/rc.local in it doesn't do anything.
>
> I tried to edit /etc/fstab and change sd disk interface for wd. Not
> working either.
>
> I also tried the bsd.rd but I'm not sure if I get a prompt or it also
> hangs.
>
> Ideally, I would boot the Soekris and wait for network initialization
> for connecting via SSH. Any suggestion?
>
> The only thing I haven't tried is the bsd.mp kernel, now that I think.
> I'll give it a try and will be waiting for your feedback in the
> meantime.
>
> Thanks in advance.
>
>
> Alberto Mijares
>
>


OpenBSD on Soekris net4801

2019-05-22 Thread Alberto Mijares
Hi guys,

I'm new on this list. Greetings everyone.

Here is my case:

I installed OpenBSD on a 4GB Flash Card by attaching the card to a
Bhyve VM as a "ahci-hd" custom drive. Then, booted the VM and disabled
a few of services. Also disabled kernel and libs randomization, since
it's not needed and the Soekris couldn't handle it. At the end, only
sshd, syslogd and ntpd are starting and and 73MB or RAM remain free.
Finally, I created a /etc/hostname.sis1 file with proper network
configuration, since the device name in the VM is not the same of the
interface of the Soekris.

Now I should say: the serial console is not working for me, for some
reason I cannot get it working. I see garbage in the screen with all
possible combinations of speeds and other terminal configs.

When I plug the CF in the Soekris, it won't boot properly. I think the
kernel is loaded and hangs at some point. Can't tell where, as
explained before. I know the boot is not finishing because I created a
/etc/rc.local in it doesn't do anything.

I tried to edit /etc/fstab and change sd disk interface for wd. Not
working either.

I also tried the bsd.rd but I'm not sure if I get a prompt or it also hangs.

Ideally, I would boot the Soekris and wait for network initialization
for connecting via SSH. Any suggestion?

The only thing I haven't tried is the bsd.mp kernel, now that I think.
I'll give it a try and will be waiting for your feedback in the
meantime.

Thanks in advance.


Alberto Mijares