All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] dts to dtb generation
@ 2008-12-12 16:14 Marco Antônio Possamai
  2008-12-12 16:44 ` Jerry Van Baren
  2008-12-12 16:48 ` Detlev Zundel
  0 siblings, 2 replies; 3+ messages in thread
From: Marco Antônio Possamai @ 2008-12-12 16:14 UTC (permalink / raw)
  To: u-boot

Hello, all.

I need to get my device-tree blob done, in order to pass it along with
the image I've created (bootm command). I'm kind of new on the dtb
concept and I'm not sure if I'm doing it right. Have read some stuff
about it, though.

What I got is that I have to generate a .dtb out of this source file
(lite5200b.dts). But I can't get my dtc to work.

I've downloaded the latest version
(http://jdl.com/software/dtc-latest.tgz) and done the make command, but
it points some errors during building. Check the snippet:

...

BISON dtc-parser.tab.c
 DEP dtc-parser.tab.c
 LEX dtc-lexer.lex.c
make: flex: Command not found
 DEP checks.c
 DEP srcpos.c
 DEP treesource.c
 DEP livetree.c
 DEP data.c
 DEP fstree.c
 DEP flattree.c
 DEP dtc.c
 LEX dtc-lexer.lex.c
make: flex: Command not found
CHK version_gen.h
UPD version_gen.h
 DEP dtc.c
 LEX dtc-lexer.lex.c
make: flex: Command not found
CHK version_gen.h
 CC dtc.o
...

And after the 'make install' command it reports the same 'flex: Command
not found':

LEX dtc-lexer.lex.c
make: flex: Command not found
CHK version_gen.h

I've visited the http://www.embeddedlinuxprimer.com/dtc for the howto
steps.

Well, I guess it didn't complete the install, the console bashes the dtc
as 'not found'.

I'm aware there must be some small detail I must be missing in order to
get it right, but I'd really appreciate a pointer here.


Thanks for the attention.


Marco Ant?nio Possamai

Universidade Federal de Santa Catarina

P.S: I'm also aware this is possibly not the right mailing list to ask about device-tree compilers... but I haven't found one specific for it. Sorry for the inconvenience.

-- 
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] dts to dtb generation
  2008-12-12 16:14 [U-Boot] dts to dtb generation Marco Antônio Possamai
@ 2008-12-12 16:44 ` Jerry Van Baren
  2008-12-12 16:48 ` Detlev Zundel
  1 sibling, 0 replies; 3+ messages in thread
From: Jerry Van Baren @ 2008-12-12 16:44 UTC (permalink / raw)
  To: u-boot

Marco Ant?nio Possamai wrote:
> Hello, all.
> 
> I need to get my device-tree blob done, in order to pass it along with
> the image I've created (bootm command). I'm kind of new on the dtb
> concept and I'm not sure if I'm doing it right. Have read some stuff
> about it, though.
> 
> What I got is that I have to generate a .dtb out of this source file
> (lite5200b.dts). But I can't get my dtc to work.
> 
> I've downloaded the latest version
> (http://jdl.com/software/dtc-latest.tgz) and done the make command, but
> it points some errors during building. Check the snippet:

Good.

> BISON dtc-parser.tab.c
>  DEP dtc-parser.tab.c
>  LEX dtc-lexer.lex.c
> make: flex: Command not found

Bad.  You are done at this point.

[snip]

> I'm aware there must be some small detail I must be missing in order to
> get it right, but I'd really appreciate a pointer here.
> 
> 
> Thanks for the attention.
> Marco Ant?nio Possamai

Hi Marco,

You are missing the flex package, and thus the "flex" command, on your 
system.  Flex is a lexical parser (classic name "lex").

You didn't say what your host's distribution is.  If it is debian, you 
need to install the flex package.  RH/SuSE may name their package 
differently (probably not).
<http://packages.debian.org/search?keywords=flex&searchon=names&suite=all&section=all>

Best regards,
gvb

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] dts to dtb generation
  2008-12-12 16:14 [U-Boot] dts to dtb generation Marco Antônio Possamai
  2008-12-12 16:44 ` Jerry Van Baren
@ 2008-12-12 16:48 ` Detlev Zundel
  1 sibling, 0 replies; 3+ messages in thread
From: Detlev Zundel @ 2008-12-12 16:48 UTC (permalink / raw)
  To: u-boot

Hi Marco,

> BISON dtc-parser.tab.c
>  DEP dtc-parser.tab.c
>  LEX dtc-lexer.lex.c
> make: flex: Command not found

Actually, I do not know, how an error message could be more clear than
that.  Obviously your Linux installation is missing the GNU lexical
scanner generator "flex".  It should be trivial to install that package
for the distro that you use.

Best wishes
  Detlev

-- 
Every time history repeats itself the price goes up.
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-12 16:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-12 16:14 [U-Boot] dts to dtb generation Marco Antônio Possamai
2008-12-12 16:44 ` Jerry Van Baren
2008-12-12 16:48 ` Detlev Zundel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.