Problem booting from sd-card
#1
Hi everyone,
I wanted to try Armbian for my new pinebook, so I tried the following:

- I downloaded the image https://dl.armbian.com/pinebook-a64/Ubun...desktop.7z
- I unzipped ofcourse :-)
- I inserted on old sdcard
- Then "sudo dd bs=30M if=Armbian_5.56_Pinebook-a64_Ubuntu_bionic_default_3.10.107_desktop.img of=/dev/mmcblk1p1"
- no errors when finished
- Then reboot

Result: booted into default KDEneon, not Armbian on SD card.

Am I doing anything wrong here?

Kind regards,
Giel
#2
(05-17-2019, 02:11 PM)giel Wrote: - Then "sudo dd bs=30M if=Armbian_5.56_Pinebook-a64_Ubuntu_bionic_default_3.10.107_desktop.img of=/dev/mmcblk1p1"
The output device should be "of=/dev/mmcblk1" for the whole device, not "of=/dev/mmcblk1p1" which is the first partition ...
#3
thanks for your reaction! Makes sense :-) Ill try that this evening! Ill let you know......
#4
I tried of=/dev/mmcblk1.....
When I reboot the screen stays black....
After removing the sd-card the pinebook boots fine into KDE Neon....
sha256sum of the image was good
no errors during dd.....
Could it be that my sd-card is too old or to slow?
#5
i'd probably have formatted the sdcard before writing the armbian image.
#6
Thanks for your reply! How do I do that from commandline?

Maybe its something else:
I saw in the script on https://forum.pine64.org/showthread.php?tid=4998 the following line just before the dd-command:
umount -f /dev/mmcblk1*

I didn't do that.... Maybe that's the problem?...... But is it possible to dd to an unmounted sd-card?... Apparently it is if iI read the script right.....
#7
(05-22-2019, 08:29 AM)giel Wrote: Maybe its something else:
I saw in the script on https://forum.pine64.org/showthread.php?tid=4998 the following line just before the dd-command:
umount -f /dev/mmcblk1*

I didn't do that.... Maybe that's the problem?...... But is it possible to dd to an unmounted sd-card?... Apparently it is if iI read the script right.....

Last week I tried to write numerous images to SD card using the "dd" command (but not armbian). It worked every time, without unmounting the drive first. No problems with boot. Edit: Maybe it wasn't mounted yet, that's why it worked. :/

But give the unmount a shot. Wink
Edit: It is wise to unmount device before dd to it. Or you can end up with corrupt result.

Have you tried any other image than armbian?
#8
I tried another pinebook image from wiki.pine64.org (xenial mate simple...)
This is what I did:
smitsg@smitsg-pc:/data$ sudo umount -f /dev/mmcblk1*
[sudo] password for smitsg:
umount: /dev/mmcblk1: not mounted.
umount: /dev/mmcblk1p1: not mounted.
smitsg@smitsg-pc:/data$ sudo dd bs=30M if=simple-image-pinebook1080p-0.7.28.img of=/dev/mmcblk1
0+1 records in
0+1 records out
12587008 bytes (13 MB, 12 MiB) copied, 2.43098 s, 5.2 MB/s
smitsg@smitsg-pc:/data$
And after reboot: blank screen

I think have to buy another sd-card...... Or should I use bs=1M?
#9
The bs in dd command means block size, and stands for size of chunks being copied at once and with the right value it can improve copy speeds. For me the default value (bs=512) and bs=1M worked fine, haven't tried other values. I think 30M is too much, but I don't think it is the source of failure.

I don't know, about the simple xenial image you mentioned, but on 1080p pinebook, this  ayufan's xenial mate image in his releases github repository booted fine. However I don't use it, cause I failed to figure out how to successfully play videos (only black screen instead video, sound works).
#10
(05-22-2019, 08:29 AM)giel Wrote: Thanks for your reply! How do I do that from commandline?

There's no need to format anything if you are writing a disk image... it will completely obliterate any prior file system and partition layouts if done properly.

After doing a dd, it may be a good idea to run 'sync' afterwards just to make sure everything has been written to the card before you remove it.

Which model pinebook is it? The original, or the 1080p one? As I gather you need to be using the right image for the different display, or at least change some settings...


Possibly Related Threads…
Thread Author Replies Views Last Post
  Buster sound problem fixed yet? Ragnjerr 0 2,075 12-15-2020, 12:23 PM
Last Post: Ragnjerr
  Latest images from different distros failing to boot from SD card jmonty42 2 4,146 11-17-2020, 09:32 AM
Last Post: pagesix1536
  pinebook black screen when booting with "different power mode than last used" penzoiders 12 18,654 04-27-2020, 06:27 AM
Last Post: tophneal
  can't install a new OS with sd card. pinebook1080. ObviousHobbit 3 4,088 07-24-2019, 07:52 AM
Last Post: neilman
  DietPi not booting WZ9V 5 6,460 02-01-2019, 09:06 AM
Last Post: smallfish
  Booting from eMMC with SD inserted? falcon15500 6 8,180 07-11-2017, 05:51 AM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 2 Guest(s)