Current Server Time: 22:49 (Central Europe)

#apertus IRC Channel Logs

2020/10/18

Timezone: UTC


05:30
Bertl_oO
off to bed now ... have a good one everyone!
05:30
Bertl_oO
changed nick to: Bertl_zZ
06:44
apoorva_arora
left the channel
06:48
apoorva_arora
joined the channel
09:28
BAndiT1983|away
changed nick to: BAndiT1983
10:21
mumptai
joined the channel
11:49
EmilJ
https://cdn.discordapp.com/attachments/546466238608703488/767338331204878346/IMG_20201018_124739478_HDR.jpg
11:49
EmilJ
is this just unitialized RAM that I'm seeing?
11:50
EmilJ
Currently running a camera.py without the camera
11:52
EmilJ
(from nmigen-gateware)
11:56
RexOrCine1
joined the channel
11:56
RexOrCine
left the channel
11:57
EmilJ
Writing 0xFFFFFFFF to the RAM frame buffer totally did make the screen white! But also crashed the pynq linux
12:01
vup
Well thats seems like a good start :)
12:02
vup
How did you prevent the linux kernel from using the memory region you are using for the framebuffer?
12:03
EmilJ
I kinda forgot
12:03
EmilJ
to do that
12:03
vup
Doing that should help :)
13:37
anuejn
that sounds quite nice :)
13:37
anuejn
maybe that code even works ;)
13:51
se6ast1an
fingers crossed :)
13:55
EmilJ
so when I get into u-boot, the fdt isn't set up at all so I can't just "modify" its allocation by excluding a memory region
14:29
BAndiT1983
changed nick to: BAndiT1983|away
15:38
Bertl_zZ
changed nick to: Bertl
15:38
Bertl
morning folks!
16:23
Umori
left the channel
16:24
vup
EmilJ: where is the fdt coming from on Pynq?
16:28
Umori
joined the channel
16:29
Bertl
maybe the u-boot just doesn't have the fdt specific commands?
16:29
vup
otherwise, if you can set the kernel cmdline you could use `memmap=SIZE$OFFSET`
16:35
EmilJ
It does have fdt *commands*, I just have no clue what commands automatically run in u-boot after it's not interrupted by my keypress
16:36
EmilJ
It's some cursed Petalinux flavor
16:37
Bertl
did you check the environment?
16:38
Bertl
most likely there are 'some' commands there which get executed based on the zynq boot config
16:38
EmilJ
Where would I find this config though
16:41
Bertl
the zynq boot config is determined by harware pins, i.e. most likely boot jumpers on your board
16:41
EmilJ
oh yeah, that's in the SD position. I am booting from microSD
16:42
Bertl
so check the environment when you interrupted u-boot
16:42
Bertl
see if there is an sdboot or sdcmd or similar
16:42
Bertl
most likely this one will be the one executed
16:45
vup
(printenv to print the environment)
16:45
EmilJ
so I typed boot and it just, booted, huh
16:45
EmilJ
no sdboot or sdcmd though
16:46
EmilJ
oh thanks vup
16:46
EmilJ
so there *is* supposed to be an uEnv.txt but I don't see it in either partition
16:46
EmilJ
does that live in the u-boot image?
16:46
EmilJ
(image.ub)
16:47
vup
not sure what pentalinux is up to now, but the xilinx stuff used to read a uEnv.txt when it is present (try creating it?)
16:47
vup
it should not live in the image.ub file
16:48
Bertl
the environment can come from many places, e.g. flash, eeprom, sd card, etc
16:48
EmilJ
I have two partitions, should I use the one with the actual linux root?
16:48
vup
usually its on the partition that contains the image.ub / the kernel
16:48
Bertl
usually there is also a default environment compiled in
16:49
vup
now they recently changed things up and it no longer uses uEnv.txt, but instead the more standard boot.scr
16:49
EmilJ
https://gitlab.com/-/snippets/2030928
16:50
Bertl
uenvboot is a good hint
16:50
vup
well thats looks like it should read a uEnv.txt if it is present
16:51
EmilJ
yeah I'll try the uenvboot, my pynq just oddly froze...
16:52
Bertl
note that uEnv.txt needs to define uenvcmd
16:52
Bertl
(which will then get executed)
17:08
vup
(also you should be able to set bootargs in the uEnv.txt to something containing memmap to reserve the memory that way)
17:10
EmilJ
Looks like I'm also dealing with a dead microSD card, yay...
17:11
EmilJ
dd from the device (not a partition, entire device) stops after 2.5MB, always after the exact same count of bytes
17:11
vup
ouch
17:12
vup
working with zynq I also have killed atleast two sdcards now :)
17:35
Umori
left the channel
17:39
Umori
joined the channel
17:53
Bertl
off for now ... bbl
17:53
Bertl
changed nick to: Bertl_oO
18:20
BAndiT1983|away
changed nick to: BAndiT1983
19:20
lexano
left the channel
20:42
lexano
joined the channel
22:34
aombk
left the channel
22:35
aombk
joined the channel
23:19
BAndiT1983
changed nick to: BAndiT1983|away
00:01
Bertl_oO
off to bed now ... have a good one everyone!
00:01
Bertl_oO
changed nick to: Bertl_zZ