00:10.24 | *** join/#qi-hardware Oksana (~Wikiwide@Maemo/community/ex-council/Wikiwide) |
01:43.42 | *** join/#qi-hardware infobot (ibot@rikers.org) |
01:43.42 | *** topic/#qi-hardware is Copyleft hardware - http://qi-hardware.com | hardware hackers join here to discuss Ben NanoNote, atben/atusb 802.15.4 wireless, anelok and other community driven hw projects | public logging at http://en.qi-hardware.com/irclogs and http://irclog.whitequark.org/qi-hardware |
01:43.42 | *** mode/#qi-hardware [+v infobot] by ChanServ |
04:37.40 | *** join/#qi-hardware eintopf_ (~eintopf@unaffiliated/eintopf) |
04:41.59 | *** join/#qi-hardware dandon (~dandon@88.151.74.213) |
05:03.46 | *** join/#qi-hardware DocScrutinizer05 (~saturn@openmoko/engineers/joerg) |
05:10.08 | *** join/#qi-hardware sandeepkr (~sandeepkr@103.49.155.114) |
06:30.07 | *** join/#qi-hardware sb0 (~lekernel@210006059234.ctinets.com) |
07:22.06 | *** join/#qi-hardware baaba (~baaab@2a01:cb1c:52e:1800:2ec0:7d2a:8cc:fc35) |
08:02.35 | *** join/#qi-hardware sb0 (~lekernel@59.152.213.90) |
09:45.01 | *** join/#qi-hardware pcercuei (~paul@137.71.226.54) |
11:58.20 | *** join/#qi-hardware pcercuei (~paul@137.71.226.54) |
12:22.35 | *** join/#qi-hardware sb0 (~lekernel@210006059234.ctinets.com) |
12:55.09 | *** join/#qi-hardware sandeepkr (~sandeepkr@103.49.155.114) |
17:38.47 | baaba | Hi, I have a problem, I debootstrapped debian, I can chroot fine to the sd card on my nanonote but if I try to boot pressing M as the wiki says there is a glitchy screen and nothing happens, I have to reset the ben using the button at the bottom |
17:40.16 | baaba | do you know what could cause this issue ? By the way this is debian 8 |
17:42.29 | mth | are you using a kernel from Debian or a NanoNote-specific kernel? |
17:42.40 | baaba | i am using the nanonote kernel |
17:43.01 | baaba | i followed this http://en.qi-hardware.com/wiki/Debootstrap |
17:43.25 | baaba | the only thing I didn't do was installing fakeroot |
17:44.50 | mth | did you run the command as real root then? |
17:45.01 | baaba | well yes |
17:45.10 | baaba | I only have a root user on my nanonote |
17:45.22 | mth | some packages refuse to do certain actions as real root, but they'll usually print a warning about that |
17:45.39 | baaba | but I can chroot fine to debian |
17:45.44 | mth | (to avoid breaking systems where people accidentally run it as root) |
17:46.11 | mth | sid is older than Debian 8.0, so maybe some new steps are requried? |
17:46.25 | mth | you could try installing sid first and then dist-upgrading to 8.x |
17:46.38 | baaba | but sid is just debian unstable |
17:46.44 | baaba | it should be even more recent |
17:46.47 | mth | ah, it's not a release name? |
17:46.50 | baaba | nope |
17:47.10 | mth | do you have a serial connection? that would help seeing error messages if the screen isn't working |
17:47.21 | baaba | I don't think so |
17:47.40 | baaba | well I have an arduino |
17:47.42 | baaba | if it can help |
17:56.27 | *** join/#qi-hardware paul_boddie (~paul_bodd@host-37-191-208-15.lynet.no) |
17:56.53 | paul_boddie | baaba: Sounds like a kernel loading issue to me. Which kernel are you using? |
17:57.46 | baaba | It says Linux BenNanoNote 3.3.8 #4 PREEMPT |
17:58.29 | baaba | maybe not #4 PREEMPt |
17:58.38 | baaba | 3.3.8 |
17:59.01 | paul_boddie | Have you made it available on the SD card itself in the /boot directory? |
17:59.19 | baaba | yes i did |
18:00.25 | paul_boddie | One thing you have to be careful about is how init gets called. |
18:00.39 | baaba | oh |
18:00.49 | paul_boddie | OpenWrt uses a different convention to Debian, at least the version shipped with the Ben. |
18:01.04 | baaba | well i ran "ln -s /sbin/init /etc/preinit" |
18:01.14 | baaba | in the chroot |
18:02.24 | baaba | do you think a more recent kernel would work ? |
18:04.39 | paul_boddie | You might experience issues with older kernels. Certainly, recent Debian relies on systemd-related features that the shipped kernel won't have configured. |
18:05.11 | paul_boddie | I guess if you've done the second-stage debootstrap in your chroot and have fixed up the preinit thing then that should work. |
18:05.58 | paul_boddie | I run User Mode Linux instances for various things, and I had to change the kernel configuration to let Debian Jessie run where Wheezy had been fine before. |
18:06.26 | paul_boddie | I guess that if you somehow force the debootstrap to use sysvinit instead, that might save you a kernel recompile. |
18:07.07 | baaba | okay thanks, well I will try to boot but I already did all of that and it didn't work, maybe I should try a more recent kernel as you said |
18:07.33 | paul_boddie | It's odd that I don't mention this on http://en.qi-hardware.com/wiki/Emdebian however. |
18:08.30 | paul_boddie | I did test Jessie on the Ben and it did work. Maybe I should see which kernel I was using. |
18:09.02 | baaba | there is a strange thing by the way, when trying to boot on debian the bottom of the screen has some kind of artifacts |
18:09.09 | paul_boddie | However, I don't think I got a mainline kernel working until fairly recently, and I was mostly using the OpenWrt one instead, albeit recompiled, but not a much newer version. |
18:10.35 | paul_boddie | The boot process involves U-Boot in NAND initialising various things and then trying to execute /boot/uImage, if I remember correctly. |
18:11.12 | baaba | what do you think about the small artifacts ? |
18:11.28 | baaba | only at the bottom of the screen |
18:12.09 | paul_boddie | What happens after that is up to the kernel. When I was getting my own payload instead of Linux running, I saw all sorts of strange screen effects when things went wrong. |
18:12.27 | baaba | oh okay |
18:15.52 | paul_boddie | OK. So I see that my (slow-booting) Debian is running 4.7.2. That's the mainline kernel with no patches necessary. |
18:16.16 | baaba | is it a problem that my sd card is /dev/mmcblk0p1 and not /dev/mmcblk0 |
18:16.21 | baaba | well no |
18:16.24 | baaba | the contrary |
18:18.13 | paul_boddie | cat /proc/partition will show you what's going on. The first partition is what will provide the root filesystem. |
18:19.49 | paul_boddie | Modifier keys don't seem to work with this kernel. :-/ |
18:20.26 | baaba | the 4 first lines end with mtdblock[0..3] |
18:20.42 | baaba | then comes the mmcblk0 |
18:23.07 | baaba | should I try to compile linux mainline for the ben nanonote ? |
18:23.11 | paul_boddie | I don't think that's a problem. |
18:23.20 | paul_boddie | I'll have a look at the other kernel. |
18:23.29 | baaba | okay thanks |
18:32.51 | paul_boddie | OK, so I'm actually running Debian 7.7 in my rootfs, not Debian 8. This is with kernel 3.3.8 (or 4.7.2 as noted before). |
18:33.23 | paul_boddie | I must have another partition somewhere with Debian 8, though. |
18:34.23 | baaba | Oh okay :o well it should work then⦠|
18:34.33 | baaba | but it doesn't :( |
18:35.08 | baaba | maybe I should copy the kernel again to the sd card |
18:35.22 | paul_boddie | As I noted, the systemd stuff might be demanding certain kernel features that you would need to enable. Otherwise the kernel will panic and just hang the Ben. |
18:36.01 | baaba | so better try to put a recent kernel you think ? |
18:37.19 | paul_boddie | Give 4.7.2 a try or maybe a later kernel. That was the latest one when I looked, I think. |
18:38.24 | baaba | okay thanks, but I don't really know how to compile it, I tried getting the toolchain for the ben nanonote but it wouldn't compile, do I need it or only gcc ? |
18:39.13 | paul_boddie | I guess you're running Debian on your other computer. If so, there are decent cross-compilers for unstable which I use in a chroot. |
18:39.41 | paul_boddie | (I just checked another partition on the Ben and it had Debian 7.3.) |
18:39.51 | baaba | oh okay |
18:40.38 | paul_boddie | It's been a while since I looked at Linux/Debian on the Ben. Most recently, I was messing around with my own payload being launched from the bootloader instead. |
18:41.03 | baaba | oh okay |
18:41.07 | baaba | :p |
18:41.09 | paul_boddie | I'll check in on this later, but getting a cross-toolchain working is handy, anyway. |
18:41.11 | baaba | you must be a pro |
18:41.34 | baaba | Well I tried to compile the ben nanonote toolchain but it wouldn't |
18:42.09 | paul_boddie | You want whatever it is that provides mipsel-linux-gnu-gcc. |
18:42.27 | paul_boddie | Probably the gcc-mipsel-linux-gnu and binutils-mipsel-linux-gnu packages. |
18:42.56 | baaba | I'm running fedora, it has gcc-mips64-linux-gnu |
18:43.03 | baaba | I suppose it's not good |
18:43.13 | paul_boddie | Keep posting your progress if you like, but I have to do other stuff. ;-) |
18:43.25 | baaba | okay :p |
18:43.38 | paul_boddie | You want 32-bit MIPS little endian (mipsel). |
18:44.10 | paul_boddie | I haven't tried building the OpenWrt toolchain for a while, but it should still build. |
20:20.27 | arossdotme | what plastic are laptops (lids) mostly made from? |
20:20.31 | arossdotme | abs? |
20:23.12 | arossdotme | got these, hoping to laser engrave them http://bayimg.com/album/aAaOPAAAC |
20:31.18 | baaba | your site is not working |
20:31.54 | baaba | oh now it is |
21:42.34 | baaba | paul_boddie, I found that : F1/2/3 will load kernel from sdcard partition 1/2/3 |
21:42.34 | baaba | F4 will load kernel inside the ubi rootfs of nand.(we need put kernel at /boot/uImage) |
21:42.34 | baaba | those kernel command line. boot kernel command can be changed by 'fw_setenv' |
21:42.37 | baaba | here http://en.qi-hardware.com/wiki/OpenWrt_Software_Image |
21:45.31 | paul_boddie | Yes, there are probably some special keys that can be used. |
21:46.29 | paul_boddie | Was just trying to initialise a Jessie rootfs with the 3.3.8 kernel, but it seems to hang after setting up. |
21:46.35 | baaba | maybe it doesn't work because of how my sdcard is partitonned |
21:46.37 | baaba | oh |
21:46.53 | paul_boddie | I may try and boot now and see if I reproduce what you got before. |
21:47.06 | baaba | okay :p thanks for helping |
21:47.37 | paul_boddie | No problem! Got to keep people using these things. :-) |
21:48.51 | baaba | if i copy dumbly my old sdcard contend to my new one but new partition, is it supposed to work ? |
21:51.32 | paul_boddie | You can do dd to copy to and from partitions. I don't know whether that answers your question, though. |
21:52.08 | paul_boddie | It looks like Debian 8 plus 3.3.8 won't work. I suspect systemd. Will look at doing a rootfs using sysvinit instead. |
21:52.33 | baaba | oh okay |
21:54.05 | *** join/#qi-hardware werner_ (~werner@90-134-231-201.fibertel.com.ar) |
21:54.51 | baaba | you can't boot but you can chroot |
21:54.54 | baaba | right ? |
21:56.31 | wpwrak | forced upgrades suck :-( ubuntu 16.10 no longer has xchat. and hexchat "it's just exactly like xchat" of course isn't |
22:03.43 | paul_boddie | Is hexchat tightly integrated with systemd? ;-) |
22:06.50 | baaba | :p |
22:11.35 | baaba | how many partitions do you have on your sdcard for debian 8 + linux 3.3.8 ? |
22:12.11 | paul_boddie | 3: 1 for the rootfs, 1 for swap, 1 for backups. But only the first two will be used. |
22:12.43 | baaba | oh okay thanks |
22:13.11 | baaba | I thought the fact that there is a single partition on my sd card was the problem |
22:13.37 | paul_boddie | You only need one partition really. |
22:14.00 | paul_boddie | Well, you really need swap if you want Debian. Otherwise stuff like apt won't work. |
22:14.14 | baaba | oh okay |
22:14.33 | baaba | Is there any other up to date OS for the nanonote ? |
22:17.06 | paul_boddie | I don't think so. As for Debian, I'll see if I can't persuade it to switch to sysvinit. |
22:17.29 | paul_boddie | Otherwise, a recompiled kernel might be necessary. Or I could try Devuan. :-) |
22:19.11 | baaba | Okay :p |
22:19.22 | *** join/#qi-hardware wpwrak (~werner@90-134-231-201.fibertel.com.ar) |
22:20.19 | paul_boddie | Trying again now. Given the poor documentation and multistrap's "silently ignored" features with preseeding, I await failure. |
22:20.39 | paul_boddie | But I could also try hacks with preinit before switching to Devuan. ;-) |
22:21.43 | baaba | What is the preinit ? :p The wiki says to create a symbolic link of /bin/init to /etc/preinit i believe |
22:24.38 | paul_boddie | It seems to be an OpenWrt thing. They configure the kernel to use /etc/preinit as the init program for some reason. |
22:24.50 | baaba | oh okay |
22:25.05 | baaba | by the way there is no systemd in debian 7 ? |
22:29.10 | paul_boddie | That's right: Wheezy uses sysvinit. As I noted, when I set up some User Mode Linux instances for Jessie, I noticed that my kernels didn't boot those instances, whereas they did for Wheezy. |
22:29.57 | baaba | oh |
22:30.05 | paul_boddie | OK. I obviously didn't read the mind of the developers, and the Ben still doesn't init, so I'll try a preinit hack. |
22:30.26 | baaba | how are you planning to do that ? |
22:32.04 | paul_boddie | When my preinit file finishes configuring, instead of linking to /sbin/init, I'll invoke some apt magic and hopefully force systemd out. |
22:32.19 | paul_boddie | s/instead of/before/ |
22:32.20 | qi-bot | paul_boddie meant: "When my preinit file finishes configuring, before linking to /sbin/init, I'll invoke some apt magic and hopefully force systemd out." |
22:32.53 | baaba | cool bot ! |
22:44.08 | baaba | ok, i am going to bed ! good luck :p |
22:44.31 | paul_boddie | Thanks! You'll read what I find out in the logs. |
22:44.43 | baaba | okay thanks :p |
23:24.27 | paul_boddie | Well, sysvinit doesn't seem happy with /run/initctl, but it's not over yet. |
23:27.31 | paul_boddie | OK, I get a login after "preinit" now. |
23:31.11 | paul_boddie | And booting from MMC/microSD works. |
23:34.38 | paul_boddie | So, the trick was to put sysvinit-core in the package list for multistrap. |
23:35.09 | paul_boddie | Lots of advice about preseed files and excluding systemd may only be relevant for debootstrap, but that may be fixed by now as well. |
23:45.10 | paul_boddie | So, 3.3.8 works with Debian 8, but you must use sysvinit-core in the packages list. |