Have a problem with Pengutronix BSP

Brabbit
Hi. Everyone.
I've a problem with Pengutronix BSP.
I repeat this PDF file :
http://www.oselas.org/oselas/bsp/pengutronix/download/OSELAS.BSP-Pengutr...

In section 3.2.3
I use command "./configure" but it error and show this

"checking awk version... configure: error: we need GNU awk"

I need you help for fix this error.

Thank you.

Juergen Beisert
"error: we need GNU awk"

Install the GNU awk tool. How to do this, depends on your used
distribution.

Brabbit
@Juergen Beisert

Now. I can compile "./configure" and "make & make install".

Thank you.

Brabbit
Hi. Today I've a new problem to build the root filesystem.
At Section 4.6 in PDF file. I use command "ptxdist go" but it error and
show this :

ptxdist: error: toolchain doesn't point to an OSELAS.Toolchain
ptxdist: error: leave PTXCONF_CROSSCHAIN_VENDOR empty to disable vendor
check

please help me. How I can fix it.
Thank you.

Juergen Beisert
Did you already build the OSELAS.Toolchain? It is also described in section
3.3.2 of the PDF as one important part to get a working environment.
In the "ptxdist platform <your platform>" (section 4.4) PTXdist should
detect an existing OSELAS.Toolchain, if not, you can do it manually
(section 4.5).

Brabbit
@Juergen Beisert 

thank you.

But now. In section 4.7 

I use command "ptxdist platformconfig" and choose "image creation option".
I choose image types:

hd.img
root.jffs2
uRamdisk
root.ext2
root.squashfs
root.tgz
root.ubi

but it has not initrd.gz in choice. What should I do?

Brabbit
In page 27 in PDF file.

I use command ping from mini2440 to my host PC. It's Ok.

But I can't ping from my host PC to mini2440.

2)How I use tftp transfer barebox-image to mini2440?

davef
That's is normal.

2) see other post

Your previous post: I never changed this option from what must be the
default (root.jffs2)

Brabbit
@davef

OK.

Thank you

navidreza
hi. I am newbie in friendlyarm and I want to install Pengutronix. But I
don't know where to start my work. I've read the Pengutronix manual but I
couldnt understand what it say. Please help me to install it in an easier
way. thanks

navidreza
should I install pengu on my mini2440 or on my computer? :(

navidreza
Would you please make a video about how to install it and put it on
youtube, Please? Please...

davef
The Pengutronix BSP goes on your host.

If you can't work out how to do it from the manual I suspect you will have
many more problems.  Are you having to translate the manual into another
language?

This BSP is supplied free to the mini2440 community.

Juergen Beisert
I second what davef has said. First you should get more experience about
computer programming, especially embedded programming and cross compiling
(what these words means, how to do so and so on). And then you can continue
working with my board support package.
And sorry: I will never provide video about it. Because it wouldn't help.

prathap
hey i followed
http://www.oselas.org/oselas/bsp/pengutronix/download/OSELAS.BSP-Pengutr...
i tried "Building the Root Filesystem"
when i type ptxdist go
i'm getting error like below

ptxdist: error: toolchain doesn't point to an OSELAS.Toolchain
ptxdist: error: leave PTXCONF_CROSSCHAIN_VENDOR empty to disable vendor
check

plz give me some solution

Juergen Beisert
Did you follow section 4.4 and 4.5 in the mentioned manual?

Nilknatha Singha
I am getting this error, while building the bsp, any help !! 

nilkantha@nilkantha-Inspiron-N5110:~/mini-linux-3.8.13/OSELAS.BSP-Pengutronix-Mi
ni2440-2013.10.0$
ptxdist go

-----------------------------
target: barebox.targetinstall
-----------------------------

install_init:  preparing for image creation of 'barebox'...
install_init:  @ARCH@ -> armel
install_init:  @PACKAGE@ -> barebox
install_init:  @VERSION@ -> 2011.05.0
install_init:  @DEPENDS@ -> 
install_init:  preinst not available
install_init:  postinst not available
install_init:  prerm not available
install_init:  postrm not available
install_fixup:  @PRIORITY@ -> optional ... done.
install_fixup:  @SECTION@ -> base ... done.
install_fixup:  @AUTHOR@ -> "Robert Schwebel <r.schwebel\@pengutronix.de>"
... done.
install_fixup:  @DESCRIPTION@ -> missing ... done.
xpkg_finish:  collecting license (GPLv2) ... done.
xpkg_finish:  creating ipkg package ... 

No suitable file '/usr/bin/bareboxenv' could be found in any of these
locations:
/home/nilkantha/mini-linux-3.8.13/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/plat
form-mini2440/build-target/barebox-2011.05.0/scripts/bareboxenv-target.mini2440
/home/nilkantha/mini-linux-3.8.13/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/plat
form-mini2440/build-target/barebox-2011.05.0/scripts/bareboxenv-target

install file:
 
src=OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-target/bar
ebox-2011.05.0/scripts/bareboxenv-target
  dst=/usr/bin/bareboxenv
  owner=0 
  group=0 
  permissions=0755


Error: file not found:
/home/nilkantha/mini-linux-3.8.13/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/plat
form-mini2440/build-target/barebox-2011.05.0/scripts/bareboxenv-target

Error: install_file failed!
failed
make: ***
[/home/nilkantha/mini-linux-3.8.13/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/pla
tform-mini2440/state/barebox.targetinstall]
Error 1
nilkantha@nilkantha-Inspiron-N5110:~/mini-linux-3.8.13/OSELAS.BSP-Pengutronix-Mi
ni2440-2013.10.0$

davef
The guru should be back soon :)

I am running 2013.10.0 with no problems.

No suitable file '/usr/bin/bareboxenv' could be found in any of these
locations:

... don't understand this warning.  There is a bareboxenv in the scripts
directory.  Have you got that file in there?  16765 bytes.

Juergen
> The guru should be back soon :)

Thanks Dave :))

> missing /usr/bin/bareboxenv

Hmm, did you enable

ptxdist platformconfig
   bootloaders --->
    [*] barebox --->
       [ ] install 'bareboxenv' <--- ????

It shouldn't be selected, because the Barebox bootloader included in the
BSP is an older one and does not provide this tool.
Deselect it and continue to build the BSP

Happy hacking

marcb
Good day. So I get that bareboxenv won't work with this BSP which is
unfortunate since I am looking for an equivalent to the "fw_setenv" command
(in uboot). 

Specifically I need to modify the bootargs variable from user space...are
there other tools I could use to do this ? Thanks !

davef
Was going to suggest following this link to their mailing list but it
appears to be dead.

http://www.barebox.org/

There was a bit of traffic on Barebox here:

http://blog.gmane.org/gmane.comp.embedded.ptxdist.oselas.community

Good luck!

Juergen
Hi,

@@davef: the Barebox mailing list isn't dead. The project is still under
high development.

@marcb: build a different (e.g. more recent) Barebox and take its
bareboxenv tool. Not tested, but it should do the job.

davef
The link works today.

Ganesh
In section 3.2.3 of OSELAS BSP  i have configure i didn't fget any error
but when i try for make utility it say 

"make: *** No targets specified and no makefile found.  Stop."

help me with this issue.

davef
Have you got all the necessary tools on your host?  Unfortunately, the
Quickstart guide doesn't tell you.  I guess anyone compiling a kernel would
know, but I struggled a bit with this too.

The list is in another location, but the one I think causes that error
might be:
   build-essentail or build-essentials

So, on the host sudo apt-get install build- ...

There are others  libncurses-dev? bison flex

Good luck!

davef
And maybe autoconf and automake, not sure

Ganesh
I have solved the issue make but i got one more problem i'm bit confused
while section 3.3 where we have to install cross compiler but i don't know
how to do it 
1->  what if i install OSELAS.Toolchain it will do the job or i have
install a new cross compiler

davef
The OSELAS Toolchain is the cross-compiler and it gets installed to /opt on
your host.

Ganesh
Section 4.6 of building Root file system unable to sort this issue any
suggestion got error in server response.

-----------------------------
target: libmad-0.15.1b.tar.gz
-----------------------------

--2015-02-16 14:44:35--  ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz
           =>
'/home/ism148/OSELAS.Toolchain-2014.12.0/OSELAS.BSP-Pengutronix-Mini2440/src/lib
mad-0.15.1b.tar.gz.5R6yGYmuSe'
Resolving ftp.mars.org (ftp.mars.org)... 216.75.62.3,
2001:470:8398:1:5054:ff:fedb:a9f5
Connecting to ftp.mars.org (ftp.mars.org)|216.75.62.3|:21... connected.
Logging in as anonymous ... 
Error in server response, closing control connection.
Retrying.

Any suggestion how to sort out this issue

davef
Search around for another source of libmad-0.15.1b.tar.gz and drop it into
your local_src folder.

Ganesh
I have downloaded the libmad file from another source & copied int
local_src folder. after this shall i pass the command ptxdist go or can i
skip this part directly jump creating images.(sorry for all this but i'm a
greenhorn)

davef
You have to do ptxdist go then ptxdist images

Ganesh
i have copied total tar file in local_src is it correct way to do if not
can guide me how to do it

$ptxdist -ji2 go
-----------------------------
target: libmad-0.15.1b.tar.gz
-----------------------------

--2015-02-16 14:44:35--  ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz
           =>
'/home/ism148/OSELAS.Toolchain-2014.12.0/OSELAS.BSP-Pengutronix-Mini2440/src/lib

mad-0.15.1b.tar.gz.5R6yGYmuSe'
Resolving ftp.mars.org (ftp.mars.org)... 216.75.62.3,
2001:470:8398:1:5054:ff:fedb:a9f5
Connecting to ftp.mars.org (ftp.mars.org)|216.75.62.3|:21... connected.
Logging in as anonymous ... 
Error in server response, closing control connection.
Retrying.

davef
Maybe, you have to extract it to that folder.  I'll fire my my Linux box
and check.

davef
Sorry, place the untared file into PTXdist/all_src.

davef
Make that place libmad-0.15.1b.tar.gz into PTXdist/all_src

Ganesh
sorry but i don't know where to see that file i have searched all
directories but didn't find PTXdist/all_src. please can you suggest where
to look up

davef
There is a PTXdist directory in my home/davef directory.

Going back to 3.2.4 and using the ptxdist setup command, you have the
option of specifying a place to put a PTXdist/all_src directory.

I have so much stuff in there that I thought it happened automagically.

I haven't changed much in my setup for a year or more, my brain doesn't
work like it use to and it will soon be midnight here.

CU tmw.

Juergen
Ganesh,

PTXdist tries to download the archive into
"'/home/ism148/OSELAS.Toolchain-2014.12.0/OSELAS.BSP-Pengutronix-Mini2440/src'"
(please read the output carefully you posted above). So, copy your manually
downloaded archive into this directory, or - better - define a global (e.g.
shared) archive directory as Dave already mentioned and copy the archive
into it.

Ganesh
Hi Juergen,
           I have followed what you have as well as davef said.  i have
copied all necessary tar file in src and shooted ptxdist go command after
that i have got again error. It seem something is missing.

target: host-u-boot-tools.compile
---------------------------------

make[1]: Entering directory
`/home/ism148/OSELAS.Toolchain-2014.12.0/OSELAS.BSP-Pengutronix-Mini2440/platfor
m-mini2440/build-host/u-boot-2014.07'
Configuring for sandbox board...
  GEN     include/autoconf.mk.dep
  GEN     include/autoconf.mk
make[2]: sdl-config: Command not found
make[2]: sdl-config: Command not found
  CHK     include/config/uboot.release
make[2]: sdl-config: Command not found
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/config/uboot.release
  UPD     include/generated/timestamp_autogenerated.h
make[2]: sdl-config: Command not found
  HOSTCC  scripts/basic/fixdep
make[2]: sdl-config: Command not found
  CHK     include/generated/version_autogenerated.h
  UPD     include/generated/version_autogenerated.h
make[2]: sdl-config: Command not found
  CC      lib/asm-offsets.s
  GEN     include/generated/generic-asm-offsets.h
make[2]: sdl-config: Command not found
  HOSTCC  tools/img2srec
  HOSTCC  tools/aisimage.o
In file included from tools/aisimage.c:10:0:
include/image.h:851:27: fatal error: openssl/evp.h: No such file or
directory
 
# include  <openssl/evp.h>
                           ^
compilation terminated.
  HOSTCC  tools/atmelimage.o
In file included from tools/atmelimage.c:11:0:
include/image.h:851:27: fatal error: openssl/evp.h: No such file or
directory
 # include  <openssl/evp.h>
                           ^
compilation terminated.
make[3]: *** [tools/aisimage.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [tools/atmelimage.o] Error 1
make[1]: Leaving directory
`/home/ism148/OSELAS.Toolchain-2014.12.0/OSELAS.BSP-Pengutronix-Mini2440/platfor
m-mini2440/build-host/u-boot-2014.07'
make[2]: *** [tools] Error 2
make[1]: *** [build-one-by-one] Error 2
make: ***
[/home/ism148/OSELAS.Toolchain-2014.12.0/OSELAS.BSP-Pengutronix-Mini2440/platfor
m-mini2440/state/host-u-boot-tools.compile]
Error 2

Sunny Leone
sudo apt-get install libssl-dev

Ganesh
I'm getting this i have set my ip address differently but i got this

mini2440:/ update -t barebox -d nand
phy0: Link is up - 100/Full
T DHCP client bound to address 192.168.2.35

after this i have changed s2 switch from NOR to NAND and tun off-on s1.
 and it is giving me this output 

&#65533;load Image of Linux...Uncompressing
Linux...........................................................................
...........................

invalid compressed format (err=1)

 -- System halted&#65533;load Image of Linux...Uncompressing
Linux...........................................................................
..........

davef
So, you are at the top of page 37.

> phy0: Link is up - 100/Full
> T DHCP client bound to address 192.168.2.35

I have never had these two lines.  Perhaps because I never enabled DHCP in
Barebox

I think you should get:

T T T T T ... until tftp has finished.

It looks to me that it tries to download it using tftp then falls-back to
the Ethernet.

You might have to post your boot messages.

Ganesh
no right now i'm at page 30 - chapter 5

DHCP is not enabled -> i have edited  /env/config

davef
OK, post your boot messages.

davef
You did enable tftp in ptxdist menuconfig

Ganesh
actually after i have not commented ip=dhcp. right now i have commented it
is wqorking