Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 2152|Reply: 2

SD image with custom partitioning scheme?

[Copy link]

2

Threads

4

Posts

18

Credits

Novice

Rank: 1

Credits
18
Post time 2016-4-7 16:42:14 From the mobile phone | Show all posts |Read mode
Is there any way I can create an SD card image with customized partitioning? I'd like to have a card with a small FAT32 partition for purposes of data transfer, but all the downloads I've seen just seem to create a new partition table on the device without giving any choice about layout. I have a desktop linux system available that I could use to perform the partitoning, and have no objections to getting my hands dirty at a low level, but I don't really know enough about how uboot works on these systems to just do it myself.

1

Threads

30

Posts

159

Credits

Registered member

Rank: 2

Credits
159
Post time 2016-4-11 21:48:24 | Show all posts
@Jules ... depend on which uboot you are refering.
If we are talking about loboris images, then you can copy the 1st 20MB from that image to something like : loboris-uboot.bin (using dd for example, dd if=loboris.img of=loboris-uboot.bin bs=1024 count=20480).
After that, create your own FAT starting from sector 40960 (512 byte/sector) with your needed size. Then create your ext2/ext4 partition directly after that FAT partition. After you format all of them, copy loboris-uboot.bin to unused area .. dd if=loboris-uboot.bin of=/dev/sdb

(after that you have to copy uImage and script.bin to the FAT partition, and linux rootfs image to the ext partition).

Hope is it helpful.

7

Threads

81

Posts

317

Credits

Intermediate member

Rank: 3Rank: 3

Credits
317
Post time 2016-4-7 19:48:04 | Show all posts
@Jules
A graphical tool for repartitioning sdcards on your linux system is gparted.
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2021-3-4 14:59 GMT+8 , Processed in 0.028797 second(s), 23 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list