mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* barebox on VoCore2
@ 2019-11-11  9:48 Mauro Condarelli
  2019-11-11 21:46 ` Antony Pavlov
  0 siblings, 1 reply; 2+ messages in thread
From: Mauro Condarelli @ 2019-11-11  9:48 UTC (permalink / raw)
  To: barebox

Hi,
I would like to use barebox with a custom board (VoCore2, based on
MT7628) currently running on a paleolithic version of u-boot.
I've seen there has been some work on this board
(http://lists.infradead.org/pipermail/barebox/2017-August/030945.html),
but it's unclear to me if this resulted in a usable barebox and, if so,
what's the right branch to use.

I'm not scared about dirtying my fingers in low (register) level
programming, if needed, but I know very little about barebox, so some
guidance (and documentation) would be needed.

Where can I find detailed description of needed steps?

Note: I tried a "dumb compilation" (after rule-of-thumb configuration),
but I got link error:

mcon@cinderella:~/vocore/prove/barebox$
PATH=/home/mcon/vocore/prove/mipsel-buildroot-linux-uclibc_sdk-buildroot/bin:$PATH
make ARCH=mips CROSS_COMPILE=mipsel-linux-
  CHK     include/generated/version.h
  CHK     include/generated/utsrelease.h 
  ...
  CC      common/version.o
  LD      common/built-in.o
  LD      barebox
mipsel-linux-ld: arch/mips/boot/built-in.o: in function `main_entry':
(.text_bare_init.text+0xe4): undefined reference to `glob_fdt'
mipsel-linux-ld: (.text_bare_init.text+0xe8): undefined reference to
`glob_fdt'
mipsel-linux-ld: (.text_bare_init.text+0xec): undefined reference to
`glob_fdt_size'
mipsel-linux-ld: (.text_bare_init.text+0xf4): undefined reference to
`glob_fdt_size'
Unable to open input file barebox
make: *** [Makefile:784: barebox] Error 2

... so I'm surely missing some relevant step.

Thanks in Advance
Mauro

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

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

* Re: barebox on VoCore2
  2019-11-11  9:48 barebox on VoCore2 Mauro Condarelli
@ 2019-11-11 21:46 ` Antony Pavlov
  0 siblings, 0 replies; 2+ messages in thread
From: Antony Pavlov @ 2019-11-11 21:46 UTC (permalink / raw)
  To: Mauro Condarelli; +Cc: barebox

On Mon, 11 Nov 2019 10:48:26 +0100
Mauro Condarelli <mc5686@mclink.it> wrote:

> Hi,
> I would like to use barebox with a custom board (VoCore2, based on
> MT7628) currently running on a paleolithic version of u-boot.
> I've seen there has been some work on this board
> (http://lists.infradead.org/pipermail/barebox/2017-August/030945.html),
> but it's unclear to me if this resulted in a usable barebox and, if so,
> what's the right branch to use.
> I'm not scared about dirtying my fingers in low (register) level
> programming, if needed, but I know very little about barebox, so some
> guidance (and documentation) would be needed.

Please try this branch for your initial experiments
https://github.com/frantony/barebox/commits/20160815.mediatek

At the moment there is no PBL support for mediatek mips chips.
You can only run barebox from u-boot.

> 
> Where can I find detailed description of needed steps?

First try to run barebox for qemu-mips-malta (big endian version is simplier).

The qemu run instruction can be found in Documentation/boards/mips/qemu-malta.rst

There is an old but stil usefull barebox mips compilation demo at youtube:
https://www.youtube.com/watch?v=WWnX__5wJfg

For cross compiling I recommend to use Debian linux: just install gcc-mips-linux-gnu package.


> Note: I tried a "dumb compilation" (after rule-of-thumb configuration),
> but I got link error:
> 
> mcon@cinderella:~/vocore/prove/barebox$
> PATH=/home/mcon/vocore/prove/mipsel-buildroot-linux-uclibc_sdk-buildroot/bin:$PATH
> make ARCH=mips CROSS_COMPILE=mipsel-linux-
>   CHK     include/generated/version.h
>   CHK     include/generated/utsrelease.h 
>   ...
>   CC      common/version.o
>   LD      common/built-in.o
>   LD      barebox
> mipsel-linux-ld: arch/mips/boot/built-in.o: in function `main_entry':
> (.text_bare_init.text+0xe4): undefined reference to `glob_fdt'
> mipsel-linux-ld: (.text_bare_init.text+0xe8): undefined reference to
> `glob_fdt'
> mipsel-linux-ld: (.text_bare_init.text+0xec): undefined reference to
> `glob_fdt_size'
> mipsel-linux-ld: (.text_bare_init.text+0xf4): undefined reference to
> `glob_fdt_size'
> Unable to open input file barebox
> make: *** [Makefile:784: barebox] Error 2
> 
> ... so I'm surely missing some relevant step.
> 
> Thanks in Advance
> Mauro
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox


-- 
Best regards,
  Antony Pavlov

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

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

end of thread, other threads:[~2019-11-11 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-11  9:48 barebox on VoCore2 Mauro Condarelli
2019-11-11 21:46 ` Antony Pavlov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox