Tuesday, 2017-10-03

*** tpb has joined #timvideos00:00
*** paradisaeidae_ has joined #timvideos00:58
mithroI wrote up some instructions for Linux on LiteX + Opsis board at https://docs.google.com/document/d/1GfWKjrcfA27qbF8F9EtvRP5mzsaBjRzADfZTb5H8irw/edit#01:13
tpbTitle: LiteX Linux Support Random Notes - Google Docs (at docs.google.com)01:13
*** paradisaeidae_ has quit IRC04:05
mithroshorne / shenki: I think we just want to add a "l.j 0x100" at pos 0x0 to remove the BIOS hack...04:16
mithroThe 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
shenkimithro: that makes sense to me (the adding the jump)04:55
mithroshenki: I was thinking of following arch/nios2/kernel/head.S04:56
mithroWe could just add it too arch/openrisc/kernel/head.S04:57
mithroc0000000 <_s_kernel_ro>:05:05
mithroc0000000:       00 00 00 40     l.j c0000100 <_s_kernel_ro+0x100>05:05
mithroc0000004:       15 00 00 00     l.nop 0x005:05
mithroshenki: That doesn't seem to work...05:05
mithroOh wait -- it looks like it might...05:11
mithroshenki: So it looks like the bios doesn't disable the litex-timer when booting....05:13
mithroshenki: I should just do a "make litex_defconfig" I don't need to set arch and stuff?05:25
mithroIt seems like I need "make CROSS_COMPILE=or1k-elf- ARCH=openrisc litex_defconfig"05:27
*** rohitksingh has quit IRC05:31
shenkiyou should look into ccontrol05:50
shenki[email protected] ~/dev/kernels/litex :litex-minimal05:50
shenki$ ccontrol05:50
shenkicc = /usr/bin05:50
shenkic++ = /usr/bin05:50
shenkimake = /usr/bin05:50
shenkild = /usr/bin05:50
shenkiadd make = ARCH=openrisc05:50
shenkiadd make = CROSS_COMPILE=/home/joel/dev/timvideos/HDMI2USB-litex-firmware/build/conda/bin/or1k-elf-05:50
shenkicpus = 405:50
shenkiit sets up your environment based on the directory you're in05:51
mithroOh, ccontrol sounds super cool - very much exactly the type of thing I've been looking for05:51
shenkigood for when you're working for a company that makes powerpc processors, but working on arm, but actually working on openrisc :)05:51
tpbTitle: ccontrol (at ccontrol.ozlabs.org)05:51
shenkithat's the one05:51
mithroI was thinking of doing something in my prompt that looked at PWD and changed environment variables automatically...05:52
mithroLOL - "The Ccontrol Webring!"05:53
mithroshenki: LOL - mercurial :-P05:53
shenkiheh. yes. rusty was a big fan05:53
shenkiapt-get install ccontrol05:54
mithroshenki: https://github.com/shenki/linux/pull/105:59
tpbTitle: Jump to RESET exception. by mithro · Pull Request #1 · shenki/linux · GitHub (at github.com)05:59
*** rohitksingh has joined #timvideos06:23
shenkimithro: nice. your whitespace looks wrong. i'll fix it when i merge06:26
mithroshenki: Works in QEMU - still trying to get it working on hardware06:26
mithroshenki: It seems to work!07:14
mithroshenki: I'll try and get things merged later tonight, going to jimmo's for dinner07:32
shornemithro: I just replied to a mail about doing l.j 0x10007:54
shorneI see you found it doesn wotk through!07:54
shorneshenki: ccontrol sound cool to me too07:55
shorneoh... I see it looks like it does work07:56
mithroshorne: yeah, not sure what I was doing wrong intially07:57
mithroshorne: it looks like you might have always booted via loading via gdb?07:58
mithro(or JTAG?)07:59
mithroshorne: apparently they tried to deliver the FPGA boards on Sunday at 8:00pm?08:00
mithro8:12 pm Sun 1 Oct -- JP-1438799, JAPAN08:00
*** shorne_ has joined #timvideos10:51
shenkimithro: what do you think of Olof's proposal?10:53
shenkimithro: about having all of our firmwares load to 0x100?10:53
*** shorne has quit IRC10:53
mithroThe reset vector for lm32 is at 0x0 I think...11:03
mithroAnd 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 or1k11:07
shorne_mithro: FYI, I got the boards11:07
mithroshorne_: Yes11:07
mithroshorne_: Awesome!11:07
shorne_yes, they are11:08
mithroThe crt0 files for our baremetal firmware is https://github.com/enjoy-digital/litex/tree/master/litex/soc/software/libbase11:08
tpbTitle: 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 boards11:08
mithroshorne_: Distractions :-P11:09
mithroshorne_: Neither the MimasV2 nor the Arty are working yet11:09
mithroshorne_: The MimasV2 only has a LX9, so we need to play with the mor1kx configuration to figure out if it will fit11:11
mithroshorne_: The arty support just requires me to finish the merge at https://github.com/timvideos/HDMI2USB-litex-firmware/pull/31311:12
tpbTitle: Merge arty-soc for Arty support by mithro · Pull Request #313 · timvideos/HDMI2USB-litex-firmware · GitHub (at github.com)11:12
mithroshorne_: Hrm... I seem to recall having a patch somewhere which defined RESET location11:18
mithroIshan_Bansal: I reviewed your pull request again11:36
mithroIshan_Bansal: Sorry about the delay11:40
shenkimithro: 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 anyway12: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 0x012:54
*** shorne_ is now known as shorne12:56
*** rohitksingh1 has joined #timvideos14:59
*** rohitksingh has quit IRC14:59
*** rohitksingh has joined #timvideos15:57
*** rohitksingh1 has quit IRC15:59
Ishan_Bansalmithro : 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 #timvideos17:19
*** rohitksingh has quit IRC17:20
*** rohitksingh1 has quit IRC19:06
mithroIshan_Bansal: no hurry! I took so long to review it, I can't expect you to be faster!19:47
mithroIshan_Bansal: it is super awesome that you are still so active!19:48
Ishan_Bansalmithro : It's because I want to see the encoder working  and it needs a lot of work even now.  :)19:51
mithroIshan_Bansal: yeah, I do too!19:52
*** andi-m has quit IRC20:51
*** andi-m has joined #timvideos21:07
*** andi-m has quit IRC21:11
*** andi-m has joined #timvideos21:18
*** medicalwei has quit IRC23:30
*** CarlFK has quit IRC23:35
*** medicalwei has joined #timvideos23:39
*** medicalwei has quit IRC23:44
*** medicalwei has joined #timvideos23:47

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!