![]() |
2013-12-29
, 12:11
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#1022
|
![]() |
2013-12-29
, 16:28
|
Posts: 12 |
Thanked: 5 times |
Joined on Dec 2013
|
#1023
|
The ubiboot image is very large; about 12M in compressed form, true, that is because it includes the root filesystem of the repair mode in the kernel image.
However I have not ever seen that it would be too big to be flashed to the kernel MTD partition.
Would it be possible that your kernel partition is smaller than on other devices? I believe that even on MTD there is some flash filesystem that removes damaged flash blocks from use, maybe your kernel partition has been reduced in size?
![]() |
2013-12-30
, 21:54
|
Posts: 12 |
Thanked: 5 times |
Joined on Dec 2013
|
#1024
|
The ubiboot image is very large; about 12M in compressed form, true, that is because it includes the root filesystem of the repair mode in the kernel image.
However I have not ever seen that it would be too big to be flashed to the kernel MTD partition.
Would it be possible that your kernel partition is smaller than on other devices? I believe that even on MTD there is some flash filesystem that removes damaged flash blocks from use, maybe your kernel partition has been reduced in size?
![]() |
2013-12-30
, 22:20
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#1025
|
How do I verify the size of the kernel partition? I've run sfdisk and it shows me:
Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 16 1632511 1632496 52239872 c W95 FAT32 (LBA)
end: (c,h,s) expected (1023,3,16) found (1023,63,32)
/dev/mmcblk0p2 1760512 1891583 131072 4194304 83 Linux
/dev/mmcblk0p3 1891584 1957119 65536 2097152 83 Linux
/dev/mmcblk0p4 1632512 1760511 128000 4096000 83 Linux
start: (c,h,s) expected (1023,3,16) found (1023,63,32)
end: (c,h,s) expected (1023,3,16) found (1023,63,32)
This is right after flashing MOSLO and trying to flash ubiboot. If the flash is damaged, would it help to run a disk check and mark the sectors, then flash again?
p.s. Is there any way to format the output to make it more readable? d.s.
~ # /usr/sbin/mtdinfo -m 2
mtd2
Name: kernel
Type: nand
Eraseblock size: 262144 bytes, 256.0 KiB
Amount of eraseblocks: 64 (16777216 bytes, 16.0 MiB)
Minimum input/output unit size: 4096 bytes
Sub-page size: 1024 bytes
OOB size: 128 bytes
Character device major/minor: 90:4
Bad blocks are allowed: true
Device is writable: true
![]() |
2013-12-30
, 22:37
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#1026
|
![]() |
2013-12-30
, 22:46
|
Posts: 12 |
Thanked: 5 times |
Joined on Dec 2013
|
#1027
|
Kernel is not flashed on your mmcblk0 flash, there's a differnt flash filesystem on the device that consists of the parts of device which hold for example the factory calibration data.
The location for kernel is the MTD2 partition of the system NAND.
You can get some information with mtdinfo command, for example on my device it says:
~ # /usr/sbin/mtdinfo -m 2
mtd2
Name: kernel
Type: nand
Eraseblock size: 262144 bytes, 256.0 KiB
Amount of eraseblocks: 64 (16777216 bytes, 16.0 MiB)
Minimum input/output unit size: 4096 bytes
Sub-page size: 1024 bytes
OOB size: 128 bytes
Character device major/minor: 90:4
Bad blocks are allowed: true
Device is writable: true
~ # /usr/sbin/mtdinfo -m 2
mtd2
Name: kernel
Type: nand
Eraseblock size: 131072 bytes, 128.0 KiB
Amount of eraseblocks: 64 (8388608 bytes, 8.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 512 bytes
OOB size: 64 bytes
Character device major/minor: 90:4
Bad blocks are allowed: true
Device is writable: true
~ # /usr/sbin/mtd_debug info /dev/mtd2
mtd.type = MTD_NANDFLASH
mtd.flags = MTD_CAP_NANDFLASH
mtd.size = 8388608 (8M)
mtd.erasesize = 131072 (128K)
mtd.writesize = 2048 (2K)
mtd.oobsize = 64
regions = 0
~ # /usr/sbin/mtd_debug info /dev/mtd5
mtd.type = MTD_NANDFLASH
mtd.flags = MTD_CAP_NANDFLASH
mtd.size = 16777216 (16M)
mtd.erasesize = 131072 (128K)
mtd.writesize = 2048 (2K)
mtd.oobsize = 64
regions = 0
![]() |
2013-12-30
, 22:54
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#1028
|
![]() |
2013-12-30
, 23:04
|
Posts: 959 |
Thanked: 3,427 times |
Joined on Apr 2012
|
#1029
|
@taixzo
Here you go ...
Please have in mind I have working harmattan on p5, so you need to set ot to where ever your harmattan rootfs is. And I have my nit and firefox also on p5, so hopefully this will help and not confuse more.
Please omit all those echo changes
![]() |
2013-12-30
, 23:08
|
Posts: 12 |
Thanked: 5 times |
Joined on Dec 2013
|
#1030
|
Hmm, I have exactly double sized mtd2 and mtd5.
So does not look like erase block problems.
Maybe HW revision?
What is yours?
OK need to flash back to closed mode or no-preserve BUT that will destroy my 5 partitions plus one extended and reduce it to 3 standard, correct?
EDIT: Reason why can't download from Store in Sailfish OS could that be same error in Harmattan OS as with Microsoft Exchange not working?
OK
Last edited by Garp; 2013-12-29 at 12:10.