*** tpb has joined #timvideos | 00:00 | |
*** paradisaeidae_ has joined #timvideos | 00:58 | |
mithro | I wrote up some instructions for Linux on LiteX + Opsis board at https://docs.google.com/document/d/1GfWKjrcfA27qbF8F9EtvRP5mzsaBjRzADfZTb5H8irw/edit# | 01:13 |
---|---|---|
tpb | Title: LiteX Linux Support Random Notes - Google Docs (at docs.google.com) | 01:13 |
*** paradisaeidae_ has quit IRC | 04:05 | |
mithro | shorne / shenki: I think we just want to add a "l.j 0x100" at pos 0x0 to remove the BIOS hack... | 04:16 |
mithro | The immediate value is shifted left two bits, sign-extended to program counter width, and then added to the address of the jump instruction. | 04:17 |
shenki | mithro: that makes sense to me (the adding the jump) | 04:55 |
mithro | shenki: I was thinking of following arch/nios2/kernel/head.S | 04:56 |
mithro | Actually | 04:56 |
mithro | We could just add it too arch/openrisc/kernel/head.S | 04:57 |
mithro | c0000000 <_s_kernel_ro>: | 05:05 |
mithro | c0000000: 00 00 00 40 l.j c0000100 <_s_kernel_ro+0x100> | 05:05 |
mithro | c0000004: 15 00 00 00 l.nop 0x0 | 05:05 |
mithro | shenki: That doesn't seem to work... | 05:05 |
mithro | Oh wait -- it looks like it might... | 05:11 |
mithro | shenki: So it looks like the bios doesn't disable the litex-timer when booting.... | 05:13 |
mithro | shenki: I should just do a "make litex_defconfig" I don't need to set arch and stuff? | 05:25 |
mithro | Hrm | 05:27 |
mithro | It seems like I need "make CROSS_COMPILE=or1k-elf- ARCH=openrisc litex_defconfig" | 05:27 |
*** rohitksingh has quit IRC | 05:31 | |
shenki | correcet | 05:50 |
shenki | you should look into ccontrol | 05:50 |
shenki | joel@aurora ~/dev/kernels/litex :litex-minimal | 05:50 |
shenki | $ ccontrol | 05:50 |
shenki | [/home/joel/dev/kernels/litex] | 05:50 |
shenki | cc = /usr/bin | 05:50 |
shenki | c++ = /usr/bin | 05:50 |
shenki | make = /usr/bin | 05:50 |
shenki | ld = /usr/bin | 05:50 |
shenki | add make = ARCH=openrisc | 05:50 |
shenki | add make = CROSS_COMPILE=/home/joel/dev/timvideos/HDMI2USB-litex-firmware/build/conda/bin/or1k-elf- | 05:50 |
shenki | cpus = 4 | 05:50 |
shenki | it sets up your environment based on the directory you're in | 05:51 |
mithro | Oh, ccontrol sounds super cool - very much exactly the type of thing I've been looking for | 05:51 |
shenki | good for when you're working for a company that makes powerpc processors, but working on arm, but actually working on openrisc :) | 05:51 |
mithro | http://ccontrol.ozlabs.org/ | 05:51 |
tpb | Title: ccontrol (at ccontrol.ozlabs.org) | 05:51 |
shenki | that's the one | 05:51 |
mithro | I was thinking of doing something in my prompt that looked at PWD and changed environment variables automatically... | 05:52 |
mithro | LOL - "The Ccontrol Webring!" | 05:53 |
mithro | shenki: LOL - mercurial :-P | 05:53 |
shenki | heh. yes. rusty was a big fan | 05:53 |
shenki | apt-get install ccontrol | 05:54 |
mithro | shenki: https://github.com/shenki/linux/pull/1 | 05:59 |
tpb | Title: Jump to RESET exception. by mithro · Pull Request #1 · shenki/linux · GitHub (at github.com) | 05:59 |
*** rohitksingh has joined #timvideos | 06:23 | |
shenki | mithro: nice. your whitespace looks wrong. i'll fix it when i merge | 06:26 |
mithro | shenki: Works in QEMU - still trying to get it working on hardware | 06:26 |
shenki | ok | 06:26 |
mithro | shenki: It seems to work! | 07:14 |
mithro | shenki: I'll try and get things merged later tonight, going to jimmo's for dinner | 07:32 |
shorne | mithro: I just replied to a mail about doing l.j 0x100 | 07:54 |
shorne | I see you found it doesn wotk through! | 07:54 |
shorne | shenki: ccontrol sound cool to me too | 07:55 |
shorne | oh... I see it looks like it does work | 07:56 |
mithro | shorne: yeah, not sure what I was doing wrong intially | 07:57 |
mithro | shorne: it looks like you might have always booted via loading via gdb? | 07:58 |
mithro | (or JTAG?) | 07:59 |
mithro | shorne: apparently they tried to deliver the FPGA boards on Sunday at 8:00pm? | 08:00 |
mithro | 8:12 pm Sun 1 Oct -- JP-1438799, JAPAN | 08:00 |
*** shorne_ has joined #timvideos | 10:51 | |
shenki | mithro: what do you think of Olof's proposal? | 10:53 |
shenki | mithro: about having all of our firmwares load to 0x100? | 10:53 |
*** shorne has quit IRC | 10:53 | |
mithro | The reset vector for lm32 is at 0x0 I think... | 11:03 |
mithro | And how would the decompress code work then? | 11:04 |
shorne_ | mithro: can the jump to bare metal app/kernel be different based on architecture? | 11:07 |
shorne_ | I would think it would have a different build between lm32 or or1k | 11:07 |
shorne_ | mithro: FYI, I got the boards | 11:07 |
mithro | shorne_: Yes | 11:07 |
mithro | shorne_: Awesome! | 11:07 |
shorne_ | yes, they are | 11:08 |
mithro | The crt0 files for our baremetal firmware is https://github.com/enjoy-digital/litex/tree/master/litex/soc/software/libbase | 11:08 |
tpb | Title: litex/litex/soc/software/libbase at master · enjoy-digital/litex · GitHub (at github.com) | 11:08 |
shorne_ | Now I need to finish some patch sets before I get started playing with the boards | 11:08 |
mithro | shorne_: Distractions :-P | 11:09 |
mithro | shorne_: Neither the MimasV2 nor the Arty are working yet | 11:09 |
mithro | shorne_: The MimasV2 only has a LX9, so we need to play with the mor1kx configuration to figure out if it will fit | 11:11 |
mithro | shorne_: The arty support just requires me to finish the merge at https://github.com/timvideos/HDMI2USB-litex-firmware/pull/313 | 11:12 |
tpb | Title: Merge arty-soc for Arty support by mithro · Pull Request #313 · timvideos/HDMI2USB-litex-firmware · GitHub (at github.com) | 11:12 |
mithro | shorne_: Hrm... I seem to recall having a patch somewhere which defined RESET location | 11:18 |
mithro | Ishan_Bansal: I reviewed your pull request again | 11:36 |
mithro | Ishan_Bansal: Sorry about the delay | 11:40 |
shenki | mithro: i haven't looked at the decompres code. i asssume we can put that anywhere; it's not like it will fit in 256 byts anyway | 12:42 |
shorne_ | Is there anything that controls the offsets in the linker scripts? like linker-sdram.ld? | 12:53 |
shorne_ | it looks like maybe everything just starts at 0x0 | 12:54 |
*** shorne_ is now known as shorne | 12:56 | |
*** rohitksingh1 has joined #timvideos | 14:59 | |
*** rohitksingh has quit IRC | 14:59 | |
*** rohitksingh has joined #timvideos | 15:57 | |
*** rohitksingh1 has quit IRC | 15:59 | |
Ishan_Bansal | mithro : I will try to fix all the issues within next two days as I am fully packed with the assignments for tomorrow. | 17:18 |
*** rohitksingh1 has joined #timvideos | 17:19 | |
*** rohitksingh has quit IRC | 17:20 | |
*** rohitksingh1 has quit IRC | 19:06 | |
mithro | Ishan_Bansal: no hurry! I took so long to review it, I can't expect you to be faster! | 19:47 |
mithro | Ishan_Bansal: it is super awesome that you are still so active! | 19:48 |
Ishan_Bansal | mithro : It's because I want to see the encoder working and it needs a lot of work even now. :) | 19:51 |
mithro | Ishan_Bansal: yeah, I do too! | 19:52 |
*** andi-m has quit IRC | 20:51 | |
*** andi-m has joined #timvideos | 21:07 | |
*** andi-m has quit IRC | 21:11 | |
*** andi-m has joined #timvideos | 21:18 | |
*** medicalwei has quit IRC | 23:30 | |
*** CarlFK has quit IRC | 23:35 | |
*** medicalwei has joined #timvideos | 23:39 | |
*** medicalwei has quit IRC | 23:44 | |
*** medicalwei has joined #timvideos | 23:47 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!