--- Log opened Thu Apr 17 00:00:08 2014 | ||
stekern | blueCmd: hmm, but how does one get a broken libmpfr? from a borken gcc? =) | 03:29 |
---|---|---|
stekern | blueCmd: and just for the record, the handholding invite wasn't a romantic one ;) I'm about ready with my atlys board to try out debian on real hw, but don't know how to start | 05:02 |
stekern | I guess the README here is a good entry point? https://github.com/bluecmd/or1k-debian | 05:22 |
stekern | do I need to do the debootstrap with qemu, or can I do that on the board? | 05:37 |
stekern | oh, right, I'll need your atomic patch too... | 05:38 |
stekern | that and the TLS patch | 05:39 |
stekern | is there anything else? | 05:39 |
olofk_ | stekern: I've only run the ethmac regression tests in orpsoc-cores. Haven't gotten around to actually use it on a board | 05:46 |
olofk_ | Got my half-finished lx9 microboard and ordb2a ports that should use them | 05:47 |
stekern | olofk_: didn't you see that I amended that question? =) | 05:49 |
stekern | it's working like a charm on the atlys board | 05:50 |
olofk_ | Yeah, I saw that. Just wanted to give you the glory of being the first one to run it :) | 05:51 |
olofk_ | I still haven't gotten around to back port some of the hacks from orpsocv2 | 05:51 |
stekern | ah, fusesoc pioneering! | 05:52 |
olofk_ | IIRC, there's one fix that adds an extra receive fifo for double buffering. I think something like that would be good to have | 05:53 |
olofk_ | There might have been some weird CDC issues in that implementation though, so I didn't want to upstream it directly | 05:54 |
stekern | ok, this has worked solid so far | 05:54 |
stekern | haven't done so many rebuilds though, in orpsocv2, it was a 50/60 chance of failing | 05:55 |
olofk_ | I'll be on parental leave for eight months starting in May. Just need to get wifi to the sandbox and I can start working on my TODO list :) | 06:13 |
olofk_ | Think of the children! Unhandled CDC are dangerous! | 06:14 |
stekern | lol | 06:17 |
stekern | blueCmd: I had to do this in addtion to the other binfmt instructions: sudo update-binfmts --enable qemu-or1k | 06:25 |
blueCmd | stekern: really? hm ok | 07:50 |
stekern | might be ubuntu specific(?) | 07:52 |
blueCmd | stekern: aha, I didn't understand the handhold request! hah. btw, I lied before, weston wasn't compiled, but I will try to compile it. | 07:52 |
stekern | =) | 07:52 |
olofk_ | blueCmd: Did your colleague just make the boards for fun, or are you planning on using them for something internally? | 07:53 |
olofk_ | At work I mean | 07:53 |
stekern | I'm having problems with the debootstrap, mandb takes forever | 07:53 |
olofk_ | Not, like in your body internally | 07:53 |
blueCmd | olofk_: for fun | 07:53 |
olofk_ | oh | 07:54 |
blueCmd | stekern: I think that's a race, it freezes and never completes like 10% of the time for me - I haven't debugged that yet | 07:54 |
stekern | so I killed mandb, and then the bootstrap continues, but in the end it goes: I: Configuring libc-bin... | 07:54 |
blueCmd | I would just ctrl+c and redo it | 07:54 |
stekern | W: Failure while configuring base packages. This will be re-attempted up to five times. | 07:54 |
blueCmd | yes, it will do that anyway | 07:54 |
blueCmd | it's not very polished | 07:54 |
blueCmd | It will probably work just fine, when you do apt-get install X it will do stuff it didn't complete | 07:55 |
stekern | ok... | 07:55 |
stekern | I've tested to boot it (on hw), but I get permission denied problems | 07:56 |
stekern | wait for pastie... | 07:56 |
stekern | still wait... | 07:57 |
stekern | here it comes... | 07:57 |
stekern | http://pastie.org/9086944 | 07:57 |
blueCmd | weird, I haven't gotten that | 07:58 |
blueCmd | sure your nfs isn't ro? | 07:58 |
stekern | shouldn't be, this is my export line: | 07:59 |
stekern | /home/stefan/openrisc/debian/initramfs 192.168.255.0/24(rw,insecure,no_subtree_check,sync,no_root_squash) | 07:59 |
blueCmd | looks fine | 07:59 |
blueCmd | i wonder if the kernel starts with it ro and since your fstab is empty (I'm guessing) it will not remount it rw | 08:01 |
stekern | hmm, interesting theory | 08:25 |
stekern | did you ever run or1ksim at the point '# Now you can either:', or only later? | 08:25 |
stekern | nm, it works now after I rebooted the nfs server | 08:32 |
olofk_ | stekern: Is sublime compatible with cursynth? :) | 08:33 |
olofk_ | One of the user comments for cursynth said the exact same thing I was thinking "Why would anyone want that?" | 08:34 |
olofk_ | And why on earth is GNU involved in making a curses-based synthesizer? | 08:35 |
stekern | no, it's not ;) | 08:35 |
blueCmd | stekern: building mpfr natively causes the 'log' function to checkfail when running the self-tests. it tries to set precision 1 instead of 65 (if I compile it natively 65 is set, might be different for or1k, but 1 sounds a bit.. low) | 08:35 |
blueCmd | I'm intrigue, time for work | 08:35 |
stekern | http://pastie.org/9087043 | 08:44 |
olofk_ | stekern: Cool | 09:03 |
blueCmd | stekern: nice! | 09:08 |
blueCmd | stekern: how long time did it take to boot? | 09:09 |
stekern | blueCmd: didn't measure, but 1-2 minutes perhaps | 09:21 |
olofk_ | stekern: Is that using sysvinit or is systemd implemented already? | 09:23 |
olofk_ | Or is busybox still handling everything? | 09:24 |
blueCmd | stekern: that's nice. if you do: | 09:24 |
blueCmd | echo "NOSWAP=yes" | sudo tee -a initramfs/etc/default/rcS | 09:24 |
blueCmd | olofk_: that's systemd | 09:24 |
blueCmd | stekern: if you do that you will skip the swap init steps | 09:24 |
blueCmd | olofk_: and no busybox | 09:25 |
olofk_ | ah yes. Saw some systemd printouts now | 09:26 |
olofk_ | Haven't really learned what the systemd boot looks like. It's so blazing fast on my laptops so I never have time too look at the output :) | 09:26 |
olofk_ | Got confused by the run levels. Thought that was a sysvinit thing | 09:27 |
stekern | blueCmd: ok, will test that, just running an 'apt-get update' now | 09:29 |
blueCmd | stekern: weston is now built, you should be able to apt-get update; apt-get install weston | 10:25 |
stekern | blueCmd: let's see if I can apt-get something simpler first ;) | 10:40 |
blueCmd | hah | 10:40 |
stekern | heh, my 1-2 minutes estimate was pretty accurate: 1m 38.46s | 10:44 |
stekern | which of 10s was kernel | 10:45 |
stekern | apt-get update: ~15 min | 11:06 |
blueCmd | stekern: hah, wut! | 12:31 |
blueCmd | hm, I guess snapshot.debian.org is quite big though | 12:32 |
mafm_ | snapshot.d.o unstable should have about 20-21k source packages, and 40k+ binary packages (I don't know what's the percentage of "arch all", if that's what you are using) | 12:44 |
blueCmd | mafm_: hi there! | 12:45 |
blueCmd | mafm_: I'm starting to narrowing gcc crashes down I think. mpfr seems to be broken, which would cause gcc to act strange. I'm trying to figure out why. | 12:46 |
mafm_ | very nice :-) | 12:47 |
mafm_ | I have to push another batch of packages to your mirror, cannot estimate how many this time | 12:47 |
mafm_ | but nothing very important | 12:47 |
mafm_ | the issue with krb5 is affecting a lot of packages, also | 12:49 |
blueCmd | mafm_: I built weston and libcolord today, with some trucks loaded with luck it might just work :) | 12:49 |
mafm_ | :-) | 12:50 |
mafm_ | that reminds me my work with xorg packages, I have to show you my packages for review before I send them upstream | 12:50 |
blueCmd | so building with -O0 and --enable-logging --enable-warnings --enable-asserts fixes mpfr | 12:54 |
blueCmd | so this might be optimiziation related | 12:55 |
olofk | blueCmd: A Heisenbug? :) | 12:56 |
stekern | blueCmd: yeah, it sits at the [100% yada yada zip src yada yada] for most of thetime | 13:04 |
stekern | apt-get install gcc went smoothly | 13:05 |
mafm_ | blueCmd: in all of my packages, I've been setting DEB_BUILD_OPTIONS=noopt, to try to build with -O0 always -- not all packages respect that, but it helps | 13:07 |
blueCmd | mafm_: that's a good idea | 14:00 |
blueCmd | olofk: yes | 14:07 |
stekern | I think I'll run an experiment where I lock all 0xc0000000 adresses to 0x0 | 14:28 |
blueCmd | mafm_: I have a mpfr deb that will remove at least one of the crashes now | 15:21 |
blueCmd | mafm_: if you do an update + dist-upgrade you should get it | 15:24 |
blueCmd | it's compiled with -O0 --enable-logging and --enable-warnings, so it might output stuff, but it never has for moe | 15:24 |
blueCmd | me" | 15:24 |
blueCmd | except in the tests | 15:24 |
mafm_ | blueCmd: do you know which kind of crashes fixes? | 15:27 |
mafm_ | the ones with -O2? | 15:27 |
blueCmd | no, just floating point crashes | 15:27 |
blueCmd | https://github.com/bluecmd/or1k-debian/issues/10 that one | 15:27 |
mafm_ | ok, upgraded | 15:33 |
mafm_ | blueCmd: I guess that there's a good reason to not include gfortran? | 15:44 |
blueCmd | mafm_: it doesn't build :) | 15:44 |
blueCmd | mafm_: well, maybe it builds but the configure check that enables it tests with gfortran by compiling a program that uses sin, which causes gcc to crash - possibly because of mpfr | 15:45 |
mafm_ | blueCmd: ok. there are some important libraries depending on that one. | 16:10 |
mafm_ | anyway, about to go home... have a nice week-end/holidays/whatever :-) | 16:10 |
blueCmd | so it appears that MPFR uses TLS to become threadsafe. I bet qemu doesn't like TLS | 16:22 |
blueCmd | enabling logging disables threadsafe MPFR | 16:22 |
stekern | but didn't you say it happens in or1ksim too? | 16:24 |
blueCmd | stekern: yes, it does | 16:24 |
blueCmd | and I just saw that I did implement TLS for QEMU | 16:25 |
blueCmd | Maybe, just maybe, my perfect TLS code is too perfect | 16:25 |
stekern | that of ourse doesn exclude that it might be tls related | 16:26 |
blueCmd | stekern: should be possible to boil this down nicely though | 16:27 |
stekern | I bet that's it, I usually write slightöy imperfect code, and it most often works :) | 16:27 |
blueCmd | stekern: so I need to bring my perfect code down to your imperfect codes ABI, is that what you're saying? | 16:28 |
stekern | yes, it doesn't want to socialize with to posh code | 16:30 |
stekern | too | 16:30 |
blueCmd | ETOOPOSH | 16:33 |
stonersanta | Hello, I'm whondering if | 17:04 |
stonersanta | or how hard would it be to port open risc on nodeJS? | 17:04 |
stonersanta | as in, if there is someone that could help me get started? running virtual machines on node would definetly be worth it. And if you could run node on a virtual machine that is running on node would really be interesting. | 17:06 |
poke53281 | Hi stonersanta. I suppose you are the same who sent me an email. I am the developer of jor1k. | 17:15 |
stonersanta | Oh yes :) | 17:15 |
poke53281 | Most of the code is browser independent. Especially the part, which runs in an web worker. | 17:16 |
poke53281 | This part should run out of the box in nodeJS. | 17:16 |
poke53281 | The terminal emulation runs in the master thread. But I suppose, that is not required. | 17:17 |
poke53281 | As well as the terminal input. So both will not work in nodeJS. | 17:18 |
poke53281 | The network part requires web sockets which I suppose is not available in nodeJS. But I could be wrong. | 17:19 |
poke53281 | The rest is just basic organizing stuff like loading images from the web server. | 17:20 |
stonersanta | Node has a lot of stuff. yes. Okay. I get that I need to code up the input and output, but will i at least be able to run linux kernel on it out of the box? | 17:20 |
poke53281 | So, yes. With a little bit justification, it will work in nodeJS. | 17:20 |
poke53281 | Yes, it will run under nodeJS. | 17:21 |
poke53281 | You need something to print ascii chars on screen something to load files from the hard drive. That is the minimum requirement. | 17:21 |
stonersanta | way cool. websockets btw work in node. haven't done much with them, but node is pretty flexible | 17:21 |
poke53281 | To work with it you should be able to check asynchronous for keyboard input. | 17:22 |
poke53281 | non-blocking I mean. | 17:23 |
stonersanta | yeah, node is a master at asyncing stuff | 17:23 |
poke53281 | Good, then think it can be done in a few hours. At least for me who knows the code ;) | 17:25 |
stonersanta | LOL! ^^ | 17:25 |
stonersanta | I could pay you to do it. I'm not rich, but i really do appreciate your know-how | 17:26 |
stonersanta | but, it would be really nice to have it run on node, so that I could make x number of instances of linux, that can open oprts, or even run node themselves ^^ | 17:27 |
poke53281 | jor1k is just a fun project for me. So, no money required. I will try to port it. | 17:29 |
stonersanta | that's my goal, to make a node fractality. Anyways, i can find very many uses for mini-vm on node. the browzer based linux with X windows is really cool, but because it cant open ports, and act like a server its use is limited. | 17:29 |
stonersanta | way cool! ^^ | 17:29 |
poke53281 | Yes, that would be cool. But the biggest problem is compile the programs. But there is an debian port underway. | 17:30 |
poke53281 | jor1k still needs a proxy to connect to the internet. | 17:30 |
poke53281 | At least a tap device to which the ethernet frames are sent. | 17:31 |
poke53281 | tap+bridging. This is the current implementation. | 17:31 |
poke53281 | Can nodeJS open Linux devices and run ioctl? | 17:32 |
stonersanta | hmm.. node could be used as a proxy.. | 17:32 |
stonersanta | yes | 17:32 |
stonersanta | i mean, I dunno. at least it can run commands on the console | 17:32 |
poke53281 | you get ethernet frames from jor1k. So let's say IP packets. They have to be handled someway. | 17:33 |
poke53281 | The easiest thing is a Linux tap device. | 17:33 |
poke53281 | The emulator QEMU e. g. has even a user-mode TCP/IP stack implemented, which I obviously don't have. That would require to expand the current code by at least a factor of two just to implement something like this. | 17:34 |
stonersanta | yeah, well, we can worry about that later ^^ | 17:36 |
stonersanta | even running the emulator on node would be great, even if the network didn't work, cuz node can send data to the emulator itsels anyways | 17:37 |
stonersanta | even the possibility to be able to run x86 c++ programs on node would totally expand its horizons. | 17:38 |
poke53281 | well, why not compile them directly? | 17:38 |
stonersanta | because its fun to code with node | 17:39 |
stonersanta | and exiting to have little mini virtual linux machine instances as a part of the node family, and npm packages. | 17:41 |
stonersanta | I'm allso planning on making a mini browzer game, where you can boot up a computer in the game, and it would actually start a mini VM instance | 17:43 |
stonersanta | that would not die if the browzer jams. | 17:44 |
poke53281 | Hehe, sounds good | 17:44 |
stonersanta | and might even have internet access ^^ | 17:44 |
poke53281 | Does nodeJS support asm.js? | 17:44 |
stonersanta | I donät think so :/ | 17:45 |
stonersanta | it has V8 engine | 17:46 |
poke53281 | Ok, that's probably fast enough. | 17:46 |
olofk | stekern: Is there an FPU in mor1k? | 17:46 |
poke53281 | I think to run a tap device you need an addon for nodeJS. Something like this: https://github.com/bramp/node-ioctl | 17:48 |
poke53281 | So, everything is there. Now I need 3 hours of free time :) | 17:49 |
stonersanta | way cool!! ^^ | 17:50 |
olofk | Do I need to sign the copyright assignment thingie if I just want to add a patch to binutils? | 20:01 |
ams | olofk: if it is significant, yes (or a disclaimer), if not, no. | 22:23 |
--- Log closed Fri Apr 18 00:00:10 2014 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!