New IT forum
25 June 2022, 05:28:44 am *
Welcome, %1$s. Please login or register.

: GertDuino now in stock.
 
Pages: 1 2 [3] 4 5

Author Topic: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"  (Read 30379 times)

kfrank

  • Newbie
  • *
  • Posts: 36
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #30 on: 01 April 2014, 05:30:57 pm »

Confusticted, Right now my SD card (looking at it in Gparted) says unallocated. Do  I need to do anything to it in gparted (create a partition table?) before executing the dd command? Also I have seen the dd command written as "dd if=Dreamplug-1001-Factory-Debian-Image.img.gz" AND "dd if=Dreamplug-1001-Factory-Debian-Image.img" which is correct? the zipped image or the unzipped image?  Thanks
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #31 on: 01 April 2014, 10:24:48 pm »

Quote
Do  I need to do anything to it in gparted
No.

Quote
the zipped image or the unzipped image?
The unzipped image
Quote
"dd if=Dreamplug-1001-Factory-Debian-Image.img of=...."

However, if you are short on storage space you can (avoid the overhead of the uncompressed image) uncompress and write all in one go .
Code: [Select]
zcat Dreamplug-1001-Factory-Debian-Image.img.gz | dd of=...
Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

kfrank

  • Newbie
  • *
  • Posts: 36
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #32 on: 01 April 2014, 11:38:00 pm »

is there a way that I can confirm that the image has been successfully written to the SD card, by using something like fdisk?
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #33 on: 02 April 2014, 01:21:12 pm »

Quote
a way that I can confirm that the image has been successfully written
Code: [Select]
sha256sum Dreamplug-1001-Factory-Debian-Image.imgMake a note of the resulting string

Code: [Select]
dd if=/dev/sdb bs=1k count=$(du Dreamplug-1001-Factory-Debian-Image.img | cut -f1) | sha256sumThe string produced should be the same as the previous
Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

kfrank

  • Newbie
  • *
  • Posts: 36
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #34 on: 02 April 2014, 01:25:08 pm »

Confusticated... Thanks for your help. I will try this when I get home tonight
Logged

kfrank

  • Newbie
  • *
  • Posts: 36
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #35 on: 03 April 2014, 01:32:17 am »

Ok so after running the code you posted the results of the strings were different:

result #1 = "6ae85f83c9a5e521fba4fcc924700269e4bfc45d167db71e8f00b67feefbc28a  Dreamplug-1001-Factory-Debian-Image.img"

result #2 = "60ba0cbc807c0e2a0a219eaadcd84da7862d5b40cddbb9357f69376be8022450  -
3872260+0 records in
3872260+0 records out
3965194240 bytes (4.0 GB) copied, 2122.2 s, 1.9 MB/s"
Logged

kfrank

  • Newbie
  • *
  • Posts: 36
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #36 on: 03 April 2014, 02:57:22 am »

ran the entire process again with the exact same results as previously reported
Logged

Ralph Houston

  • New IT customer
  • Full Member
  • *
  • Posts: 136
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #37 on: 03 April 2014, 08:13:37 am »

When you copied the image to the card were all the bytes copied by dd? Sometimes the image is too long. Try a different card, even an 8GB one.
Regards
Ralph
Logged

kfrank

  • Newbie
  • *
  • Posts: 36
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #38 on: 03 April 2014, 11:32:56 am »

the results of my dd command were as follows:

"dd if=Dreamplug-1001-Factory-Debian-Image.img of=/dev/sdb bs=1M"

3781+1 records in
3781+1 records out
3965190144 bytes (4.0 GB) copied, 1893.76 s, 2.1 MB/s


Does that look correct?

also I am using a 32 GB card.



« Last Edit: 03 April 2014, 12:30:06 pm by kfrank »
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #39 on: 04 April 2014, 08:18:00 pm »

Quote
result #1 = "6ae85f83c9a5e521fba4fcc924700269e4bfc45d167db71e8f00b67feefbc28a  Dreamplug-1001-Factory-Debian-Image.img"
This is correct (your image file is sound)

Quote
dd if=Dreamplug-1001-Factory-Debian-Image.img of=/dev/sdb bs=1M
You cannot use 'bs=1M' with the Dreamplug-1001-Factory-Debian-Image.img

This comment is targeted at everybody who guides others\uses the 'dd' command....
If you really must override the default blocksize of 512 Bytes, then use something like 'bs=4096' unless you understand the consequences of what you are doing.
It is quicker to do a 'dd' correctly slowly than to do it wrong quickly and have to do it again.

Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

kfrank

  • Newbie
  • *
  • Posts: 36
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #40 on: 04 April 2014, 09:29:15 pm »

So would I be safe to use "bs=4096" as you suggest or should I use "bs=512"?  Thank you again for sticking with me on this.
« Last Edit: 04 April 2014, 10:35:34 pm by kfrank »
Logged

Ralph Houston

  • New IT customer
  • Full Member
  • *
  • Posts: 136
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #41 on: 05 April 2014, 07:43:43 am »

Two points here:
I don't understand why bs affects the result. Surely bs=1M just writes some extra bytes? I use this setting (as indeed recommended by NewIT) with no problems so far.
There have been many strange problems with 32GB cards, search for '32GB', e.g. see here:
After that post I did a dd from the 16Gb Integral onto a no-name 32gb (micro) SD card

1: I did this in a different (Ubuntu) computer (2stage process as I used a single USB reader)

dd bs=1M if=/dev/sdd of=dreamplug-16Gb-card-post-osz-crash
dd bs=1M if=dreamplug-16Gb-card-post-osz-crash of=/dev/sdd

Worked fine. Only thing was I needed to power off the Dreamplug, a simple reboot was not enough , it seemed to
just reboot from the internal SD card ... which it had been running from while I had the card out.


Regards
Ralph
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #42 on: 05 April 2014, 02:42:39 pm »

Quote
Surely bs=1M just writes some extra bytes?
If the image is not a multiple of 1MB (as in this case) yes.
What happens when the image you are copying is the same size as the SD Card you are writing to ?

Historically the default for 'dd' would be not to write the last partial input block without the additional option 'conv=notrunc'.
Code: [Select]
3781+1 records in
3781+0 records out
Whether all implementations of 'dd' (such as busybox) now behave the same way I cannot say.

Quote
strange problems with 32GB cards
The example you site there suggests that the time allowed for the 32GB SD Card to initialise is not sufficient during a reboot.
An increase in the delays around 'usb start' in U-Boot would be the first thing I would try.

Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

kfrank

  • Newbie
  • *
  • Posts: 36
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #43 on: 07 April 2014, 03:35:59 pm »

Confusticated... can I now move on to step 2 (trying to boot my dreamplug off the newly created SD image)? Or will that not work because the numbers from my earlier posts don't match:

Quote
esult #1 = "6ae85f83c9a5e521fba4fcc924700269e4bfc45d167db71e8f00b67feefbc28a  Dreamplug-1001-Factory-Debian-Image.img"

result #2 = "60ba0cbc807c0e2a0a219eaadcd84da7862d5b40cddbb9357f69376be8022450  -
3872260+0 records in
3872260+0 records out
3965194240 bytes (4.0 GB) copied, 2122.2 s, 1.9 MB/s"
Logged

Ralph Houston

  • New IT customer
  • Full Member
  • *
  • Posts: 136
Re: Dreamplug freezes after "Uncompressing Linux... done, booting kernel"
« Reply #44 on: 07 April 2014, 08:11:48 pm »

Well the checksum mismatch means what's on the card is not the same as the image file.
And you're using a 32GB card, so you haven't run off the end, and bs=1M is not the problem.
I'd try the dd and checksums again, and if the strings still don't match I'd say the card is a dud.
The checksums are also available with the sources - it would be worth checking against that (md5 file).
Once you have a good card, if it still doesn't work, it could be the timing issue.
Or a mismatch between uboot and the type of the first partition (fat16 or ext2).
Logged
Pages: 1 2 [3] 4 5
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!