View Single Post
Old 11-29-2014, 12:51 PM   #10
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by variousvirgil View Post
I forgot to ask whether the "seek" argument in dd command is still 65.
Do you mean in step #8?
Install the 5.3.0 main kernel: dd if=/mnt/us/uImage of=/dev/mmcblk0 bs=4096 seek=65

The 'seek' argument skips obs (output blocks) before it starts writing.

Which means that /dev/mmcblk0 would have to (still) be laid out on your device the same as it was on the device for which the directions where written.

Now that you can confirm for your device:
1) copy some small number of blocks (say 100) to your pc -
dd if=/dev/mmcblk0 of=your_choice bs=4096 count=100

2) use your favorite hex dumper (od is a good choice) to copy some small 'signature' string from
uImage.
The format of a uImage file hasn't change in a long time - the first 16 bytes will probably get enough of the header to recognize it.

3) on the your_choice file, at offsets starting on block boundaries (0, 4096, 8192, etc) check if the first 16 bytes match the 16 bytes of your sample.

{You might get lucky and just check block 65 and 66 first).

But anywho - that is how to find where on the raw device you should align the start of the uImage file that you are writing.

If that isn't "hospitable and effective help" enough for you, go somewhere else.

Last edited by knc1; 11-29-2014 at 12:56 PM.
knc1 is offline   Reply With Quote