Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'create_simple_image.sh' script creates image but warns sectors "Value out of range" #3

Open
sanjumn opened this issue Dec 17, 2018 · 1 comment

Comments

@sanjumn
Copy link

sanjumn commented Dec 17, 2018

The 'create_simple_image.sh' script, downloaded from following link, does create an image but warns sectors "value out of range"
https://github.com/hehopmajieh/olinuxino_configs/blob/master/A64-OLinuXino/Tools/create_simple_image.sh

Following is the sequence of messages displayed after executing 'create_simple_image.sh' script:

mypc@ubuntu:~/A64-OLinuXino$ ./create_simple_image.sh Olinuxino-A64.img
Creating image Olinuxino-A64.img of size 100 MiB ...
++ dd if=/dev/zero bs=1M count=20 of=Olinuxino-A64.img
20+0 records in
20+0 records out
20971520 bytes (21 MB, 20 MiB) copied, 0.0335225 s, 626 MB/s
++ dd if=blobs/boot0.bin conv=notrunc bs=1k seek=8 of=Olinuxino-A64.img
32+0 records in
32+0 records out
32768 bytes (33 kB, 32 KiB) copied, 0.0103312 s, 3.2 MB/s
++ dd if=build/u-boot-with-dtb.bin conv=notrunc bs=1k seek=19096 of=Olinuxino-A64.img
922+0 records in
922+0 records out
944128 bytes (944 kB, 922 KiB) copied, 0.00143412 s, 658 MB/s
++ dd if=/dev/zero bs=1M count=50 of=Olinuxino-A64.img1
50+0 records in
50+0 records out
52428800 bytes (52 MB, 50 MiB) copied, 0.155965 s, 336 MB/s
++ mkfs.vfat -n BOOT Olinuxino-A64.img1
mkfs.fat 3.0.28 (2015-05-16)
++ dd if=Olinuxino-A64.img1 conv=notrunc oflag=append bs=1M seek=20 of=Olinuxino-A64.img
50+0 records in
50+0 records out
52428800 bytes (52 MB, 50 MiB) copied, 0.164734 s, 318 MB/s
++ rm -f Olinuxino-A64.img1
++ dd if=/dev/zero bs=1M count=30 of=Olinuxino-A64.img2
30+0 records in
30+0 records out
31457280 bytes (31 MB, 30 MiB) copied, 0.0300564 s, 1.0 GB/s
++ mkfs.ext4 -F -b 4096 -E stride=2,stripe-width=1024 -L rootfs Olinuxino-A64.img2
mke2fs 1.42.13 (17-May-2015)
Discarding device blocks: done
Creating filesystem with 7680 4k blocks and 7680 inodes

Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done

++ dd if=Olinuxino-A64.img2 conv=notrunc oflag=append bs=1M seek=70 of=Olinuxino-A64.img
30+0 records in
30+0 records out
31457280 bytes (31 MB, 30 MiB) copied, 0.0633444 s, 497 MB/s
++ rm -f Olinuxino-A64.img2
++ fdisk Olinuxino-A64.img
++ cat

Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xd5a9e211.

Command (m for help): Created a new DOS disklabel with disk identifier 0xb1762524.

Command (m for help): Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-204799, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (40960-204799, default 204799):
Created a new partition 1 of type 'Linux' and of size 50 MiB.

Command (m for help): Selected partition 1
Partition type (type L to list all types): Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.

Command (m for help): Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (2048-204799, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (143360-204799, default 204799): Last sector, +sectors or +size{K,M,G,T,P} (143360-204799, default 204799): Value out of range.
Last sector, +sectors or +size{K,M,G,T,P} (143360-204799, default 204799): Value out of range.
Last sector, +sectors or +size{K,M,G,T,P} (143360-204799, default 204799): Last sector, +sectors or +size{K,M,G,T,P} (143360-204799, default 204799):
Do you really want to quit? ++ sync
++ cleanup
++ '[' -d /tmp/tmp.swwxoyRGNc ']'
++ rm -rf /tmp/tmp.swwxoyRGNc
mypc@ubuntu:~/A64-OLinuXino$

@hehopmajieh
Copy link
Owner

hehopmajieh commented Dec 17, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants