Current Server Time: 08:10 (Central Europe)

#apertus IRC Channel Logs

2018/02/22

Timezone: UTC


23:30
futarisIRCcloud
joined the channel
00:03
rton
left the channel
00:34
PratTheBrat
joined the channel
00:34
PratTheBrat
left the channel
03:25
slikdigit
joined the channel
04:41
motoflare1508
joined the channel
05:05
motoflare1508
left the channel
05:36
davidak
joined the channel
05:55
aombk
left the channel
06:43
slikdigit
left the channel
06:51
Bertl_zZ
changed nick to: Bertl
06:51
Bertl
morning folks!
06:53
ItsMeLenny
joined the channel
06:57
TofuLynx
joined the channel
07:19
se6astian|away
changed nick to: se6astian
07:53
TofuLynx
Is this the xilinx Kernel? "kernel-4.9.0-xilinx-00037-g5d029fd.bin"
07:56
davidak
left the channel
07:56
Bertl
the name would suggest it :)
07:57
futarisIRCcloud
left the channel
07:58
TofuLynx
Are the kernel .config files necessary?
07:59
Bertl
no, they are just informational in case you want to rebuild the kernel (or diagnose the settings)
08:00
TofuLynx
Ok :D
08:16
davidak
joined the channel
08:53
sebix
joined the channel
08:53
sebix
left the channel
08:53
sebix
joined the channel
08:56
mohit
joined the channel
08:57
mohit
hello ... im new here .. need help getting along GSOC 2018...
08:58
mohit
i know c++ and im a photographer by hobby
09:02
rton
joined the channel
09:03
Bertl
hello mohit!
09:03
mohit
hello
09:04
Bertl
what help do you need?
09:04
mohit
i need guidance to get started
09:05
Bertl
well, you already managed the first challenge, coming here on IRC
09:05
mohit
thanks
09:05
Bertl
the next step is to pick a task from our Workboard https://lab.apertus.org/project/view/20/
09:06
Bertl
which interest you and you would like to work on ... depending on the task, there are qualification tasks to do
09:07
Bertl
here some more general information on GSoC 2018
09:07
Bertl
https://wiki.apertus.org/index.php/GSoC_Overview
09:08
mohit
thank you @Bertl i will just go through them
09:08
Bertl
great! do not hesitate to ask if something is unclear
09:10
mohit
i had one more query in case if i'm unable to participate in gsoc can i still keep up contributing here as i,m found of this project already
09:11
Bertl
you can always hang out here and/or contribute
09:12
mohit
Glad to know that..
09:13
mohit
thanks
09:14
Bertl
you're welcome!
09:59
ItsMeLenny
left the channel
10:26
TofuLynx
left the channel
10:28
pusle
left the channel
10:32
mohit
left the channel
11:06
Bertl
off for now ... bbl
11:06
Bertl
changed nick to: Bertl_oO
11:24
TofuLynx
joined the channel
11:25
TofuLynx
Welcome Mohit! I'm too a student interested in GSoC
11:52
se6astian
changed nick to: se6astian|away
12:33
pusle
joined the channel
12:56
arpu
joined the channel
13:09
TofuLynx
left the channel
13:37
slikdigit
joined the channel
13:42
TofuLynx
joined the channel
13:44
se6astian|away
changed nick to: se6astian
13:49
slikdigit
left the channel
13:55
TofuLynx
left the channel
13:57
TofuLynx
joined the channel
14:08
TofuLynx
left the channel
14:19
TofuLynx
joined the channel
14:55
se6astian
changed nick to: se6astian|away
14:57
Fathima
joined the channel
15:04
Fathima
left the channel
15:26
sebix
left the channel
15:34
davidak
left the channel
16:01
BAndiT1983|away
changed nick to: BAndiT1983
16:05
BAndiT1983
TofuLynx, have you tried the manual way?
16:06
TofuLynx
Yeah, but I didn't have to run the full boot. Will do it when I get home
16:07
TofuLynx
Didn't have time*
16:08
BAndiT1983
it takes a while till it boots to the shell, had some error messages which were shown in between from time to time, but overall it worked, haven't tried it for quite a while
16:08
BAndiT1983
when se6astian is available, i will try to discuss the scripts, like i said yesterday
16:09
TofuLynx
Ok! Understood!
16:09
TofuLynx
Do you have any suggestion on how to run my code in the beta firmware shell?
16:12
BAndiT1983
never tried to setup network there, but we can try to solve it together
16:13
BAndiT1983
just a thought, create virtual sd card and plug it into qemu as second device
16:13
TofuLynx
Sounds good! :)
16:13
TofuLynx
I will have to read documentation to setup the virtual card then
16:14
BAndiT1983
you should look into qemu xilinx docs, let me find the right one
16:14
BAndiT1983
main page -> http://www.wiki.xilinx.com/QEMU
16:15
BAndiT1983
at the bottom is the link to UG1169, this is the doc file
16:15
BAndiT1983
direct link -> https://www.xilinx.com/support/documentation/sw_manuals/xilinx2017_4/ug1169-xilinx-qemu.pdf
16:16
BAndiT1983
page 21, storage media should be a good start
16:17
TofuLynx
Will check it! Thanks!
16:25
anuejn
TofuLynx: BAndiT1983: qemu is not that nice to use at the moment as a standalone solution
16:26
anuejn
chroot + qemu is more convenient, because it supports networking, which currently is not possible with qemu standalone
16:27
BAndiT1983
not an expert, so cannot say anything
16:27
BAndiT1983
what is chroot? heard many times, but never bothered to look for the explanation
16:28
TofuLynx
I have the same question, what is it?
16:30
felix_
i'm trying to get a beta output a hdmi signal, but when i run kick_manual.sh it gets stuck at "waiting for sequencer" and doesn't output video on the hdmi module. i tried both slots
16:33
BAndiT1983
felix_, loose cable somewhere?
16:33
BAndiT1983
there was a similar case some time ago, if i remember correctly
16:34
BAndiT1983
maybe not cable, but the fixed connector not sitting tight
16:35
felix_
the cable works when i plug the hdmi end into my laptop and the hdmi module is fully inserted into the socket
16:37
BAndiT1983
is the hdmi output setup correctly? i mean the console commands
16:37
BAndiT1983
*set up
16:39
BAndiT1983
"If you look at the back of the camera you will now see a blue LED near the top flashing very fast - every blue flash is one image being acquired."
16:39
BAndiT1983
what are the LEDs showing?
16:39
felix_
i ran the setup.sh
16:40
BAndiT1983
have you edited it beforehand?
16:40
felix_
the blue led doesn't blink
16:40
felix_
no
16:41
BAndiT1983
you could try the steps in this chapter -> Generator and HDMI Output
16:41
BAndiT1983
https://wiki.apertus.org/index.php/AXIOM_Beta/Manual
16:41
felix_
the bitstream is a symlink to cmv_hdmi3_dual_60.bit and in the setup ./gen_init.sh 1080p60 is used
16:41
BAndiT1983
ah, so you have a setup
16:43
BAndiT1983
hm, maybe Bertl_oO can help
16:43
felix_
hm, after running halt_manual, then running ./gen_init.sh 1080p60 and then kick_manual, the blue led started blinking, but still no output
16:44
BAndiT1983
now you can try another slot ;)
16:45
felix_
i don't get a video signal on both
16:46
BAndiT1983
out of ideas, sorry
16:53
felix_
turns out that the screen i was using didn't like the hdmi signal from the beta
16:55
Bertl_oO
TofuLynx, BAndiT1983: chroot is when you change the root directory on a unix system
16:56
BAndiT1983
yes, googled so far, but how does it help with qemu?
16:56
Bertl_oO
no idea, where is it mentioned with qemu?
16:56
illwieckz
left the channel
16:58
BAndiT1983
<anuejn> TofuLynx: BAndiT1983: qemu is not that nice to use at the moment as a standalone solution
16:58
BAndiT1983
<anuejn> chroot + qemu is more convenient, because it supports networking, which currently is not possible with qemu standalone
16:58
Bertl_oO
well, you have to ask anuejn for details on that :)
16:59
sebix
joined the channel
17:00
Bertl_oO
note that QEMU can act as a pure binary emulator, not only as system emulation, so maybe he is talking about having an ARM filesystem and using QEMU + chroot to work there 'emulated'
17:01
BAndiT1983
how would it work for axiom firmware?
17:02
Bertl_oO
copy the content (files) from the SD card into a directory, then chroot (using QEMU as binary emulator) into that directory
17:02
BAndiT1983
ah, now i see
17:03
Bertl_oO
https://gist.github.com/mikkeloscar/a85b08881c437795c1b9
17:03
TofuLynx
Wouldn't it be easier to just emulate the SD card?
17:03
Bertl_oO
if the emulation would be complete, yes, of course
17:03
Bertl_oO
the problem there is that some parts do not really work well
17:04
TofuLynx
Really?
17:04
TofuLynx
Not even for a single cpp code?
17:04
Bertl_oO
hmm?
17:05
TofuLynx
Doesn't it work well to emulate a sd card containing a cpp file?
17:05
Bertl_oO
emulating the SD card itself is not such a problem
17:05
TofuLynx
Can you explain the problems?
17:05
Bertl_oO
but booting the AXIOM firmware from a virtual SD card requires more than that
17:06
Bertl_oO
the ZYNQ used on the MicroZed is not just an ARM cpu, it contains a lot of peripherials and other stuff
17:07
Bertl_oO
including some proprietary boot loader code which starts the chip
17:07
Bertl_oO
emulation of the various peripherials is incomplete even in the Xilinx QEMU branch
17:08
TofuLynx
And is it necessary to test my code of the c++ challenge?
17:08
Bertl_oO
so you can make it work, but unfortunately it doesn't work 'out of the box'
17:08
anuejn
Bertl_oO: TofuLynx bertl is right
17:08
Bertl_oO
TofuLynx: I presume you alredy tested your code, no?
17:09
TofuLynx
Yeah but the challenge has the line .5
17:09
TofuLynx
Which says bonus points if it can run on the beta firmware
17:09
Bertl_oO
that's why it is a 'challenge'
17:09
illwieckz
joined the channel
17:10
anuejn
jup
17:10
TofuLynx
Yeah, that's why I am trying to test it on the beta firmware, on my computer it works normally
17:10
anuejn
booting it works, but the problem is, that network is somehow broken in the xilinx qemu (at least for me)
17:10
anuejn
i think the easiest way would be to do something similiar to https://github.com/apertus-open-source-cinema/beta-software/blob/master/build_tools/outside/build_rootfs.sh#L19
17:10
anuejn
for which you need to install the `qemu-user-static` package when your on ubuntu
17:11
anuejn
alternatively, you can also do something like https://github.com/apertus-open-source-cinema/beta-software/blob/master/build_tools/README.md#test-it
17:11
anuejn
this will lead to a beta image booting to a shell, but unfortunately no network at all
17:11
anuejn
(plus, it takes quite some time and downloads half of the internet ;))
17:11
Bertl_oO
I think the network problems are related to a missing 'connection' between the 'nic' emulation and the qemu network stack
17:12
BAndiT1983
http://www.wiki.xilinx.com/QEMU
17:12
BAndiT1983
have you looked at the chapter about networking?
17:12
Bertl_oO
maybe it just needs to be reported often enough to Xilinx and/or asked in the forums to get an answer (or it fixed)
17:12
TofuLynx
Well I don't have any knowledge about this, so will have to read a lot of docs
17:13
Bertl_oO
which is good, no? :)
17:13
TofuLynx
Yeah :D
17:13
BAndiT1983
not an easy task, as i had to do the same a year ago, to setup qemu
17:13
BAndiT1983
often you have to search through many pages to find a little command which would help at the end
17:13
TofuLynx
Sincerely, I am loving being part of this community
17:13
TofuLynx
Learned really a lot
17:14
Bertl_oO
we love to have you!
17:15
arpu
left the channel
17:15
anuejn
Bertl_oO: BAndiT1983 tried maaany things and different nic configs but nothing worked for me :(
17:15
BAndiT1983
also TFTP part?
17:15
TofuLynx
:D
17:16
anuejn
sooon ish (tm) i will upstream my changes to the apertus build system, then this will be a lot easier
17:16
anuejn
but it still has some bugs to fix
17:16
BAndiT1983
TofuLynx, it was no joke, it's in the docs
17:16
BAndiT1983
https://forums.xilinx.com/t5/Embedded-Processor-System-Design/Zynq-QEMU-Network-Issues/td-p/797050
17:17
anuejn
no but using a chroot of the image
17:17
BAndiT1983
there is a PDF with some steps, don't have a setup to try it at the moment, killed my VM by trying our sripts yesterday
17:18
BAndiT1983
he modifies DTS
17:18
TofuLynx
I see I have a lot of things to learn and to check when I get home xD
17:50
se6astian|away
changed nick to: se6astian
18:19
TofuLynx
left the channel
18:22
TofuLynx
joined the channel
19:11
TofuLynx
left the channel
19:16
TofuLynx
joined the channel
19:17
TofuLynx
left the channel
19:17
TofuLynx
joined the channel
19:21
davidak
joined the channel
19:22
TofuLynx
how long does it usually takes to boot?
19:25
se6astian
with the actual hardware: 15-25 seconds?
19:26
BAndiT1983
and QEMU several minutes
19:26
TofuLynx
I am referring to QEMU xD
19:26
BAndiT1983
3-5 minutes, if i remember correctly, but it depends on the machine
19:27
TofuLynx
well its taking more than 15 minutes
19:27
BAndiT1983
??
19:27
TofuLynx
and it doesnt pass from the "random: crng init done"
19:27
BAndiT1983
this is too much
19:27
TofuLynx
:/
19:27
BAndiT1983
hm, try to press any key
19:27
TofuLynx
did nothing
19:27
Kjetil
There is no such key
19:28
Kjetil
is helping
19:28
BAndiT1983
i mean this one -> https://en.wikipedia.org/wiki/Any_key#/media/File:Keyboard-anykey.jpg
19:28
TofuLynx
omg xD
19:28
Kjetil
:)
19:29
BAndiT1983
TofuLynx, which params have you used?
19:30
TofuLynx
the script ones, from the lab
19:30
TofuLynx
I will paste it
19:31
BAndiT1983
the ones in the lab are maybe outdated
19:31
TofuLynx
I think I know why
19:32
TofuLynx
Waiting for root device /dev/mmcblk0p2...
19:32
TofuLynx
this appears
19:32
TofuLynx
what is /dev/mmcblkOp2?
19:32
BAndiT1983
it's the place where the virtual sd card image will be mounted
19:33
BAndiT1983
have you extracted the image, so it's 16gb big?
19:33
TofuLynx
14,9GiB
19:34
TofuLynx
the image beta_201701089 is 14,9GiB, the devicetree.dtb 10,4KiB
19:34
TofuLynx
and the zImage is 2,4MiB
19:34
BAndiT1983
this sizes are okay
19:35
TofuLynx
do I need to have that /dev/mmcblkOp2 directory?
19:35
Kjetil
it's not a directory. It's a file-backed blockdevice
19:35
BAndiT1983
it's not directory, it's a linux path
19:35
BAndiT1983
what Kjetil said
19:35
TofuLynx
ah
19:36
Bertl_oO
more precisely it _is_ the SD cards second partition
19:36
BAndiT1983
this param is just telling the mount point
19:36
BAndiT1983
if you extract the sd card image, you will find 3 partitions, if i remember correctly
19:36
TofuLynx
wait
19:36
BAndiT1983
first holds boot files, second one the linux file system
19:37
BAndiT1983
it was just an info, you don't need to do that
19:37
TofuLynx
what is the sdcard image?
19:37
BAndiT1983
sdcard image ist the big 16gb one, or 14,9 in your case
19:37
TofuLynx
ah
19:39
BAndiT1983
the real board looks into first partition and it tells it to boot the second, have played around with it before and got some parameters from the zboot file
19:39
BAndiT1983
or how the one was called with parameters
19:40
Kjetil
Maybe there is some error in the kernel boot messages?
19:40
TofuLynx
let me check
19:40
TofuLynx
left the channel
19:41
Kjetil
quit?
19:41
BAndiT1983
short-circuit in QEMU
19:42
TofuLynx
joined the channel
19:43
TofuLynx
sorry
19:43
TofuLynx
changed computers
19:43
BAndiT1983
no problem
19:46
TofuLynx
failed to initialize
19:46
BAndiT1983
which part?
19:47
TofuLynx
failed to initialize /amba/timer@f8f00200
19:47
BAndiT1983
could you copy the whole output to pastebin? i remember that it was shown in the normal console, so you could pipe it to a file first
19:47
TofuLynx
ok wait a moment
19:47
BAndiT1983
that is not a big problem with amba timer
19:47
BAndiT1983
see here, it happens also -> http://pressreset.net/2013/09/buildroot-and-qemu-the-quickest-receipe-for-your-own-linux/
19:48
TofuLynx
https://pastebin.com/nEsG9KJD
19:49
BAndiT1983
will try to start investigation of qemu problems this weekend, currently planning to create a virtualbox VM, which should include such tools like QEMU, so people can start more faster to develop for axiom or play around with environment
19:49
TofuLynx
that sounds like a great idea
19:49
BAndiT1983
have you tried to press keys? sometimes it helped
19:49
BAndiT1983
ah, i see the problem
19:50
BAndiT1983
it's waiting for the sd card
19:50
TofuLynx
the line 130?
19:50
BAndiT1983
please show your command line options
19:50
TofuLynx
in the pastebin
19:50
BAndiT1983
yes, that line
19:51
TofuLynx
https://pastebin.com/gc2Aw64H
19:54
BAndiT1983
hm, have you set up the paths in same way, like in the script? i tested it with different folder structure, so there could be a problem
19:55
BAndiT1983
take a look at target_dir for example
19:56
TofuLynx
the target_dir seems Ok
19:56
BAndiT1983
the start script was residing in some folder, in that folder there was images folder and there was mymod folder inside it
19:56
TofuLynx
yes
19:56
TofuLynx
thats correct
19:58
BAndiT1983
where have you got zImage?
19:59
TofuLynx
in /images/mymod/zImage
19:59
BAndiT1983
no, i mean the file itself? do we have a downlaod link?
19:59
TofuLynx
is that what you asked?
19:59
TofuLynx
ah
19:59
BAndiT1983
played around with several zImage files before it worked
20:00
TofuLynx
http://vserver.13thfloor.at/Stuff/AXIOM/BETA/
20:00
TofuLynx
in this link
20:00
TofuLynx
kernel-4.9.0
20:01
BAndiT1983
hm, there were problems with 4.9
20:01
TofuLynx
I dont see the old version there
20:02
BAndiT1983
at least i've read something in previous iterations of the readme in the apertus qemu repo
20:03
BAndiT1983
older one -> https://github.com/apertus-open-source-cinema/axiom-beta-qemu/blob/4334f25641b66013b49ab199e0ce75252bdd49aa/README.md
20:03
BAndiT1983
you could checkout earlier commit of the qemu repo, let me check which one could fit
20:04
BAndiT1983
if you want to give it a roll ,try one from 05.07.2017
20:04
TofuLynx
huh?
20:04
BAndiT1983
https://github.com/apertus-open-source-cinema/axiom-beta-qemu/tree/351364045b0e0c59caaa496499da25c81efe528d
20:05
BAndiT1983
try to download that one and read through README, also look through scripts
20:05
BAndiT1983
this were the state before big rework, but i'm losing overview over output, too much is going on
20:05
TofuLynx
Ok! Will try it!
20:13
se6astian
off to bed
20:13
se6astian
good night
20:13
TofuLynx
Bye bye!
20:13
se6astian
changed nick to: se6astian|away
20:38
sebix
left the channel
20:41
aombk
joined the channel
21:09
Bertl_oO
off to bed now as well ... have a good one everyone!
21:09
Bertl_oO
changed nick to: Bertl_zZ
21:27
davidak
left the channel
21:28
davidak
joined the channel
21:28
BAndiT1983
changed nick to: BAndiT1983|away
21:29
davidak
left the channel
21:30
davidak
joined the channel
21:51
illwieckz
left the channel
21:55
davidak
left the channel
22:00
illwieckz
joined the channel