2023-02-08.log

- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:40)00:30
minuteok, built mutter and gnome-shell from git on reform, and they work00:37
- mtm (QUIT: Ping timeout: 252 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)01:02
- ajr (QUIT: Quit: WeeChat 3.7) (~ajr@user/ajr)02:17
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)03:08
- GNUmoon (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)05:49
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)05:51
+ MajorBiscuit (~MajorBisc@145.94.153.3)09:57
* wielaard -> mjw10:11
+ bgs (~bgs@212-85-160-171.dynamic.telemach.net)10:14
+ S0rin (~S0rin@user/s0rin)12:35
mjwminute, Missed you at Fosdem. It was so chaotic, but certainly fun. Also I already have my mnt reform of course. But it would have been nice to tell you in person how much I like it. So lets just virtually say the reform rocks, thanks! :)12:49
mjwHope you had a good time.12:49
- mtm (QUIT: Ping timeout: 248 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)13:03
minutemjw: thank you very much! it was very crowded and chaotic, but worth it!13:10
- S0rin (QUIT: Ping timeout: 248 seconds) (~S0rin@user/s0rin)13:43
+ S0rin (~S0rin@user/s0rin)13:57
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)15:10
pandora[m]<mjw> "minute, Missed you at Fosdem. It..." <- I couldn’t even find the MNT booth 🙈15:20
mjwHe was "embedded" :)15:22
mjwhttps://mastodon.social/@mntmn/10980802428710587315:26
mjwI did walk past a couple of times, but was either in a hurry to get to some talk and/or it was very crowded and I couldn't even reach the stand.15:27
minutepandora[m]: there was no mnt booth!15:49
pandora[m]That may explain my inability to find it :D15:58
minutexktr: are you here? asking because of your som debugging problems16:07
xktrYessir.16:44
xktrAnd to reduce my ignorance by taking in the technical discussions.  I obviously have a lot to learn!16:46
minutexktr: cool, i just wrote you back via the support system btw17:12
xktrminute: Affirmative!  I'll get it set up and try it out here in a moment.  Thanks again!17:26
xktrminute: To start, should I be using a particular system image?  v3?  Or something more recent than that?17:39
minutexktr: well, v3 is really only a moniker for something we have been using for a long time now, where we changed the whole approach to a cleaner integration with debian17:40
xktrAt the moment, I have v2 system and recovery on two USB sticks.17:40
minutev2 is highly unrecommended17:40
minutexktr: here are the latest images https://source.mnt.re/reform/reform-system-image/-/jobs/1119/artifacts/browse/reform2-imx8mq/17:41
xktrUnderstood!  I still have v3 system and recovery images -- which one should I write first to run the steps you provided?17:41
minutexktr: i would use rescue v3. if you have a v3 lying around, it should be fine.17:41
xktrRescue it is!17:41
xktrI'll pull from your link to make sure I'm totally aligned.17:42
minutexktr: ok cool. also check the version numbers of vmlinuz/initrd after flashing to usb stick17:42
minutexktr: in my guide i wrote 6.1, but not sure if that is correct for the latest version atm17:42
minuteso you might need to adjust the filenames in the load commands17:43
xktrACTION nods 17:46
xktrUnderstood!17:46
xktrDownloading reform-rescue-system.img.gz; that'll take a bit.17:51
+ andreas-e (~Andreas@2001:861:c4:f2f0::c64)17:55
+ ae (~Andreas@2001:861:c4:f2f0::c64)17:55
- andreas-e (QUIT: Client Quit) (~Andreas@2001:861:c4:f2f0::c64)17:56
- ae (QUIT: Client Quit) (~Andreas@2001:861:c4:f2f0::c64)17:56
+ andreas-e (~Andreas@2001:861:c4:f2f0::c64)17:56
- andreas-e (QUIT: Client Quit) (~Andreas@2001:861:c4:f2f0::c64)17:57
+ andreas-e (~Andreas@2001:861:c4:f2f0::c64)17:57
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:40)18:23
- MajorBiscuit (QUIT: Ping timeout: 260 seconds) (~MajorBisc@145.94.153.3)18:26
+ ajr (~ajr@user/ajr)19:04
xktrminute: I gave the steps a try and they all seem to work except for booti at the end.  This is what I get:19:17
xktr=> booti 0x40480000 0x44000000 0x5000000019:18
xktrMoving Image from 0x40480000 to 0x40600000, end=4206000019:18
xktrWrong Ramdisk Image Format19:18
xktrRamdisk image is corrupt or invalid19:18
minutemhmm19:18
minuteactually you could try without a ramdisk first, not sure how critical the modules are19:19
minutei.e. you can try booti 0x40480000 - 0x5000000019:19
xktrThat seems to work:19:20
xktr=> booti 0x40480000 - 0x5000000019:20
xktrMoving Image from 0x40480000 to 0x40600000, end=4206000019:20
xktr## Flattened Device Tree blob at 50000000 Booting using the fdt blob at 0x50000000 Using Device Tree in place at 0000000050000000, end 000000005000c58a19:20
xktrStarting kernel ...19:20
minutebooting or not?19:20
xktrIt seemed to hang there for a few seconds, and it reset itself.19:21
minuteoh.19:21
xktrBack to the => uboot prompt.19:21
minuteah, looks like one has to pass the size for the ramdisk19:22
minutesee here https://u-boot.readthedocs.io/en/v2021.04/usage/booti.html#example19:22
xktrACTION opens the URL19:23
minutethey load the ramdisk last, and after load the size is in the variable $filesize19:23
minuteif you do: print fdt_addr_r19:23
minuteis that set? and print kernel_addr_r and print ramdisk_addr_r ?19:23
minuteif they are set, then you can use these variables instead of the magic constants i gave you19:24
xktrThose three don't appear to be set:19:26
xktr=> print fdt_addr_r19:26
xktr## Error: "fdt_addr_r" not defined19:26
xktr=> print kernel_addr_r19:26
xktr## Error: "kernel_addr_r" not defined19:26
xktr=> print ramdisk_addr_r19:26
xktr## Error: "ramdisk_addr_r" not defined19:26
xktr=>19:26
minuteok, old u-boot19:26
xktrACTION nods19:27
minuteif you do: setenv fdt_addr_r 0x5000000019:27
minuteand then saveenv, does that work?19:27
xktrACTION gives it a try19:28
xktr=> setenv fdt_addr_r 0x5000000019:29
xktr=> saveenv19:29
xktrSaving Environment to MMC... Writing to MMC(0)... OK19:29
minuteah nice19:29
xktr:D19:29
minuteso we can set these variables and save them for later use19:29
minuteso you can do: setenv kernel_addr_r 0x40480000; setenv ramdisk_addr_r 0x4400000019:29
minuteand saveenv again19:30
minutenow, booting should be: load usb 0 $fdt_addr_r dtb; load usb 0 $kernel_addr_r vmlinuz... (substitute the filename); load usb 0 $ramdisk_addr_r initrd... (substitute the filename)19:31
minuteand if those all work: booti $kernel_addr_r $ramdisk_addr_r:$filesize $fdt_addr_r19:31
xktrI set those envs, saved, powered off, and powered on.  Saw the keyboard and trackball keys light up and there's video!  It showed the kernel init, and a bunch of these lines:19:34
xktr"begin: Running /scripts/local-block ... done."19:34
xktrThen ends up at a busybox prompt.19:34
xktr(initramfs), for about a half a minute, then resets.19:34
xktrIt's already done it three times.19:35
minuteoh!19:35
minutewell, that's progress19:35
xktrAmen!  :D19:35
minutethe reset is not so good. i wonder why it does that. sounds like watchdog19:35
xktrThere's nothing useful being output on the serial connectien.19:36
minuteah. in my above instructions, i did not include the setenv bootargs ... line. did you enter it anyway, or not, this time?19:36
xktrI haven't touched that one yet.  Here's what it's currently set to:19:37
xktr=> printenv bootargs19:37
xktrbootargs=ro no_console_suspend cma=512M pci=nomsi ro no_console_suspend cma=512M pci=nomsi  console=ttymxc0,115200 console=ttymxc0,115200 console=tty1 console=ttymxc0,115200 console=ttymxc0,115200 console=tty119:37
minuteoh, strange. these are from boundary i guess19:38
xktrLemme set it to what you gave me and give it another shot.19:38
minuteyup19:38
xktrIt's thinking!19:40
xktrI set bootargs to what you sent and saved it.  Trying a boot from poweroff.19:43
minutethinking?19:43
xktrYeah, the usb stick access light was blinking.19:44
minutebut you didn't get any output after booti or...?19:44
xktrIt appeared to start to boot, but reset.  I'm trying it again.19:45
xktrstarted file system check daemon to report status19:46
xktrThat's what it seems to be working on at the moment.19:46
xktrConsole font changed to the debian default.19:46
xktrusb light is blinking still.19:47
xktrreached target emergency mode19:47
xktrthis is the furthes I've gotten with this so far!19:47
xktrEmergency mode has been reached19:47
xktr:)19:48
xktr"press enter for maintenance or press ctrl-d to continue"19:49
minuteok, press enter19:49
minutethen do /usr/sbin/reform-flash-rescue19:50
xktrthe laptop keyboard and fromebuffer aren't responding, but the serial console did.19:51
minutehmmm, that's strange19:51
xktrACTION runs /usr/sbin/reform-flash-rescue19:51
minutehold on19:51
minuteactually cancel that command.19:51
xktrheh, I was gonna say:19:51
xktrroot@reform:~# /usr/sbin/reform-flash-rescue19:51
xktr/boot/flash.bin doesn't exist19:51
minutewell, that's good. it's possible that we need to make you one for 2GB ram19:51
minuteyou have a 2GB module, right?19:52
xktrYessir!19:52
minuteok, hang on19:53
xktrAye Sir!19:57
minuteok, CONFIG_DDR_MB is the magic thingie... lets see19:57
xktr:D19:58
minutebuilding you a new flash.bin19:58
minutedo you have ethernet?19:59
minutexktr: i mean, do you have ethernet connected to the reform? so you could download a file. otherwise you will need to boot again after importing the file19:59
minutexktr: anyway, here is a u-boot for you for 2GB: http://dump.mntmn.com/flash.bin.2gb20:01
minutexktr: actually with this, you could try booting directly from SD card another try. but it might be a hassle20:02
- mjw (QUIT: Killed (NickServ (GHOST command used by markw!~wielaard@gnu.wildebeest.org))) (~mjw_@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)20:02
minutexktr: but IIRC sd card booting did not output anything?20:02
+ wielaard (~mjw_@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)20:02
xktrminute: responding in order:  No ethernet at the moment, but I can rustle up a switch and cables if needs be;  will pull the flash.bin.2gb, and I'll write it with "dd if=flash.bin of=/dev/sdx bs=1024 seek=33"(right?); correct on SD booting, when the SOM is set to on, there's no activity on the serial console whatsoever.20:04
xktrminute: I don't mind hassle, so whatever you need done, just say the word!20:05
xktrok, flash image pulled, and writing now...20:07
minutexktr: ok, lets ignore the SD booting then. the dd write command is correct. but we will also need the file itself20:07
minutexktr: can you mount the second partition of the usb stick?20:07
minute(on your non-reform computer)20:07
xktrminute: Yep, will do!20:07
minutexktr: does it have a /boot? (my guess is it should have an empty /boot)20:08
minutexktr: if it has, you can copy flash.bin.2gb there, but rename it flash.bin20:08
minutexktr: for good measure, also mount the first partition and copy the new flash.bin there (overwriting the old one that is there)20:09
xktrminute: confirmed there's a boot/ in sda2, but it's empty.20:09
minute(should be on the root of the first partition)20:09
xktrwill do!20:09
minuteok so this should be something for reform-flash-rescue to work with, then.20:10
xktrok, the 2gb flash.bin has been put in part2/boot/ and overwrote flash.bin in part1/boot/20:12
minuteoh, part1 has a boot?20:12
minuteand there was no flash.bin on the root of part1, yes?20:13
xktrsorry, I mistyped -- part1 appears to have the boot assets -- here's the directory:20:14
xktrboot.scr20:14
xktrconfig-6.1.0-reform2-arm6420:14
xktrdtb20:14
xktrdtb-6.1.0-reform2-arm6420:14
xktrdtbs20:14
xktrflash.bin20:14
xktrinitrd.img-6.1.0-reform2-arm6420:14
xktrlost+found20:14
xktrSystem.map-6.1.0-reform2-arm6420:14
xktrvmlinuz-6.1.0-reform2-arm6420:14
xktrI overwrote that flash.bin with the 2gb one you provided.20:14
xktrpart2 is what appears to have a traditional root directory scheme.20:15
xktrusr, etc, dev, etc20:16
xktrso I replaced flash.bin in part1 and put flash.bin in part2/boot/20:16
minutegood20:17
minutethis is fine20:17
minuteso, try booting again (like last time when it worked), enter emergency shell and then try /usr/bin/reform-flash-rescue again. 20:18
xktrRoger that!20:18
xktrHere goes!20:20
xktrlsblk: /dev/mmcblk0p1: not a block device20:26
xktrlsblk: /dev/mmcblk0p2: not a block device20:26
xktrWARNING: This overwrites the bootloader on the eMMC rescue disk with the20:26
xktrbackup stored as /boot/flash.bin!20:26
xktrAre you sure you want to proceed? [y/N]20:26
xktrsay yes here?20:26
minutehmm, can you cancel and do lsblk and paste the output here?20:27
xktryep, sec...20:27
minutejust wanna make sure it'll write to the correct disk20:27
xktrroot@reform:/usr/bin# lsblk20:27
xktrNAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS20:27
xktrsda            8:0    1  15.1G  0 disk20:27
xktr├─sda1         8:1    1   488M  0 part20:27
xktr└─sda2         8:2    1     2G  0 part /20:27
xktrmmcblk0      179:0    0  14.6G  0 disk20:27
xktrnvme0n1      259:0    0 953.9G  0 disk20:27
xktrmmcblk0boot0 179:256  0     4M  1 disk20:27
xktrmmcblk0boot1 179:512  0     4M  1 disk20:27
minuteah yeah20:27
minutemmcblk0 is not partitioned, so it's fine20:27
minute(mmcblk0 is the emmc)20:27
xktrACTION nods20:27
xktrSuss!20:28
minutewell yeah, if you had network now20:28
minutethe script could do that for you20:28
minutebut i'm not sure how much of that works in emerg mode. maybe it just works though20:28
minutei.e. plug in ethernet and dhclient eth0 20:28
xktrShould I wait until I have access to a live ethernet connection and try then?20:29
minutewell i'm thinking, you have the usb stick20:30
minuteit has the same content20:30
xktrGive it a shot then?20:31
minutethis could work: `dd if=/dev/sda of=/dev/mmcblk0 status=progress`20:31
minutesda is a bit bigger than mmcblk0 but interesting data is only in the first 2.5G20:32
minutebut also, you can and should run /usr/sbin/flash-rescue and say yes to the first question, to get the bootloader updated.20:32
xktrAffirmative!20:33
xktrRunning flash-rescue..20:33
xktr1027+1 records in20:34
xktr1027+1 records out20:34
xktr1052488 bytes (1.1 MB, 1.0 MiB) copied, 0.284873 s, 3.7 MB/s20:34
xktrBootloader was successfully written to /dev/mmcblk0boot0.20:34
xktrDo you want to download and install the latest sysimage-v3 to eMMC as well?20:34
xktrThis step needs a working internet connection and either wget or curl installed.20:34
xktrWARNING: This overwrites partitions on eMMC, deleting all data.20:34
xktrAre you sure you want to proceed? [y/N]20:34
xktrSaid yes to the first question nad no to #220:35
xktrRunning dd... now20:35
xktrs/nad/no20:35
xktrdd is running now.20:35
minutecool20:37
xktrIf dd gets past 2.5GB, should I exit it out, or let it run until it fills mmcblk0?20:42
xktrLooks like its up to 6GB and counting.20:43
minutei think you can let it run20:44
xktrAye, I'll leave it alone then20:44
xktrmore fun:20:46
xktr7316759040 bytes (7.3 GB, 6.8 GiB) copied, 564 s, 13.0 MB/s[ 1391.280105] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s20:46
xktr[ 1391.294619] sd 0:0:0:0: [sda] tag#0 Sense Key : Hardware Error [current]20:46
xktr[ 1391.306592] sd 0:0:0:0: [sda] tag#0 Add. Sense: No additional sense information20:46
xktr[ 1391.319063] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 da 60 d8 00 00 10 0020:46
xktr[ 1391.331486] I/O error, dev sda, sector 14311640 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 220:46
minute meh20:46
xktr[ 1422.463283] usb 3-1: reset high-speed USB device number 2 using xhci-hcd20:46
xktr[ 1427.811152] usb 3-1: device descriptor read/64, error -11020:46
xktr[ 1443.427152] usb 3-1: device descriptor read/64, error -11020:46
xktr[ 1443.671151] usb 3-1: reset high-speed USB device number 2 using xhci-hcd20:46
xktr[ 1449.059150] usb 3-1: device descriptor read/64, error -11020:46
minuteok, instability with the usb device20:47
minuteat least you were able to copy a bunch of stuff20:47
minuteand flash the bootloader.20:47
xktr...aaand it kernel panicked20:47
xktrhere comes the reset20:47
minutei wonder what happens if you reset now20:47
minutedo you get u-boot output over serial?20:47
xktrI do, and it's it's familiar:20:48
xktrU-Boot SPL 2018.07 MNT Reform 2023-01-25 (Feb 08 2023 - 20:00:28 +0100)20:48
xktrSetting voltages20:48
xktrconfig to do 3200 1d training.20:48
xktrTraining FAILED20:48
xktrconfig to do 667 1d training.20:48
xktrTraining FAILED20:48
xktrconfig to do 3200 2d training.20:48
minuteargh20:48
xktrTraining FAILED20:48
xktrARM_PLL        1000 MHz20:48
xktrSYS_PLL1_800         799 MHz20:48
xktrSYS_PLL1_400         399 MHz20:48
xktrSYS_PLL1_266         266 MHz20:48
xktrSYS_PLL1_200         199 MHz20:48
xktrSYS_PLL1_160         159 MHz20:48
xktrSYS_PLL1_133         133 MHz20:48
xktrSYS_PLL1_100          99 MHz20:48
xktrSYS_PLL1_80          79 MHz20:49
xktrSYS_PLL1_40          39 MHz20:49
xktrSYS_PLL2_1000         999 MHz20:49
xktrSYS_PLL2_500         499 MHz20:49
xktrSYS_PLL2_333         333 MHz20:49
xktrSYS_PLL2_250         249 MHz20:49
xktrSYS_PLL2_200         199 MHz20:49
xktrSYS_PLL2_166         166 MHz20:49
xktrSYS_PLL2_125         124 MHz20:49
xktrSYS_PLL2_100          99 MHz20:49
xktrSYS_PLL2_50          49 MHz20:49
xktrSYS_PLL3             25 MHz20:49
xktrUART1                25 MHz20:49
xktrUSDHC1              199 MHz20:49
xktrQSPI                399 MHz20:49
xktrIt's dead, Jim20:49
minuteok, it is possible to revive it but not with reform unfortunately. i am confused why the training wouldn't work though, as i've made you a bin for a 2G module20:50
minute(it would be possible to fix it ~if~ your sd card boot was working, but alas, it is not)20:51
minutei suggest we make you a UPS label and mail the whole thing to us, and i will fix it20:52
xktrIf you think the SOM can be reset with one fo those Nitrogen carrier boards that Mouser sells, I can pick one of those up too.20:53
minutexktr: yes, you can do that with those. but they're quite pricey, no?20:54
xktrBut whatever makes it easy for you.  I'm grateful for your help.20:54
xktrEUR 212 -- ehhh20:57
xktrcan I PM you?20:57
minutexktr: PMs are not so good because hard for me to track later. i would suggest continuing the support case. we'll make you a UPS label and i will take a look. i think that's better because the SD stuff needs to be fixed anyway20:58
xktrUnderstood.  Should I send the 4GB SOM along as well?20:59
minutexktr: sure, that would be good20:59
xktrI'll wait for your emails then and continue the support case.21:00
xktrVielen dank, mein Herr!21:00
minutesure, sorry that it didn't work out21:00
xktrGood things come to those who wait.  :)21:00
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)21:48
- buckket (QUIT: Quit: buckket) (~buckket@pdp8.buckket.org)21:52
+ buckket (~buckket@pdp8.buckket.org)22:05
- andreas-e (QUIT: Quit: Leaving) (~Andreas@2001:861:c4:f2f0::c64)22:15
minutedatapoint: keyboard uses 0.25W power. 0W when sleeping22:20
- bgs (QUIT: Remote host closed the connection) (~bgs@212-85-160-171.dynamic.telemach.net)22:46
- Gooberpatrol66 (QUIT: Read error: Connection reset by peer) (~Gooberpat@user/gooberpatrol66)22:53
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)22:56
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:40)23:19

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