[Soekris] Debian/Etch on net4501 device, hints and links?
C N, Kanthi (Kanthi)
kanthicn at alcatel-lucent.com
Wed Dec 26 12:28:18 UTC 2007
Hi,
I have installed dapper on CF using debootstrap from a linux machine. I
think it was a pretty standard procedure. Just a few points (even if
they are repetition)
(1) I choose processor type in kernel configuration to be AMD-elan and
compile as you would in a regular linux kernel compilation.
(2) Install modules with INSTALL_MOD_PATH set to "/" of wherever the
flashdrive is mounted.
(3) copy your kernel to /boot of the mounted flash drive.
(4) I create a lilo.conf on the "/" of the CF. I do a chroot to that
mounted directory and run lilo. "chroot /mnt/cf/ lilo -C lilo.conf"
(5) One more thing is to modify /etc/inittab (on the CF) to send output
to serial device and not open all tty(s).
Do contact me if you have any doubts.
Thanks,
Kanthi
> -----Original Message-----
> From: soekris-tech-bounces at lists.soekris.com
> [mailto:soekris-tech-bounces at lists.soekris.com] On Behalf Of
> soekris-tech-request at lists.soekris.com
> Sent: Wednesday, December 26, 2007 5:30 PM
> To: soekris-tech at lists.soekris.com
> Subject: Soekris-tech Digest, Vol 46, Issue 34
>
> Send Soekris-tech mailing list submissions to
> soekris-tech at lists.soekris.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.soekris.com/mailman/listinfo/soekris-tech
> or, via email, send a message with subject or body 'help' to
> soekris-tech-request at lists.soekris.com
>
> You can reach the person managing the list at
> soekris-tech-owner at lists.soekris.com
>
> When replying, please edit your Subject line so it is more
> specific than "Re: Contents of Soekris-tech digest..."
>
>
> Today's Topics:
>
> 1. Debian/Etch on net4501 device, hints and links? (Holger
> Rodriguez)
> 2. Re: Debian/Etch on net4501 device, hints and links?
> (Marc Balmer)
> 3. Re: Debian/Etch on net4501 device, hints and links?
> (Lars Nood?n)
> 4. Re: Debian/Etch on net4501 device, hints and links? (ervin)
> 5. Re: Debian/Etch on net4501 device, hints and links? (ervin)
> 6. very basic questions on booting from compactflash
> (Floating Integer)
> 7. Re: Net5501 - linux kernel crash - report w/ test environment
> details (Gregory Cavelier - Materiel.Net)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 25 Dec 2007 14:00:57 +0100
> From: Holger Rodriguez <soekris at roseng.ch>
> Subject: [Soekris] Debian/Etch on net4501 device, hints and links?
> To: soekris-tech at lists.soekris.com
> Message-ID: <4770FF09.3000100 at roseng.ch>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi all,
> currently I'm running two net4501 devices with OpenBSD 4.0 as
> an choke and access router, and its running fine.
> Unfortunately the only machine providing an OpenBSD 4.0
> environment, where the CF cards can be generated, is dying,
> and the only reason for this machine was the net4501's.
>
> The rest of the network are Debian/Etch machines (AMD-64 and Intel).
> Therefore I want the OS of the net4501 to change to Debian/Etch.
>
> I searched through the mailing list archive, but what I found
> was not (at least not for me) enough.
> I know, that using a Debian/Etch AMD-64 environment to create the
> net4501 installation
> needs at least
> - debootstrap
> - cross compile for the target
> I'm not afraid setting this up, but currently I feel very lost......
>
> Therefore I dare to ask the question:
> Is there anybody out there, using a Debian/Etch installation
> (cross compile not necessary) to create the images for the
> net4501 devices?
>
> Any hints, like:
> - this is what you need
> - this is the CONFIG (for compiling the kernel) spec you want
> - these are the points to be aware of
> - are the devices supported in the standard kernel
> - etc.
> would be highly appreciated.
>
> (Next year I want to buy a n5501 with a lan1641, any problems
> I should know of in advance?)
>
> Thanks a lot in advance,
> Holger
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 25 Dec 2007 14:07:34 +0100
> From: Marc Balmer <marc at msys.ch>
> Subject: Re: [Soekris] Debian/Etch on net4501 device, hints and links?
> To: soekris at roseng.ch
> Cc: soekris-tech at lists.soekris.com
> Message-ID: <47710096.4090403 at msys.ch>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Holger Rodriguez wrote:
> > Hi all,
> > currently I'm running two net4501 devices with OpenBSD 4.0
> as an choke
> > and access router, and its running fine.
> > Unfortunately the only machine providing an OpenBSD 4.0
> environment,
> > where the CF cards can be generated, is dying, and the only
> reason for
> > this machine was the net4501's.
>
> Im an not really answering your questions, but why don't you just get
> 1-2 GB CF cards and install an OpenBSD snapshot on them? You
> don't need your own build machines for that and you get the
> latest features.
>
> 2 GB CF cards cost around CHF 40 nowadays.
>
> (I really would not want to go back from OpenBSD for Linux,
> especially not on a firewall/router)
>
> >
> > The rest of the network are Debian/Etch machines (AMD-64 and Intel).
> > Therefore I want the OS of the net4501 to change to Debian/Etch.
> >
> > I searched through the mailing list archive, but what I
> found was not
> > (at least not for me) enough.
> > I know, that using a Debian/Etch AMD-64 environment to create the
> > net4501 installation
> > needs at least
> > - debootstrap
> > - cross compile for the target
> > I'm not afraid setting this up, but currently I feel very lost......
> >
> > Therefore I dare to ask the question:
> > Is there anybody out there, using a Debian/Etch installation (cross
> > compile not necessary) to create the images for the net4501 devices?
> >
> > Any hints, like:
> > - this is what you need
> > - this is the CONFIG (for compiling the kernel) spec you want
> > - these are the points to be aware of
> > - are the devices supported in the standard kernel
> > - etc.
> > would be highly appreciated.
> >
> > (Next year I want to buy a n5501 with a lan1641, any
> problems I should
> > know of in advance?)
> >
> > Thanks a lot in advance,
> > Holger
> > _______________________________________________
> > Soekris-tech mailing list
> > Soekris-tech at lists.soekris.com
> > http://lists.soekris.com/mailman/listinfo/soekris-tech
>
>
> --
> SELECT services FROM companies WHERE name = 'micro systems'
>
> marc balmer, micro systems, wiesendamm 2a, postfach, ch-4019
> basel internet www.msys.ch, phone +41 61 383 05 10, fax +41
> 61 383 05 12
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 25 Dec 2007 15:49:11 +0200
> From: Lars Nood?n <lars at umich.edu>
> Subject: Re: [Soekris] Debian/Etch on net4501 device, hints and links?
> To: soekris at roseng.ch
> Cc: soekris-tech at lists.soekris.com
> Message-ID: <47710A57.2010800 at umich.edu>
> Content-Type: text/plain; charset=UTF-8
>
> Holger Rodriguez wrote:
> ...
> > Unfortunately the only machine providing an OpenBSD 4.0
> environment,
> >where the CF cards can be generated, is dying, and the only
> reason for
> >this machine was the net4501's.
> >...
>
> How about working with OpenBSD in Etch under qemu? It's how
> I got started last year, though not how I burned the CF.
>
> Another option is to install directly on the net4501 using PXE boot.
> DHCP, TFTP and FTP can be on any OS then. The drawback there
> is that you need a serial connection or a usb<->serial cable.
>
> That's the method I chose to follow this time for two
> net4801s. Because I'm mixing several projects at the same
> time, I used Xubuntu w/ fluxbox rather than Etch. And to get
> DHCP+TFTP, I used DNSmasq, and for FTP, vsFTP, though the
> choices there are less important and they don't need to be up
> and running except during the installation.
>
> Regards,
> -Lars
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 25 Dec 2007 15:27:23 +0100
> From: ervin <ervin23 at gmail.com>
> Subject: Re: [Soekris] Debian/Etch on net4501 device, hints and links?
> To: soekris at roseng.ch, soekris-tech at lists.soekris.com
> Message-ID:
> <b4d972400712250627k1d97b4b9ta91f3cb80616453d at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> here http://www.ultradesic.com/?section=52 ... I did it & it
> works ... :-)
>
> On 25/12/2007, Holger Rodriguez <soekris at roseng.ch> wrote:
> > Hi all,
> > currently I'm running two net4501 devices with OpenBSD 4.0
> as an choke
> > and access router, and its running fine.
> > Unfortunately the only machine providing an OpenBSD 4.0
> environment,
> > where the CF cards can be generated, is dying, and the only
> reason for
> > this machine was the net4501's.
> >
> > The rest of the network are Debian/Etch machines (AMD-64 and Intel).
> > Therefore I want the OS of the net4501 to change to Debian/Etch.
> >
> > I searched through the mailing list archive, but what I
> found was not
> > (at least not for me) enough.
> > I know, that using a Debian/Etch AMD-64 environment to create the
> > net4501 installation
> > needs at least
> > - debootstrap
> > - cross compile for the target
> > I'm not afraid setting this up, but currently I feel very lost......
> >
> > Therefore I dare to ask the question:
> > Is there anybody out there, using a Debian/Etch installation (cross
> > compile not necessary) to create the images for the net4501 devices?
> >
> > Any hints, like:
> > - this is what you need
> > - this is the CONFIG (for compiling the kernel) spec you want
> > - these are the points to be aware of
> > - are the devices supported in the standard kernel
> > - etc.
> > would be highly appreciated.
> >
> > (Next year I want to buy a n5501 with a lan1641, any
> problems I should
> > know of in advance?)
> >
> > Thanks a lot in advance,
> > Holger
> > _______________________________________________
> > Soekris-tech mailing list
> > Soekris-tech at lists.soekris.com
> > http://lists.soekris.com/mailman/listinfo/soekris-tech
> >
>
>
> --
>
>
> mvh/best regards ervin
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 25 Dec 2007 15:34:31 +0100
> From: ervin <ervin23 at gmail.com>
> Subject: Re: [Soekris] Debian/Etch on net4501 device, hints and links?
> To: soekris at roseng.ch, soekris-tech at lists.soekris.com
> Message-ID:
> <b4d972400712250634o35320012p4d3066b30c4fccf0 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> However turned to FreeBSD again .... see other thread /
>
> On 25/12/2007, ervin <ervin23 at gmail.com> wrote:
> > here http://www.ultradesic.com/?section=52 ... I did it & it
> > works ... :-)
> >
> > On 25/12/2007, Holger Rodriguez <soekris at roseng.ch> wrote:
> > > Hi all,
> > > currently I'm running two net4501 devices with OpenBSD 4.0 as an
> > > choke and access router, and its running fine.
> > > Unfortunately the only machine providing an OpenBSD 4.0
> environment,
> > > where the CF cards can be generated, is dying, and the
> only reason
> > > for this machine was the net4501's.
> > >
> > > The rest of the network are Debian/Etch machines (AMD-64
> and Intel).
> > > Therefore I want the OS of the net4501 to change to Debian/Etch.
> > >
> > > I searched through the mailing list archive, but what I found was
> > > not (at least not for me) enough.
> > > I know, that using a Debian/Etch AMD-64 environment to create the
> > > net4501 installation
> > > needs at least
> > > - debootstrap
> > > - cross compile for the target
> > > I'm not afraid setting this up, but currently I feel very
> lost......
> > >
> > > Therefore I dare to ask the question:
> > > Is there anybody out there, using a Debian/Etch
> installation (cross
> > > compile not necessary) to create the images for the
> net4501 devices?
> > >
> > > Any hints, like:
> > > - this is what you need
> > > - this is the CONFIG (for compiling the kernel) spec you want
> > > - these are the points to be aware of
> > > - are the devices supported in the standard kernel
> > > - etc.
> > > would be highly appreciated.
> > >
> > > (Next year I want to buy a n5501 with a lan1641, any problems I
> > > should know of in advance?)
> > >
> > > Thanks a lot in advance,
> > > Holger
> > > _______________________________________________
> > > Soekris-tech mailing list
> > > Soekris-tech at lists.soekris.com
> > > http://lists.soekris.com/mailman/listinfo/soekris-tech
> > >
> >
> >
> > --
> >
> >
> > mvh/best regards ervin
> >
>
>
> --
>
>
> mvh/best regards ervin
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 25 Dec 2007 18:51:11 -0800
> From: "Floating Integer" <ardenfort at gmail.com>
> Subject: [Soekris] very basic questions on booting from compactflash
> To: soekris-tech at lists.soekris.com
> Message-ID:
> <9ad61e380712251851v50d360d0k47ed3082ce355a60 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I now have a Soekris 4521 board running Linux and some
> utilities on it. I did all of my initial application
> development using NFS as it was a simple thing to do. On my
> laptop, /nfs directory now contains all the files and
> directories that the board needs.
>
> I used buildroot. It created a file system in tar. I untar
> it into /nfs. I customize the files under /nfs. The board
> performs a PXE boot, downloads kernel from /tftpboot of the
> laptop. The pxelinux.cfg/default directory tells the board to
> look for the root file system under /nfs.
>
> The total size of all files and directories in /nfs is ("du
> -s /nfs") about 128MB. The compactflash has 1GB. The board
> has 64MB of RAM. When the kernel has loaded and other
> modules have loaded, about 9MB of the main memory is in use.
> So far so good.
>
> I have one issue that is still not resolved. How do create a
> bootable compact-flash with what is available on /nfs? What
> are the steps? I am missing some fundamentals of the boot
> process here. It seems like I should create a ramdisk image
> of a subnet of files from /nfs and place the ramdisk image in
> /nfs/boot directory. Should the ramdisk-image be created for
> 64MB of RAM that the board has?
>
> On my laptop, /nfs/boot/ - this contains the kernel
> "bzImage" and also
> "grub" the kernel-loader. Buildroot didn't create menu.lst
> by default.
> /dev/ram exists. What would be a common menu.lst file if the
> system boots from flash?
>
> Any pointers (books, website anything) will be greatly appreciated.
>
> thanks,
> ardenfort
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.soekris.com/pipermail/soekris-tech/attachments/20
071226/689247ea/attachment-0001.html
>
> ------------------------------
>
> Message: 7
> Date: Wed, 26 Dec 2007 10:12:06 +0100
> From: "Gregory Cavelier - Materiel.Net" <cavelier at domisys.com>
> Subject: Re: [Soekris] Net5501 - linux kernel crash - report w/ test
> environment details
> To: Martin Johnson <martin at martinshouse.com>
> Cc: soekris-tech at lists.soekris.com
> Message-ID: <20071226101206.f0099f7a.cavelier at domisys.com>
> Content-Type: text/plain; charset=US-ASCII
>
>
> We already tried that but nothing came up...
>
> On Wed, 26 Dec 2007 09:01:09 +0000
> Martin Johnson <martin at martinshouse.com> wrote:
>
> > I would set the console to the serial port, turn kernel
> trace on (if
> > possible - not my specialty) and log the kernel crash
> messages with a
> > second PC so that you can post them here
> >
> >
> > On 24 Dec 2007, at 14:07, Gregory Cavelier - Materiel.Net wrote:
> >
> > >
> > > Hello,
> > >
> > > We are trying to run a net5501 with a lan1641 but we are facing a
> > > problem : The kernel crashes. What's strange is that we
> can provoke
> > > that by running a script which sends emails.
> > >
> > > The logs show nothing special, the only thing we can do to get it
> > > back is to hard reboot it.
> > >
> > > We did the exact same test (same environment, same kernel) with a
> > > net4801 and
> > > a lan1621 and the problem doesn't show up!
> > >
> > > So, hoping that someone could help us with that (and is
> brave enough
> > > to set the same environment) here are all the details :
> > >
> > > The network topology is as shown in :
> > > http://cleia.org/soekris/test_network.pdf
> > >
> > > Yes, I know, putting a switch here is not clean but hey,
> it's just a
> > > test :) (and the "Fake ISP Gateway" only has one ethernet card).
> > >
> > > the net5501 is running a debian etch with a stock 2.6.23.9 linux
> > > kernel (configuration file at : http://cleia.org/soekris/.config)
> > >
> > > The whole distribution can be found
> > > at : http://cleia.org/soekris/flash_soekris.tar.bz2
> > >
> > > This archive contains 2 directories : sdb1 and sdb3. They can be
> > > copied on a 2Gb flash card (this is what we're using) using the
> > > following partition scheme :
> > >
> > > Device Boot Start End Blocks Id System
> Mount
> > > point
> > > /dev/sdb1 * 1 62 249952+ 83 Linux
> /boot
> > > /dev/sdb2 63 186 499968 82 Linux swap
> > > /dev/sdb3 187 1007 3310272 83 Linux /
> > >
> > > The other 3 "fake" machines are running a debian etch linux
> > > distribution.
> > >
> > > To do our test we use a perl script
> > > (http://cleia.org/soekris/test_mail.tar.gz ) which we run on the
> > > "Fake Mail Sender" to the "Fake SMTP Server" (running
> Postfix). To
> > > use this script : ./test_smtp.pl --count=500000 We
> usually run two
> > > instances of this script to get the crash; it happens between 15
> > > minutes and 10 hours...
> > >
> > > Thanks for reading that far,
> > >
> > > Regards
> > >
> > > --
> > >
> > > Gregory Cavelier <cavelier at domisys.com> - sysadmin Domisys SAS -
> > > http://www.materiel.net
> > > _______________________________________________
> > > Soekris-tech mailing list
> > > Soekris-tech at lists.soekris.com
> > > http://lists.soekris.com/mailman/listinfo/soekris-tech
> > >
> >
> >
>
>
> --
>
> Gregory Cavelier <cavelier at domisys.com> - sysadmin Domisys
> SAS - http://www.materiel.net
>
>
> ------------------------------
>
> _______________________________________________
> Soekris-tech mailing list
> Soekris-tech at lists.soekris.com
> http://lists.soekris.com/mailman/listinfo/soekris-tech
>
>
> End of Soekris-tech Digest, Vol 46, Issue 34
> ********************************************
>
More information about the Soekris-tech
mailing list