**** BEGIN LOGGING AT Mon Jan 29 03:00:02 2018 **** BEGIN LOGGING AT Mon Jan 29 03:03:43 2018 Jan 29 14:12:33 14 Jan 29 14:12:34 oops Jan 29 18:14:45 Hi. My freerunner was working fine when I stopped using it last June. Now I want to pick it up again, but my nand boot fails with a kernel panic and my sd boot failed with some i/o error... Jan 29 18:15:31 I untarred the latest qtmoko on the sd, but it still fails. Error = wrong image format for bootm command. Not sure what that means. Jan 29 18:16:05 I actually planned to run debian, but the wiki page says it needs a working nand to bootstrap. Jan 29 18:16:39 How can I get my pocket monster going again? Jan 29 18:17:28 Use case is not cell phone, but some form of communication over wifi. Jan 29 18:19:11 Bootloader = u-boot 1.3.2-moko12 Jan 29 18:28:41 nand boot error: UBI error: ubi_read_volume_table: the layout volume was not found Jan 29 18:38:50 samgee: regarding the sd error, it means whatever it read from card as a kernel is not a u-boot image. Jan 29 18:41:31 hm, I used the tarball from https://sourceforge.net/projects/qtmoko/files/GTA02/ Jan 29 18:43:04 samgee: do you have full log or photo? Jan 29 18:44:42 samgee: are you using nand bootloader to boot from SD card or NOR bootloader? Jan 29 18:44:56 samgee: that's an important part because the NOR one might be outdated. Jan 29 18:45:25 using nor Jan 29 18:45:36 * samgee tries to get a picture Jan 29 18:46:24 samgee: you're supposed to use NOR only to reflash NAND :) Jan 29 18:46:35 With dfu-util Jan 29 18:46:36 oh Jan 29 18:48:13 I remembered holding the top button and then the side button to boot to sd. Jan 29 18:49:10 samgee: that would be using NOR bootloader and that's generally a bad idea because it's an old version. Jan 29 18:50:36 how do I get to sd otherwise? Jan 29 18:50:43 * samgee wading through ancient docs Jan 29 18:52:36 samgee: you flash u-boot or Qi to NAND with dfu-util, and that would in turn boot from SD. Jan 29 18:54:43 I thought I had done that once, many years ago. Jan 29 18:54:59 ooh, I still have dfu-util on this machine Jan 29 18:55:19 * samgee goes to find an image Jan 29 18:55:50 samgee: my point is, using NOR u-boot for actual booting is not recommended because there are known issues with it. Fixed in later versions. Jan 29 18:56:30 samgee: btw, https://sourceforge.net/projects/qtmoko/files/GTA02/ has a README and it shows how to flash Qi to NAND. Jan 29 18:56:44 samgee: and Qi image is there too Jan 29 18:56:50 yeah, just saw that 2 seconds ago :) Jan 29 18:57:18 NAND boot = power + aux, but that got me the kernel panic so far. Jan 29 18:57:35 samgee: no, nand boot is just short power button press. Jan 29 18:58:02 (I mean it's boot to NAND bootloader, and then whatever it decides to do) Jan 29 18:58:22 hm, same kernel panic Jan 29 18:58:58 Can you show? Jan 29 18:59:10 Have you flashed Qi with dfu-util? Jan 29 18:59:42 trying that now Jan 29 19:04:17 dfu-util finished without error. Still getting kernel panic. Jan 29 19:06:02 it's hard to get a readable picture of the device. Jan 29 19:06:25 samgee: are you sure you used ext3 and proper command to unpack tar to it? Jan 29 19:08:00 Pretty sure, but I'll try again Jan 29 19:09:04 And that it's the first partition and ms-dos partition table? Jan 29 19:09:14 I'd really like to see the actual panic message Jan 29 19:17:34 Still the same panic. Picture doesn't work, so I'll just have to type it over. Jan 29 19:18:53 You can try to rephrase Jan 29 19:22:54 http://dpaste.com/1FDDTRR Jan 29 19:23:13 I left out the timestamps and the stacktrace that comes after that. Jan 29 19:24:10 samgee: that looks pretty much like it's trying to use NAND for rootfs. Jan 29 19:24:28 samgee: so probably the bootloader doesn't see SD at all. Jan 29 19:24:40 samgee: how many vibrations do you get on boot? Jan 29 19:24:49 Or aux blinks Jan 29 19:24:51 that's what I suspected Jan 29 19:25:30 1 vibration, 1 blink Jan 29 19:25:47 samgee: can you show ls -l for root of SD from your PC, along with the appropriate line from "mount"? Jan 29 19:26:35 And are you sure this SD card is not SDXC? Jan 29 19:29:20 http://dpaste.com/398H2XV Jan 29 19:30:04 I bought an SDXC a few weeks ago to use for this, but I realized only after that I couldn't use it in the FR Jan 29 19:30:28 samgee: yes, looks proper. Still it might be an incompatible SD card... Jan 29 19:31:08 hm, this one's SDHC. Jan 29 19:32:15 SDHC should work Jan 29 19:32:37 samgee: using Qi is sometimes kinda pain without serial console... Jan 29 19:32:55 samgee: do you consider reflashing nand with dfu-util? Jan 29 19:34:23 I wanted to check if I still have some data on there I want to keep, but if that's the only way to get it going, I'll just have to be grownup about it :) Jan 29 19:34:36 samgee: there should still be some ways to boot from SD... Jan 29 19:35:08 samgee: oh, btw, you're trying SD without sim card I assume, right? Jan 29 19:36:17 indeed, no SIM. But I have one handy if necessary. Jan 29 19:36:31 samgee: have you already guessed why it might matter? ;) Jan 29 19:36:46 :/ Jan 29 19:36:49 * samgee tries again Jan 29 19:37:07 samgee: sim card physically pushes SD for better contact. Jan 29 19:37:58 Still the same panic Jan 29 19:38:02 :( Jan 29 19:38:20 There should be zero vibrations, or else it means Qi skipped SD partition. Jan 29 19:38:57 * samgee blows contacts on phone and SD Jan 29 19:39:56 Still vibration + panic. Jan 29 19:40:51 I had this thing in my pocket for 9 years and submitted it to some e-pain. It kept on working. Now it's been lying on the table for a few months and it's totally b0rked? Jan 29 19:40:56 Can you try another SD just in case/ Jan 29 19:41:11 What was e-pain? Jan 29 19:41:17 Could it have damaged NAND contents? Jan 29 19:42:02 NAND is NAND, it's not super-reliable Jan 29 19:42:30 samgee: do you probably have a UART USB converter? Then you can just read Qi's bootlog from a testpoint. Jan 29 19:42:33 I think I dropped it from about 0.5 m once, and it got moist in my pocket from rain a few times. Jan 29 19:43:06 I have no idea what that would look like. Jan 29 19:43:25 Ah, found another SD Jan 29 19:56:02 This card is taking a really long time to write to. Also, it's only 512 MiB. Jan 29 20:09:50 Finally done. Still the same kernel panic. :( Jan 29 20:10:26 That's the only other SD I have. Jan 29 20:26:51 samgee: you can flash u-boot to NAND as bootloader and it should show more data about sd card. Jan 29 20:28:53 Do you know of a good u-boot image? Jan 29 20:29:03 No, since I was a Qi fan. Jan 29 20:29:11 ah :) Jan 29 20:29:55 But I think there's something relevant on the wiki. Jan 29 20:30:55 Looking at http://wiki.openmoko.org/wiki/U-boot-gena2x Jan 29 20:31:40 hm, dead link Jan 29 20:32:49 * samgee downloads random u-boot binary Jan 29 20:32:55 yay software freedom :) Jan 29 20:40:18 The good news: no kernel panic. The bad news: I just get a black screen with some pixels in random colors. Jan 29 20:45:39 Ooh, I got a NAND boot menu using power + aux Jan 29 20:47:55 Apparently I have SHR in flash, but that also ends in kernel panic. "VFS: Cannot open root device "(null)" or unknown-block(0,0)". Jan 29 20:50:23 But with nand u-boot you might be able to make it show what exactly it doesn't like about sd. Jan 29 20:50:31 Now I got a bit more from SD boot, but it seems to hang. Jan 29 20:50:43 samgee: you can attach to it as it exposes ttyACM device and you can issue uboot commands there interactively. Jan 29 20:51:55 It hangs with "Waiting for root device /dev/mmcblk0p2..." Jan 29 20:52:14 samgee: oh, it means it expects rootfs to be on the second SD partition. Jan 29 20:52:16 pcf50633 0-0073: usb curlim to 1000mA Jan 29 20:52:25 oh Jan 29 20:52:34 samgee: but you can edit it via ACM before booting. Jan 29 20:52:47 setenv bootargs etc. Jan 29 20:53:05 But you're pretty close now. Jan 29 20:53:15 * samgee looks on wiki for ACM magic incantations Jan 29 20:53:25 Not magic, regular u-boot Jan 29 20:53:43 Or just try creating a second partition on your fast SD and untar rootfs there. Jan 29 20:54:27 That might be easier (for me) :) Jan 29 21:03:56 Resized the partition, put another one (ext3) next to it, untarred also to that one, so both partitions have the same fs. Jan 29 21:04:08 Boot ends with "ERROR: can't find kernel image" Jan 29 21:04:37 samgee: how was it able to before?.. Jan 29 21:05:21 Dunno, my first boot from NAND had the same. It was the second try that got further. Jan 29 21:05:45 now it's booting again Jan 29 21:06:10 uhm, see an SHR splash screen Jan 29 21:07:23 wow, I'm in SHR's main menu Jan 29 21:07:35 I'm pretty sure I told it to boot from SD Jan 29 21:11:30 It shows battery at 12% even though it's plugged in for a while. I'm not going to get more than 5 seconds of wifi on this thing. Jan 29 21:18:03 Booting SD actually shows a series of: cmd 0x8, arg 0x1aa flags 0x75 Jan 29 21:18:18 Error after cmd: 0xfffffffe Jan 29 21:18:49 Times 12 or something (it's pretty quick) Jan 29 21:19:02 then: No MMC card found Jan 29 21:19:26 I guess it's not liking my SD. Jan 29 21:21:32 Replaced the card, now boot gives me some card info and then "Unable to read uImage.bin from mmc 1:1" Jan 29 21:23:39 That's all I have time for today. I'll stick around in case anyone would like to share a tip. Jan 29 21:32:43 samgee: you can just move kernel image from /boot to / of the first partition on the card, and name it uImage.bin. Jan 29 21:33:01 samgee: regarding the battery, you can just use new nokia bl-6c or bl-5c. **** ENDING LOGGING AT Tue Jan 30 03:00:01 2018