libera/#devuan-arm/ Sunday, 2023-07-16

onefangOne is larger than the BIOS can handle for booting maybe?04:49
gnarfaceonefang: they're both ARM devices, so there's no BIOS, and the one that isn't booting is the smaller of the two... and that one booted fine on another A64 board with a different OS image09:27
gnarfacestill, maybe it's somehow defective or incompatible but i'm struggling to see how09:28
agnelignarface: what is your normal boot procedure for the source one?09:51
agnelior even better - when you upgrade the kernel09:51
agneliany acitivies with boot loader?09:52
agneliI am using uboot and hmmm I am kinda sure after dd it shoudl work09:52
agneliyou dd'ed whole card, didn't you? not just the partition?09:53
agneliand speaking about sdcards, I had those strange read only moments on my sdcards, I think we discussed few times... seems I solved it, I red somewhere it might be poor electrical contact so I applied some conact cleaner to both card and the reader, so far so good...09:58
gnarfaceagneli: i tried it several different ways, including dd-ing the whole thing, or just the part before the first partition. same results both times. i'm forced to conclude the device is allergic to the sd card itself somehow, it's just weird because the same sd card is working fine in another very similar device10:37
agnelido you have any messages?10:38
agneliit is just so bizzare, I am curious10:39
agneliand in that very similar device does it begins booting?10:39
gnarfaceugh, didn't save it specifically though i probably should... just kernel panic then boot loop. complaints it can't find root device, suggests i should specify an init on the kernel command-line10:40
gnarfacebut it couldn't be throwing that error if it couldn't find the device10:41
gnarfaceand yea the other board just boots fine10:41
gnarfacethey're using different kernel and rootfs though10:41
agneliwould be interesting to see those messages in detail...10:42
gnarfacei'll have to hook a serial terminal up or something10:42
agneliach...10:43
agnelithis is why I have serial hooked up at all times, you never know :)10:43
agnelido you care to share models of both cards, please?10:44
gnarfaceuh... i can try10:44
gnarfacedidn't really save them but i can tell you what the label says10:45
gnarfacethe working one says "samsung 128 pro endurance" (white+black label) and the non-working one just says10:46
gnarface"micro SD XC 64GB"10:46
gnarfacebut it's from pine64's house label10:46
gnarfacehowever ... both devices are A64 based, also from pine6410:46
agneliso u copied 128 GB card to 64 GB10:47
agneliI recommend you do use this 3f thing10:47
agnelito check the 64 GB card10:47
agneliif it is really 64 GB10:47
gnarfacewell yes, but there was only 7GB of data on it, and the second partition that would go over the end, i did try recreating it and just copying over the contents to the smaller disk, i tried it more than once in fact. same results10:48
agneliyou have only one partition on 128 GB card? if yes what is the % of space used10:48
gnarface2 partitions but the first partition was only 100MB10:48
gnarfaceboth partitions nearly empty10:48
gnarfacejust /boot/ (100MB) and / (the rest of the disk)10:48
agneliand you say the 64 GB card on a different device works sort of OK?10:49
gnarfaceworked 100% fine on the other device. and on the one that wasn't working, i tried BOTH bootloaders10:49
agneliand after copying are you able to mount that 64 GB card on some othere device?10:49
agnelifsck does not complain?10:50
agnelican you ready and write to it?10:50
gnarfaceyea, mounted it and verified10:50
gnarfacei even tried once just writing the whole disk and letting it run over the end and fscking the filesystem just to see if my problem was in the filesystem recreation10:50
gnarfacesame result though10:50
agneliso it all worked?10:51
gnarfaceyea the 64GB card seems fine and boots in a A64+ board, but fails to boot in a pinebook based on the exact same A64 SoC10:52
gnarfacei can mount it, i can fsck it10:53
agneliech this must be sth very simple...10:53
gnarfacei'm about to try badblocks on it, but dd and tar threw no errors10:53
agnelinah I think you did check all possible things10:53
agneliiiuw it does boot10:53
gnarfacei'm starting to think it's just gotta be gremlins but this is a very weird one10:54
gnarfacemaybe i should try polishing some contacts too10:54
agnelibut cannot find the root filesystem10:54
agnelihow do you pass root filesystem, please?10:54
agneliUUID or /dev/sdX ?10:54
gnarfaceit's /dev/mmcblk0p210:55
agneliand u r sure the device is OK?10:55
gnarfacei've imaged it several times now, dd doesn't complain and i can always mount and read the filesystem afterwards10:55
agnelion my ac100 i am getting sdcard as 1 device and internall emmc second10:55
agneliidk why :)10:55
agnelileave the image, please, I do not think there is anything wrong with it10:56
agneliat least for now :)10:56
agnelimy bet is the /dev/mmc think is the problem10:56
gnarfacei'm giving up on it for now but maybe i'll try dumping the full text of the failed boot to a file tomorrow10:56
gnarfacethere's no way a change to microsd model could somehow change the mmcs' physical orders right?10:57
agneliI would bet that you need to do /dev/mmcblk _1_ p210:57
gnarfaceonly thing i could think of is if my boot.scr was somehow wrong for the different disk but i couldn't see how that'd be possible10:57
agnelithis is exactly what I am saying10:57
gnarfacesince they shouldn't have changed orders10:57
agneliidk why but that happes to me10:57
agnelidepends on the kernel even10:58
agnelii think the speed at which devices are initiated by uboot10:58
agnelimatters...10:58
gnarfacehmm.... i did consider trying extlinux to see if it gives me less trouble but i haven't tested yet10:58
agneliso I think your card is just slower10:58
gnarfacei didn't know that was possible. maybe extlinux will help then10:58
agneliand gets initialized later10:58
agnelihence 110:58
agnelinot 010:58
agneliextlinux still has uboot inside, no?10:59
gnarfacethe 64GB card is probably slower, but i didn't think it'd change orders because of that10:59
gnarfacei think in this case extlinux is inside u-boot but i'm not clear on specifics10:59
agnelithis is why I prefer UUID10:59
agnelifor any usb and msd and etc10:59
agneliI am not sure my explanation is correct gnarface but I did bang my head against the wall because of such issue many times11:00
agneliso I wasy pass root as UUID :)11:00
agneli*say11:04
gnarfacei think in this case if your theory is correct it may actually be about the boot.scr's mmc 0:1 / mmc 1:1 specifier11:25
gnarfacebut i think i did see an error like that scrolling by that may be an indication your theory is correct11:26
gnarfaceif changing the sd card had somehow changed the physical order of it with respect to the emmc, then the boot.scr would no longer be accurate11:26
gnarfacethe other device i was booting with extlinux instead of a boot.scr, but it also had no internal storage so that's two counts of irrelevance11:27
gnarfacethere are very few other material differences between these two devices so it seems like a viable suspect anyway11:29
gnarfacethanks for that11:29
agneli"it may actually be about the boot.scr's mmc 0:1 / mmc 1:1 specifier"11:48
agneliyes11:48
agnelilet me know gnarface when you have time to test it, please ;)12:11
agneliand I backtrack on the mmc x:1 specifier12:11
agneliif that would be the case it would not boot at all12:12
agneliunless it is not complainig about missing root but it in fact complains about being unable to find *.scr file12:13
agnelibut unless you have some special uboot compilation it should not be relevant12:13
agneliuboot scans everything it can find for the scr script...12:13
agneliach but then it needs to load... OK12:14
agneli:)12:14
gnarfaceagneli: "Kernel panic - not syncing: No working init found..."16:01
gnarface??16:01
gnarfaceit reads the boot.scr, and it even finds the kernel using that info16:01
gnarfacethe kernel starts booting, i see my boot penguins16:01
gnarface(turns out the "unable to use mmc 1:1" thing was a u-boot error that's irrelevant)16:02
gnarfaceit says to try passing init= option to kernel, but i figured that's a red herring because the same install didn't need that on the other microSD16:03
gnarfacecould i be wrong about that?16:03
agnelii think i am passing that one...16:03
agnelilet me boot my device and check16:04
gnarfacei've never had to before16:04
gnarfaceroot= yes, but not init=16:04
gnarfaceis that still something that could be caused by nothing more than a speed difference in the media?16:05
agnelii doubt16:05
agneliach...16:06
agneliand what about uboot16:06
agneliis this the same uboot16:06
agnelithe same compilation?16:06
agnelithe same version?16:06
gnarfacei even have rootwait16:06
gnarfaceyea, same u-boot on both microSDs16:06
gnarfacenot a very recent version16:06
agneliyou have to have an uboot installed on some bootsector on internal storage16:07
agneliat least on my device16:07
agnelii remove all cards and still I will see it booting16:07
agneliis that the case for your boards?16:07
agnelii am pretty sure pbp has internal storage16:08
gnarfaceit's an old pinebook not a pro, and yes it has internal storage but i have a different u-boot version there, and it's much smaller. if it was booting into that i'd notice (this time. that did screw with me once in the early days)16:08
gnarfacethe bare SoC A64 board however has no internal storage and does not boot without microSD16:09
agnelihttps://paste.debian.net/plain/128603016:10
agnelithis is me :)16:10
agnelisay hi gnarface :)16:10
gnarfaceheh, fancy16:11
gnarfacei see no init= here...16:11
agneliso I am loading initrd into memory and uboot passes it to kernel16:11
agneliit is there Sir16:11
agnelishow me yours please16:11
gnarfaceyea, i see the initrd= but i'm not even using one of those16:11
agneliand from what you say I think you _do_ have 2 different uboots16:12
agnelione on the pinebook is old16:12
gnarfaceuh, yea... here, this is it i think https://paste.debian.net/1286031/16:12
agneliand it is the one that is not working with your copied card16:12
agneliwhy the hell it works with the original idk16:13
agnelibut all of these messages16:13
agnelimean order of devices is OK16:13
agnelibut again kernel restarts the devices16:14
agneliI had such a situation with pre 3.10 kernels16:14
agnelithat order was different for uboot and different for kernel16:14
* agneli recomends adding that load initrd bit...16:15
gnarfacebut i don't have an initrd.img16:16
gnarfacei statically built the drivers in16:16
agneliach ok16:16
agneliand UUID for root16:16
agneliyou see the penguins - that means it cannot find / and therefore init16:17
agneliif UUID would not help I am ready to say there is sth wrong with the controllers or something...16:18
gnarfacehmm, well it's well known there's "something wrong" with these controllers, and being mysteriously unable to read properly rated cards is one of them16:20
gnarfaceone of various issues16:20
gnarfaceusually the issue doesn't crop up with their own cards though16:21
gnarfaceand usually it can't read /boot either16:21
agnelicard is no name so it is not great16:21
gnarfacewhat's weird is that it can definitely read /boot but apparently not /16:21
agneliit is not reading /boot Sir16:21
agneliit is reading mmc 0:116:21
gnarfaceit has to be, because it starts the kernel, and that's where the kernel is16:21
agnelino16:22
gnarfacekeep in mind this is a non-pro, the boot order is different16:22
agneliit loads first partition from the media16:22
gnarfacethe pro boots the emmc first in hardware, but this one actually boots the sd first in hardware16:22
agneliload mmc 0:116:22
agnelifromally it is not /boot16:22
agneliand for some reason with this card kernel reorders it16:23
agnelithis is my bet16:23
gnarfacehmmm16:23
agneliuntil proven by the fact that UUID will not change anything16:23
agneliaaaaameeeeeen :)16:23
agneliunfortunately one of uboot devs I know is not around :(16:24
agneliso we are alone...16:24
gnarfacewell, looks like you may be right about this, because it seems like i must have updated the emmc u-boot after all16:32
gnarfaceso your theory is it's actuall skipping the microSD, then booting the eMMC which... loads the microSD anyway but then changes its order so it can't find root after that?16:35
gnarfacetruthfully that sounds like a problem with u-boot's behavior but i remember early on everyone was having problems with them being in different orders on different batches of the same model, so maybe this is the same issue still16:36
gnarfacemaybe it's the controller misbehaving still in the same way16:36
gnarfacejust a new outcome from the same problem16:37
gnarfacebut if that's the case, then fixing this on the microSD won't do anything, i'll have to update the emmc one16:38
gnarfaceand then after that it won't be able to sneakly boot both anymore16:38
gnarfacehmmm....16:38
gnarfacei wish there was a way to just force the order so it doesn't change16:39
agnelihmmm16:51
agnelimy uboot is configured on purpose to look for *.scr file16:51
agneliif it does not find anything on emmc it looks at the card16:52
agneliand I will surely look in the future in an option that it looks at the card frist16:52
agneliand if not found then on emmc16:52
gnarfaceis there a way to make the u-boot shell say which disk it's currently on?16:54
agneliugh, idr, but there was even a way to list16:58
agnelii built my script loooong ago16:59
gnarfaceagneli: this hypothetical disk order switch, do you think the status at the u-boot shell will represent that change, or do you think it's happening after that?20:39
agneliidk really, I just heard from a colleague that this is not true what I am saying21:12
agnelibut I do remember very well having problems with guessing what drive is actually what21:13
agnelii once even ereased my emmc because I gave wrong device to the installer21:13
agneliand device was the one I was using daily on other (fact is: newer) distro21:14
agnelignarface: why do not you just test: boot it or mount it, issue blkid and pass the root as UUID?21:15
agneli16:39 < gnarface> i wish there was a way to just force the order so it doesn't change - well UUID bypasses that issue21:16
agnelithen you have everything mounted in proper places21:16
agneliand you can even use same sd card in other ports(like USB) and other devices and all will be just jazzy and sexy21:16
gnarfaceagneli: yea, but then if i pull it out the emmc won't boot22:03
gnarfacei definitely had a problem with the order not being as expected, but to my knowledge it had never been expected to change on the fly22:04
gnarfaceit was one of those things i was told changed on a per device basis, usually between different batches but not always22:04
gnarfacei can definitely do it to test the theory, and i probably will later, but if the theory is true that just gives me a different problem22:05
gnarfaceso that sabotages the primary goal which was to switch these cards22:06
gnarfacewithout regressions in expected behavior22:06
gnarfaceas that would basically make the emmc only capable of booting the rootfs of one particular microsd22:08
gnarfacei could make it the right microsd, but i wouldn't be able to boot the rootfs on the emmc just by removing the microsd anymore22:09
gnarfaceand i wouldn't be able to easily use a different microsd either22:09
gnarfacei was hoping to avoid having to build a new u-boot but maybe that's what it has come down to22:10
gnarfacethe discouraging thing is that i might do all this and find out the problem with the microsd is inherent and not fixable in software... which is possible, even if it seems unlikely because the same card booted a different image on a different device of the same chip family fine22:11

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