Aaron J. Grier | 5 Feb 22:09 2009

Re: suggestions for hardware to show off NetBSD?

On Sun, Feb 01, 2009 at 06:49:05PM -0700, Herb Peyerl wrote:
> A gumstix would also be cool if someone had one

I don't think there is any gumstix overo support yet, and verdex support
was only recently checked-in.  I could be mistaken?

--

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | agrier <at> poofygoof.com

KunalGoel | 5 Feb 12:14 2009
Picon

Embedded NETBSD Driver Devolpment

Hello all, I am new to NETBSD. I want to develop Device drivers for ARM processor. I have some queries regarding the same. Please help me: 1. What will be the devolpment environment on my desktop? Do i need to install NETBSD for i386, Linux or my windows will work fine? 2. How to proceed for the same? i mean if NETBSD which release,if Windows or linux then how to start? 2. Is there any IDE for the same? Please help me. Thanks & Regards, Kunal

View this message in context: Embedded NETBSD Driver Devolpment
Sent from the port-arm mailing list archive at Nabble.com.
der Mouse | 6 Feb 03:56 2009

Re: Embedded NETBSD Driver Devolpment

> I am new to NETBSD.  I want to develop Device drivers for ARM
> processor.  I have some queries regarding the same.  Please help me:

I am assuming, here, that what you want to develop is NetBSD device
drivers for hardware that is targeted for an ARM-based machine.
(NetBSD already supports the ARM, so you don't need drivers for the ARM
processir itself, and, if the drivers aren't for NetBSD, I don't see
why you'd want to use NetBSD.)

> 1. What will be the devolpment environment on my desktop?  Do i need
> to install NETBSD for i386, Linux or my windows will work fine?

"It depends."

Having a NetBSD machine to do some of the work on is...well, I hesitate
truly to call it essential, but it is so important it's pretty close to
that.  (Actually, if you knew enough and had enough experience to avoid
needing it, you wouldn't be asking these questions, so you will
probably find it essential for you.)

It does not have to be your main desktop machine.  It may help in some
respects, but if you want to continue to use Windows on your desktop
(for example, because that's what you're comfortable with) it should
work fine for the NetBSD machine to be a different one, or an emulated
machine (VMware or its ilk running on your desktop Windows).

It will probably help if you have an ARM machine running NetBSD.  This
is not essential, probably not even for someone new to NetBSD, but it
is a substantial help.  I'm working on some PowerPC hardware now, and
even though I've been playing with NetBSD for over a decade, I made
sure I had a PowerPC machine running NetBSD to work on.)  This may or
may not be the same as the NetBSD install I mentioned above.

If your target ARM machine is already supported by NetBSD, I would
strongly recommend that you install NetBSD on it, as that will make
your test-debug cycle substantially more convenient.  If your ARM
machine is not yet supported by NetBSD, this means you will have to do
a bringup as well.  This is not a task for someone new to NetBSD; if
this is your situation, you will probably find it essential to spend
some time familiarizing yourself with NetBSD first, so that by the time
you start doing the bringup proper, you are no longer new to NetBSD.

If your hardware is for a commodity bus like PCI, you might find it
easier to develop the driver for a more common machine using the same
bus.  NetBSD drivers are normally written in a fairly
hardware-independent way, so that (for example) the same driver
supports a given PCI Ethernet card in the same way on any NetBSD port
which supports PCI at all.  If you pay proper attention to portability,
such as using the bus-space functions to talk to the hardware, your
driver should just work on your final platform as well.  This is
especially mportant if you intend to contribute the resulting driver
back to NetBSD (so that, for example, people who buy the hardware will
find support is already present in NetBSD).

> 2. How to proceed for the same?  i mean if NETBSD which release, if
> Windows or linux then how to start?

Again, it depends.  If you are trying to develop something for a
particular version of NetBSD (for example, if you're building a set-top
box and have already picked a particular release for it), work with
that release on your NetBSD machine (whether or not it's your desktop).

If you want to run something else on your desktop, well, run whatever
you like.  There really is no "how to start"; all of the work will be 
editing source code, compiling it, and testing the resulting binaries
(well, plus things like reading documentation to figur eout what code
to write).

For editing, I'd recommend you use whatever text editor you're most
comfortable with.

Compiling it is one reason I say you really want to have a NetBSD
machine around somewhere.  If it's an ARM machine, you can use its
toolchain (compiler, linker, etc); if not, you will need to
cross-build, which is moderately well supported, but still is
substantially easier from NetBSD.  If not NetBSD, at least another
POSIX system; cross-building from a non-POSIX system is, I gather,
pretty much "you're on your own"; I would not suggest you try that
unless you have a substantial amount of time you can invest in getting
used to NetBSD and its build tools first.

For testing, you pretty much have to have an instance of your target
platform.  Running it in simulation, when possible (ie, when you have a
simulator), can get you most of the way there without risking damaging
hardware by doing something like accidentally configuring a clock
frequency wrong, but it's only as good as the simulation; I would never
consider something like that ready without trying it on the real
hardware.

> 2. Is there any IDE for the same?

I doubt it, in the sense you probably mean it.  Something like a recent
GNU emacs with a little care put into configuration amounts to much the
same thing; while it's not normally thought of as an IDE, I'm having
trouble defining the difference, except that the "IDE" is probably
substantially less flexible.

However, it's possible something of the sort exists and I just haven't
heard about it.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse <at> rodents-montreal.org
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

KunalGoel | 6 Feb 05:44 2009
Picon

Re: Embedded NETBSD Driver Devolpment


Hi,

i am working on bsp development for SmartPhone. i want to know how to
develop a bsp on NETBSD.

in Smartphone, we have multimedia processor. multimedia processor includes
ARM along with DSPs(e.g. audio,video, graphics accelerator ....).

i have developed BSP for Smartphone on WindowsMobile. in windows mobile, we
used to install platfrom builder on windows xp machine. we develop/compile
our BSP in platform builder. after making image in platform builder, we
transfer that image to our smartphone through USB.

i am very new to NETBSD.
So how to do similar things on NETBSD. i mean what to install and how to go
ahead.

Regards,
Kunal

KunalGoel wrote:
> 
> Hello all,
> 
> I am new to NETBSD. I want to develop Device drivers for ARM processor. I
> have  some queries regarding the same. Please help me:
> 
> 1. What will be the devolpment environment on my desktop?  Do i need to
> install NETBSD for i386, Linux or my windows will work fine?
> 2. How to proceed for the same? i mean if NETBSD which release,if Windows
> or linux then how to start? 
> 2. Is there any IDE for the same?
> 
> Please help me.
> 
> Thanks & Regards,
> Kunal
> 

--

-- 
View this message in context: http://www.nabble.com/Embedded-NETBSD-Driver-Devolpment-tp21849417p21866500.html
Sent from the port-arm mailing list archive at Nabble.com.

Hubert Feyrer | 6 Feb 08:13 2009
Picon

Re: Embedded NETBSD Driver Devolpment

On Thu, 5 Feb 2009, KunalGoel wrote:
> So how to do similar things on NETBSD. i mean what to install and how to go
> ahead.

I don't know what a BSP is, but for general development, see
http://www.netbsd.org/docs/guide/en/part-compile.html

  - Hubert

Hubert Feyrer | 6 Feb 08:16 2009
Picon

Re: Embedded NETBSD Driver Devolpment

On Thu, 5 Feb 2009, KunalGoel wrote:
> 1. What will be the devolpment environment on my desktop?  Do i need to
> install NETBSD for i386, Linux or my windows will work fine?

Windows not really - NetBSD may build in Cygwin, but I'm not sure of that.
Else, I've built NetBSD for various platforms from NetBSD, Linux, Mac OS 
and Solaris.

> 2. How to proceed for the same? i mean if NETBSD which release,if Windows or
> linux then how to start?

See http://www.netbsd.org/docs/guide/en/part-compile.html, your target 
platform doesn't matter for the sources that you use. The decision that 
you should make here is what NetBSD CVS branch to use - HEAD (AKA 
NetBSD-current) for the latest & greatest, or a release branch like 
netbsd-5. For a start, I'd recommend the latter.

> 2. Is there any IDE for the same?

No. Welcome to the command line.

  - Hubert

Arnaud Lacombe | 9 Feb 19:47 2009
Picon

Re: Embedded NETBSD Driver Devolpment

On Fri, Feb 6, 2009 at 2:13 AM, Hubert Feyrer <hubert <at> feyrer.de> wrote:
> On Thu, 5 Feb 2009, KunalGoel wrote:
>>
>> So how to do similar things on NETBSD. i mean what to install and how to
>> go
>> ahead.
>
> I don't know what a BSP is, but for general development, see
> http://www.netbsd.org/docs/guide/en/part-compile.html
>
A BSP is a Board Support Package, ie, all you will need to build the
software you'll run on the target board. The include cross-compiller,
scripts to prepare image, sources... In short, our common work
environment (with some tweaking) :-)

 - Arnaud

Ben Greenfield | 9 Feb 20:14 2009

Re: Embedded NETBSD Driver Devolpment


On Feb 9, 2009, at 1:47 PM, Arnaud Lacombe wrote:

> On Fri, Feb 6, 2009 at 2:13 AM, Hubert Feyrer <hubert <at> feyrer.de>  
> wrote:
>> On Thu, 5 Feb 2009, KunalGoel wrote:
>>>
>>> So how to do similar things on NETBSD. i mean what to install and  
>>> how to
>>> go
>>> ahead.
>>
>> I don't know what a BSP is, but for general development, see
>> http://www.netbsd.org/docs/guide/en/part-compile.html
>>
> A BSP is a Board Support Package, ie, all you will need to build the
> software you'll run on the target board. The include cross-compiller,
> scripts to prepare image, sources... In short, our common work
> environment (with some tweaking) :-)

I have chosen netbsd because the documentation truly reflects the  
experience.
I'm totally serious one can follow the documentation for setting up a  
tftp server with dhcp and it works.
I would recommend installing netbsd on your target device following  
the directions at

Look on this page for the processor that most resembles your host. I  
think the arm stuff is under the acorn family.

If you find that you are able to install netbsd then try to install  
the pkgsrc.

http://netbsd.org/docs/pkgsrc/index.html

pkgsrc is a centralized package management system that is used to  
distributes packages to netbsd. It can be used by other OSes

Although I have never tried to do this my experience with netbsd is  
that it should just work and if not someone can explain exactly what  
the current issue is.

Good luck,

Ben

>
>  - Arnaud

Andy Ruhl | 20 Feb 20:03 2009
Picon

Re: NSLU2 won't boot 5.0

2009/2/20 Andy Ruhl <acruhl <at> gmail.com>:
> Any ideas about what I'm doing wrong? Does telnetting into RedBoot
> actually work to load a NetBSD kernel? Maybe I really need the serial
> port?

Ok, I looked harder and found this:

http://wiki.netbsd.se/How_to_install_NetBSD_on_the_Linksys_NSLU2_(Slug)_without_a_serial_port,_using_NFS_and_telnet

So it looks like it should be possible to boot a tftp loaded kernel
from RedBoot after telnetting to it.

I guess the downside is you don't get a console, you have to do a full
NFS setup to get a running system, then use that system to install
onto a local USB disk. This is kind of a bummer.

I'll try this. I'm also hoping to run an expect script from the tftp
server machine so some form of unattended reboot might be possible.

More later.

Andy

Andy Ruhl | 21 Feb 00:16 2009
Picon

Re: NSLU2 won't boot 5.0

On Fri, Feb 20, 2009 at 12:03 PM, Andy Ruhl <acruhl <at> gmail.com> wrote:

I'm hoping someone can chime in at some point. I've still had no luck
in getting a kernel to boot.

I'm trying to download a specific branch of the code now according to
the "Versions that are known to work" section.

If someone has a kernel that they know will work, I'd appreciate it if
they could gzip it and email it to me privately.

Thanks.

Andy


Gmane