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
  Reply
#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 ...
  Reply
#3
thanks for your reaction! Makes sense :-) Ill try that this evening! Ill let you know......
  Reply
#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?
  Reply
#5
i'd probably have formatted the sdcard before writing the armbian image.
  Reply
#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.....
  Reply
#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?
  Reply
#8
I tried another pinebook image from wiki.pine64.org (xenial mate simple...)
This is what I did:
[email protected]:/data$ sudo umount -f /dev/mmcblk1*
[sudo] password for smitsg:
umount: /dev/mmcblk1: not mounted.
umount: /dev/mmcblk1p1: not mounted.
[email protected]:/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
[email protected]:/data$
And after reboot: blank screen

I think have to buy another sd-card...... Or should I use bs=1M?
  Reply
#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).
  Reply
#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...
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  can't install a new OS with sd card. pinebook1080. ObviousHobbit 3 155 07-24-2019, 07:52 AM
Last Post: neilman
  pinebook black screen when booting with "different power mode than last used" penzoiders 9 515 06-06-2019, 02:02 PM
Last Post: Surehand53
  DietPi not booting WZ9V 5 393 02-01-2019, 09:06 AM
Last Post: smallfish
  Booting from eMMC with SD inserted? falcon15500 6 870 07-11-2017, 05:51 AM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 1 Guest(s)