mirror of
https://github.com/sipeed/LicheeRV-Nano-Build.git
synced 2026-09-11 05:09:56 -05:00
resize part & file system in initramfs
This commit is contained in:
@@ -11,6 +11,8 @@ file /init ../target/init 775 0 0
|
||||
file /busybox ../target/busybox 775 0 0
|
||||
file /e2fsck ../target/e2fsck 775 0 0
|
||||
file /resize2fs ../target/resize2fs 775 0 0
|
||||
file /parted ../target/parted 775 0 0
|
||||
file /libc.so ../target/libc.so 775 0 0
|
||||
|
||||
dir /proc 755 0 0
|
||||
dir /sys 755 0 0
|
||||
|
||||
@@ -11,6 +11,8 @@ file /init ../target/init 775 0 0
|
||||
file /busybox ../target/busybox 775 0 0
|
||||
file /e2fsck ../target/e2fsck 775 0 0
|
||||
file /resize2fs ../target/resize2fs 775 0 0
|
||||
file /parted ../target/parted 775 0 0
|
||||
file /libc.so ../target/libc.so 775 0 0
|
||||
|
||||
dir /proc 755 0 0
|
||||
dir /sys 755 0 0
|
||||
|
||||
@@ -11,6 +11,8 @@ file /init ../target/init 775 0 0
|
||||
file /busybox ../target/busybox 775 0 0
|
||||
file /e2fsck ../target/e2fsck 775 0 0
|
||||
file /resize2fs ../target/resize2fs 775 0 0
|
||||
file /parted ../target/parted 775 0 0
|
||||
file /libc.so ../target/libc.so 775 0 0
|
||||
|
||||
dir /proc 755 0 0
|
||||
dir /sys 755 0 0
|
||||
|
||||
@@ -11,6 +11,8 @@ file /init ../target/init 775 0 0
|
||||
file /busybox ../target/busybox 775 0 0
|
||||
file /e2fsck ../target/e2fsck 775 0 0
|
||||
file /resize2fs ../target/resize2fs 775 0 0
|
||||
file /parted ../target/parted 775 0 0
|
||||
file /libc.so ../target/libc.so 775 0 0
|
||||
|
||||
dir /proc 755 0 0
|
||||
dir /sys 755 0 0
|
||||
|
||||
@@ -47,23 +47,29 @@ msc() {
|
||||
echo /dev/mmcblk0 > functions/mass_storage.disk0/lun.0/file
|
||||
ls /sys/class/udc/ | cat > UDC
|
||||
echo device > /proc/cviusb/otg_role
|
||||
(
|
||||
while true
|
||||
do
|
||||
sleep 10
|
||||
sync
|
||||
done
|
||||
) &
|
||||
/busybox sh
|
||||
exit
|
||||
}
|
||||
|
||||
mkdir /dev
|
||||
set -x
|
||||
|
||||
mkdir -p /dev
|
||||
mount -t devtmpfs devtmpfs /dev
|
||||
mkdir /proc
|
||||
mkdir -p /proc
|
||||
mount -t proc proc /proc
|
||||
mkdir /sys
|
||||
mkdir -p /sys
|
||||
mount -t sysfs sysfs /sys
|
||||
mount -t configfs configfs /sys/kernel/config
|
||||
mount -t debugfs debugfs /sys/kernel/debug
|
||||
|
||||
mkdir /boot
|
||||
mkdir -p /boot
|
||||
mount -o ro /dev/mmcblk0p1 /boot
|
||||
|
||||
msc=0
|
||||
@@ -86,6 +92,10 @@ then
|
||||
fi
|
||||
|
||||
mkdir /realroot
|
||||
parted -s /dev/mmcblk0 "resizepart 2 -0"
|
||||
echo "yes
|
||||
100%
|
||||
" | parted ---pretend-input-tty /dev/mmcblk0 "resizepart 2 100%"
|
||||
e2fsck -fvp /dev/mmcblk0p2
|
||||
resize2fs /dev/mmcblk0p2
|
||||
mount -o rw /dev/mmcblk0p2 /realroot
|
||||
|
||||
BIN
ramdisk/initramfs/musl_riscv64/libc.so
Executable file
BIN
ramdisk/initramfs/musl_riscv64/libc.so
Executable file
Binary file not shown.
BIN
ramdisk/initramfs/musl_riscv64/parted
Executable file
BIN
ramdisk/initramfs/musl_riscv64/parted
Executable file
Binary file not shown.
Reference in New Issue
Block a user