public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] u-boot.git or u-boot-x86.git for x86_64 u-boots?
@ 2017-01-12 20:12 Joakim Tjernlund
  2017-01-14 11:51 ` Bin Meng
  0 siblings, 1 reply; 9+ messages in thread
From: Joakim Tjernlund @ 2017-01-12 20:12 UTC (permalink / raw)
  To: u-boot

I found two repos w.r.t x86_64 for u-boot, which one should I use?

I am ATM only looking at USING the qemu-x86 target for now.

BTW, I found tools/binman/binman.py only worked with python 2.7, maybe you can change
the shebang to python2.7 as my default python is 3.4

 Jocke

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

* [U-Boot] u-boot.git or u-boot-x86.git for x86_64 u-boots?
  2017-01-12 20:12 [U-Boot] u-boot.git or u-boot-x86.git for x86_64 u-boots? Joakim Tjernlund
@ 2017-01-14 11:51 ` Bin Meng
  2017-01-14 13:25   ` Joakim Tjernlund
  2017-01-14 17:06   ` Simon Glass
  0 siblings, 2 replies; 9+ messages in thread
From: Bin Meng @ 2017-01-14 11:51 UTC (permalink / raw)
  To: u-boot

+Simon,

On Fri, Jan 13, 2017 at 4:12 AM, Joakim Tjernlund
<Joakim.Tjernlund@infinera.com> wrote:
> I found two repos w.r.t x86_64 for u-boot, which one should I use?
>

U-Boot x86_64 support is not in mainstream yet.

> I am ATM only looking at USING the qemu-x86 target for now.
>
> BTW, I found tools/binman/binman.py only worked with python 2.7, maybe you can change
> the shebang to python2.7 as my default python is 3.4
>

Regards,
Bin

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

* [U-Boot] u-boot.git or u-boot-x86.git for x86_64 u-boots?
  2017-01-14 11:51 ` Bin Meng
@ 2017-01-14 13:25   ` Joakim Tjernlund
  2017-01-14 13:30     ` Bin Meng
  2017-01-14 17:06   ` Simon Glass
  1 sibling, 1 reply; 9+ messages in thread
From: Joakim Tjernlund @ 2017-01-14 13:25 UTC (permalink / raw)
  To: u-boot

On Sat, 2017-01-14 at 19:51 +0800, Bin Meng wrote:
> +Simon,
> 
> On Fri, Jan 13, 2017 at 4:12 AM, Joakim Tjernlund
> <Joakim.Tjernlund@infinera.com> wrote:
> > I found two repos w.r.t x86_64 for u-boot, which one should I use?
> > 
> 
> U-Boot x86_64 support is not in mainstream yet.

So I should use u-boot-x86.git for now then.
Strangely u-boot.git did work too.

> 
> > I am ATM only looking at USING the qemu-x86 target for now.
> > 
> > BTW, I found tools/binman/binman.py only worked with python 2.7, maybe you can change
> > the shebang to python2.7 as my default python is 3.4
> > 
> 
> Regards,
> Bin

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

* [U-Boot] u-boot.git or u-boot-x86.git for x86_64 u-boots?
  2017-01-14 13:25   ` Joakim Tjernlund
@ 2017-01-14 13:30     ` Bin Meng
  0 siblings, 0 replies; 9+ messages in thread
From: Bin Meng @ 2017-01-14 13:30 UTC (permalink / raw)
  To: u-boot

Hi Joakim,

On Sat, Jan 14, 2017 at 9:25 PM, Joakim Tjernlund
<Joakim.Tjernlund@infinera.com> wrote:
> On Sat, 2017-01-14 at 19:51 +0800, Bin Meng wrote:
>> +Simon,
>>
>> On Fri, Jan 13, 2017 at 4:12 AM, Joakim Tjernlund
>> <Joakim.Tjernlund@infinera.com> wrote:
>> > I found two repos w.r.t x86_64 for u-boot, which one should I use?
>> >
>>
>> U-Boot x86_64 support is not in mainstream yet.
>
> So I should use u-boot-x86.git for now then.
> Strangely u-boot.git did work too.

u-boot.git is the mainstream repo while u-boot-x86.git is the x86 repo
which has WIP patches and queued to be pulled into u-boot.git

Regards,
Bin

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

* [U-Boot] u-boot.git or u-boot-x86.git for x86_64 u-boots?
  2017-01-14 11:51 ` Bin Meng
  2017-01-14 13:25   ` Joakim Tjernlund
@ 2017-01-14 17:06   ` Simon Glass
  2017-01-15 16:49     ` Joakim Tjernlund
  2017-01-24 14:12     ` Joakim Tjernlund
  1 sibling, 2 replies; 9+ messages in thread
From: Simon Glass @ 2017-01-14 17:06 UTC (permalink / raw)
  To: u-boot

Hi Joakim,

On 14 January 2017 at 04:51, Bin Meng <bmeng.cn@gmail.com> wrote:
> +Simon,
>
> On Fri, Jan 13, 2017 at 4:12 AM, Joakim Tjernlund
> <Joakim.Tjernlund@infinera.com> wrote:
>> I found two repos w.r.t x86_64 for u-boot, which one should I use?
>>
>
> U-Boot x86_64 support is not in mainstream yet.

I'll be sending v3 fairly soon. But even then it is not complete.
Various things need fixing up and polishing - e.g. SDRAM sizing,
graphics ROMs, actually booting Linux!

>
>> I am ATM only looking at USING the qemu-x86 target for now.
>>
>> BTW, I found tools/binman/binman.py only worked with python 2.7, maybe you can change
>> the shebang to python2.7 as my default python is 3.4

We should probably patch it to work on 3.4 also.

>>
>
> Regards,
> Bin

Regards,
Simon

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

* [U-Boot] u-boot.git or u-boot-x86.git for x86_64 u-boots?
  2017-01-14 17:06   ` Simon Glass
@ 2017-01-15 16:49     ` Joakim Tjernlund
  2017-01-16  1:20       ` Bin Meng
  2017-01-16  2:50       ` Simon Glass
  2017-01-24 14:12     ` Joakim Tjernlund
  1 sibling, 2 replies; 9+ messages in thread
From: Joakim Tjernlund @ 2017-01-15 16:49 UTC (permalink / raw)
  To: u-boot

On Sat, 2017-01-14 at 10:06 -0700, Simon Glass wrote:
> Hi Joakim,
> 
> On 14 January 2017 at 04:51, Bin Meng <bmeng.cn@gmail.com> wrote:
> > +Simon,
> > 
> > On Fri, Jan 13, 2017 at 4:12 AM, Joakim Tjernlund
> > <Joakim.Tjernlund@infinera.com> wrote:
> > > I found two repos w.r.t x86_64 for u-boot, which one should I use?
> > > 
> > 
> > U-Boot x86_64 support is not in mainstream yet.
> 
> I'll be sending v3 fairly soon. But even then it is not complete.
> Various things need fixing up and polishing - e.g. SDRAM sizing,
> graphics ROMs, actually booting Linux!

Great, getting closer every day.
Any idea for how much is missing in u-boot to bring up a 
Rangeley(C2758), no graphics required. Need networking, rs232, USB and maybe SATA.

  Jocke

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

* [U-Boot] u-boot.git or u-boot-x86.git for x86_64 u-boots?
  2017-01-15 16:49     ` Joakim Tjernlund
@ 2017-01-16  1:20       ` Bin Meng
  2017-01-16  2:50       ` Simon Glass
  1 sibling, 0 replies; 9+ messages in thread
From: Bin Meng @ 2017-01-16  1:20 UTC (permalink / raw)
  To: u-boot

Hi Joakim,

On Mon, Jan 16, 2017 at 12:49 AM, Joakim Tjernlund
<Joakim.Tjernlund@infinera.com> wrote:
> On Sat, 2017-01-14 at 10:06 -0700, Simon Glass wrote:
>> Hi Joakim,
>>
>> On 14 January 2017 at 04:51, Bin Meng <bmeng.cn@gmail.com> wrote:
>> > +Simon,
>> >
>> > On Fri, Jan 13, 2017 at 4:12 AM, Joakim Tjernlund
>> > <Joakim.Tjernlund@infinera.com> wrote:
>> > > I found two repos w.r.t x86_64 for u-boot, which one should I use?
>> > >
>> >
>> > U-Boot x86_64 support is not in mainstream yet.
>>
>> I'll be sending v3 fairly soon. But even then it is not complete.
>> Various things need fixing up and polishing - e.g. SDRAM sizing,
>> graphics ROMs, actually booting Linux!
>
> Great, getting closer every day.
> Any idea for how much is missing in u-boot to bring up a
> Rangeley(C2758), no graphics required. Need networking, rs232, USB and maybe SATA.

The effort won't be too much as Intel has an FSP for Rangeley.

Regards,
Bin

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

* [U-Boot] u-boot.git or u-boot-x86.git for x86_64 u-boots?
  2017-01-15 16:49     ` Joakim Tjernlund
  2017-01-16  1:20       ` Bin Meng
@ 2017-01-16  2:50       ` Simon Glass
  1 sibling, 0 replies; 9+ messages in thread
From: Simon Glass @ 2017-01-16  2:50 UTC (permalink / raw)
  To: u-boot

Hi Joakim,

On 15 January 2017 at 09:49, Joakim Tjernlund
<Joakim.Tjernlund@infinera.com> wrote:
> On Sat, 2017-01-14 at 10:06 -0700, Simon Glass wrote:
>> Hi Joakim,
>>
>> On 14 January 2017 at 04:51, Bin Meng <bmeng.cn@gmail.com> wrote:
>> > +Simon,
>> >
>> > On Fri, Jan 13, 2017 at 4:12 AM, Joakim Tjernlund
>> > <Joakim.Tjernlund@infinera.com> wrote:
>> > > I found two repos w.r.t x86_64 for u-boot, which one should I use?
>> > >
>> >
>> > U-Boot x86_64 support is not in mainstream yet.
>>
>> I'll be sending v3 fairly soon. But even then it is not complete.
>> Various things need fixing up and polishing - e.g. SDRAM sizing,
>> graphics ROMs, actually booting Linux!
>
> Great, getting closer every day.
> Any idea for how much is missing in u-boot to bring up a
> Rangeley(C2758), no graphics required. Need networking, rs232, USB and maybe SATA.

If it uses an FSP then it probably isn't much work to get it running
with 32-bit U-Boot. Bin is the expert here.

For 64-bit, we have quite a few things to do. But note that 32-bit
U-Boot can directly boot both 32-bit and 64-bit kernels. It does not
have the 'UEFI' restriction of having to select your boot loader based
on your kernel.

Regards,
Simon

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

* [U-Boot] u-boot.git or u-boot-x86.git for x86_64 u-boots?
  2017-01-14 17:06   ` Simon Glass
  2017-01-15 16:49     ` Joakim Tjernlund
@ 2017-01-24 14:12     ` Joakim Tjernlund
  1 sibling, 0 replies; 9+ messages in thread
From: Joakim Tjernlund @ 2017-01-24 14:12 UTC (permalink / raw)
  To: u-boot

On Sat, 2017-01-14 at 10:06 -0700, Simon Glass wrote:
> Hi Joakim,
> 
> On 14 January 2017 at 04:51, Bin Meng <bmeng.cn@gmail.com> wrote:
> > +Simon,
> > 
> > On Fri, Jan 13, 2017 at 4:12 AM, Joakim Tjernlund
> > <Joakim.Tjernlund@infinera.com> wrote:
> > > I found two repos w.r.t x86_64 for u-boot, which one should I use?
> > > 
> > 
> > U-Boot x86_64 support is not in mainstream yet.
> 
> I'll be sending v3 fairly soon. But even then it is not complete.
> Various things need fixing up and polishing - e.g. SDRAM sizing,
> graphics ROMs, actually booting Linux!
> 
> > 
> > > I am ATM only looking at USING the qemu-x86 target for now.
> > > 
> > > BTW, I found tools/binman/binman.py only worked with python 2.7, maybe you can change
> > > the shebang to python2.7 as my default python is 3.4
> 
> We should probably patch it to work on 3.4 also.

I did a quick test using: 2to3 -w binman.py

This makes binman.py "build" on both 2.7 and 3.4 but running it on 3.4
hangs forever until Ctrl-C:
BINMAN  u-boot.rom
Traceback (most recent call last):
  File "./tools/binman/binman", line 113, in <module>
    ret_code = RunBinman(options, args)
  File "./tools/binman/binman", line 101, in RunBinman
    ret_code = control.Binman(options, args)
  File "/usr/local/src/u-boot-x86/tools/binman/control.py", line 95, in Binman
    fdt = fdt_select.FdtScan(dtb_fname)
  File "/usr/local/src/u-boot-x86/tools/binman/../dtoc/fdt_select.py", line 28, in FdtScan
    dtb.Scan()
  File "/usr/local/src/u-boot-x86/tools/binman/../dtoc/fdt.py", line 229, in Scan
    self._root.Scan()
  File "/usr/local/src/u-boot-x86/tools/binman/../dtoc/fdt_fallback.py", line 61, in Scan
    for name, byte_list_str in self._fdt.GetProps(self.path).items():
  File "/usr/local/src/u-boot-x86/tools/binman/../dtoc/fdt_fallback.py", line 128, in GetProps
    out = command.Output('fdtget', self._fname, node, '-p')
  File "/usr/local/src/u-boot-x86/tools/binman/../patman/command.py", line 109, in Output
    return RunPipe([cmd], capture=True, raise_on_error=raise_on_error).stdout
  File "/usr/local/src/u-boot-x86/tools/binman/../patman/command.py", line 97, in RunPipe
    last_pipe.CommunicateFilter(None))
  File "/usr/local/src/u-boot-x86/tools/binman/../patman/cros_subprocess.py", line 168, in CommunicateFilter
    rlist, wlist, _ = select.select(read_set, write_set, [], 0.2)
KeyboardInterrupt
Makefile:1070: recipe for target 'u-boot.rom' failed
make: *** [u-boot.rom] Error 1

Please just change shebang to python2.7 for now. This is the only fix needed
to build the x86 qemu target.

   Jocke

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

end of thread, other threads:[~2017-01-24 14:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-12 20:12 [U-Boot] u-boot.git or u-boot-x86.git for x86_64 u-boots? Joakim Tjernlund
2017-01-14 11:51 ` Bin Meng
2017-01-14 13:25   ` Joakim Tjernlund
2017-01-14 13:30     ` Bin Meng
2017-01-14 17:06   ` Simon Glass
2017-01-15 16:49     ` Joakim Tjernlund
2017-01-16  1:20       ` Bin Meng
2017-01-16  2:50       ` Simon Glass
2017-01-24 14:12     ` Joakim Tjernlund

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