libera/#maemo/ Thursday, 2020-05-07

k1r1t0/ping01:22
DocScrutinizer05k1r1t0: you flash rootfs and kernel, then you may install new kernels via apt01:56
DocScrutinizer05~rescuefs01:57
DocScrutinizer05~ping01:57
infobot1 packet transmitted, 1 packet received, 0.0% packet loss01:57
DocScrutinizer05~listvalues rescue01:58
infobotFactoid search of 'rescue' by value (19 of 30): yard ;; rescue disks ;; oldtest nimshi ;; #maemo bootloop ;; cd1 ;; li ;; supercow ;; cmd: deus ex machina (.*?) ;; rdev.sh ;; cmd: stth (.*?) ;; airmid ;; flimsy's mama ;; hobo danger woman ;; zip 23424 ;; pdart ;; install cdrom ;; rescue disk ;; inittab ;; syslinux.01:58
DocScrutinizer05~listvalues rescuefs01:58
infobotFactoid search of 'rescuefs' by value returned no results.01:58
DocScrutinizer05theheck01:59
DocScrutinizer05~listkeys *rescue*01:59
infobotFactoid search of '*rescue*' by key (9): rescueos ;; rescue-os ;; superrescue ;; rescuecd ;; reiserfs-rescue-disk ;; rescue disk ;; cmd: rescue (.*?) ;; rescue disks ;; htcrescue.01:59
DocScrutinizer05o.O02:00
k1r1t0I,am clear installed stock firmware and CSSU Thumb202:01
DocScrutinizer05CSSU Thumb ruined a lot of your options regarding recovery and kernel02:01
DocScrutinizer05~thumb02:03
infobotrumour has it, cssu-thumb is <Doc_Scrutinizer05> [thumb2 microb] indeed seems to render like mad, subjectively, or http://talk.maemo.org/showpost.php?p=1220597, or http://wiki.maemo.org/Community_SSU/Thumb02:03
DocScrutinizer05k1r1t0: http://wiki.maemo.org/Community_SSU/Thumb#The_Catch02:06
DocScrutinizer05ff02:06
k1r1t0I,am read thread TMO02:07
k1r1t0Thumb2 modifed kernel, not install u-boot02:09
DocScrutinizer05in short when you fscked up a CSSU-thumb, your only way out is to flash standard OS then install CSSU-thumb again. You prolly can't flash a matching kernel02:09
DocScrutinizer05~uboot02:10
infobotN900 uBoot is a siamese twin binary [uBoot+stockMaemoKernel] that resides in kernel NAND partition /dev/mtd3 aka "kernel". You can't uninstall it, rather you'll nuke it when you flash/install another kernel like stock maemo kernel or powerkernel. To start other than stock maemo kernel via uBoot, you have to provide the according kernel image files, or http://talk.maemo.org/showthread.php?t=8161302:10
DocScrutinizer05to rescue your data and root partition, you may try rescuefs02:11
DocScrutinizer05rescueos?02:11
DocScrutinizer05~rescueos02:11
infobotrescueos is probably http://n900.quitesimple.org/rescueOS/02:11
DocScrutinizer05well, you *may* succeed to extract the kernel image for flasher-3.5.exe ... --flash-only = kernel from the .deb package of powerkernel02:15
DocScrutinizer05given you know which jernel is the one used in u-boot. WAIT, you got thumb and u-boot? That's even more convoluted, I can't recall how exactly this is supposed to work. Chainload of powerkernel from u-boot siameste twin kernel?02:18
DocScrutinizer05where's pali when you need him?02:18
DocScrutinizer05anyway when you had thumb, you ran powerkernel and you need the matching modules in rootfs. When you boot any other kernel (even a different version of powerkernel) then you will get a bootloop from kernel panic since the modules make kernel barf up02:21
DocScrutinizer05that's why restoring or flashing a rootfs renders your system fubar when you installed thumb, iirc02:23
DocScrutinizer05likewise flashing a kernel will need flashing of rootfs for getting matching modules02:23
DocScrutinizer05when you did a >>flasher-3.5.exe -F RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin --flash-only = kernel -f<< then your system will not come up since you previously installed powerkernel modules in rootfs02:26
sicelowith a thumb + u-boot system, you need to have KP somewhere (there's an install file for that, kernel-img iirc), and have a uboot entry for KP -> Thumb02:30
DocScrutinizer05and how do you recover from a flasher-3.5.exe -F RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin --flash-only = kernel -f  ?02:35
DocScrutinizer05prolly by reflashing only, right?02:36
DocScrutinizer05~rescueos02:38
infoboti heard rescueos is http://n900.quitesimple.org/rescueOS/02:38
DocScrutinizer05~lf02:38
infobotsomebody said #maemo lazyflashing was http://wiki.maemo.org/Updating_the_tablet_firmware#The_Lazy_Approach02:38
siceloyou could just reflash KP image02:38
sicelothis will let you boot your CSSU+Thumb, and then fix your u-boot02:39
DocScrutinizer05yeah, that was what I suspected might be possible, but you need the (right version) KP image02:39
siceloKP53 should be fine02:43
DocScrutinizer05and you could extract and flash --kernel-only that kernel.img ?02:44
siceloyes. there's actually a ready bootimg. let me see if i can find it02:44
DocScrutinizer05k1r1t0: ^^^02:46
sicelohttp://maemo.merlin1991.at/cssu/community-thumb/pool/free/k/kernel-cssu/kernel-cssu-bootimg_2.6.28-10cssu3_armel.deb02:47
k1r1t0Thanks, i,am flash all image and cssu thumb202:48
DocScrutinizer05k1r1t0: wait, what exactly do you want to do now? flash whole device (and lose your rootfs) or flash kernel-only?02:50
sicelok1r1t0: if you use uboot with a Thumb system, then you MUST setup bootmenu properly to start Maemo Fremantle with the correct kernel02:50
DocScrutinizer05aaaaah I seem to recall there was a "Do *NOT* reboot the system after installing uboot before you also installed the kernel", or sth like that03:18
DocScrutinizer05then, what for would you use uboot in this config, if you don't have a optional system "elsewhere" non-rootfs03:22
* DocScrutinizer05 re-reads >>I flashed u-boot and lost my normal state. Then I flashed the kernel from Nokia, but the device does not start<< carefully03:23
DocScrutinizer05prolly the "simple" answer is: get the CSSU-thumb kernel image03:26
DocScrutinizer05nevermind, I'm wrecked today/now from watching TV news all day long of politicians explaining "COVID crisis terminated, COVID management phase two starting"03:35
DocScrutinizer05in http://maemo.merlin1991.at/cssu/community-thumb/pool/free/k/kernel-cssu/kernel-cssu-bootimg_2.6.28-10cssu3_armel.deb when untaring you'll find data.tar.gz which you untar to find /boot/zImage-2.6.28.10-cssu303:40
DocScrutinizer05which in turn should fit for flasher-3.5 -F zImage-2.6.28.10-cssu3 --flash-only = kernel -f  ; I hope03:42
DocScrutinizer05if it doesn't, check fiascogen to package that file in a way so it meets flasher's taste03:43
DocScrutinizer05~fiascogen03:44
DocScrutinizer05damn03:44
DocScrutinizer05Flash kernel and reboot:03:50
DocScrutinizer05$ 0xFFFF -m kernel:<file> -f -r03:50
DocScrutinizer05https://github.com/pali/0xFFFF/blob/master/doc/examples03:51
sixwheeledbeastOne reason of keeping thumb as a separate flavour is due to this issue IIRC10:36
siceloseparate flavpur, meaning?10:38
sicelos/flavpur/flavour/10:39
infobotsicelo meant: separate flavour, meaning?10:39
sixwheeledbeastCSSU "flavour"10:42
sixwheeledbeastkeeping Testing, separate10:42
kiritohttps://wiki.maemo.org/Community_SSU/Thumb10:43
siceloOkay10:45
kiritoCSSU-Thumb is based on CSSU-Testing flavor, but uses a very low level patch to kernel to overcome the bugs in OMAP chip related to thumb/ARM mixed code. Thus the binaries from CSSU-Thumb will not work in a "normal system", and several things like uBoot or flashing --flash-only=kernel stop working the way they used to, and you need to take special10:47
kiritocare regarding the changed behaviour of those.10:47
sicelokirito: your system is fine now?10:49
kiritoYes, I haven’t been able to restore my rootfs image. Installed a clean system, but without u-boot. I used u-boot to run the OS on a flash drive https://maemo-leste.github.io/11:04
sicelowhat was your system before u-boot? was it Thumb?11:05
kiritou-boot can be used without a PC, using the sudo ./0xFFFF -m test / u-boot-2013.04-2.bin -l command. The l attribute only loads into RAM without flashing to memory.11:06
kiritosicelo Yes11:07
siceloyes @u-boot ...that's basically how it gets installed in the first place :-p11:08
siceloanyway, so you need to restorr your rootfs, or not really?11:08
kiritoI already set everything up again11:09
sicelocool11:10
siceloby the way ... that u-boot command you wrote above ... you might as well load the kernel you want to use, not u-boot11:12
siceloalso, N900 is notorious for weak USB port, so if you'll need to be loading other kernels frequently, you should lo at seting up u-boot properly11:14
kiritoAs I understand it, there is no Thumb2 kernel under U-Boot11:16
sicelothere is11:19
siceloi linked to it about 10 hours ago11:20
sicelowhich kernel do you have installed? please show your output for `dpkg -l kernel-* | grep ^ii`  (pastebin)11:28
k1r1t0home/user/0xFFFF # dpkg -l kernel-* | grep ^ii                                No packages found matching kernel-RX-51:2204_2.6.28-20103103+0m5.11:31
siceloMmm, that's your only output?11:34
KotCzarnywhy not just dpkg -l|grep kernel11:34
k1r1t0/home/user/0xFFFF # dpkg -l | grep kernel11:35
sicelolists too many other things, e.g. libdrm2 :-)11:35
k1r1t0ii  kernel-cssu                                         1:2.6.28-10cssu3                          Flashable Linux kernel (kernel cssu 2.6.28.111:35
k1r1t0ii  kernel-cssu-flasher                                 1:2.6.28-10cssu3                          Linux kernel updater (kernel cssu 2.6.28.10)11:35
k1r1t0ii  kernel-cssu-modules                                 1:2.6.28-10cssu3                          Linux kernel modules (kernel cssu 2.6.28.10)11:35
k1r1t0rc  kernel-modules                                      2.6.28-20103103+0m5                       Linux kernel modules11:35
k1r1t0ii  libdrm2                                             2.3.1-3                                   Userspace interface to kernel DRM services -11:35
k1r1t0ii  module-init-tools                                   3.4-1maemo5+0m5                           tools for managing Linux kernel modules11:35
KotCzarnysicelo: but at least gets some output ;)11:36
sicelothis works too (at least it works on mine)11:36
KotCzarnymight be shell matched some kernel-* files in current dir11:37
KotCzarnythat's why it should be 'kernel-*'11:37
sicelok1r1t0: right. install kernel-cssu-bootimg11:37
kiritoCan I do without u-boot and use bootmenu?11:38
sicelokirito: there is nothing wrong with u-boot :-)11:39
siceloif you plan on playing with Leste and other OSes, u-boot is your best option. we'll help you set it up11:41
sicelo(fwiw, i have u-boot + thumb here on my n900)11:41
siceloto answer your question directly, no you can't use bootmenu one ... well it's not going to be useful.11:42
sicelos/one/alone/11:43
infobotsicelo meant: to answer your question directly, no you can't use bootmenu alone ... well it's not going to be useful.11:43
kiritoYou understand that there are three options for CSSU: stable and testable + SSU / Thumb community which is fundamentally different11:43
siceloi understand, yes.11:43
kiritook, what is the procedure?11:44
siceloinstall kernel-cssu-bootimg11:45
sicelothen, u-boot and u-boot-tools. after this, be sure to not reboot your system11:49
kirito apt-get install u-boot-flasher kernel-cssu-bootimg ln -s /etc/bootmenu.d/20-Maemo5-kernel-cssu-2.6.28.10-cssu3.item /etc/default/bootmenu.item u-boot-update-bootmenu11:51
sicelosorry i'm on a bad connection here, but yes, you then need exactly that ln command11:54
siceloafter update-bootmenu, it should be safe to reboot and confirm u-boot loads correct kernel for CSSU THumb.11:58
sicelolet us know how it goes11:58
kiritoNokia-N900:~#  apt-get install kernel-cssu-bootimgReading package lists... DoneBuilding dependency treeReading state information... DoneRecommended packages:  multiboot kernel-power-settings usbip iptables kexec-toolsThe following NEW packages will be installed:  kernel-cssu-bootimg0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.Need12:20
kiritoto get 1937kB of archives.After this operation, 2015kB of additional disk space will be used.Get:1 http://maemo.merlin1991.at fremantle/free kernel-cssu-bootimg 1:2.6.28-10cssu3 [1937kB]Fetched 1937kB in 5s (350kB/s)Selecting previously deselected package kernel-cssu-bootimg.(Reading database ... 24995 files and directories currently12:20
kiritoinstalled.)Unpacking kernel-cssu-bootimg (from .../kernel-cssu-bootimg_1%3a2.6.28-10cssu3_armel.deb) ...Setting up kernel-cssu-bootimg (1:2.6.28-10cssu3) ...12:20
kiritoNokia-N900:~#  apt-get install u-boot-flasherReading package lists... DoneBuilding dependency treeReading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of12:21
kiritoIncoming.The following information may help to resolve the situation:The following packages have unmet dependencies:  u-boot-flasher: Depends: kernel-modules (= 2.6.28-20103103+0m5)E: Broken packages12:21
siceloplease use a pastebin for pasting logs12:25
siceloit would seem you are missing a core repository catalog12:27
kiritohttp://repository.maemo.org/community/ ?12:29
siceloyou should have one of the Nokia repository mirrors in the Application Manager12:29
sicelo~mirro12:29
sicelo~mirror12:29
infobotwell, mirror is http://maemo-archive.wedrop.it/ http://talk.maemo.org/showthread.php?p=1315143#post1315143  or extras-devel.merlin1991.at - for fighting hashsum error, or see ~rmo-new12:29
siceloi use the muarf mirror12:30
KotCzarny~maemo-repos12:30
infoboti guess maemo-repos is http://wiki.maemo.org/Repository#List_of_Maemo_repositories12:30
KotCzarnymight come handy12:30
kiritouse maemo.muarf.org12:31
siceloAh, that one is better thanks KotCzarny12:32
k1r1t0/home/user # apt-get update12:36
k1r1t0Hit http://repository.maemo.org fremantle Release.gpg12:36
k1r1t0Ign http://repository.maemo.org Hit http://maemo.muarf.org ./ Packages12:36
k1r1t0Fetched 6013B in 7s (761B/s)12:36
k1r1t0Reading package lists... Done12:36
k1r1t0W: GPG error: http://maemo.muarf.org ./ Release: The following signatures were invalid: KEYEXPIRED 1349249546 KEYEXPIRED 1349249546 KEYEXPIRED 134924954612:37
k1r1t0W: GPG error: http://maemo.muarf.org ./ Release: The following signatures were invalid: KEYEXPIRED 1349249546 KEYEXPIRED 1349249546 KEYEXPIRED 134924954612:37
k1r1t0W: You may want to run apt-get update to correct these problems12:37
KotCzarnyyou can ignore warnings about expired keys12:38
kiritoAfter installing kernel-cssu-bootimg, I can’t reboot the device, right?12:39
siceloyou can ... but after onstalling uboot, dont12:43
sicelo(even if you did, there's a way to recover ... but no need to put ourselves tgrough pain) :-)12:44
sicelosorry for typos ... terrible network + android vkb12:44
kiritono problems12:45
kiritoI understand that u-boot is not installed because it cannot find the correct kernel version?12:47
siceloNow you have the correct repos i believe? so you can install uboot again12:52
kiritoI did not change repo, it was configured earlier12:53
kiritou-boot-tools is installed12:53
kiritou-boot-flasher Depends: kernel-modules (= 2.6.28-20103103+0m5)E: Broken packages12:54
sicelolet's see your repo list.12:57
sicelocat /etc/apt/sources.list.d/hildon-application-manager.list12:58
sicelopleaae post to a pastebin12:58
k1r1t0/home/user # cat /etc/apt/sources.list.d/hildon-application-manager.list12:59
k1r1t0deb http://repository.maemo.org/community-testing/ fremantle free non-free12:59
k1r1t0deb http://repository.maemo.org/extras/ fremantle-1.3 free non-free12:59
k1r1t0deb http://repository.maemo.org/ fremantle/sdk free non-free12:59
k1r1t0deb http://repository.maemo.org/ fremantle/tools free non-free12:59
k1r1t0deb http://repository.maemo.org/extras-devel/ fremantle free non-free12:59
k1r1t0deb http://repository.maemo.org/extras-testing/ fremantle free non-free12:59
KotCzarny:)12:59
siceloheh13:01
buZzRIP :(13:02
MaxdamantusMalicious website alert.13:03
siceloPoor guy ... still not back13:26
k1r1t0Freenode is banned my13:52
KotCzarnywe told you to use pastebin13:52
KotCzarnyand not to paste directly to irc13:52
KotCzarnypastebin.com for example13:52
buZzhe'll figure it out and be back eventually14:06
kiritoNokia-N900:~# cat /etc/apt/sources.list.d/hildon-application-manager.listdeb http://repository.maemo.org/community-testing/ fremantle free non-freedeb http://repository.maemo.org/extras/ fremantle-1.3 free non-freedeb http://repository.maemo.org/ fremantle/sdk free non-freedeb http://repository.maemo.org/ fremantle/tools free non-freedeb15:42
kiritohttp://repository.maemo.org/extras-devel/ fremantle free non-freedeb http://repository.maemo.org/extras-testing/ fremantle free non-freedeb http://maemo.muarf.org/apt-mirror/mirror/downloads.maemo.nokia.com/fremantle/ssu/apps/  ./deb http://maemo.muarf.org/apt-mirror/mirror/downloads.maemo.nokia.com/fremantle/ssu/mr0  ./deb15:42
kiritohttp://deb.opera.com/maemo fremantle non-freedeb http://qole.org/repository/ maemo fremantledeb http://repository.maemo.org/community-testing/ fremantle  free non-freedeb http://maemo.merlin1991.at/cssu/community-thumb/ fremantle free non-free15:42
KotCzarnyuse the pastebin.com15:42
KotCzarnyor freenode will ban you again15:42
kiritoShow an example15:44
KotCzarnyopen in browser: https://pastebin.com15:44
KotCzarnypaste the text there, then copy the resulting link and paste here (only link)15:44
kiritohttps://pastebin.com/UNMuZBP915:46
KotCzarnygood15:46
KotCzarny(for pastebinning, i dont remember repos list)15:47
sicelokirito: strange. you have the right repos. you're sure you've apt-get updated?15:58
sicelo$ apt-cache showpkg kernel-modules15:59
sicelo2.6.28-20103103+0m5 (/var/lib/apt/lists/maemo.muarf.org_apt-mirror_mirror_downloads.maemo.nokia.com_fremantle_ssu_mr0_._Packages) (/var/lib/dpkg/status)15:59
sicelothis is what mine shows15:59
kiritohttps://pastebin.com/ujpxZt6A16:00
siceloinstall them, apt-get install kernel-modules16:04
kiritohttps://pastebin.com/NWT8msMQ16:06
kiritoit seems this is not Thumb2 modules16:06
KotCzarnyif i were you, i would start with freshly flashed device without adding any custom repos16:07
siceloyou have a really weird install :-)16:07
KotCzarnythen installed cssu flavour, then added back things you want16:07
kiritoThumb2Thumb2 is another instruction set, which has most of the power and speed of ARM ISA, but its instructions could be 2 bytes in length instead of 4 bytes.According to some research that can be found on internet, using Thumb2 ISA leads to reduction of code size in 30-40% without sacrificing much of the performance (some 2-5% performance16:08
kiritodecrease).16:08
sicelo(and yes  they aren't Thumb modules ... you already have those installed)16:08
siceloare you even really on Thumb?16:10
kiritoyes16:10
sicelowhat's in Settings > General  About Community SSU16:11
kiritoYes16:11
kiritohttps://wiki.maemo.org/Community_SSU/Thumb16:11
kirito21.2011.38-1Tmaemo1216:12
siceloyou're not on thumb thrn16:12
sicelo*then16:12
sicelomine has +thumb0 at the end16:13
sicelomaybe keep testing ...16:13
kiritoHow to remove kernel-cssu-bootimg ?16:15
siceloapt-get remove16:17
sicelothat just provides you a kernel suitable for uboot ... doesn't do anything else to the system, so it's safebto keep/delete16:17
kiritosicelo show df -h16:41
sicelowhy?17:31

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!