mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Jose Luis Zabalza <jlz.3008@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: Novice questions
Date: Fri, 2 Jul 2010 09:16:08 +0200	[thread overview]
Message-ID: <20100702071608.GE5929@pengutronix.de> (raw)
In-Reply-To: <AANLkTil-pLayTps_sfU1fURx3MrgFTvnaABgP5QSfn9h@mail.gmail.com>

Hello Jose,

On Fri, Jul 02, 2010 at 05:03:27AM +0200, Jose Luis Zabalza wrote:
> Hello all
> 
> I'm trying write some code into barebox and  I have seen things that
> caught my attention.
> 
> 1.- Modules on barebox. lsmod, insmod commands, EXPORT_SYMBOL() macro.
> What is the purpouse of these ? Modules have no means less memory
> footprint ;-??

We have modules support because we can ;)

I haven't used it in production yet, but there are usecases for it. I'm
currently porting UBI to barebox and it turns out to be quite huge
(~40k). You normally do not need UBI support for normal booting, but you
need it for updating UBI images. So you could make a module from it and
load it on demand.

> 2.- usb command is on drivers/usb/usb.c file. What is the reason why
> it is not on commands dir?

Some commands are in other directory because they are close to a
particular framework. We could move it to commands though.

> 3.- What is the purpouse of usb command. Discover devices but after I
> can't read because I have not drivers associates to them. Actually, is
> there any way to read them?

You probably tried an USB memory stick. These are not yet supported.
Barebox currently only supports USB network adapters.

> 4.- Does anyone use the usb for anything other than firmwarize the
> device with DFU?

Yes, for networking on boards which do not have a NIC, like the Beagle
Board.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2010-07-02  7:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-02  3:03 Jose Luis Zabalza
2010-07-02  7:11 ` Robert Schwebel
2010-07-02  7:16 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100702071608.GE5929@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=jlz.3008@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox