https://github.com/peppelinux/radxa-rock-rk3188
Notes on flashing and usage of Radxa Rock board
https://github.com/peppelinux/radxa-rock-rk3188
radxa radxa-boards radxa-rock-boards rk3188 rockchip
Last synced: 2 months ago
JSON representation
Notes on flashing and usage of Radxa Rock board
- Host: GitHub
- URL: https://github.com/peppelinux/radxa-rock-rk3188
- Owner: peppelinux
- Created: 2020-09-05T00:02:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-24T23:21:33.000Z (over 4 years ago)
- Last Synced: 2025-01-07T07:44:44.450Z (4 months ago)
- Topics: radxa, radxa-boards, radxa-rock-boards, rk3188, rockchip
- Homepage:
- Size: 1.89 MB
- Stars: 11
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.image_manamgement.md
Awesome Lists containing this project
README
````
# create a 6gb file
dd if=/dev/zero of=6gb.img bs=1M count=$((1024*6))# check loop bindings
losetup -a# bind it to /dev/loopN
losetup /dev/loop12 6gb.img# copy data
xzcat ~/Downloads/ev3dev-yyyy-mm-dd.img.xz | sudo dd bs=4M of=/dev/loop12 status=progress# detach device
losetup -d /dev/loop12
# with kpartx
kpartx -d /dev/loop12# analyze partitions
kpartx -l 6gb.img# bind volume with every partitions
losetup --show -f -P 6gb.img
# or
kpartx -a -v 6gb.img# here
ls /dev/loop12*
# or
ls /dev/mapper/loop12*# edit volume
gparted /dev/loop12
# or
gparted /dev/mapper/loop12p2# once the last partition have been resized, recreate the image copying only the needed datas
dd if=6gb.img of=2gb.img status=progress bs=1M count=1860# copy the newly created image to a smaller sd card
dd if=2gb.img of=/dev/sdg status=progress````