All of lore.kernel.org
 help / color / mirror / Atom feed
* binman issue on ubuntu 20.04
@ 2022-07-19  9:20 Belisko Marek
  2022-07-20 15:01 ` Simon Glass
  0 siblings, 1 reply; 2+ messages in thread
From: Belisko Marek @ 2022-07-19  9:20 UTC (permalink / raw)
  To: U-Boot Mailing List

Hi,

I'm trying to compile an older u-boot (2017.03) with Ubuntu 20.04.
Machine is sunxi. COmpilation went fine but when binman assembles
u-boot-sunxi-with-spl.bin it stuck somewhere. I've enabled python
traces and it loops in forever:

subprocess.py(1668):             if errpipe_data:
cros_subprocess.py(94):         if stdout_pty is not None:
cros_subprocess.py(96):         if stderr_pty is not None:
cros_subprocess.py(100):         if kwargs:
command.py(73):     while pipeline:
command.py(95):     if capture:
command.py(97):                 last_pipe.CommunicateFilter(None))
 --- modulename: cros_subprocess, funcname: CommunicateFilter
cros_subprocess.py(144):         read_set = []
cros_subprocess.py(145):         write_set = []
cros_subprocess.py(146):         stdout = None # Return
cros_subprocess.py(147):         stderr = None # Return
cros_subprocess.py(149):         if self.stdin:
cros_subprocess.py(157):         if self.stdout:
cros_subprocess.py(158):             read_set.append(self.stdout)
cros_subprocess.py(159):             stdout = []
cros_subprocess.py(160):         if self.stderr and self.stderr != self.stdout:
cros_subprocess.py(163):         combined = []
cros_subprocess.py(165):         input_offset = 0
cros_subprocess.py(166):         while read_set or write_set:
cros_subprocess.py(167):             try:
cros_subprocess.py(168):                 rlist, wlist, _ =
select.select(read_set, write_set, [], 0.2)
cros_subprocess.py(174):             if not stay_alive:
cros_subprocess.py(177):             if self.stdin in wlist:
cros_subprocess.py(188):             if self.stdout in rlist:
cros_subprocess.py(189):                 data = ""
cros_subprocess.py(191):                 try:
cros_subprocess.py(192):                     data =
os.read(self.stdout.fileno(), 1024)
cros_subprocess.py(195):                 if data == "":
cros_subprocess.py(199):                     stdout.append(data)
cros_subprocess.py(200):                     combined.append(data)
cros_subprocess.py(201):                     if output:
cros_subprocess.py(203):             if self.stderr in rlist:


Any idea if there is some fix for that or idea where to look?

Thanks and BR,

marek
-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com

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

* Re: binman issue on ubuntu 20.04
  2022-07-19  9:20 binman issue on ubuntu 20.04 Belisko Marek
@ 2022-07-20 15:01 ` Simon Glass
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2022-07-20 15:01 UTC (permalink / raw)
  To: Belisko Marek; +Cc: U-Boot Mailing List

Hi Belisko,

On Tue, 19 Jul 2022 at 03:21, Belisko Marek <marek.belisko@gmail.com> wrote:
>
> Hi,
>
> I'm trying to compile an older u-boot (2017.03) with Ubuntu 20.04.
> Machine is sunxi. COmpilation went fine but when binman assembles
> u-boot-sunxi-with-spl.bin it stuck somewhere. I've enabled python
> traces and it loops in forever:
>
> subprocess.py(1668):             if errpipe_data:
> cros_subprocess.py(94):         if stdout_pty is not None:
> cros_subprocess.py(96):         if stderr_pty is not None:
> cros_subprocess.py(100):         if kwargs:
> command.py(73):     while pipeline:
> command.py(95):     if capture:
> command.py(97):                 last_pipe.CommunicateFilter(None))
>  --- modulename: cros_subprocess, funcname: CommunicateFilter
> cros_subprocess.py(144):         read_set = []
> cros_subprocess.py(145):         write_set = []
> cros_subprocess.py(146):         stdout = None # Return
> cros_subprocess.py(147):         stderr = None # Return
> cros_subprocess.py(149):         if self.stdin:
> cros_subprocess.py(157):         if self.stdout:
> cros_subprocess.py(158):             read_set.append(self.stdout)
> cros_subprocess.py(159):             stdout = []
> cros_subprocess.py(160):         if self.stderr and self.stderr != self.stdout:
> cros_subprocess.py(163):         combined = []
> cros_subprocess.py(165):         input_offset = 0
> cros_subprocess.py(166):         while read_set or write_set:
> cros_subprocess.py(167):             try:
> cros_subprocess.py(168):                 rlist, wlist, _ =
> select.select(read_set, write_set, [], 0.2)
> cros_subprocess.py(174):             if not stay_alive:
> cros_subprocess.py(177):             if self.stdin in wlist:
> cros_subprocess.py(188):             if self.stdout in rlist:
> cros_subprocess.py(189):                 data = ""
> cros_subprocess.py(191):                 try:
> cros_subprocess.py(192):                     data =
> os.read(self.stdout.fileno(), 1024)
> cros_subprocess.py(195):                 if data == "":
> cros_subprocess.py(199):                     stdout.append(data)
> cros_subprocess.py(200):                     combined.append(data)
> cros_subprocess.py(201):                     if output:
> cros_subprocess.py(203):             if self.stderr in rlist:
>
>
> Any idea if there is some fix for that or idea where to look?

That code is processing output from a subprocess. It might be that the
subprocess has hung. You can use -v5 to see what is being run,
perhaps. Also -D might provide a traceback when you quit.


>
> Thanks and BR,
>
> marek
> --
> as simple and primitive as possible
> -------------------------------------------------
> Marek Belisko - OPEN-NANDRA
> Freelance Developer
>
> Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
> Tel: +421 915 052 184
> skype: marekwhite
> twitter: #opennandra
> web: http://open-nandra.com

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

end of thread, other threads:[~2022-07-20 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19  9:20 binman issue on ubuntu 20.04 Belisko Marek
2022-07-20 15:01 ` Simon Glass

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.