—
Run environment setting
—
CONPROSYS Linux SDK User’s Manual (Self
-Build Edition)
—
39
—
[Expand the rootfs partition of Linux to the maximum memory size in
the SD card]
1
Start the CONPROSYS.
2
Open the SD card device by fdisk to change a Linux partition.
sudo fdisk /dev/mmcblk0
i) Display the present partition information by p command.
Take a note of the information displayed.
*Especially the Start / End address of /dev/mmcblk0p2.
[A display example: a SD card with 4GByte is run by Ubuntu20.04]
Command (m for help): p
Disk /dev/mmcblk0: 7746 MB, 7746879488 bytes
255 heads, 63 sectors/track, 941 cylinders, total 15130624 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
Disk identifier: 0x00000000
Device
Boot
Start
End
Blocks
Id
System
/dev/mmcblk0p1 *
63
144584
72261
c
W95 FAT32(LBA)
/dev/mmcblk0p2
144585 7855784 83
Linux
ii) Delete Linux partition (Partition number: 2) by d command.
Command (m for help): d
Partition number (1-4): 2
iii) Add the Linux partition by n command.
For this, set the parameter as described below.
<Parameter>
Command (m for help): n
Partition type: p
Partition number : 2
First sector: <default value> (the Start address of /dev/mmcblk0p2 which you took a note by
p command)
Last sector: <default value > (the End address of /dev/mmcblk0p2 which you took a note by
p command)
Summary of Contents for CONPROSYS Linux SDK
Page 4: ... 4 Introduction ...
Page 11: ... 11 Safety Precautions ...
Page 15: ... 15 SDK preparation ...
Page 19: ... 19 Starting CONPROSYS ...
Page 24: ... 24 Run environment setting ...
Page 44: ...Appendix ...