belcher_ has joined #maemo-leste
belcher has quit [Ping timeout: 260 seconds]
belcher_ is now known as belcher
kvw_5 has quit [Ping timeout: 252 seconds]
kvw_5 has joined #maemo-leste
Pali has quit [Ping timeout: 260 seconds]
* enyc meows
cockroach has quit [Quit: leaving]
<parazyd> uvos:
<parazyd> Camera works, there is also a pmOS program: https://git.sr.ht/~martijnbraam/megapixels
<Entitlement> parazyd - [ ~martijnbraam/megapixels - sourcehut git ]
peetah_ has joined #maemo-leste
peetah has quit [*.net *.split]
Dg-2 has quit [*.net *.split]
yanu_ has quit [*.net *.split]
Venemo has quit [*.net *.split]
<kek> parazyd created a repository: https://github.com/maemo-leste/charge-mode
Dg-2 has joined #maemo-leste
Venemo has joined #maemo-leste
yanu_ has joined #maemo-leste
<kek> parazyd edited a repository: https://github.com/maemo-leste/charge-mode
<parazyd> Built new 5.10 droid kernel with fbdev patch. Now building 5.11 for devel
<parazyd> uvos, Wizzup: I'll compile and include charge-mode in stable and hildon-meta, but won't touch the boot.cfg yet
<parazyd> We should also decide what to do with other devices
<parazyd> note-to-self: Mainline N900 u-boot
uvos has joined #maemo-leste
<Wizzup> sicelo: no, hildon core won't go qt I think
* enyc meows
<enyc> parazyd: new n900 kernels possible soon? tricky? *curious*
<Wizzup> He said u-boot though
<enyc> I know
<enyc> =)
<Wizzup> parazyd: I haven't tried it yet @ charging mode
<Wizzup> Do I just apt-update and apt-upgrade my droid?
<parazyd> Wizzup: Didn't build it yet
<Wizzup> for -devel?
<Wizzup> Just got confused because you said stable
<parazyd> Neither
<Entitlement> parazyd - [ GitHub - maemo-leste/charge-mode: Charging screen for Maemo Leste ]
<parazyd> Latest HEAD is correct, I need to tag it also
<parazyd> To use, you need to change boot.cfg and boot into charge-mode runlevel
<parazyd> We'll have to decide how to introduce this through an update
<Wizzup> ok
<parazyd> Kernels are ready btw
<parazyd> For mapphone
<Wizzup> what changes? the fb stuff?
<Wizzup> what changed*
<parazyd> Yes
<Wizzup> ok
jonsger has joined #maemo-leste
jonsger has quit [Ping timeout: 260 seconds]
Pali has joined #maemo-leste
ravelo has quit [Quit: Connection closed for inactivity]
<uvos> i ported fkkeyboard to uinput
<uvos> and cleaned up the extreamly messy codebase
<uvos> *to libinput
<uvos> so now its callibrated everywhere we use libinput (aka everything except n900)
<parazyd> What was it before?
<uvos> it just opened /dev/input/event0 and assumed that display and touch surface coordinates are the same
<parazyd> ouch
<uvos> it was also a mess
<uvos> with stuf like char *bla = ""
<uvos> and magic values everywhere
<parazyd> Nice work then
<parazyd> I'll be home in about 2 hours and then will finish up on this stuff and hopefully make the gtk3 hildon theme usable over the weekend
<Entitlement> uvos - [ GitHub - IMbackK/fbkeyboard: a simple on screen keyboard for fbdev ]
<Entitlement> uvos - [ GitHub - IMbackK/charge-mode ]
<parazyd> Will merge
<parazyd> Thanks
<uvos> would be great if you or Wizzup could pacakge fbkeyboard for me
<parazyd> Feel free to tag it btw
<parazyd> I'll do that
<kek> IMbackK opened a pull request: https://github.com/maemo-leste/leste-config/pull/19 (mapphones: add directfb configuration)
<uvos> you also need this for the powerbutton to work in charge-mode with directfb backend
<uvos> on mapphones at least
<uvos> maybe also others
<uvos> as directfb will coose only one device as a "keyboard" and ignore the others
<uvos> so if the power key is on a seperate device it wont work
<parazyd> ok
<parazyd> Will test it all with what devices I have
<parazyd> uvos: This directfbrc file lists all input events that should be listened to, right? Is there any order or preference I should keep in mind?
pere has quit [Ping timeout: 240 seconds]
<parazyd> Pali: Is mainline uboot for N900 ready in their git HEAD or even some tag?
<Pali> parazyd: all patches are in released version v2021.04
<parazyd> Excellent, thanks :)
<Pali> so use v2021.04 tag fo building
<parazyd> Will do. I want to make a deb package like we have for Pine64
<Entitlement> Pali - [ GitHub - pali/u-boot-maemo: Maemo packaging of U-Boot bootloader for Nokia N900 ]
<parazyd> Pali: Thanks. This nandwrite stuff is done from userspace, right?
<Pali> it contains u-boot-gen-combined script which generates from u-boot.bin and uImage files one binary
<parazyd> Nice
<Pali> yes, nandwrite is called from userspace... but beware that NOLO expects some "proprietary" header, so you cannot easily write new image into nand
<parazyd> Sure. I won't be writing anything now really, just good to keep it in mind.
<parazyd> We obviously don't want to forcefully wreck existing installations.
<Pali> in case somebody provide more "dumps" I can try to decode content of this header and extend 0xFFFF to support on-device flashing
<parazyd> Got any guide to do so?
<Pali> I think I already discussed about it month ago on some IRC channel... but do not remember neither channel nor with who
<parazyd> ok
<Pali> I will search channels history
<parazyd> Thanks
<parazyd> On Leste I don't have the -b flag
<parazyd> It also fails with: nanddump: error!: mtd_get_dev_info failed
<parazyd> I suppose I should do this in Fremantle
<Pali> on maemo fremantle has -b following help: -b --omitbad Omit bad blocks from the dump
<Pali> so you can ignore this flag
<parazyd> Yeah, without it on Leste I get the error above
<parazyd> Will try in Fremantle later once I finish up some stuff
<Pali> -o in maemo fremantle has help: -o --omitoob Omit oob data
<Pali> but new nanddump on Debian 10 has following help: -o --oob Dump OOB data
<parazyd> omitoob is default it seems
<Pali> so -o has different meaning on old nanddump (as in maemo fremantle) and in new nanddump
<parazyd> Yes
<Pali> I will update 0xFFFF to handle it
<parazyd> uvos: I got a better idea for charge mode, but I didn't test it yet.
<parazyd> uvos: We still have the unused "boot" runlevel, and it is supposed to run after "sysinit" (in theory)
<parazyd> uvos: We should simply try having it there
<parazyd> This way we don't have to hack around cmdline, provided my theory works
<Pali> parazyd: try: /usr/sbin/nanddump --omitoob -s 0 -l 2048 -f header.bin /dev/mtd3ro
<parazyd> nanddump: error!: mtd_get_dev_info failed
<parazyd> (In debian 10/Leste)
<Pali> :-(
pere has joined #maemo-leste
<Pali> I will try it on desktop via nandsim.ko
<Pali> tested on my N900 with Maemo Fremantle+CSSU and it is working fine
<parazyd> Yeah ok
<parazyd> I'm doing it on our 5.1.21 n9xx-linux and Leste userspace
<parazyd> When I finish up on something, I'll send you the dump from Fremantle
<Pali> nandsim.ko on desktop returns "nanddump: error!: mtd_get_dev_info failed"
<parazyd> heh
<Pali> but "/usr/sbin/nanddump --omitoob -s 0 -l 2048 -f header.bin /dev/mtd3" is working
jonsger has joined #maemo-leste
<parazyd> Here too
<parazyd> Do you want this file?
<Pali> it is needed to collect more "dumps", ideally also from devices which are flashed by COMBINED image
<parazyd> I have 3 working RX-51 here
<parazyd> If there's any image I should flash, I can. Just link it to me if you have time :)
<Pali> "full" combined firmware: RX-51_2009SE_21.2011.38-1_PR_COMBINED_MR0_ARM.bin or RX-51_2009SE_20.2010.36-2_PR_COMBINED_MR0_ARM.bin
<parazyd> ACK
<Pali> which rewrites everything
<Pali> so it erase all data in n900 and also sets versions strings to Maemo, etc...
<parazyd> All good
<sicelo> Where can I send my header dump
<Pali> if you do not care about privacy of this file then hexdump on some pastebin is fine
<sicelo> I think I know your email ... will forward it there if you don't mind
<Pali> ok
<sicelo> I wanted to ask ... how to append kernel to u-boot? I wanted to append fremantle kernel in new u-boot, so I can eventually flash new u-boot but still have access to Fremantle
<Entitlement> Pali - [ doc/README.nokia_rx51 · master · U-Boot / U-Boot · GitLab ]
<Pali> on https://github.com/pali/u-boot-maemo is script u-boot-gen-combined about which I have talked today
<Entitlement> Pali - [ GitHub - pali/u-boot-maemo: Maemo packaging of U-Boot bootloader for Nokia N900 ]
<sicelo> Thanks!
<Pali> you need to generate uImage from your kernel (by u-boot tool mkimage) and then use this u-boot-gen-combined script which generates one binary from u-boot.bin and uImage
<sicelo> Awesome
<uvos> parazyd: yes @dfb
sicelo_ has joined #maemo-leste
<uvos> parazyd: no order dosent matter
<parazyd> ok
<uvos> parazyd: puting it into boot run level breaks bypassing it tho
<uvos> parazyd: i dont like that
<parazyd> uvos: I just tested it on d4 and it doesn't work. It only works with openrc-init, and not sysvinit (which we use)
<parazyd> But with openrc-init we lose inittab and I don't really want that
<sicelo_> oh, thought we were openrc :)
<parazyd> sicelo_: Yes as service manager, but not the init binary itself.
<parazyd> (Same default is in Gentoo fwiw)
<uvos> what do you want initab for?
<parazyd> uvos: All our devices have an entry for the serial console in there
<sicelo_> Pali: i have tried the command line in https://kicherer.org/joomla/index.php/en/blog/32-recovering-a-non-booting-nokia-n900-with-maemo-from-a-sd-card , and it didn't work for me with a newer u-boot. but i will try again in case i made a mistake
<Entitlement> sicelo_ - [ kicherer.org - Recovering a non-booting Nokia n900 with Maemo from a SD card ]
<sicelo_> i had the idea that we could make the whole u-boot process manageable inside Leste (or other linux), but still manage to keep Fremantle intact and bootable
<parazyd> sicelo_: If you work on this, please let me know. I'd like to include such a script in our future N900 u-boot package.
<parazyd> sicelo_: This way we could keep updating u-boot from Leste
halftux has joined #maemo-leste
<Pali> can you test 0xFFFF with this patch https://github.com/pali/0xFFFF/commit/67427daf172ffbec429830ee97410c53095086d5 if its -e or -E is working on device?
<Entitlement> Pali - [ local: Fix calling nanddump · pali/0xFFFF@67427da · GitHub ]
<halftux> Hello all and congratz to the funding that are nice news
<parazyd> Hi halftux! Thank yoi :)
<parazyd> *you
<parazyd> It'll help us push fast on Telepathy and comms interfaces
<uvos> we should just put /boot/boot/boot.cfg into a package
<uvos> i need to chainge it AGAIN later for fbkeyboard in bionic
<parazyd> Any idea which package would be a good fit?
<uvos> a new one i fear
<uvos> dose kexecboot work with symlinks?
<uvos> it should i guess
<parazyd> leste-config can also do non-symlinks
<parazyd> But then it's a forceful overwrite on each update
<uvos> sure but we dont want to change that file
<uvos> yeah
<uvos> my devices boot from internal storage remember
<uvos> some anywhays
<parazyd> Yaeh
<uvos> it needs to be a link
<uvos> or in a diferent pacakge so i can just uninstall
<parazyd> Mind just trying a symlink?
<parazyd> but
<parazyd> FAT32 doesn't do links fwiw
<uvos> its not fat
<uvos> its ext
<parazyd> ok
<parazyd> Then sure I guess
<uvos> /dev/mmcblk0p1 /boot ext2 rw,relatime,errors=continue
jonsger1 has joined #maemo-leste
jonsger has quit [Ping timeout: 268 seconds]
jonsger1 is now known as jonsger
<uvos> kexecboot is not ok with it being a link :(
<parazyd> eh
<parazyd> I guess that's why we didn't have it there in the first place :D
<parazyd> tmlind: Any idea why? ^
<sicelo_> parazyd: sent my nand header now. will try 0xFFFF shortly
<sicelo_> ah, meant, Pali ^^
<parazyd> :)
<Pali> got it
<Pali> seems that everything is zero except "NOLO!img" at offset 0x00 and bytes 0x00 0x4c 0x1b 0x00 at offset 0x10
<Pali> on my N900 I have bytes 0x80 0xa7 0x1e 0x00 at offset 0x10
<Pali> so looks like some checksum? or version info?
<sicelo_> i ran `/usr/sbin/nanddump --omitoob -s 0 -l 2048 -f header.bin /dev/mtd3` to produce that. let me try on a different N900
<sicelo_> looks like i can only do that later. battery super empty on that n900. which is strange - it was fully charged two or three days ago, and was switched off
<Pali> hm..., "sudo 0xFFFF -t kernel -e" on my N900 dumps kernel image to file with size 2008832 and 0x80 0xa7 0x1e 0x00 in little endian is number 2008960
<Pali> so I bet it is size of the image
<Pali> 0xFFFF currently dumps bytes from mtd, trim that header and then truncate zeros from the end of the file
<Pali> sicelo_: could you run "sudo 0xFFFF -t kernel -e" and look what is the size of dumped file "kernel-*"? if it is about 1788928 bytes (little endian 0x00 0x4c 0x1b 0x00)
<sicelo_> btw that needs N900 to be switched off?
<Pali> that from which you generate dump which you sent me via email
<Pali> anyway, somebody else could confirm this
<sicelo_> no idea what's up with my laptop ... 0xFFFF sees device in USB Mass Storage mode :'(
<kek> parazyd created a repository: https://github.com/maemo-leste/fbkeyboard
<Pali> you need to run 0xFFFF "on device", via USB it cannot dump images from n900 to laptop
<sicelo_> yes, i don't know why it immediately switches to usb mode
sicelo_ has quit [Remote host closed the connection]
<parazyd> uvos: fbkeyboard is in the repos
<parazyd> Tagged your port as 0.2
<uvos> parazyd: can you also tag out leste-config
<uvos> so that the deivces get switched to libinput
<parazyd> Yeah I'll do that on devel
<kek> parazyd closed a pull request: https://github.com/maemo-leste/leste-config/pull/19 (mapphones: add directfb configuration)
<parazyd> uvos: Done
<uvos> parazyd: kexecboot is fine with it being a link
<parazyd> What was wrong the first time?
<uvos> parazyd: you just have to avoid being a tool and making the link to an absolute path
<parazyd> ah
<parazyd> Yeah it should be in the same /boot/boot dir
<uvos> no i did
<uvos> ln -s /boot/boot/boot.cfg.leste /boot/boot/boot.cfg
<sicelo> Pali, your hunch is correct! Kernel exactly 1788928 on this device
<parazyd> uvos: leste-config already does relative links
<uvos> ofc in kexecboot /boot is mounted elsewhere
<uvos> great
<Pali> sicelo: OK!
<parazyd> uvos: ok. I'll make a todo note to add boot.cfg
<parazyd> uvos: I first want to clean up -devel a bit and see what can be promoted
<uvos> sure
<parazyd> sicelo: Nice find!
<sicelo> Credit goes to Pali :-)
jonsger1 has joined #maemo-leste
<Entitlement> uvos - [ jpeg ]
<uvos> callibrated fbkeyboard on bionic works great
<parazyd> :)
<sicelo> Still don't understand why my N90) with mainline kernel sometimes boots to blank display from an installation that has been working all along
jonsger has quit [Ping timeout: 240 seconds]
jonsger1 is now known as jonsger
<parazyd> Nice integrals btw :p
<tmlind> parazyd: sorry we should have what where? boot.cfg somewhere? not following..
<parazyd> tmlind: nvm, we were thinking kexecboot can't have boot.cfg as a symlink
<parazyd> but pebkac
<tmlind> parazyd: ok, kexecboot parses together all boot.cfg files on all the usable partitions
<parazyd> hmm, gives me a thought
<Wizzup> parazyd: I think the boot runlevel is reserved for minimal things to bring up boot
<parazyd> uvos: What if we concatenate the existing boot cfgs if there are any?
<parazyd> Wizzup: It doesn't work on Devuan
<Pali> sicelo: can you test this patch https://pastebin.com/iraJqgKv ? it should read correct kernel image size from that header when doing dump
<Entitlement> Pali - [ 0xFFFF kernel dump - Pastebin.com ]
<uvos> that would work
<parazyd> uvos: Just a quick thought though. Still would have to think it through.
<uvos> als long as you ensure that the new ones are of higher priority
<parazyd> Yeah
<Wizzup> parazyd: so when shall we move to the openrc one?
<parazyd> Wizzup: I don't want to because then we lose /etc/inittab; and in turn we lose the serial console entries.
<parazyd> openrc-init handles ttys from initscripts, not inittab
<Wizzup> ok, well, that sounds something we can overcome ultimately
<parazyd> See /etc/init.d/agetty on gentoo
<Wizzup> so how how will this work now?
<parazyd> Still thinking it through
<parazyd> Everything is in place, just not enabled yet
<tmlind> uvos: for booting with charger, maybe try changin .config to have CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x0
<sicelo> Pali: will test in a moment. Have just taken my N900 apart ... FM transmitter doesn't seem to be working reliably nowadays. Probably antenna
<uvos> the fm transmitter antenna is internal to n900?
<uvos> that must be hugely coil loaded to work that small
<parazyd> Yeah it's in the phone
<sicelo> FM transmitter antenna in n900. Actually quite small. Remember you're not trying to transmit over great distances
<uvos> still has to resonate
<parazyd> It's still not a bad distance though
<uvos> yeah you can coil load it to bring the resonance freq down
<sicelo> It's not a coil. Just a simple thin 'bar' of metal along the bottom of the phone
<uvos> you can coil load =/= coil
<Entitlement> parazyd - [ N900 Hardware Hacking - maemo.org wiki ]
<uvos> you can have an inductor on the pcb in the tx trace to the ant.
sicelo_ has joined #maemo-leste
<sicelo_> i don't know if this requires you to be logged in, https://talk.maemo.org/attachment.php?attachmentid=33880&d=1385258897
<Entitlement> sicelo_ - [ jpeg (620 x 341) ]
<sicelo_> it's highlighted blue in that
<uvos> yeah that looks like just a bar, magic must be on the other side
<Entitlement> parazyd - [ N900 disassembled ]
<parazyd> Also Joerg has these hi res photos/scans
<uvos> yeah there is something in path of the antenna connector
<uvos> looks like a chip, but could be a chip inductor
<uvos> anyhow, not important
<uvos> but somewhat impressive that it works well ;)
<sicelo_> the range is short(er than many would have liked), to avoid messing with actual public transmissions
<parazyd> Still worked well in bars when they have FM radio :D
<Wizzup> parazyd: maybe we can figure out a migration path for the openrc init if it makes sense, I'm happy to help with some of that
<uvos> yeah would be cool to get it going in leste (also for the mapphones)
<Wizzup> there should UI for it in fremantle
<Wizzup> (and we'll need pa stuff)
<parazyd> Wizzup, uvos: Basically what would have to be done is this:
<parazyd> - make (or copy from gentoo) the tty initscripts
<parazyd> - add them to runlevels where necessary
<parazyd> - do the same for every device
<Wizzup> and have an upgrade path
<parazyd> - dpkg-divert existing /sbin/init and link /sbin/openrc-init to it OR add init=/sbin/openrc-init to cmdline
<parazyd> This would be an additional package, say leste-openrc-support
<parazyd> That's my first thought, but in general it's something like this
<sicelo_> Pali: i'll have to run that on device, or via laptop?
<Pali> on device
<Pali> this is for "fixing" size of kernel image when doing "on device dump"
<sicelo_> mmm, i don't have fremantle compilation env around. would you be able to make a deb?
<Pali> heh, I do not have there cross compile env :d that is why I asked here, otherwise I could test it on my n900
<kek> parazyd opened an issue: https://github.com/maemo-leste/bugtracker/issues/522 (Migrate to openrc-init)
<sicelo_> halftux: ping :)
<parazyd> This could be interesting though, as we wouldn't really have to spawn any TTY
<sicelo_> halftux: perhaps you have scratchbox handy?
<Wizzup> hm, I don't think we made a ticket with the X11 glamor discussion yet... I can do it in a bit when I get back
<halftux> sicelo_: what exactly do you mean? somewhere I have scratchbox installed
<Wizzup> brb
<parazyd> Wizzup: Yeah please do. Thank you
<sicelo_> halftux: when you have spare cycles, please build for us 0xFFFF with this patch from Pali, https://pastebin.com/iraJqgKv
<Entitlement> sicelo_ - [ 0xFFFF kernel dump - Pastebin.com ]
<halftux> ok no problem
<halftux> sicelo_: 0xffff from maemo repo (0.8-1) or from github
pere has quit [Ping timeout: 240 seconds]
<Pali> from github
<Pali> today I commited there one fixup
<halftux> ok
<kek> parazyd opened an issue: https://github.com/maemo-leste/bugtracker/issues/523 (Rename droid4-linux and the packages to linux-omap)
<kek> parazyd labeled an issue: https://github.com/maemo-leste/bugtracker/issues/523 (Rename droid4-linux and the packages to linux-omap)
<kek> parazyd labeled an issue: https://github.com/maemo-leste/bugtracker/issues/522 (Migrate to openrc-init)
<uvos> parazyd: btw you forgot to also tag out https://github.com/maemo-leste/hildon-meta for the libinput switch
<Entitlement> uvos - [ GitHub - maemo-leste/hildon-meta: Metapackage for installing all of hildon/maemo... ]
<uvos> rn x can break
<uvos> because we rm the callibration for evdev but libinput isent installed
<uvos> if you dont have libinput installed for another reason
<parazyd> Ah thanks for reminding me
<sicelo_> thanks a mil :)
<halftux> you are welcome :)
<sicelo_> is that the latest, and includes the patch from pastebin? (i see 0.8)
<kek> MerlijnWajer opened an issue: https://github.com/maemo-leste/bugtracker/issues/524 (PowerVR DDK 1.17 Glamor/Xorg)
<Entitlement> Wizzup - [ PowerVR DDK 1.17 Glamor/Xorg · Issue #524 · maemo-leste/bugtracker · GitHub ]
<parazyd> Thanks
<parazyd> uvos: It seems charge-mode is being skipped or falls through on my Bionic
<parazyd> uvos: I boot it by plugging in a charger
<halftux> sicelo_: cloned from github and patched with pastebin increased release 1 to 2. no version up
<halftux> it is no offical build thats why
<Wizzup> Is there a guide how to flash a n900 with fresh fremantle and move to cssu? I haven't tested that path in a while
<parazyd> It
<sicelo_> ty halftux
<parazyd> It's just about clicking that .install link on the wiki
<uvos> parazyd: my bionic refuses to even consider booting if the charging cable is withing 10 feet
<parazyd> uvos: I have a pure DC cable, no data pins
<uvos> i havent applied tmlind patch to fix that yet on the bionic
<parazyd> Wizzup: One click install https://wiki.maemo.org/CSSU
<Entitlement> parazyd - [ Community SSU - maemo.org wiki ]
<Wizzup> parazyd: yeah, ok, I'll just download some combined PR and see, I'm sure it'll break a few times along the way
<sicelo_> Wizzup: yes, there is. anyway, for the purpose of Leste, CSSU isn't a requirement. so after flashing regular images, one can go ahead with Leste
<Wizzup> like the repo lines being wrong, containing the wrong components
<parazyd> Could happen :D
<Wizzup> sicelo_: It's not for leste, I want to flashthis n900 for daily usage with fremantle
<sicelo_> oh nice :)
<Wizzup> my current one has a broken usb port and broken earspeaker
<Wizzup> (yeah)
<sicelo_> ouch. i still need to fix my broken usb port n900. for current mainline play i've been using older n900 with broken modem and half-working touch :p
<uvos> uff the conditions of these devices :P
<Wizzup> I have plenty of n900s, but I am not looking forward to the migration
<Wizzup> my current one is quite customised
<uvos> dd?
<sicelo_> you could migrate very easily with bootmenu ;)
<Wizzup> rather not, some things about it are also broken in a way that I suspect are rootfs corruption :P
<parazyd> Wizzup: btw I might have solved the ntp flakiness.
<sicelo_> ah
<Wizzup> sicelo_: what do you mean?
<Wizzup> parazyd: ah?
<parazyd> Wizzup: I appended "-4" to the ntpdate opts
<Wizzup> heh
<parazyd> To force IPv4 and it's working for me constantly now
pere has joined #maemo-leste
<sicelo_> bootmenu can take image of the entire device, and can be placed on any other n900 ... you just need to ensure the is the same kernel on the other device (quite easy to do with u-boot)
<sicelo_> not u-boot's bootmenu, btw. Fanoush Bootmenu
<Wizzup> ok, but I think I don't want to do htat per above
<sicelo_> sure, makes sense
<halftux> sicelo_: ah there was a release of version 0.9 from 0xFFFF in January. Did not know about it because it was not in maemo repos. I can make a version up and compile it again if this satisfy you more.
<Pali> sicelo_: omfg, I have there a bug in that patch ... memcmp(header_buf, "NOLO!img", 8) == 8 ... obviously memcmp returns zero on "success"
<Pali> to it should be == 0
<Wizzup> sicelo_: btw I dropped you a pm, not sure if you saw it
<Wizzup> (you said you had trouble with PMs)
<parazyd> Wizzup: I've scheduled this ntp -4 configuration for tomorrow's image builds, so we'll see if it solves the issue for people who had it
<Wizzup> that includes me :p
<parazyd> :)
<parazyd> It's not part of any package though, so add it manually if you don't plan to reflash
<parazyd> /etc/default/ntpsec-ntpdate
<parazyd> Should be "-b -4"
<Wizzup> can we make it part of some package somehow?
<parazyd> No point
<Wizzup> otherwise we will have users reporting bug sfor it still
<parazyd> I don't want to (yet)
<parazyd> Because we might again just switch to chrony if it's better
<parazyd> Let's first see if it works
<Wizzup> if it's part of leste-config we can also remove it later, right?
<Wizzup> and fine if not yet
<parazyd> Yes @ leste-config
<parazyd> tbh I'm a bit overwhelmed again with the state of devel
<parazyd> I should really just promote some stuff
<Wizzup> better than users getting -devel on them and being overwhelmed :p
<halftux> sicelo_: so here again changed the "8" to "0" and made proper version number http://www.setius.net/downs/maemo/0xffff_0.9-1patched_armel.deb
<sicelo> ty. Will test in a bit. I still have my device disassembled
<Wizzup> Is it possible to flash vanilla and fiasco with 0xFFFF?
<Pali> via usb can be flashed everything except mmc image
<Wizzup> Vanilla is the MMC image, right?
<Wizzup> That is - RX-51_2009SE_10.2010.13-2.VANILLA_PR_EMMC_MR0_ARM.bin
<Pali> there is unfinished mmc flashing code: https://github.com/pali/0xFFFF/issues/6#issuecomment-364515865
<Entitlement> Pali - [ Flashing an eMMC image returns "Error: Not implemented yet" · Issue #6 · pali/0x... ]
<Wizzup> ok
<halftux> Wizzup: is screen orientation working in Qt? I guess the old maemo way of a widget attribut is no more valid or?
<Wizzup> yes, that does
<Wizzup> that should work
<Wizzup> halftux: please let me know if you encounter missing qt5 features
<Wizzup> Unable to download 'community ssu-enabler' Application not found RIP
<uvos> Wizzup: better get cracking on that phone app then :P
<parazyd> :p
<Wizzup> :/
<Wizzup> will try non-thumb then
<halftux> yes I will do so far I managed to find already your work about progress indicator and stackedwindow well done of course same goes for the other work on Qt I really appreciate it
<Wizzup> Yeah, looking at Dorian or countdowntimer will show what to do for porting
<uvos> parazyd: is there an easy way to see whats in devel?
<parazyd> Gimme a few minutes, on a phone call atm
<uvos> can do it
<Wizzup> We have scripts to diff them
<uvos> this will do tho
<Wizzup> we should probably update this page: https://maemo-leste.github.io/pages/screenshots.html
<Entitlement> Wizzup - [ Screenshots - Maemo Leste ]
<uvos> so imo hildon-desktop can go to, as well as hildon-im*, and sdl seames very safe.
<uvos> devel connui is still very buggy
<uvos> (cellular stuff)
<uvos> libhildon needs to go with hildon-im* (together or not at all)
<uvos> mce can be promoted
<uvos> thats it i think
<uvos> except gps idk status there
<uvos> rest needs to stay imo
<Wizzup> yes, devel connui is not ready
<uvos> not sure what countdowntimer is doing in devel at all
<Wizzup> not sure what the diff is
<parazyd> uvos: http://ix.io/3lvW
<parazyd> This is current devel
<uvos> i think these periferal apps can skip devel
<uvos> or is countdowntimer important somehow?
<Wizzup> countdowntimer is 'my' app
<Wizzup> it might just never been moved over since I am always on devel
<parazyd> Yeah also I'm the only one doing this promotion maintenance
<parazyd> So for sure I miss stuff
<uvos> stuff like countdowntimer or osso-caluclator dosent need to be in devel first at all imo
<parazyd> ++
<parazyd> Except if it had a -devel dependency
<Wizzup> yeah that's probably exactly what happened
<Wizzup> wrt my qt5 work
<uvos> yeah ok
<parazyd> mhm
<parazyd> Wizzup: You ok with moving h-d to main?
<parazyd> This implies all the shortcut and h-i-m stuff
<uvos> devl h-d is inidpendant of him
<Wizzup> Do we have the shortcuts for the n900 working still?
<uvos> devel him that is
<uvos> Wizzup: yes
<Wizzup> ok
<Wizzup> then sure
<uvos> Wizzup: not vm tho
<uvos> Wizzup: problem was vm has no leste-config
<Wizzup> that should be fixable
<parazyd> Yeah VM only has the -common
<parazyd> Sure
<parazyd> But not trivial through upgrade
<parazyd> Only for new images
<uvos> probubly unimportant
<uvos> vm is for developers
<Wizzup> would be nice to have a config for it still though
<Wizzup> and yeah probably ok if upgrade doesn't pick it up
<uvos> just copy n900 config
<uvos> then its the same as before
<uvos> (shortcuts.ini)
* Wizzup hopefully almost done with migration to working n900
<Wizzup> then the next things are d4 modem debugging (sim not seen on reboot, data only working sometimes with ofono), libicd ofono async data setup, pulse policies
<Wizzup> uvos: do you recall what has to be done to have headphone jack detection on the d4
<uvos> yeah sure
<Wizzup> could we document that somewhere (here is ok, I can make a ticket)
<parazyd> Wizzup: Yeah lmk please when you figure that modem thing
<uvos> so the android kernel uploads a firmware to cpcap (that runs some sort of rtos from rom)
<parazyd> Wizzup: That "blocks" clean GPS
<Wizzup> parazyd: that is not 'ofono does not detect modem is already online' fwiw
<uvos> and it dose mostly everything for the kernel
<parazyd> Well
<uvos> so we dont know how plug detection works
<parazyd> I had hoped it's connected
<Wizzup> uvos: how large is this firmware?
<uvos> because fw is closed source
<uvos> Wizzup: pretty small
<Wizzup> do you have the file?
<uvos> Wizzup: its an app for the rtos after all
<uvos> Wizzup: not full fw
<uvos> its integrated into dts as hex iirc
<Wizzup> I wouldn't mind throwing it in ida
<uvos> its not that simple
<uvos> the android kernel has lots of code to interface with the rtos
<uvos> maybe the nxp datasheet says how to do plug detection without the cpcap-uc
<uvos> as the nxp chip dosent have that
<uvos> maybe it would be better to do that (if registers align)
<Wizzup> is there a way to probe the states and compare before/after or something?
<uvos> sure you could read the register space of the chip
<uvos> and see if it changes when you plug stuff in
<uvos> you still need to enable the itterupt on that channel somehow tho
<Wizzup> tmlind: do you have any more info / suggestions here?
<sicelo_> (yay, fm transmitter now working nicely)
<Wizzup> leste?
<sicelo_> after hardware 'fix'
<Wizzup> Do you use the alsa way, or is it picked up by pulse now
<parazyd> uvos: btw. did you get my message earlier about megapixels (the camera app)
<sicelo_> sorry ... this is on fremantle. the fm transmitter was hardly usable now because the antenna contacts were no longer making good contact with the board. as for Leste, i haven't played with the fm transmitter again since the alsa days
<Wizzup> ok
<uvos> parazyd: yes neat :)
<Wizzup> we probably want to see how we can make it work with pulse in the near future
<parazyd> IIRC there are resources for Raspberry Pi and pulse regarding fmtx
<sicelo_> Pali: https://paste.debian.net/1195937/ - looks fine?
<Entitlement> sicelo_ - [ debian Pastezone ]
<Pali> "Truncating file kernel_tmp to 1788928 bytes..." check that 1788928 is that correct number in header
<Pali> "kernel-RX-51:2204_2.6.28-20103103+0m5..." "Error: Renaming failed: Invalid argument" --> ehm this is FAT32 which does not support ':' in name
<Pali> so ignore this error
<sicelo_> yes, the size is correct
<Pali> ok, then it is working!
<sicelo_> it was also correct before, just saying ;)
<Pali> but now it is read from that header
<Pali> I have already tested it via nandsim.ko on x86
<sicelo_> cool :)
<Wizzup> anything I can run on my n900s?
<Pali> and I have already working code for flashing via nandwrite
<Wizzup> oh, cool
<Pali> tests in nandsim passed
<Pali> I'm going to push it to git
<Pali> but I have not tested it on real n900
<parazyd> Sweet!
<Pali> so if you are going to play with flashing, beware that erasing nand may cause issue and need recovery!
<parazyd> sicelo_: So we could figure out how we could keep updating u-boot from Leste userspace while keeping Fremantle intact :)
<uvos> byw parazyd
<uvos> you broke n900 on main
<uvos> the unswaped xkb-data is in main
<uvos> but that breks n900 without the him stuff thats sill in devel
<uvos> (enter key wont work - at all)
<parazyd> I'm moving stuff over from devel just now
<uvos> ok
<parazyd> It'll make it for tomorrow's images at least
<uvos> this partially upgrading main is a problem
<uvos> its broken main quite often now
<uvos> i think main has been more broken on avg becaus of this factor...
<parazyd> Yeah I talked about this last week
<Wizzup> what do you mean quite often? what other parts did I miss?
<parazyd> I'll try to have non-devel cards ready for testing
<Wizzup> we could make some of this atomic supposedly, with some effort
<Wizzup> but it sounds like it will mostly go wrong if people upgrade while we are moving stuff?
<parazyd> Wizzup: No it's not about that
<Wizzup> ok
<uvos> its happend with touchscreen buttons twice at least
<uvos> leste-config updating at different times than kernel
<uvos> Wizzup: its about forgeting dependancys like new kernel needs new config or new xkb keymap needs new him
<Wizzup> ok
<uvos> Wizzup: months later parazyd then upgrades some packages, forgeting sutch dependancys
<Wizzup> back in 20 mins or so
<uvos> Wizzup: that then breaks stuff, often on specific devices so he dosent see it
<uvos> Wizzup: idk how to solve this
<Wizzup> another stage :)
<Wizzup> leste-testing
<Wizzup> ok - bbiab
<Wizzup> my n900 migrated though, so that's nice
<Wizzup> Pali: so you do not need
<Wizzup> + more info?
<Pali> wait, I'm going to push full flashing support and you can play with it :-)
<Wizzup> check :)
<sicelo_> nice! not sure i can play with that right away, but good to know
<Pali> pushed into git!
<Entitlement> Pali - [ GitHub - pali/0xFFFF: Open Free Fiasco Firmware Flasher for Maemo devices ]
<Wizzup> ok, need to run an errand outside now
<Pali> parazyd: u-boot is stored in kernel mtd area together with kernel... so to safely update just u-boot you need to dump kernel mtd area to local file, update uboot in this local file and then flash local file back to the kernel mtd area
<parazyd> oh ok, makes sense
<Pali> kernel starts at fixed location 262144
<parazyd> So it'd always be safe in theory
<Pali> so before it is u-boot
<parazyd> sicelo_: ^ If you want to make a script... Here's your chance :p
<Pali> and via new patches in 0xFFFF you can play with dumping and flashing image
<Pali> I think now you have everything needed for updating u-boot from any OS which can access /dev/mtd*
<parazyd> Definitely seems like it
<Pali> in 0xFFFF is also detection code if binary file is u-boot or zImage linux kernel
<Pali> so you can add similar check to detect if user has in kernel mtd area u-boot or not
<parazyd> *nod*
<Pali> if it does not have u-boot it is zImage kernel... and it its size is less than maxsize - 262144 then you can "append" it into newly flashing uboot
<Pali> so user does not loose its kernel which is currently flashed
<kek> parazyd opened an issue: https://github.com/maemo-leste/bugtracker/issues/525 (Create n900-uboot package)
<kek> parazyd labeled an issue: https://github.com/maemo-leste/bugtracker/issues/525 (Create n900-uboot package)
<kek> parazyd assigned an issue: https://github.com/maemo-leste/bugtracker/issues/525 (Create n900-uboot package)
sicelo_ has quit [Ping timeout: 252 seconds]
<Pali> btw, it would be nice if somebody finds some time to finish mmc flashing
<Pali> it is the last missing thing in 0xFFFF
<parazyd> ok, moved most to main
<parazyd> I'll promote the GPS stuff next week
<uvos> btw E: Unable to locate package countdowntimer
<uvos> is wierd
<uvos> both happens on all device
<uvos> s
<uvos> with -devel
<kek> parazyd labeled an issue: https://github.com/maemo-leste/bugtracker/issues/526 (Feature: Custom vibration intensity on key/ts press events)
<kek> parazyd labeled an issue: https://github.com/maemo-leste/bugtracker/issues/526 (Feature: Custom vibration intensity on key/ts press events)
<kek> parazyd opened an issue: https://github.com/maemo-leste/bugtracker/issues/526 (Feature: Custom vibration intensity on key/ts press events)
<uvos> parazyd: mce allows this
<uvos> you can set it in 99-user.ini
<parazyd> uvos: oh he built that for -devel in extras...
<uvos> upps :P
<parazyd> uvos: Would you mind adding that info to the ticket? Then I can write about it on the wiki
<parazyd> I notice Bionic is a bit too shaky :D
<uvos> parazyd: we set this per device too
<uvos> anyhow i added a comment to the issue
<parazyd> Thank you
<uvos> note that on mapphones the vibration motor is pretty uncontroled
<uvos> the kernel uses a low accuracy timer for that
<uvos> and it gets affected greatly by if the omap proc goes to sleep
<uvos> so the vibration pattern is very inconsistant
<uvos> android avoids this problem by using one of the co-processors to do this
<uvos> (i think one m3)
<uvos> Wizzup: btw there is a really really silly way to get plug detection to work on d4
<uvos> Wizzup: the lte modem has the full dirver stack for cpcap-mcu incl. the firmware and everything in its kernel.
<uvos> Wizzup: so you can use sysfs on the modem to upload firmware and read out the plugged state
<uvos> Wizzup: in theroy anyways i havent tryed this with that firmware macro, but others have worked for me in the past
<uvos> so you could write a program that runs on the omap2 to ping the omap4 over the network when the headphones get plugged in
jonsger has quit [Ping timeout: 260 seconds]
Pali has quit [Ping timeout: 240 seconds]
jameshjacks0njr has quit [Ping timeout: 245 seconds]
jameshjacks0njr has joined #maemo-leste
Pali has joined #maemo-leste
<Wizzup> uvos: heh
cr4y1 has joined #maemo-leste
halftux has quit [Quit: leaving]
<Entitlement> Pali - [ maemo.org - Porting L4-embedded kernel ]
<Pali> in 2006 there was already discussion... "header "NOLO img" + kernel image size an kernel stats at 0x800."
uvos has quit [Ping timeout: 268 seconds]
cr4y1 has quit [Ping timeout: 268 seconds]