IRC log of #maemo for Friday, 2016-09-02

*** at1as has quit IRC00:24
*** troulouliou_div2 has joined #maemo00:24
*** Hurrian has quit IRC00:43
*** shentey has quit IRC00:54
*** LauRoman has quit IRC00:58
*** troulouliou_div2 has quit IRC01:20
*** troulouliou_div2 has joined #maemo01:32
*** troulouliou_div2 has quit IRC01:49
*** clopez has quit IRC02:11
*** clopez has joined #maemo02:14
*** ds3 has quit IRC02:16
*** florian has quit IRC02:35
*** bruce_lee has quit IRC02:38
*** bruce_lee has joined #maemo02:39
*** bruce_lee has joined #maemo02:39
*** noch has joined #maemo02:39
*** ds3 has joined #maemo02:50
*** RedW has joined #maemo03:22
*** RedM has quit IRC03:22
*** vishap has joined #maemo03:32
*** noch has quit IRC03:36
*** ds3 has quit IRC03:59
*** ds3 has joined #maemo04:05
*** obsed_ has joined #maemo04:06
*** obsed has quit IRC04:08
*** noch has joined #maemo04:25
*** ashneo76 has joined #maemo04:28
*** vishap has quit IRC04:28
*** LauRoman has joined #maemo04:43
*** bruce_lee has quit IRC04:46
*** eMHa__ has joined #maemo04:52
*** eMHa_ has quit IRC04:57
*** obsed_ is now known as obsed05:25
*** obsed has quit IRC06:49
*** obsed has joined #maemo06:57
*** DocScrutinizer05 has quit IRC07:01
*** DocScrutinizer05 has joined #maemo07:01
*** drrz has quit IRC07:20
*** obsed has quit IRC07:31
*** pagurus has quit IRC07:48
*** pagurus` has joined #maemo07:48
*** radekp has joined #maemo07:58
*** ashneo76 has quit IRC08:05
*** cure` has quit IRC09:27
*** geaaru has joined #maemo09:44
*** shentey has joined #maemo09:46
*** shentey has quit IRC09:56
*** shentey has joined #maemo10:02
*** strohi has quit IRC10:07
*** Oksana has quit IRC10:14
*** Oksana has joined #maemo10:14
*** L29Ah has quit IRC10:28
*** Mekkis has quit IRC10:29
*** Mekkis has joined #maemo10:30
*** florian has joined #maemo10:51
*** zGrr has joined #maemo10:51
*** jskarvad has joined #maemo10:57
*** ced117 has quit IRC11:04
*** ced117 has joined #maemo11:18
*** flo_lap has joined #maemo11:30
*** JRHaigh has quit IRC11:40
*** JRHaigh has joined #maemo11:41
*** tanty_off is now known as tanty11:52
*** Cor-Ai_ has joined #maemo12:08
*** Cor-Ai has quit IRC12:11
*** Cor-Ai_ is now known as Cor-Ai12:11
*** shentey has quit IRC12:28
infobot[flasher] at (also .exe!), or or generally   HARMattan(N9):, or -- list of filenames/md5sums:, or
KotCzarnyyou might want ~flashing12:37
* APic cannot execute flasher-3.512:38
APicProbably because i have a 64Bit-Environment12:39
APicAnd the Binary is 32 Bit12:39
infobotmethinks maemo-flashing is, or - on linux PC - download&extract, cd into it, do sudo ./; or see ~flashing-cmdline, or see ~lazyflashing12:39
APicDoes the „private Workdir“ get around this Issue?12:39
KotCzarnydont remember, probabbly not12:40
KotCzarnyyou have to instal lib32-compat yourself12:40
APicThen i need a 32Bit-Chroot12:40
APicAh, or that12:40
KotCzarnynope, just compat libs12:40
APicThen i will get /lib32 and Stuff, right?12:40
APic(Debian 8.5)12:40
KotCzarnydepends on distro12:40
infobotwell, 0xffff is, or
luke-jrAPic: ^12:42
APicSo i can roll my own 64Bit-Flasher?12:43
DocScrutinizer05~tell APic about lazyflashing12:43
* DocScrutinizer05 would appreciate when APic tests it12:45
APicIs that already 64Bit, too?12:45
DocScrutinizer05try it12:46
KotCzarnyceene, you can always install some old distro12:46
ceeneKotCzarny: yeah, i know12:47
ceenejust thought it was an interesting read, although well known around here12:47
ceeneeasy debian project provides some patches to be able to run a more modern distro on power kernel12:47
APicDoes Debian 8.5 have a Package for libusb-32Bit?12:53
APicOr maybe i can just aptitude install libusb:32 or something?12:53
DocScrutinizer05APic: shit12:54
APicapt-get install libusb-0.1-4:i386 should do it12:54
APicE: Paket libusb-0.1-4 kann nicht gefunden werden.12:55
*** radekp has quit IRC12:56
APicMaybe i shall really rather use the 0xFFFF; You should adopt that in Your Script too ☺12:56
DocScrutinizer05apt-cache search libusb12:56
luke-jrDebian doesn't have 32-bit repos by default on 64-bit OS12:57
luke-jryou need to add the arch somehow I forget12:57
APicecho "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch12:57
DocScrutinizer05aaah right12:57
KotCzarnyapic: try apt-cache search libusb|grep 0.112:58
APiclibusb-0.1-4 - Userspace USB-Programmierbibliothek12:58
APiclibusb++-0.1-4c2 - userspace C++ USB programming library12:58
APicdpkg: Fehler: Konfigurationsfehler: /etc/dpkg/dpkg.cfg.d/multiarch:1: unbekannte Option »foreign-architecture«12:59
APicThat was not it B-(12:59
KotCzarnyor i can simply put that lib somewhere12:59
KotCzarnyor better, download from slackware32 :P12:59
APicBut i would like Multiarch anyhow13:00
DocScrutinizer05well, my script did sth similar already13:00
APicdpkg --add-architecture i38613:00
APicMaybe that helps13:00
APicAt least that is from official
DocScrutinizer05I think I even included the debian lib13:01
APicYah, but libusb obviously needs other Libs13:01
APicNow „apt-get update“ leeches i386 Package-Lists13:02
APicWin o/13:02
APicNow „apt-get install libusb-0.1-4:i386“ works and installs:   gcc-4.9-base:i386 libc6:i386 libc6-i686:i386 libgcc1:i38613:02
KotCzarnymadd to wiki maybe13:03
*** eMHa__ has quit IRC13:04
APicDocScrutinizer05: Now the Script runs13:06
APicSuitable USB device not found, waiting.13:06
APicProbably i need to connect it without USB-Hub13:06
APicErasing CMT:  54%13:08
DocScrutinizer05APic: could you please provide the lib for my script?13:08
KotCzarnydoc, he had to install more than one lib13:08
APicgcc-4.9-base:i386 libc6:i386 libc6-i686:i386 libgcc1:i386gcc-4.9-base:i386 libc6:i386 libc6-i686:i386 libgcc1:i386?13:09
KotCzarnyand debian lib32 expect in /lib32 etc13:09
KotCzarnyso you will have either run via chroot or symlink it to /somewhere13:09
DocScrutinizer05I'm smarter than debian13:09
APicMaybe Your Script should rather do: „dpkg --add-architecture i386 && apt-get install libusb-0.1-4:i386“13:10
DocScrutinizer05and than you ;-P13:10
KotCzarnyits not that hard to be smarter than debian nowadays13:10
DocScrutinizer05sorry that's BS13:10
APicNot _everybody_ has Debian13:10
KotCzarnythat's why i mentioned chrooting13:10
APicWhen i up the Libs, it works on Slackware too13:10
APicAnd NixOS and whatever13:10
KotCzarnybut doc thinks he is smarter13:10
APicDoc is the Man ☺13:11
APicWhere are the 32Bit-Libs?13:11
APicThere is no /usr/lib3213:11
KotCzarnydo ldd on the library13:11
KotCzarnyyou will see13:11
KotCzarnyor on flasher itself13:11
APic => /lib/i386-linux-gnu/i686/cmov/ (0xf7589000)13:12
KotCzarnybut notice ld location13:12
KotCzarnyits not movable13:13
APicTons of Stuff13:13
APicLots of Symlinks too13:13
APic[5.0.7]apic@Ant:/lib/i386-linux-gnu> find | nopaste-it13:14
APicI think we really should just add to the WiKi that You need a 32Bit-Environment13:14
DocScrutinizer05I don't want the whole dir13:14
APicModern Distros should just handle that13:14
KotCzarnyapic,nah, chroot is enough13:14
DocScrutinizer05gcc-4.9-base:i386 libc6:i386 libc6-i686:i386 libgcc1:i386gcc-4.9-base:i386 libc6:i386 libc6-i686:i386 libgcc1:i38613:14
APicYes, that are the Packages13:15
APicDo You need the .dpkg?13:15
infobotAPic meant: Do You need the .deb?13:15
DocScrutinizer05the binaries13:15
DocScrutinizer05did you look into the script?13:16 etc?13:16
APicNot really deeply13:16
KotCzarnyjust things from ldd flasher-3.513:16
APicAt the Moment i am trying to get an Account on WiKi.Maemo.Org13:16
APicBut if You will update Your Script there anyhow, i will not need that ;)13:17
APicOkay, so it LD_PRELOADs Stuff13:18
APicSo i do only need the Dependencies13:18
*** eMHa__ has joined #maemo13:19
APicThat is probably only: => /lib/i386-linux-gnu/i686/cmov/ (0xf751c000)  then13:19
APiclrwxrwxrwx 1 root root 12 Feb 29  2016 -> libc-2.19.so13:19
APicf42334db538ccd1a5408551af03b65422c110960  libc-2.19.so13:20
APicThere You are ☺13:22
DocScrutinizer05it's all in ldd maemo_flasher-3.5_2.5.2.2/flasher-3.5  that is in "gcc-4.9-base:i386 libc6:i386 libc6-i686:i386 libgcc1:i386gcc-4.9-base:i386 libc6:i386 libc6-i686:i386 libgcc1:i386" too13:25
DocScrutinizer05alas _you_ can't test now anymore if it really works :-)13:28
APicSo maybe „ (0xf76f0000)“ is needed, too13:37
APic/lib/ seems to work with the 64-Bit-Linker13:37
APicThen there is the provided and the i upped, so that should really suffice ☺13:38
APic(In the four Lines of „ldd flasher-3.5“)13:38
KotCzarnylinux-gate is virtual dependency from kernel13:39 symbolic link to i386-linux-gnu/ld-2.19.so13:39
APicUh oh13:39
APicWhere the Heck is the 64-Bit-ld then?13:40
KotCzarnyyou have all in ldd output13:40
DocScrutinizer05could you pastebin the result of ldd ?13:44
DocScrutinizer05and maybe also of your apt-get install run13:45
* APic no longer has the Terminal with the apt-get-Run open, sorry13:49
APicBut APT logs, does jnot it?13:49
APic  -j13:50
APic  There You are ☺13:51
DocScrutinizer05seems what I'd need is /lib/i386-linux-gnu/ and  /lib/i386-linux-gnu/i686/cmov/ , the latter just finished wget13:52
APiclrwxrwxrwx 1 root root 19 Okt 21  2014 ->
*** DocScrutinizer05 has quit IRC14:00
*** DocScrutinizer05 has joined #maemo14:00
DocScrutinizer05APic: thanks14:00
APicYou are welcome.14:01
DocScrutinizer05hmm, could you do me a favor and test a little hack?14:02
DocScrutinizer05copy  /lib/i386-linux-gnu/i686/cmov/ and /lib/i386-linux-gnu/ into maemo-my-private-workdir14:03
DocScrutinizer05rename  /lib/i386-linux-gnu/:  mv  /lib/i386-linux-gnu/  /lib/i386-linux-gnu-XXX/14:04
DocScrutinizer05then test that flasher fails to run: cd maemo-my-private-workdir; maemo_flasher-3.5_2.5.2.2/flasher-3.514:05
APicCan i move it back, or does the Test continue?14:07
DocScrutinizer05now: LD_PRELOAD=./ maemo_flasher-3.5_2.5.2.2/flasher-3.514:07
*** florian has quit IRC14:07
*** dreamer has quit IRC14:07
*** EgS has quit IRC14:07
*** DocScrutinizer51 has quit IRC14:07
*** Axel_H_ has quit IRC14:07
* APic too impatient14:07
APicStill does not work14:08
APicProbably You really need the 32-Bit-ld14:09
DocScrutinizer05LD_TRACE_LOADED_OBJECTS=yes LD_PRELOAD=./ maemo_flasher-3.5_2.5.2.2/flasher-3.514:09
*** florian has joined #maemo14:09
*** dreamer has joined #maemo14:09
*** EgS has joined #maemo14:09
*** DocScrutinizer51 has joined #maemo14:09
*** Axel_H_ has joined #maemo14:09
*** sets mode: +o DocScrutinizer5114:09
APicSame Error, no further Output than: zsh: datei oder Verzeichnis nicht gefunden: maemo_flasher-3.5_2.5.2.2/flasher-3.514:10
*** ChanServ sets mode: +o DocScrutinizer0514:10
*** DocScrutinizer05 sets mode: -o DocScrutinizer5114:10
*** ChanServ sets mode: -o DocScrutinizer0514:10
APicThat is the error i get all the Time14:10
APicOf Course „File or Directory not found“ is a spurious Error14:11
DocScrutinizer05yeah, maximum useless error message when a lib is missing14:11
APicIt just means the Linker fails, and probably You really need to provide/call the 32-Bit-ld-linux14:11
DocScrutinizer0532bit ldlinux?14:12
DocScrutinizer05never heard of that14:12
APicLet us try to put that in Front of the Binary14:13
APic./flasher-3.5: error while loading shared libraries: cannot open shared object file: No such file or directory14:13
DocScrutinizer05weird, why would it need to be a 32bit version? the ELF format of 32bit binaries is ok for the 64bit ld14:13
APicNow it searches for the Libs14:13
APicSo LD_PRELOAD would work now probably14:13
APicThat is a good Point that it would not actually be needed, yah ;)14:14
DocScrutinizer05ok wait a minute14:15
APic[5.0.7]{2}apic@Ant:~/maemo-my-private-workdir> LD_PRELOAD=./ /lib/i386-linux-gnu-XXX/ maemo_flasher-3.5_2.5.2.2/flasher-3.514:15
APicThat one works.14:15
APicflasher v2.5.2 (Oct 21 2009)14:15
DocScrutinizer05thanks, that's what I planned to ask you for14:16
DocScrutinizer05now please rename /lib/i386-linux-gnu-XXX back to correct name14:17
*** radekp has joined #maemo14:17
MaxdamantusI don't think you would usually use a 64-bit ld-linux to load 32-bit programs.14:17
Maxdamantuslrwxrwxrwx 1 root root 22 Feb 18  2016 /lib/ -> ../lib32/
APicMaxdamantus: Yah, probably it _would_ work, but does not _want_ to work because of a Sanity-Check ;)14:17
MaxdamantusI have that on my system, which is the normal path hardcoded into 32-bit ELFs.14:18
APiclrwxrwxrwx  1 root root   32 Feb 29  2016 -> /lib/x86_64-linux-gnu/ld-2.19.so14:18
MaxdamantusI think it's typically different on Debian.14:19
Maxdamantusld != ldd14:20
KotCzarnyshh, doc is SMARTER14:21
APiclol, „bfd“ reminded me of BrainFuck ;)14:21
Maxdamantusld-linux = ldd14:22
Maxdamantusld is for linking binaries together to new binaries.14:22
APicBut no, „ldd“ is also not ld-linux, it really just prints the Stuff ld-linux will link14:23
DocScrutinizer05I guess you're right:
APicld-linux-Dumper i would call it14:24
MaxdamantusWell, ldd is usually a shell script that invokes ld-linux.14:24
KotCzarnyman ldd:        ldd - print shared library dependencies14:24
MaxdamantusI think it used to typically just be a symlink to ld-linux.14:24
Maxdamantusnote that for that to work, ld-linux needs to have dependency printing functionality built-in.14:25
KotCzarnyjust read the man page14:25
KotCzarnyfor details14:25
Maxdamantus$ /lib64/ --list `which ls`14:26
DocScrutinizer05binfmtbinfmt fsckng magic14:30
DocScrutinizer05jr@saturn:~/mymaemo-workdir/maemo-my-private-workdir> apropos binfmt14:30
DocScrutinizer05binfmt.d (5)         - Configure additional binary formats for executables at boot14:30
DocScrutinizer05systemd-binfmt (8)   - Configure additional binary formats for executables at boot14:30
DocScrutinizer05systemd-binfmt.service (8) - Configure additional binary formats for executables at boot14:30
* DocScrutinizer05 pukes14:30
DocScrutinizer05but yes, it must call a 32bit for 32bit ELF14:31
DocScrutinizer05I'm extremely shy to ship a binary with flash-it-all.sh14:32
KotCzarnyjust make a tiny chroot14:34
KotCzarnymuch easier14:34
KotCzarnyand safer14:34
DocScrutinizer05so sorry but when your system doesn't even know how to *load* ELF_32bit, my script is out of luck with hacks how to cope with that14:34
DocScrutinizer05KotCzarny: that's bullshit, running a chroot on an unknown target system from a shellscript is probably a *very* poor idea14:35
MaxdamantusI'm sure it can't be that hard to just create an image that includes all the dynamic objects you need.14:35
MaxdamantusIn fact, you could probably do it with cryopid.14:36
KotCzarnyapparently doc is not that smart as he wants us to believe14:36
* DocScrutinizer05 fixes his /ignore14:36
MaxdamantusActually, cryopid will probably just remap the same files.14:37
* Maxdamantus will try soon.14:37
APicWhy do not You just switch from Binary-Foo to 0xFFFF?14:38
APicThat will make all Hacks needless14:39
KotCzarnyapic, there is no one-binary to run everywhere14:39
APicThat is why You ship the Source14:39
APicIf someone has no GCC, well…14:39
APicYou have to make _some_ Assumptions14:39
KotCzarnywhich is back to the hacks area14:40
APicIf You have a Hacker-Smartphone and are no Hacker…14:41
KotCzarnyin short, on 32bit os it would run fine (with libusb-compat or -0 installing) on 64bit one has to allow running 32bit binaries14:43
APicJust put that in the WiKi14:44
KotCzarnyhaving one old laptop helps with old devices/software14:44
DocScrutinizer05there's nothing to put into the wiki, it already has sufficient info14:45
Maxdamantus    -l      Include libraries in the image of the file for a full image.14:48
Maxdamantusfrom cryopid, so I guess you could just use that.14:48
APicDocScrutinizer05: Even better ☺14:49
DocScrutinizer05marginally updated lazyflasher to include instructions how to install 32bit support under debian14:56
DocScrutinizer05APic: thanks!14:56
* DocScrutinizer05 idly ponders if the script needs a check for current dir content looking like maemo-my-private-workdir, so a new invokation of the download doesn't create it again recursively15:00
MaxdamantusMeh, the executable produced by cryopid seems to segfault.15:03
Maxdamantus0xdeadbeef04c0ffee in ?? ()15:03
MaxdamantusCould be because I'm freezing it while it's in a gdb breakpoint.15:06
Maxdamantusafaik, gdb works by injecting code into the target's address space.15:07
MaxdamantusThough wouldn't imagine it would do it while just doing simple break points (particularly, on syscalls)15:08
DocScrutinizer05ok, maybe seeya later, messing with cgroups now15:18
*** obsed has joined #maemo15:22
*** ruskie has quit IRC15:37
*** ruskie has joined #maemo15:43
*** DocScrutinizer05 has quit IRC16:32
*** shentey has joined #maemo16:32
*** DocScrutinizer05 has joined #maemo16:36
*** Hurrian has joined #maemo16:42
*** shentey has quit IRC16:49
DocScrutinizer05actually messing with rbind mounts which I messed up16:51
DocScrutinizer05umount -R is not always a great idea16:52
DocScrutinizer05particularly when you got TWO /dev16:52
*** louisdk has joined #maemo17:02
*** Hurrian has quit IRC17:04
*** arossdotme-planb has joined #maemo17:23
*** louisdk has quit IRC17:25
*** arossdotme has quit IRC17:25
*** louisdk has joined #maemo17:30
*** at1as has joined #maemo17:57
*** jskarvad has quit IRC18:02
*** cure` has joined #maemo18:28
*** krnlyng has quit IRC18:38
*** zGrr has quit IRC18:42
*** krnlyng has joined #maemo18:51
*** florian has quit IRC18:56
*** auenf has quit IRC19:07
*** auenf has joined #maemo19:08
*** tanty is now known as tanty_off19:08
*** bruce_lee has joined #maemo19:13
*** Pali has joined #maemo19:16
*** florian has joined #maemo19:35
*** eMHa__ has quit IRC19:37
*** e has quit IRC20:19
*** e has joined #maemo20:19
*** eMHa__ has joined #maemo20:27
*** geaaru has quit IRC20:56
*** fakku has joined #maemo21:18
*** fakku has quit IRC21:19
*** princefakhan has joined #maemo21:20
*** lobito1 has joined #maemo21:22
*** princefakhan has quit IRC21:26
*** princefakhan has joined #maemo21:26
*** LauRoman has quit IRC22:33
*** pagurus` has quit IRC22:40
*** louisdk has quit IRC23:27
*** xorly has joined #maemo23:54

Generated by 2.15.1 by Marius Gedminas - find it at!