--- Log opened Wed Oct 14 00:00:25 2015 | ||
stekern | I agree, generators are great for some tasks. But, they must be transparent. | 04:50 |
---|---|---|
andrzejr | _franck_, barebox works but I had to disable caches (otherwise it gets stuck in cache_init) and ethernet (no ethernet in hw yet) | 07:16 |
andrzejr | will use that testcase to debug the cache more thoroughly | 07:17 |
andrzejr | also, there was a compilation error: arch/openrisc/cpu/cpu.c:44:58: error: ‘RESET_SCOPE_CPU’ undeclared (first use in this function) | 07:18 |
olofk | I like code generators as well for some tasks, but as others have said, you need to understand what they do, and they should create understandable code. | 08:30 |
mafm | blueCmd_: assuming that the last contributor of GCC decides to assign the copyright to the FSF, what's next? | 10:31 |
mafm | is the port of GCC for o1rk up to date? | 10:31 |
olofk | andrzejr: I should probably prepare a blog post for my ideas of FuseSoC IP-Xact integration. Not sure when I'll find time to do that though | 10:34 |
stekern | mafm: blueCmd_ merged the gcc 5.2.0 release into our port, so we're at least that much up to date | 10:42 |
mafm | stekern: uh, that's good :) I was fearing that it needed more porting, since gcc-5 looked like a release with huge changes overall (but perhaps in the front-ends, not back-ends) | 10:45 |
stekern | he mentioned that the merge was a pain ;) | 10:46 |
mafm | no kidding | 10:53 |
olofk | Anyone handy with busybox? | 10:53 |
mafm | so I suppose that if the copyright assignement is sorted out, the Debian port can be continue right where it was left | 10:54 |
olofk | Right now I just want to understand where the defconfig is locaed | 10:54 |
olofk | Alright. Managed to compile busybox-1.24.0 with musl by using the defconfig and disabling wtmp, utmp and rpc manually | 10:59 |
olofk | Is there any easy way to test my newly compiled busybox? | 11:01 |
olofk | I guess I could just replace the one in my initramfs and give it a go | 11:02 |
poke53281 | olofk: clone jor1k, exchange busybox in sys/or1k/fs/bin/ | 11:03 |
olofk | poke53281: That's more like it. How do I run it? Do I need a local webserver? | 11:03 |
poke53281 | unfortunately yes. Or you have to disable the security of the web browsers. | 11:04 |
poke53281 | I think in python a web server is a one liner or so. | 11:04 |
poke53281 | the sys directory is a submodule. So not just clone but also "git submodule init" I guess. | 11:05 |
olofk | I'm trying with or1ksim to begin with. Got that installed already | 11:05 |
olofk | But I should definitely learn how to fire up a jor1k instance. That could come in handy | 11:05 |
poke53281 | http://www.linuxjournal.com/content/tech-tip-really-simple-http-server-python | 11:06 |
olofk | whoops. Crashed hard | 11:06 |
poke53281 | I think you have to type three lines in bash and then open a web browser. | 11:06 |
poke53281 | git clone .... | 11:06 |
poke53281 | cd ... | 11:07 |
poke53281 | git submodule .... | 11:07 |
poke53281 | python -m SimpleHTTPServer | 11:07 |
poke53281 | Ok, these are four lines | 11:07 |
poke53281 | I definitely like the filesystem_as_hardware_device thingy. It makes things much much easier. | 11:09 |
olofk | I'll take a look at that sometime | 11:09 |
olofk | Right now my ordinary kernel crashes as well, so there is something strange here | 11:09 |
olofk | oh.. wrong device tree | 11:11 |
olofk | Alright! Looks like my busybox works | 11:12 |
olofk | dalias: FYI it looks like busybox has fixed the broken kernel includes in 1.24.0. | 11:14 |
olofk | I'm using upstream linux headers 3.15 instead of those from sabotage linux now | 11:15 |
olofk | ...I think :) | 11:15 |
olofk | Any way to check that? | 11:15 |
olofk | Do we have a busybox defconfig for openrisc btw? | 11:20 |
poke53281 | Do you use musl? | 11:20 |
olofk | yes. My end goal is to rebuild the initramfs in our kernel tree, so that we can use an upstream kernel and build an initramfs ourselves | 11:21 |
olofk | With musl | 11:21 |
poke53281 | http://www.jor1k.com/or1k-toolchain.tar.bz2 | 11:21 |
poke53281 | patches/CONFIG_BUSYBOX | 11:21 |
poke53281 | scripts/progs.make gives you the build instructions | 11:22 |
olofk | cool. I'll diff your config with the default one | 11:23 |
olofk | I see that UTMP and WTMP is set in our config | 11:26 |
olofk | And you're using sysroot when you compile | 11:26 |
poke53281 | Hmm, don't really understand. | 11:28 |
poke53281 | Yes, I have a sysroot directory. | 11:28 |
poke53281 | $SYSROOT=some_path | 11:28 |
poke53281 | Building a distribution is still a horrible mess. Especially now, that I have to mix glibc, musl, openrisc and risc-v. | 11:32 |
olofk | :) | 11:32 |
olofk | aha... looks like I need to set either PATH_WTMP or WTMP_FILE as well. Ehhm.. what should I set that to? | 11:33 |
poke53281 | don't know | 11:33 |
olofk | It's not set in your config. Maybe it's a new thing | 11:33 |
poke53281 | might be | 11:34 |
olofk | Hmm.. it's not set anywhere in the default config for 1.24.0, so I can't really see how this can work at all | 11:35 |
olofk | Maybe the C library is supposed to set that | 11:36 |
olofk | oh well. I'll leave that for now | 11:38 |
olofk | Is there any automated way to create all the busybox symlinks and root fs layout? | 11:38 |
stekern | olofk: make install | 11:41 |
olofk | aha | 11:46 |
olofk | Where does it install to? | 11:46 |
olofk | I probably shouldn't try it as root :) | 11:46 |
stekern | to the sysroot | 11:46 |
olofk | oh, so that's what sysroot is good for | 11:46 |
olofk | So should I point sysroot to the arch/openrisc/support/initramfs before building busybox? | 11:47 |
stekern | yes | 11:47 |
stekern | or to your sysroot | 11:48 |
stekern | and then just copy everything in there | 11:48 |
olofk | So my sysroot can be an empty dir? | 11:48 |
stekern | well, the one I'm using is at: /opt/cross/or1k-linux-musl/or1k-linux-musl | 11:53 |
olofk | But I don't want my busybox to be installed there, right? | 11:53 |
stekern | yeah, maybe not | 11:56 |
stekern | to be honest, I can't remember what I did last when I compiled busybox with musl | 11:56 |
olofk | aha. There's a menuconfig option for this :) (./_install) BusyBox installation prefix | 11:57 |
poke53281 | olofk: arghh, sorry olof. The file I send you is outdated. I forgot all the musl patches | 11:58 |
poke53281 | One second | 11:58 |
poke53281 | http://www.jor1k.com/or1k-toolchain.tar.bz2 | 11:59 |
poke53281 | I changed the busybox scripts | 11:59 |
olofk | This link looks a bit like the one I just downloaded :) | 12:00 |
poke53281 | Yes, but the file content changed | 12:00 |
olofk | Internet is so sneaky | 12:00 |
olofk | So where should I look? | 12:00 |
poke53281 | you have a new patches/busybox folder | 12:00 |
olofk | Jesus. That's a lot of patches | 12:00 |
poke53281 | look in script/progs.make and search for busybox | 12:01 |
poke53281 | Yes, musl and busybox doesn't fit very well together. | 12:01 |
poke53281 | dalias will tell you that. | 12:01 |
olofk | Are these compile-time or runtime fixes? Because with latest busybox, it compiles and starts up fine by just disabling the three options I mentioned earlier | 12:02 |
poke53281 | good question. I guess both. | 12:02 |
olofk | And make CROSS_COMPILE=... install works fine | 12:02 |
poke53281 | If it runs don't worry. I had problems with an older busybox. But I can't remember which problems. | 12:03 |
olofk | Would be interesting to get some more testing on this. Maybe most of those patches aren't needed anymore | 12:03 |
olofk | Yeah. I had a lot of problems compiling 1.23.2 | 12:03 |
poke53281 | ask dalias and the sabotage linux guy | 12:03 |
olofk | #musl on freenode? | 12:04 |
poke53281 | yes | 12:04 |
olofk | Haven't there been several problems recently that was solved by turning of the caches? Do we have a potential problem here? | 13:13 |
poke53281 | which cache? I have never used or implemented a cache. | 13:25 |
olofk | poke53281: You might not know this, but there even exists implementations of or1k that can run on an FPGA ;) | 13:29 |
poke53281 | Yeah, I have a rumor in that direction one or two times. | 13:32 |
poke53281 | ... have heard ... | 13:35 |
-!- Netsplit *.net <-> *.split quits: rhythmx, mboehnert, yang, GeneralStupid, simoncook | 16:50 | |
-!- mboehnert1 is now known as mboehnert | 16:50 | |
-!- Netsplit over, joins: simoncook | 17:07 | |
jeffesquivels | Hi guys, any idea if the talks at Orconf were recorded? (I realize if they were they probably won't be readily uploaded right now, but just wondering if they are going to be available in the future) | 18:11 |
jn__ | i'm interested, too | 18:11 |
olofk | jeffesquivels, jn__ : Actually, I think they are quite close to being available. Apparently they are edited and just waiting to be uploaded | 20:23 |
jeffesquivels | olofk: great to hear that! I'll be on the lookout then, thanks! :) | 20:30 |
--- Log closed Thu Oct 15 00:00:27 2015 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!