Friday, 2017-04-14

*** tpb has joined #timvideos00:00
*** danielki has quit IRC00:13
*** danielki has joined #timvideos00:27
mithrofutarisIRCcloud: morning00:36
mithrofutarisIRCcloud: I'm using the toolchain from conda00:40
futarisIRCcloudJust booted Linux 4.11.0-rc5 in qemu openrisc_sim ... Works fine with binutils 2.17 or 2.18, I think.00:45
futarisIRCcloudMust just be my qemu command lines for qemu_system_or32 -M litex.00:46
mithrofutarisIRCcloud: or1k is in binutil upstream00:46
*** danielki has quit IRC00:47
mithrofutarisIRCcloud: Sadly no upstream gcc00:47
tpbTitle: conda-hdmi2usb-packages/meta.yaml at master · timvideos/conda-hdmi2usb-packages · GitHub (at
mithrofutarisIRCcloud: That is where I'm getting the gcc I'm using from00:50
mithrofutarisIRCcloud: FYI I've replied to your email02:07
*** futarisIRCcloud has quit IRC04:29
*** futarisIRCcloud has joined #timvideos04:35
mithrofutarisIRCcloud: Having much luck?07:39
futarisIRCcloudNot yet. I'm trying with CONFIG_CONSOLE_POLL now. IRQ 0 might also be another issue.07:40
mithrofutarisIRCcloud: I have NFI if the IRQs are working at all07:40
futarisIRCcloudCouldn't figure out how to compile or1k-elf-gdb 7.12.1, so just commented out the source line in your script.07:41
mithrofutarisIRCcloud: source line?07:41
futarisIRCcloudbuildroot will compile or1k-linux-gdb though.07:42
mithrofutarisIRCcloud: There are precompiled binaries in our conda07:42
futarisIRCcloudOnly 7.11 I think in conda.07:42
futarisIRCclouduart-litex.c line 770. <= 0, rather than < 0.07:44
mithroActually shorne has a gdb with a couple of fixes07:45
tpbTitle: GitHub - stffrdhrn/binutils-gdb: Binutils and gdb fork for OpenRISC (at
mithrofutarisIRCcloud: I would definitely recommend hacking up QEMU with extra prints in the peripheral code to see when it tried to raise an interrupt...07:55
mithroBut I guess polling mode should work as earlycon does?07:55
futarisIRCcloudHaven't tried putting CONFIG_CONSOLE_POLL=y in the .config yet.07:57
futarisIRCcloudIt compiles, but the same issue. Something else missing in the uart-litex code. I think we aren't enabling the interrupt line. maybe.08:03
mithrofutarisIRCcloud: Hrm? The polling code doesn't use interrupts?08:13
futarisIRCcloudI think the problem is in litex_uart_start_tx(). It doesn't call anything at the moment, so no chars are printed.08:56
mithrofutarisIRCcloud: BTW Do you know how to use gdb to get the dmesg output?08:56
futarisIRCcloudI think you just follow that elinux link that I sent. Of course, if the code is "emptying" the printk buffer (to nowhere), then it doesn't help.08:58
mithrofutarisIRCcloud: Sure it does, the printk buffer is a ring buffer so you can still see the contents08:59
futarisIRCcloudYep. litex_uart_transmit(port, 0) will let some more console output through... Let's just fix it up to use the proper TXFULL...09:01
*** hobbes- has quit IRC09:21
futarisIRCcloudI'm not sure we are emulating TXFULL correctly in qemu.09:37
mithrofutarisIRCcloud: That is possible09:37
futarisIRCcloudqemu_chr_fe_write_all() in uart_write09:42
futarisIRCcloudEasiest way is to hack a sleep after every character or so, to artificially slow down the TX (in the kernel driver).09:44
mithrofutarisIRCcloud: We can fix qemu :-P09:45
futarisIRCcloudYeah, that's what we should do.09:51
mithrofutarisIRCcloud: If you haven't fixed it by the time I finish this spreadsheet I'll take a look at it10:03
futarisIRCcloudXXX this blocks entire thread. Rewrite to use qemu_chr_fe_write and background I/O callbacks10:08
tpbTitle: [Qemu-devel] [PATCH 0/5] Global fix / workaround usage of qemu_chr_fe_wr (at
futarisIRCcloudOnly ever getting output from litex_uart_start_tx() ...10:34
mithroI will probably be back a later tonight (maybe 2 hours?), have to run away for a couple of hours.10:36
futarisIRCcloudI can't really enable IRQs in the linux driver if the TX and RX IRQs aren't both happening in the QEMU driver. From looking through the QEMU driver, TXFULL etc don't happen.10:42
futarisIRCcloudSo CONFIG_CONSOLE_POLL gives the polling routines for writing and reading from the uart while in an interrupt or debug context ...10:47
tpbTitle: polling a UART vs. interrupt Linux Serial (at
futarisIRCcloudI'm guessing that you're going to need to have a uart_update_irq() function like serial.c or lm32_uart.c etc...11:07
*** hobbes- has joined #timvideos11:15
*** tvCommitBot has joined #timvideos13:00
-tvCommitBot- [av-foss-stack] CarlFK pushed 1 new commit to master:
-tvCommitBot- av-foss-stack/master 1900179 Carl Karsten: test minicom install13:00
*** tvCommitBot has left #timvideos13:00
*** futarisIRCcloud has quit IRC14:39
*** f15h has joined #timvideos19:51
*** f15h has quit IRC20:30
*** olasd has quit IRC21:02
*** olasd has joined #timvideos21:04
*** danielki has joined #timvideos21:24
*** futarisIRCcloud has joined #timvideos22:27
*** danielki has quit IRC22:43
*** danielki has joined #timvideos22:56

Generated by 2.13.1 by Marius Gedminas - find it at!