**** BEGIN LOGGING AT Fri Apr 07 03:00:01 2017 Apr 07 06:35:27 Hi, I faced a problem when sudo apt-get install nodejs in my beaglebone black. Apr 07 06:35:39 Err https://deb.nodesource.com/node_4.x/ jessie/main nodejs armhf 4.8.1-2nodesource1~jessie server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfil E: Failed to fetch https://deb.nodesource.com/node_4.x/pool/main/n/nodejs/nodejs_4.8.1-2nodificates.crt CRLfile: none Apr 07 06:36:20 Any help will be appreciated! Thanks in advance! Apr 07 06:45:24 ancient ca-certificates probably Apr 07 06:46:04 pretty ancient version of node too Apr 07 07:08:13 huh? Apr 07 07:08:18 what does it means? Apr 07 07:52:08 zmatt: adr r0, =_start and bx r0 might have fooled the assembler I guess Apr 07 14:47:54 thinkfat: no, it'll work fine as long as _start is marked as a thumb function Apr 07 14:50:15 interesting Apr 07 20:00:03 I'm trying to clone a 4gb sd card to an 8gb sd card. I've formatted the cards correctly and am using ddrescue to do the backup/restore. Then I think I need to resize the primary partition. Is that a good plan for my goal? Apr 07 20:43:43 i built a thing that works Apr 07 20:48:23 windsurf_: ext4 ? Apr 07 20:48:28 ayjay_t: yay \o/ Apr 07 20:48:34 ? Apr 07 20:48:39 windsurf_: the filesystem? Apr 07 20:49:05 (if you don't know then probably yes) Apr 07 20:49:20 beaglebone getting started guide, debian Apr 07 20:49:26 i don't know whatever that download is Apr 07 20:49:44 yeah ext4 then Apr 07 20:50:44 I have an 8gb card now that thinks its capacity is ~4GB Apr 07 20:50:49 to expand a partition to a card I just delete the partition and create a new one *at the same offset* Apr 07 20:51:49 and then once the partition is the correct size, expand the filesystem to fit using e.g. resize2fs /dev/mmcblk0p1 Apr 07 21:11:29 zmatt in fdisk I get /dev/mmcblk0p1 2048 15122431 15120384 7.2G 83 Linux after deleting and creating new, so that looks like it worked. I 'w' which saves. All good so far, but then resize2fs gives me, "resize2fs: Bad magic number in super-block while trying to open /dev/mmcblk0p1 Apr 07 21:11:29 Couldn't find valid filesystem superblock." Apr 07 21:11:44 are you sure that offset is right? Apr 07 21:12:00 did you check what it was previously? Apr 07 21:13:27 since I generally place it at sector 8192 (4 MB from start) rather than sector 2048, and I think rcn (who makes the official images) also started doing so at some point Apr 07 21:14:45 zmatt I used defaults Apr 07 21:14:53 following this tutorial http://dev.iachieved.it/iachievedit/expanding-your-beaglebone-microsd-filesystem/ Apr 07 21:15:14 it *has* to be at the same offset Apr 07 21:15:19 as it was before Apr 07 21:15:57 if you don't have that information anymore, try recreating it at offset 8192 and see if resize2fs recognizes it as a filesystem then Apr 07 21:16:22 when i look in fdisk is 'start' the offset you mean? right now it says 2048 but not sure if that's after messing it up? Apr 07 21:16:47 of course it says so, you just created it there Apr 07 21:16:51 ok Apr 07 21:17:04 i'll create a new backup and start again Apr 07 21:17:08 no need Apr 07 21:17:11 o Apr 07 21:17:11 nothing has been damaged Apr 07 21:17:14 ok Apr 07 21:17:21 i'll try 8192 Apr 07 21:18:13 resize command is working now Apr 07 21:18:16 voila Apr 07 21:20:14 Maybe I'm using the on-board storage Apr 07 21:20:26 fdisk is showing /dev/mmcblk0p1 8192 15122431 15114240 7.2G 83 Linux Apr 07 21:20:26 changing the partition map does not destroy or change any other data on a disk/card, so you can then always still get your filesystems back, provided you can find them Apr 07 21:20:29 and df -h is showing Apr 07 21:20:40 /dev/mmcblk1p1 3.6G 1.9G 1.5G 56% / Apr 07 21:20:51 different block devices Apr 07 21:20:55 mmcblk1p1 vs mmcblk0p1 Apr 07 21:21:11 df only shows mounted partitions Apr 07 21:21:54 so, how do I know if I'm using the sd card? I did hold the user btn on boot Apr 07 21:22:14 I don't know which numbers I can trust Apr 07 21:22:19 all of them Apr 07 21:23:13 although I'm a bit confused, you held down the S2 button? Apr 07 21:23:39 your df -h listing indicates you did boot from eMMC Apr 07 21:24:08 so is /dev/mmcblk1p1 the on-board (aka eMMC?) storage and /dev/mmcblk0p1 is the SD? Apr 07 21:24:27 I did hold down the "user" button but I don't know when it's safe to let go Apr 07 21:24:40 I held it until I saw some lights flashing a bit more regularly Apr 07 21:24:47 a few miliseconds after the power led turns on Apr 07 21:25:07 k Apr 07 21:25:08 it is sampled at the moment power turns on Apr 07 21:25:26 ok that's good to know – the 8gb card must not be bootable then, I'm guessing Apr 07 21:25:36 no you probably didn't hold it down properly Apr 07 21:25:41 i'll try again Apr 07 21:25:45 why? Apr 07 21:26:01 because you said I didn't do it properly Apr 07 21:26:14 I also asked puzzled why you were doing it in the first place Apr 07 21:26:35 to boot from the SD card, the getting started guide says that's needed Apr 07 21:27:21 how exactly did you copy stuff over to the card? Apr 07 21:27:42 you rarely need to hold down the S2 button, the bootloader will normally already prefer booting from card if it is bootable Apr 07 21:28:00 what holding it down (during power on) does is exclude eMMC from the boot order Apr 07 21:28:33 hm i see Apr 07 21:29:56 so, where was the image originally located, on a different card? eMMC? Apr 07 21:30:14 I was just following getting started guides which suggested I download debian from the beaglebone site (an .img file), on OS X used PiFiller script to copy it to the 4GB SD card, which I thought was larger than it was, then used ddrescue to clone that 4GB card to a new SD after doing a bunch of linux setup stuff for my purposes, then used ddrescue and tried PiFiller too, to clone the 4gb img back to the 8GB card Apr 07 21:30:46 cloned the 4GB card to a new .img file* Apr 07 21:31:12 so 4GB SD -> .img -> 8GB SD Apr 07 21:31:25 hence the partition expansion Apr 07 21:31:33 can you do: dd if=/dev/mmcblk0 count=1 | hexdump -C Apr 07 21:31:43 sure Apr 07 21:32:17 if it says something with "CHSETTINGS" in it then all is fine Apr 07 21:32:59 hey so I did reboot and held down the user button for less time and now df -h is reporting that I've got 8gb minus what's used Apr 07 21:33:36 how long you hold it down has no impact Apr 07 21:33:37 I also have dd output now Apr 07 21:33:49 * windsurf_ reboots again without holding Apr 07 21:34:01 note: it's sampled on power-on, not on reboot Apr 07 21:34:08 oh Apr 07 21:34:17 that might have occasionally been one issue Apr 07 21:34:20 the setting remains in effect until you power off and on again Apr 07 21:34:32 very good to know Apr 07 21:35:08 so, question is whether it also boots from card without S2 Apr 07 21:35:21 we'll see Apr 07 21:35:39 since it really should, unless maybe the bootloader on eMMC is too ancient Apr 07 21:36:52 worked without 2d down Apr 07 21:38:04 thanks a lot for your help and insight Apr 07 21:38:11 np Apr 07 21:48:53 zmatt so I just booted without holding s2 – how do I access the eMMC storage now Apr 07 21:48:56 cd ? Apr 07 21:49:01 you may need to mount it Apr 07 21:49:11 mmcblk1p1 ? Apr 07 21:49:39 so, e.g. mount /dev/mmcblk1p1 /mnt Apr 07 21:49:52 or some other empty directory of choice Apr 07 21:50:08 you can of course configure things to mount it automatically Apr 07 21:50:30 is /mnt just an arbitrary name that isn't already seen in ls -l / Apr 07 21:51:17 it needs to exist as empty directory Apr 07 21:52:12 special device does not exist Apr 07 21:52:19 lsblk Apr 07 21:52:56 I see a couple boots and a couple mmcblk's, 0 and 1 Apr 07 21:53:08 0p1, 1p1 Apr 07 21:53:30 "boot" block devices are only associated with eMMC Apr 07 21:54:15 afaik on recent kernels eMMC should always be mmcblk1 Apr 07 21:55:14 "special device does not exist" ? o.O Apr 07 21:55:33 mount: special device mmcblk1p1 does not exist Apr 07 21:55:39 mount: special device mmcblk1 does not exist Apr 07 21:56:48 ehh, you're omitting the /dev/ Apr 07 21:57:42 possibly because you saw lsblk omitting them out of laziness, but unfortunately mount doesn't tolerate that :) Apr 07 21:58:01 right, thanks Apr 07 21:59:59 gotto catch a train, bbl Apr 07 22:00:02 *bus Apr 08 02:55:53 I am alive! Apr 08 02:55:59 BBBW! Apr 08 02:56:20 How can I use connmanctl to get online via WiFi on the BBBW? Apr 08 02:57:15 I tried to find my wlan0 but it is an Ethernet port for some reason and not a WiFi adapter. Apr 08 02:57:32 ? Apr 08 02:57:37 Yep. Apr 08 02:57:55 it's showing "eth0" instead of "wlan0" ? Apr 08 02:58:09 No. Apr 08 02:58:23 Hold on. Let me get you the exact reading. Apr 08 02:58:57 LinkEncap: Ethernet Apr 08 02:59:19 I perform ifconfig wlan0 Apr 08 02:59:41 ok, and? Apr 08 02:59:48 That is it. **** ENDING LOGGING AT Sat Apr 08 03:00:02 2017