Tiny Core Base > Raspberry Pi

PiCore image creating

(1/2) > >>

patrikg:
Hello Bela.

Couldn't sleep well this morning because maybe i figured out what problem you have with the picore image.
In my head.. there something saying OPTION BASE like the Basic command.
Where to start count from, start from 0 or start from 1.

Thinking like,when Bela making the picore image.. he just type in that the starting block of 1.
He just need to type in 0 as start. Have seen in the image that the first partition start with a gap of 4M.
Maybe this is also some explanation of why the image lost the counting at the end..missing one block.


//Patrik

patrikg:
Have now tried to accomplish what i mean. Why not try this.
To make 100 meg image.
Don't know if this working or not... haven't tested my self with pi.
Just making the image on my laptop.
Added -a to parted to tell none alignment.
Don't know if the none alignment will slow down the performance.   

dd if=/dev/zero of=image.img bs=1M count=100M
(export LANG=C;parted -a none -s image.img mktable msdos mkpart primary fat32 0 30M mkpart primary ext4 30M 100%)

patrikg:
Missed the count should be 100 not 100M

bmarkus:

--- Quote from: patrikg on January 23, 2017, 01:00:18 AM ---
He just need to type in 0 as start. Have seen in the image that the first partition start with a gap of 4M.
Maybe this is also some explanation of why the image lost the counting at the end..missing one block.


--- End quote ---

Are you saying that mmcblk0p1 must start on 0 instead of 8192?


--- Code: ---tc@box:~$ sudo fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 7.3 GiB, 7780433920 bytes, 15196160 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0009bf4f

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk0p1       8192    69631    61440   30M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      69648 11788415 11718768  5.6G 83 Linux
tc@box:~$
--- End code ---

patrikg:
Not must, but you loose 4M at start of partition.

You could also start with 1s, to specify the first sector. when sector size=512

I am continue on my path to test out my theory.
Using following after the image dd maked and parted with parted.

sudo losetup -o $((512*1)) /dev/loop0 image.img
mkdir sdimg
sudo mkfs.vfat /dev/loop0
sudo dosfslabel /dev/loop0 RASPBOOT
sudo mount /dev/loop0 sdimg

Picture says more :)

Navigation

[0] Message Index

[#] Next page

Go to full version