mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 22:53:04 +00:00
experiments/dcp.py: Upload fb in 512k chunks for slow (v)UARTs
Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
parent
f297decfb4
commit
5e8beca9fe
1 changed files with 5 additions and 1 deletions
|
@ -281,7 +281,11 @@ print(f"Dispaly {width}x{height}, fb size: {fb_size}")
|
|||
|
||||
buf = u.memalign(0x4000, fb_size)
|
||||
|
||||
iface.writemem(buf, open("asahi.bin", "rb").read())
|
||||
img = open("asahi.bin", "rb")
|
||||
|
||||
block = 512 * 1024
|
||||
for off in range(0, fb_size, block):
|
||||
iface.writemem(buf + off, img.read(min(block, fb_size - off)))
|
||||
|
||||
iova = disp_dart.iomap(0, buf, fb_size)
|
||||
|
||||
|
|
Loading…
Reference in a new issue