| --- Log opened Sun Apr 03 00:00:04 2016 | ||
| mithro | So, you were saying that or1k was in upstream binutils now? | 01:47 |
|---|---|---|
| * mithro is testing | 03:19 | |
| mithro | Is https://github.com/openrisc/linux/commits/master the "most up to date" Linux which runs on the or1k? | 03:33 |
| shorne | mithro: its pretty much. I have a 4.5 for here https://github.com/stffrdhrn/linux/tree/openrisc | 04:11 |
| mithro | shorne: so, I'm interested in trying to get Linux running on the mor1k embedded on an Atlys board running inside misoc generated firmware | 04:20 |
| shorne | mithro: I havent tried on that board | 04:27 |
| shorne | but its running on the de0 nano | 04:27 |
| shorne | I guess you just need to have a look at the .dts file and configure it for your board | 04:27 |
| shorne | starting with at least getting uart and memory correct | 04:27 |
| mithro | shorne: I guess I should work on fusesoc + Atlys board I attempt misoc+Atlys? | 04:28 |
| mithro | shorne: is gcc 4.9.3 okay to use? | 04:28 |
| shorne | I think 4.9.* should be fine I am using a 5.*, but had to do some patches which are now all merged | 04:29 |
| mithro | shorne: you are using fusesoc on the DE0 right? | 04:30 |
| shorne | stekern: I just booted linux with my NO_BOOTMEM bpatch | 04:30 |
| shorne | yes its fusesoc | 04:30 |
| shorne | my host compiler is gcc 5.3.1 | 04:31 |
| shorne | or1k-elf-gcc is 4.9.2 | 04:31 |
| mithro | shorne: How is Linux+initrd loaded? Do you have a bootloader of some sort or do you embed it in FPGA gateware? | 04:32 |
| shorne | its via openocd | 04:33 |
| shorne | I never tried with a bootloader yet | 04:33 |
| mithro | shorne: are there "up to date" instructions somewhere? | 04:35 |
| shorne | I am just looking to get you a link https://github.com/openrisc/tutorials/blob/master/docs/Linux.md | 04:35 |
| shorne | but thats not having the openocd part | 04:36 |
| shorne | in openocd I usually run | 04:36 |
| shorne | init | 04:36 |
| shorne | reset | 04:36 |
| shorne | halt; load_image ../linux/vmlinux; reg r3 0; reg npc 0x100; resume | 04:36 |
| mithro | I was following http://openrisc.io/newlib/building.html to get a cross compiler | 04:36 |
| wbx | didn't you need a musl/.. toolchain to build linux? | 04:37 |
| shorne | wbx: I use newlib | 04:37 |
| shorne | for linux 4.5 | 04:37 |
| wallento | but not for userspace, or? | 04:38 |
| shorne | not for userspace | 04:38 |
| wallento | there are prebuilts for musl, too: https://github.com/openrisc/musl-cross/releases | 04:38 |
| wallento | shorne: what is the issue with gcc 5.x? | 04:38 |
| wbx | shorne: so you need two toolchains for a complete system, right? | 04:38 |
| wallento | actually not | 04:38 |
| wallento | you can also compile the kernel with the musl compiler | 04:38 |
| mithro | I'm not really at the stage for user space yet :P | 04:38 |
| wbx | wallento: yeah. i just mean in his case, not general. :) | 04:39 |
| wallento | because the startfiles etc. are not used | 04:39 |
| shorne | wallento: no issue with 5.x now, I had some patches which you saw a few weeks ago, I was just talking about that | 04:39 |
| wallento | ah, okay | 04:39 |
| mithro | wallento: Can the musl version target "bare metal"? | 04:39 |
| shorne | yeah, you can compile all with musl | 04:39 |
| wallento | I will give gcc 6 more code today | 04:39 |
| wallento | mithro: no | 04:39 |
| wallento | not out of the box | 04:39 |
| shorne | or basics kernel + simple stuff with newlib | 04:39 |
| wallento | you will need libgloss which is in newlib | 04:39 |
| wallento | so, you could run musl+libgloss+one or two functions | 04:40 |
| wallento | I think, but have not tried it | 04:40 |
| mithro | At the moment I have two goals, getting our lm32 based "bare metal" firmware to also compiled / operate on the or1k, second goal is to get Linux booting on our "gateware" with or1k and misoc | 04:41 |
| shorne | wallento: there is a todo item in openrisc/linux "Consolidate usage of memblock and bootmem..." | 04:41 |
| shorne | I think I just got it working, been spending last week or so figuring out how it works | 04:41 |
| wallento | I have never heard of it :) | 04:42 |
| wallento | Spent the last hours with understanding modern websites and how they are built | 04:42 |
| wallento | porting GCC seems fun compared to this ;) | 04:42 |
| shorne | jekyll? | 04:42 |
| wallento | no, symfony and pubsubhubhub and all those apis and javascript stuff | 04:43 |
| wallento | I somehow lost track of this after PHP+MySQL in 2004 :) | 04:43 |
| shorne | Are you going to start writing a new clean-room gcc port? | 04:43 |
| wallento | no, I won't | 04:44 |
| wallento | too much on my plate for such a venture | 04:44 |
| shorne | yeah, new web technology moves too quickly to keep up with. If you lose track for a month you are out dated | 04:44 |
| mithro | Well, I'm going to go play some computer games while this gateware builds | 04:53 |
| mafm | anybody here related to the PULPino project? | 16:58 |
| andrzejr | olofk, pushed to https://github.com/andrzej-r/fusesoc | 17:14 |
| --- Log closed Mon Apr 04 00:00:05 2016 | ||
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!