**** BEGIN LOGGING AT Tue Aug 15 03:00:02 2017 Aug 15 03:07:41 can a kindle 2 run maemo? :) Aug 15 04:17:39 KotCzarny: freemangordon: it still reboots randomly with limits 250 250 Aug 15 04:32:27 jrg: if you do the adaptation .. we used to say No everytime, but the awesome hackers here have made it a yes for some devices (think allwinner) Aug 15 04:45:17 a "yes almost" Aug 15 04:45:39 aka "work in progress" Aug 15 11:30:31 KotCzarny: "chroot n900" Aug 15 11:30:31 10:01 chroot: failed to run command '/bin/bash': No such file or Aug 15 11:30:31 directory Aug 15 11:31:04 is it typical problem on virtualbox? Aug 15 11:35:02 um? Aug 15 11:37:18 im following that wikipage and ran on to such a problem Aug 15 11:37:50 which wikipage? Aug 15 11:37:59 devuan on n900 Aug 15 11:38:16 ls n900/bin|grep sh Aug 15 11:38:58 that should fix the problem? Aug 15 11:39:18 no, it will show if there is some shell in that dir Aug 15 11:39:36 im asking ahead here, actually at work and will continue tomorrow Aug 15 11:39:59 and just thought that u might have some good ideas :) Aug 15 11:40:07 sometimes 'no such file' comes when /lib/ld* is missing Aug 15 11:40:56 i istalled bunch of chroot related stuff and copied bash in few places but it didn't help Aug 15 11:41:18 then it might be missing linker library case Aug 15 11:41:40 still, requires some more debug Aug 15 11:41:47 in n900 folder /bin is just symlink to /usr/bin Aug 15 11:42:12 is there bash? Aug 15 11:42:33 in that folder? Yes Aug 15 11:42:43 it is in /usr/bin/bash Aug 15 11:43:12 also i copied bash to /usr/bin/bash in guest os Aug 15 11:43:15 can you open the file in some editor and check what /lib it is linked to? Aug 15 11:43:48 not at the moment sorry :/ Aug 15 11:44:18 but how to do it anyway? Aug 15 11:44:31 that'll go into my toolbox for tomorrow Aug 15 11:44:57 less n900/usr/bin/bash Aug 15 11:45:35 it will be a mess, but somewhere close to the top there will be a string similar to this: /lib64/ld-linux-x86-64.so.2 Aug 15 11:45:53 obviously that's from my x86_64, so yours will be different Aug 15 11:46:11 then you will have to check if that file exists in your chroot Aug 15 11:49:29 ok, but u think chroot should work under virtualbox anyway? Aug 15 11:50:19 hmm, you are running arm binaries in x86 env? Aug 15 11:50:28 that obviously wouldn't work Aug 15 11:50:48 what are you trying to achieve anyway? Aug 15 11:51:31 im at the "building devuan file system" in that wike Aug 15 11:51:54 i managed to build 4.10.8 kernel this morning Aug 15 11:51:59 :) Aug 15 11:52:14 sadly, i havent played with them Aug 15 11:53:01 np, u just happen to be me "jack knife of linux" ;) Aug 15 11:53:09 so i thought to ask Aug 15 11:53:16 to be my* Aug 15 11:53:27 yeah, i can help with generic questions, but dont really know what they do there Aug 15 11:53:51 did u look at the wiki? Aug 15 11:53:56 nope Aug 15 11:53:59 cleaning house Aug 15 11:54:05 ok np Aug 15 11:54:41 i'll try those when i get on to it and come back with the wiki link Aug 15 11:54:49 but that'll be tomorrow Aug 15 11:54:57 you can try asking maxd, he might have played with it Aug 15 11:55:17 ok Aug 15 11:55:57 im also building with my devuan pc to see if i end up with same problem Aug 15 11:56:23 i left it to "make modules" state and went to work Aug 15 12:34:31 Vajb: you might want to try running ld-linux first, in case the binary is pointing to the wrong one. Aug 15 12:34:45 Vajb: something like: chroot n900 /lib/ld-linux.so.2 /bin/bash Aug 15 12:35:22 if it's pointing to the wrong one, you most certainly want to fix your chroot instead :) Aug 15 12:35:45 Indeed. Something's obviously broken there. Aug 15 12:36:15 but at least if you try running ld-linux directly, you won't be as confused when it says "no such file or directory" Aug 15 12:49:29 ok. I'll try that Aug 15 12:50:42 but what left me puzzled is, how come it can be broken? This is freshly installed Devuan Jessie on virtualbox. Or is that cause of virtualbox? Aug 15 12:54:22 What are you chrooting from? Aug 15 12:57:08 Maxdamantus: im following this wiki page wiki.maemo.org/Devuan_on_N900 Aug 15 12:58:02 i managed to build kernel and now im stuck at creating devuan file system Aug 15 12:58:33 and precisely "chroot n900" command stopped me there today Aug 15 12:59:35 So you're sure n900/usr/bin/qemu-arm-static exists? Aug 15 13:01:32 hmm ... why does he build mainline-4.10.8 configured with a 4.6-rc1 defconfig from pali's tree? Aug 15 13:04:54 Dunno. I guess it gets fixed up when doing `make menuconfig` Aug 15 13:05:08 like when reusing an old .config Aug 15 13:06:00 sure, I just don't see the point Aug 15 13:06:22 something missing/broken in mainline defconfig maybe Aug 15 13:07:05 mainline doesn't have rx51_defconfig Aug 15 13:09:16 ah, okay :) Aug 15 13:09:35 * Maxdamantus sleeps. Aug 15 13:09:36 well to be honest im just following instructions :) Aug 15 13:10:16 and maybe learn something while im at it Aug 15 13:10:29 Vajb: I'm guessing problem most likely has to do with the qemu-arm-static bit. Aug 15 13:11:51 Vajb: when doing the chroot, binfmt-misc's mechanism relies on the denoted executable (presumably /usr/bin/qemu-arm-static) existing inside the new root. Aug 15 13:12:49 you might want to look in /proc/sys/fs/binfmt_misc to see if that is the exact path it should be trying. Aug 15 13:13:02 anyway, bed. Aug 15 13:13:34 Maxdamantus: ok. I got all the other commands through eventually without erros so i guess all should be in place, but i'll double check tomorrow Aug 15 13:16:09 Maxdamantus bencoh The procedure of building mainline kernel with pali's defconfig was a suggestion by freemangordon, a few months ago. At that time, mainline stable kernel was 4.10.y. Now it is 4.12.y. Aug 15 13:16:32 Enrico_Menotti: ah, okay :) Aug 15 13:16:48 thanks for the nice wiki page btw ... looks pretty useful :) Aug 15 13:18:09 it sure looked easy enough that i got curious :) Aug 15 13:18:41 The rx51_defconfig works fine, apart from the fact that it has the watchdogs in the modules, which, due to other facts, prevents the system from being stable (modules are loaded too late and the system reboots). So I modded the menuconfig in order to put the watchdogs in the kernel binary. Aug 15 13:20:03 In any case, seems Vajb reached correctly a kernel binary. Now he's stuck at the debootstrapping process, and in particular in the second phase, since he's unable to chroot on his virtual machine. Aug 15 13:21:36 yup Aug 15 13:21:48 i'll have all my steps saved so it might provide some help for someone Aug 15 13:24:42 bencoh I'm glad that wiki is useful for somebody. We found some errors there, though. I have written it after having had the system running, and forgot some details in the commands (the curl which downloads Pali's defconfig has an wrong target - there's just the path, the filename is missing - and the debootstrap command has a wrong url - a further folder needs to be specified in the path). Aug 15 13:26:26 Enrico_Menotti: maybe u can fix the wiki after i manage to make this work? If i manage that is :) Aug 15 13:26:26 Back to the chroot problem, I think it be a bit too much to do a chroot on a virtual machine, since it's kind of a box in a box. That looks to me a bit too complicated, and prone to problems. Aug 15 13:27:29 why? Aug 15 13:27:52 Vajb Sure. Now on the Devuan pc, how did you download the rx51_defconfig? Did you use the curl with a different -o parameter (or -O) as I suggested, or again downloaded the rx51_defconfig and put that in the right folder manually? Aug 15 13:28:40 bencoh Well, the virtual machine is already an emulated system, and the chroot invokes the qemu, thereby emulating a system on an emulated system, right? Aug 15 13:28:46 Enrico_Menotti: i did it manually. Just downloaded it via browser and mv to correct place. Aug 15 13:28:55 Enrico_Menotti: this shouldn't be an issue Aug 15 13:29:13 arm emulation on x86 is software-based in qemu (afaict) Aug 15 13:29:35 bencoh Yes, ideally not, but maybe there is some mismatch. Aug 15 13:30:19 If one can work on a Devuan pc, then one virtualisation is skipped, and things are simpler and less prone to issues (in my opinon). Aug 15 13:31:19 im glad that i have both options available :) Aug 15 13:31:52 Vajb Please just try also with curl, without rebuilding the kernel, just to see whether the corrected curl command works. If it does, I will correct the wiki. Aug 15 13:31:53 Enrico_Menotti: it shouldn't really matter Aug 15 13:33:13 bencoh If all things are done properly, no. But you have one step more to take care of, right? Aug 15 13:33:52 setting up your vbox properly, yeah Aug 15 13:34:33 Yes. Probably there's some detail out of its place there. Aug 15 13:35:15 oh yeah, I might be in problems with vbox too. I thought 10gb would be plenty. It seems it wasn't. Less than 300mb free... **** ENDING LOGGING AT Wed Aug 16 03:00:00 2017